Lines Matching refs:hdr
215 static inline u8 ib_get_lnh(struct ib_header *hdr) in ib_get_lnh() argument
217 return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK); in ib_get_lnh()
220 static inline u8 ib_get_sc(struct ib_header *hdr) in ib_get_sc() argument
222 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK); in ib_get_sc()
230 static inline u8 ib_get_sl(struct ib_header *hdr) in ib_get_sl() argument
232 return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK); in ib_get_sl()
235 static inline u16 ib_get_dlid(struct ib_header *hdr) in ib_get_dlid() argument
237 return (be16_to_cpu(hdr->lrh[1])); in ib_get_dlid()
240 static inline u16 ib_get_slid(struct ib_header *hdr) in ib_get_slid() argument
242 return (be16_to_cpu(hdr->lrh[3])); in ib_get_slid()
245 static inline u8 ib_get_lver(struct ib_header *hdr) in ib_get_lver() argument
247 return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) & in ib_get_lver()
251 static inline u16 ib_get_len(struct ib_header *hdr) in ib_get_len() argument
253 return (u16)(be16_to_cpu(hdr->lrh[2])); in ib_get_len()