Lines Matching refs:hdr
173 static inline u8 ib_get_lnh(struct ib_header *hdr) in ib_get_lnh() argument
175 return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK); in ib_get_lnh()
178 static inline u8 ib_get_sc(struct ib_header *hdr) in ib_get_sc() argument
180 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK); in ib_get_sc()
188 static inline u8 ib_get_sl(struct ib_header *hdr) in ib_get_sl() argument
190 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK); in ib_get_sl()
193 static inline u16 ib_get_dlid(struct ib_header *hdr) in ib_get_dlid() argument
195 return (be16_to_cpu(hdr->lrh[1])); in ib_get_dlid()
198 static inline u16 ib_get_slid(struct ib_header *hdr) in ib_get_slid() argument
200 return (be16_to_cpu(hdr->lrh[3])); in ib_get_slid()
203 static inline u8 ib_get_lver(struct ib_header *hdr) in ib_get_lver() argument
205 return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) & in ib_get_lver()