Lines Matching refs:ohdr

214 static inline u32 ib_get_qkey(struct ib_other_headers *ohdr)
216 return be32_to_cpu(ohdr->u.ud.deth[0]);
219 static inline u32 ib_get_sqpn(struct ib_other_headers *ohdr)
221 return ((be32_to_cpu(ohdr->u.ud.deth[1])) & IB_QPN_MASK);
241 static inline u8 ib_bth_get_pad(struct ib_other_headers *ohdr)
243 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_PAD_SHIFT) &
247 static inline u16 ib_bth_get_pkey(struct ib_other_headers *ohdr)
249 return (be32_to_cpu(ohdr->bth[0]) & IB_BTH_PKEY_MASK);
252 static inline u8 ib_bth_get_opcode(struct ib_other_headers *ohdr)
254 return ((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_OPCODE_SHIFT) &
258 static inline u8 ib_bth_get_ackreq(struct ib_other_headers *ohdr)
260 return (u8)((be32_to_cpu(ohdr->bth[2]) >> IB_BTH_A_SHIFT) &
264 static inline u8 ib_bth_get_migreq(struct ib_other_headers *ohdr)
266 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_M_SHIFT) &
270 static inline u8 ib_bth_get_se(struct ib_other_headers *ohdr)
272 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_SE_SHIFT) &
276 static inline u32 ib_bth_get_psn(struct ib_other_headers *ohdr)
278 return (u32)(be32_to_cpu(ohdr->bth[2]));
281 static inline u32 ib_bth_get_qpn(struct ib_other_headers *ohdr)
283 return (u32)((be32_to_cpu(ohdr->bth[1])) & IB_QPN_MASK);
286 static inline bool ib_bth_get_becn(struct ib_other_headers *ohdr)
288 return (ohdr->bth[1]) & cpu_to_be32(IB_BECN_SMASK);
291 static inline bool ib_bth_get_fecn(struct ib_other_headers *ohdr)
293 return (ohdr->bth[1]) & cpu_to_be32(IB_FECN_SMASK);
296 static inline u8 ib_bth_get_tver(struct ib_other_headers *ohdr)
298 return (u8)((be32_to_cpu(ohdr->bth[0]) >> IB_BTH_TVER_SHIFT) &
302 static inline bool ib_bth_is_solicited(struct ib_other_headers *ohdr)
304 return ohdr->bth[0] & cpu_to_be32(IB_BTH_SOLICITED);
307 static inline bool ib_bth_is_migration(struct ib_other_headers *ohdr)
309 return ohdr->bth[0] & cpu_to_be32(IB_BTH_MIG_REQ);