Lines Matching refs:ohdr

209 static inline u32 ib_get_qkey(struct ib_other_headers *ohdr)  in ib_get_qkey()  argument
211 return be32_to_cpu(ohdr->u.ud.deth[0]); in ib_get_qkey()
214 static inline u32 ib_get_sqpn(struct ib_other_headers *ohdr) in ib_get_sqpn() argument
216 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK); in ib_get_sqpn()
237 static inline u8 ib_bth_get_pad(struct ib_other_headers *ohdr) in ib_bth_get_pad() argument
239 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) & in ib_bth_get_pad()
243 static inline u16 ib_bth_get_pkey(struct ib_other_headers *ohdr) in ib_bth_get_pkey() argument
245 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK); in ib_bth_get_pkey()
248 static inline u8 ib_bth_get_opcode(struct ib_other_headers *ohdr) in ib_bth_get_opcode() argument
250 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) & in ib_bth_get_opcode()
254 static inline u8 ib_bth_get_ackreq(struct ib_other_headers *ohdr) in ib_bth_get_ackreq() argument
256 return (u8)((be32_to_cpu(ohdr->bth[2]) >> IB_BTH_A_SHIFT) & in ib_bth_get_ackreq()
260 static inline u8 ib_bth_get_migreq(struct ib_other_headers *ohdr) in ib_bth_get_migreq() argument
262 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_M_SHIFT) & in ib_bth_get_migreq()
266 static inline u8 ib_bth_get_se(struct ib_other_headers *ohdr) in ib_bth_get_se() argument
268 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_SE_SHIFT) & in ib_bth_get_se()
272 static inline u32 ib_bth_get_psn(struct ib_other_headers *ohdr) in ib_bth_get_psn() argument
274 return (u32)(be32_to_cpu(ohdr->bth[2])); in ib_bth_get_psn()
277 static inline u32 ib_bth_get_qpn(struct ib_other_headers *ohdr) in ib_bth_get_qpn() argument
279 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK); in ib_bth_get_qpn()
282 static inline bool ib_bth_get_becn(struct ib_other_headers *ohdr) in ib_bth_get_becn() argument
284 return (ohdr->bth[1]) & cpu_to_be32(IB_BECN_SMASK); in ib_bth_get_becn()
287 static inline bool ib_bth_get_fecn(struct ib_other_headers *ohdr) in ib_bth_get_fecn() argument
289 return (ohdr->bth[1]) & cpu_to_be32(IB_FECN_SMASK); in ib_bth_get_fecn()
292 static inline u8 ib_bth_get_tver(struct ib_other_headers *ohdr) in ib_bth_get_tver() argument
294 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_TVER_SHIFT) & in ib_bth_get_tver()
298 static inline bool ib_bth_is_solicited(struct ib_other_headers *ohdr) in ib_bth_is_solicited() argument
300 return ohdr->bth[0] & cpu_to_be32(IB_BTH_SOLICITED); in ib_bth_is_solicited()
303 static inline bool ib_bth_is_migration(struct ib_other_headers *ohdr) in ib_bth_is_migration() argument
305 return ohdr->bth[0] & cpu_to_be32(IB_BTH_MIG_REQ); in ib_bth_is_migration()