• Home
  • Raw
  • Download

Lines Matching refs:bth

86 	struct rxe_bth *bth = arg;  in __bth_opcode()  local
88 return bth->opcode; in __bth_opcode()
93 struct rxe_bth *bth = arg; in __bth_set_opcode() local
95 bth->opcode = opcode; in __bth_set_opcode()
100 struct rxe_bth *bth = arg; in __bth_se() local
102 return 0 != (BTH_SE_MASK & bth->flags); in __bth_se()
107 struct rxe_bth *bth = arg; in __bth_set_se() local
110 bth->flags |= BTH_SE_MASK; in __bth_set_se()
112 bth->flags &= ~BTH_SE_MASK; in __bth_set_se()
117 struct rxe_bth *bth = arg; in __bth_mig() local
119 return 0 != (BTH_MIG_MASK & bth->flags); in __bth_mig()
124 struct rxe_bth *bth = arg; in __bth_set_mig() local
127 bth->flags |= BTH_MIG_MASK; in __bth_set_mig()
129 bth->flags &= ~BTH_MIG_MASK; in __bth_set_mig()
134 struct rxe_bth *bth = arg; in __bth_pad() local
136 return (BTH_PAD_MASK & bth->flags) >> 4; in __bth_pad()
141 struct rxe_bth *bth = arg; in __bth_set_pad() local
143 bth->flags = (BTH_PAD_MASK & (pad << 4)) | in __bth_set_pad()
144 (~BTH_PAD_MASK & bth->flags); in __bth_set_pad()
149 struct rxe_bth *bth = arg; in __bth_tver() local
151 return BTH_TVER_MASK & bth->flags; in __bth_tver()
156 struct rxe_bth *bth = arg; in __bth_set_tver() local
158 bth->flags = (BTH_TVER_MASK & tver) | in __bth_set_tver()
159 (~BTH_TVER_MASK & bth->flags); in __bth_set_tver()
164 struct rxe_bth *bth = arg; in __bth_pkey() local
166 return be16_to_cpu(bth->pkey); in __bth_pkey()
171 struct rxe_bth *bth = arg; in __bth_set_pkey() local
173 bth->pkey = cpu_to_be16(pkey); in __bth_set_pkey()
178 struct rxe_bth *bth = arg; in __bth_qpn() local
180 return BTH_QPN_MASK & be32_to_cpu(bth->qpn); in __bth_qpn()
185 struct rxe_bth *bth = arg; in __bth_set_qpn() local
186 u32 resvqpn = be32_to_cpu(bth->qpn); in __bth_set_qpn()
188 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) | in __bth_set_qpn()
194 struct rxe_bth *bth = arg; in __bth_fecn() local
196 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn); in __bth_fecn()
201 struct rxe_bth *bth = arg; in __bth_set_fecn() local
204 bth->qpn |= cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
206 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK); in __bth_set_fecn()
211 struct rxe_bth *bth = arg; in __bth_becn() local
213 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn); in __bth_becn()
218 struct rxe_bth *bth = arg; in __bth_set_becn() local
221 bth->qpn |= cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
223 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK); in __bth_set_becn()
228 struct rxe_bth *bth = arg; in __bth_resv6a() local
230 return (BTH_RESV6A_MASK & be32_to_cpu(bth->qpn)) >> 24; in __bth_resv6a()
235 struct rxe_bth *bth = arg; in __bth_set_resv6a() local
237 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK); in __bth_set_resv6a()
242 struct rxe_bth *bth = arg; in __bth_ack() local
244 return 0 != (cpu_to_be32(BTH_ACK_MASK) & bth->apsn); in __bth_ack()
249 struct rxe_bth *bth = arg; in __bth_set_ack() local
252 bth->apsn |= cpu_to_be32(BTH_ACK_MASK); in __bth_set_ack()
254 bth->apsn &= ~cpu_to_be32(BTH_ACK_MASK); in __bth_set_ack()
259 struct rxe_bth *bth = arg; in __bth_set_resv7() local
261 bth->apsn &= ~cpu_to_be32(BTH_RESV7_MASK); in __bth_set_resv7()
266 struct rxe_bth *bth = arg; in __bth_psn() local
268 return BTH_PSN_MASK & be32_to_cpu(bth->apsn); in __bth_psn()
273 struct rxe_bth *bth = arg; in __bth_set_psn() local
274 u32 apsn = be32_to_cpu(bth->apsn); in __bth_set_psn()
276 bth->apsn = cpu_to_be32((BTH_PSN_MASK & psn) | in __bth_set_psn()
409 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr); in bth_init() local
411 bth->opcode = opcode; in bth_init()
412 bth->flags = (pad << 4) & BTH_PAD_MASK; in bth_init()
414 bth->flags |= BTH_SE_MASK; in bth_init()
416 bth->flags |= BTH_MIG_MASK; in bth_init()
417 bth->pkey = cpu_to_be16(pkey); in bth_init()
418 bth->qpn = cpu_to_be32(qpn & BTH_QPN_MASK); in bth_init()
422 bth->apsn = cpu_to_be32(psn); in bth_init()