Lines Matching refs:bth
18 u8 *hdr; /* points to bth */
20 u32 psn; /* bth psn of packet */
22 u16 paylen; /* length of bth - icrc */
24 u8 opcode; /* bth opcode of packet */
86 struct rxe_bth *bth = arg;
88 return bth->opcode;
93 struct rxe_bth *bth = arg;
95 bth->opcode = opcode;
100 struct rxe_bth *bth = arg;
102 return 0 != (BTH_SE_MASK & bth->flags);
107 struct rxe_bth *bth = arg;
110 bth->flags |= BTH_SE_MASK;
112 bth->flags &= ~BTH_SE_MASK;
117 struct rxe_bth *bth = arg;
119 return 0 != (BTH_MIG_MASK & bth->flags);
124 struct rxe_bth *bth = arg;
127 bth->flags |= BTH_MIG_MASK;
129 bth->flags &= ~BTH_MIG_MASK;
134 struct rxe_bth *bth = arg;
136 return (BTH_PAD_MASK & bth->flags) >> 4;
141 struct rxe_bth *bth = arg;
143 bth->flags = (BTH_PAD_MASK & (pad << 4)) |
144 (~BTH_PAD_MASK & bth->flags);
149 struct rxe_bth *bth = arg;
151 return BTH_TVER_MASK & bth->flags;
156 struct rxe_bth *bth = arg;
158 bth->flags = (BTH_TVER_MASK & tver) |
159 (~BTH_TVER_MASK & bth->flags);
164 struct rxe_bth *bth = arg;
166 return be16_to_cpu(bth->pkey);
171 struct rxe_bth *bth = arg;
173 bth->pkey = cpu_to_be16(pkey);
178 struct rxe_bth *bth = arg;
180 return BTH_QPN_MASK & be32_to_cpu(bth->qpn);
185 struct rxe_bth *bth = arg;
186 u32 resvqpn = be32_to_cpu(bth->qpn);
188 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) |
194 struct rxe_bth *bth = arg;
196 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn);
201 struct rxe_bth *bth = arg;
204 bth->qpn |= cpu_to_be32(BTH_FECN_MASK);
206 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK);
211 struct rxe_bth *bth = arg;
213 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn);
218 struct rxe_bth *bth = arg;
221 bth->qpn |= cpu_to_be32(BTH_BECN_MASK);
223 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK);
228 struct rxe_bth *bth = arg;
230 return (BTH_RESV6A_MASK & be32_to_cpu(bth->qpn)) >> 24;
235 struct rxe_bth *bth = arg;
237 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK);
242 struct rxe_bth *bth = arg;
244 return 0 != (cpu_to_be32(BTH_ACK_MASK) & bth->apsn);
249 struct rxe_bth *bth = arg;
252 bth->apsn |= cpu_to_be32(BTH_ACK_MASK);
254 bth->apsn &= ~cpu_to_be32(BTH_ACK_MASK);
259 struct rxe_bth *bth = arg;
261 bth->apsn &= ~cpu_to_be32(BTH_RESV7_MASK);
266 struct rxe_bth *bth = arg;
268 return BTH_PSN_MASK & be32_to_cpu(bth->apsn);
273 struct rxe_bth *bth = arg;
274 u32 apsn = be32_to_cpu(bth->apsn);
276 bth->apsn = cpu_to_be32((BTH_PSN_MASK & psn) |
409 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr);
411 bth->opcode = opcode;
412 bth->flags = (pad << 4) & BTH_PAD_MASK;
414 bth->flags |= BTH_SE_MASK;
416 bth->flags |= BTH_MIG_MASK;
417 bth->pkey = cpu_to_be16(pkey);
418 bth->qpn = cpu_to_be32(qpn & BTH_QPN_MASK);
422 bth->apsn = cpu_to_be32(psn);