Lines Matching refs:bth
87 struct rxe_bth *bth = arg; in __bth_opcode() local
89 return bth->opcode; in __bth_opcode()
94 struct rxe_bth *bth = arg; in __bth_set_opcode() local
96 bth->opcode = opcode; in __bth_set_opcode()
101 struct rxe_bth *bth = arg; in __bth_se() local
103 return 0 != (BTH_SE_MASK & bth->flags); in __bth_se()
108 struct rxe_bth *bth = arg; in __bth_set_se() local
111 bth->flags |= BTH_SE_MASK; in __bth_set_se()
113 bth->flags &= ~BTH_SE_MASK; in __bth_set_se()
118 struct rxe_bth *bth = arg; in __bth_mig() local
120 return 0 != (BTH_MIG_MASK & bth->flags); in __bth_mig()
125 struct rxe_bth *bth = arg; in __bth_set_mig() local
128 bth->flags |= BTH_MIG_MASK; in __bth_set_mig()
130 bth->flags &= ~BTH_MIG_MASK; in __bth_set_mig()
135 struct rxe_bth *bth = arg; in __bth_pad() local
137 return (BTH_PAD_MASK & bth->flags) >> 4; in __bth_pad()
142 struct rxe_bth *bth = arg; in __bth_set_pad() local
144 bth->flags = (BTH_PAD_MASK & (pad << 4)) | in __bth_set_pad()
145 (~BTH_PAD_MASK & bth->flags); in __bth_set_pad()
150 struct rxe_bth *bth = arg; in __bth_tver() local
152 return BTH_TVER_MASK & bth->flags; in __bth_tver()
157 struct rxe_bth *bth = arg; in __bth_set_tver() local
159 bth->flags = (BTH_TVER_MASK & tver) | in __bth_set_tver()
160 (~BTH_TVER_MASK & bth->flags); in __bth_set_tver()
165 struct rxe_bth *bth = arg; in __bth_pkey() local
167 return be16_to_cpu(bth->pkey); in __bth_pkey()
172 struct rxe_bth *bth = arg; in __bth_set_pkey() local
174 bth->pkey = cpu_to_be16(pkey); in __bth_set_pkey()
179 struct rxe_bth *bth = arg; in __bth_qpn() local
181 return BTH_QPN_MASK & be32_to_cpu(bth->qpn); in __bth_qpn()
186 struct rxe_bth *bth = arg; in __bth_set_qpn() local
187 u32 resvqpn = be32_to_cpu(bth->qpn); in __bth_set_qpn()
189 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) | in __bth_set_qpn()
195 struct rxe_bth *bth = arg; in __bth_fecn() local
197 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn); in __bth_fecn()
202 struct rxe_bth *bth = arg; in __bth_set_fecn() local
205 bth->qpn |= cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
207 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
212 struct rxe_bth *bth = arg; in __bth_becn() local
214 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn); in __bth_becn()
219 struct rxe_bth *bth = arg; in __bth_set_becn() local
222 bth->qpn |= cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
224 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
229 struct rxe_bth *bth = arg; in __bth_resv6a() local
231 return (BTH_RESV6A_MASK & be32_to_cpu(bth->qpn)) >> 24; in __bth_resv6a()
236 struct rxe_bth *bth = arg; in __bth_set_resv6a() local
238 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK); in __bth_set_resv6a()
243 struct rxe_bth *bth = arg; in __bth_ack() local
245 return 0 != (cpu_to_be32(BTH_ACK_MASK) & bth->apsn); in __bth_ack()
250 struct rxe_bth *bth = arg; in __bth_set_ack() local
253 bth->apsn |= cpu_to_be32(BTH_ACK_MASK); in __bth_set_ack()
255 bth->apsn &= ~cpu_to_be32(BTH_ACK_MASK); in __bth_set_ack()
260 struct rxe_bth *bth = arg; in __bth_set_resv7() local
262 bth->apsn &= ~cpu_to_be32(BTH_RESV7_MASK); in __bth_set_resv7()
267 struct rxe_bth *bth = arg; in __bth_psn() local
269 return BTH_PSN_MASK & be32_to_cpu(bth->apsn); in __bth_psn()
274 struct rxe_bth *bth = arg; in __bth_set_psn() local
275 u32 apsn = be32_to_cpu(bth->apsn); in __bth_set_psn()
277 bth->apsn = cpu_to_be32((BTH_PSN_MASK & psn) | in __bth_set_psn()
410 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr + pkt->offset); in bth_init() local
412 bth->opcode = opcode; in bth_init()
413 bth->flags = (pad << 4) & BTH_PAD_MASK; in bth_init()
415 bth->flags |= BTH_SE_MASK; in bth_init()
417 bth->flags |= BTH_MIG_MASK; in bth_init()
418 bth->pkey = cpu_to_be16(pkey); in bth_init()
419 bth->qpn = cpu_to_be32(qpn & BTH_QPN_MASK); in bth_init()
423 bth->apsn = cpu_to_be32(psn); in bth_init()