Lines Matching refs:ohdr

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