Lines Matching refs:ohdr

244 static inline u32 ib_get_qkey(struct ib_other_headers *ohdr)  in ib_get_qkey()  argument
246 return be32_to_cpu(ohdr->u.ud.deth[0]); in ib_get_qkey()
249 static inline u32 ib_get_sqpn(struct ib_other_headers *ohdr) in ib_get_sqpn() argument
251 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK); in ib_get_sqpn()
271 static inline u8 ib_bth_get_pad(struct ib_other_headers *ohdr) in ib_bth_get_pad() argument
273 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad()
277 static inline u16 ib_bth_get_pkey(struct ib_other_headers *ohdr) in ib_bth_get_pkey() argument
279 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey()
282 static inline u8 ib_bth_get_opcode(struct ib_other_headers *ohdr) in ib_bth_get_opcode() argument
284 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode()
288 static inline u8 ib_bth_get_ackreq(struct ib_other_headers *ohdr) in ib_bth_get_ackreq() argument
290 return (u8)((be32_to_cpu(ohdr->bth[2]) >> IB_BTH_A_SHIFT) & in ib_bth_get_ackreq()
294 static inline u8 ib_bth_get_migreq(struct ib_other_headers *ohdr) in ib_bth_get_migreq() argument
296 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_M_SHIFT) & in ib_bth_get_migreq()
300 static inline u8 ib_bth_get_se(struct ib_other_headers *ohdr) in ib_bth_get_se() argument
302 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_SE_SHIFT) & in ib_bth_get_se()
306 static inline u32 ib_bth_get_psn(struct ib_other_headers *ohdr) in ib_bth_get_psn() argument
308 return (u32)(be32_to_cpu(ohdr->bth[2])); in ib_bth_get_psn()
311 static inline u32 ib_bth_get_qpn(struct ib_other_headers *ohdr) in ib_bth_get_qpn() argument
313 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK); in ib_bth_get_qpn()
316 static inline bool ib_bth_get_becn(struct ib_other_headers *ohdr) in ib_bth_get_becn() argument
318 return (ohdr->bth[1]) & cpu_to_be32(IB_BECN_SMASK); in ib_bth_get_becn()
321 static inline bool ib_bth_get_fecn(struct ib_other_headers *ohdr) in ib_bth_get_fecn() argument
323 return (ohdr->bth[1]) & cpu_to_be32(IB_FECN_SMASK); in ib_bth_get_fecn()
326 static inline u8 ib_bth_get_tver(struct ib_other_headers *ohdr) in ib_bth_get_tver() argument
328 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_TVER_SHIFT) & in ib_bth_get_tver()
332 static inline bool ib_bth_is_solicited(struct ib_other_headers *ohdr) in ib_bth_is_solicited() argument
334 return ohdr->bth[0] & cpu_to_be32(IB_BTH_SOLICITED); in ib_bth_is_solicited()
337 static inline bool ib_bth_is_migration(struct ib_other_headers *ohdr) in ib_bth_is_migration() argument
339 return ohdr->bth[0] & cpu_to_be32(IB_BTH_MIG_REQ); in ib_bth_is_migration()