Lines Matching refs:qpn
85 __be32 qpn; member
200 return BTH_QPN_MASK & be32_to_cpu(bth->qpn); in __bth_qpn()
203 static inline void __bth_set_qpn(void *arg, u32 qpn) in __bth_set_qpn() argument
206 u32 resvqpn = be32_to_cpu(bth->qpn); in __bth_set_qpn()
208 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) | in __bth_set_qpn()
216 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn); in __bth_fecn()
224 bth->qpn |= cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
226 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
233 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn); in __bth_becn()
241 bth->qpn |= cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
243 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
250 return (BTH_RESV6A_MASK & be32_to_cpu(bth->qpn)) >> 24; in __bth_resv6a()
257 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK); in __bth_set_resv6a()
365 static inline void bth_set_qpn(struct rxe_pkt_info *pkt, u32 qpn) in bth_set_qpn() argument
367 __bth_set_qpn(pkt->hdr + pkt->offset, qpn); in bth_set_qpn()
426 int mig, int pad, u16 pkey, u32 qpn, int ack_req, in bth_init() argument
438 bth->qpn = cpu_to_be32(qpn & BTH_QPN_MASK); in bth_init()