u16 rlid;
                        u8 svc_type, sl, sc5;
 
-                       sc5 = hdr2sc(rhdr, packet->rhf);
+                       sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf);
                        sl = ibp->sc_to_sl[sc5];
 
                        lqpn = be32_to_cpu(bth[1]) & RVT_QPN_MASK;
                return;
        }
 
-       sc = hdr2sc(hdr, pkt->rhf);
+       sc = hfi1_9B_get_sc5(hdr, pkt->rhf);
 
        bth1 = be32_to_cpu(ohdr->bth[1]);
        if (do_cnp && (bth1 & HFI1_FECN_SMASK)) {
                                                   packet->rhf_addr);
        u8 etype = rhf_rcv_type(packet->rhf);
 
-       if (etype == RHF_RCV_TYPE_IB && hdr2sc(hdr, packet->rhf) != 0xf) {
+       if (etype == RHF_RCV_TYPE_IB &&
+           hfi1_9B_get_sc5(hdr, packet->rhf) != 0xf) {
                int hwstate = read_logical_state(dd);
 
                if (hwstate != LSTATE_ACTIVE) {
 
 void receive_interrupt_work(struct work_struct *work);
 
 /* extract service channel from header and rhf */
-static inline int hdr2sc(struct ib_header *hdr, u64 rhf)
+static inline int hfi1_9B_get_sc5(struct ib_header *hdr, u64 rhf)
 {
        return ((be16_to_cpu(hdr->lrh[0]) >> 12) & 0xf) |
               ((!!(rhf_dc_info(rhf))) << 4);
 
        u32 tlen = packet->tlen;
        struct rvt_qp *qp = packet->qp;
        bool has_grh = rcv_flags & HFI1_HAS_GRH;
-       u8 sc5 = hdr2sc(hdr, packet->rhf);
+       u8 sc5 = hfi1_9B_get_sc5(hdr, packet->rhf);
        u32 bth1;
        u8 sl_from_sc, sl;
        u16 slid;