Lines Matching refs:bth

114 	struct rxe_bth *bth = arg;  in __bth_opcode()  local
116 return bth->opcode; in __bth_opcode()
121 struct rxe_bth *bth = arg; in __bth_set_opcode() local
123 bth->opcode = opcode; in __bth_set_opcode()
128 struct rxe_bth *bth = arg; in __bth_se() local
130 return 0 != (BTH_SE_MASK & bth->flags); in __bth_se()
135 struct rxe_bth *bth = arg; in __bth_set_se() local
138 bth->flags |= BTH_SE_MASK; in __bth_set_se()
140 bth->flags &= ~BTH_SE_MASK; in __bth_set_se()
145 struct rxe_bth *bth = arg; in __bth_mig() local
147 return 0 != (BTH_MIG_MASK & bth->flags); in __bth_mig()
152 struct rxe_bth *bth = arg; in __bth_set_mig() local
155 bth->flags |= BTH_MIG_MASK; in __bth_set_mig()
157 bth->flags &= ~BTH_MIG_MASK; in __bth_set_mig()
162 struct rxe_bth *bth = arg; in __bth_pad() local
164 return (BTH_PAD_MASK & bth->flags) >> 4; in __bth_pad()
169 struct rxe_bth *bth = arg; in __bth_set_pad() local
171 bth->flags = (BTH_PAD_MASK & (pad << 4)) | in __bth_set_pad()
172 (~BTH_PAD_MASK & bth->flags); in __bth_set_pad()
177 struct rxe_bth *bth = arg; in __bth_tver() local
179 return BTH_TVER_MASK & bth->flags; in __bth_tver()
184 struct rxe_bth *bth = arg; in __bth_set_tver() local
186 bth->flags = (BTH_TVER_MASK & tver) | in __bth_set_tver()
187 (~BTH_TVER_MASK & bth->flags); in __bth_set_tver()
192 struct rxe_bth *bth = arg; in __bth_pkey() local
194 return be16_to_cpu(bth->pkey); in __bth_pkey()
199 struct rxe_bth *bth = arg; in __bth_set_pkey() local
201 bth->pkey = cpu_to_be16(pkey); in __bth_set_pkey()
206 struct rxe_bth *bth = arg; in __bth_qpn() local
208 return BTH_QPN_MASK & be32_to_cpu(bth->qpn); in __bth_qpn()
213 struct rxe_bth *bth = arg; in __bth_set_qpn() local
214 u32 resvqpn = be32_to_cpu(bth->qpn); in __bth_set_qpn()
216 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) | in __bth_set_qpn()
222 struct rxe_bth *bth = arg; in __bth_fecn() local
224 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn); in __bth_fecn()
229 struct rxe_bth *bth = arg; in __bth_set_fecn() local
232 bth->qpn |= cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
234 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
239 struct rxe_bth *bth = arg; in __bth_becn() local
241 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn); in __bth_becn()
246 struct rxe_bth *bth = arg; in __bth_set_becn() local
249 bth->qpn |= cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
251 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
256 struct rxe_bth *bth = arg; in __bth_resv6a() local
258 return (BTH_RESV6A_MASK & be32_to_cpu(bth->qpn)) >> 24; in __bth_resv6a()
263 struct rxe_bth *bth = arg; in __bth_set_resv6a() local
265 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK); in __bth_set_resv6a()
270 struct rxe_bth *bth = arg; in __bth_ack() local
272 return 0 != (cpu_to_be32(BTH_ACK_MASK) & bth->apsn); in __bth_ack()
277 struct rxe_bth *bth = arg; in __bth_set_ack() local
280 bth->apsn |= cpu_to_be32(BTH_ACK_MASK); in __bth_set_ack()
282 bth->apsn &= ~cpu_to_be32(BTH_ACK_MASK); in __bth_set_ack()
287 struct rxe_bth *bth = arg; in __bth_set_resv7() local
289 bth->apsn &= ~cpu_to_be32(BTH_RESV7_MASK); in __bth_set_resv7()
294 struct rxe_bth *bth = arg; in __bth_psn() local
296 return BTH_PSN_MASK & be32_to_cpu(bth->apsn); in __bth_psn()
301 struct rxe_bth *bth = arg; in __bth_set_psn() local
302 u32 apsn = be32_to_cpu(bth->apsn); in __bth_set_psn()
304 bth->apsn = cpu_to_be32((BTH_PSN_MASK & psn) | in __bth_set_psn()
437 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr + pkt->offset); in bth_init() local
439 bth->opcode = opcode; in bth_init()
440 bth->flags = (pad << 4) & BTH_PAD_MASK; in bth_init()
442 bth->flags |= BTH_SE_MASK; in bth_init()
444 bth->flags |= BTH_MIG_MASK; in bth_init()
445 bth->pkey = cpu_to_be16(pkey); in bth_init()
446 bth->qpn = cpu_to_be32(qpn & BTH_QPN_MASK); in bth_init()
450 bth->apsn = cpu_to_be32(psn); in bth_init()