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 */
25 u8 offset; /* bth offset from pkt->hdr */
87 struct rxe_bth *bth = arg;
89 return bth->opcode;
94 struct rxe_bth *bth = arg;
96 bth->opcode = opcode;
101 struct rxe_bth *bth = arg;
103 return 0 != (BTH_SE_MASK & bth->flags);
108 struct rxe_bth *bth = arg;
111 bth->flags |= BTH_SE_MASK;
113 bth->flags &= ~BTH_SE_MASK;
118 struct rxe_bth *bth = arg;
120 return 0 != (BTH_MIG_MASK & bth->flags);
125 struct rxe_bth *bth = arg;
128 bth->flags |= BTH_MIG_MASK;
130 bth->flags &= ~BTH_MIG_MASK;
135 struct rxe_bth *bth = arg;
137 return (BTH_PAD_MASK & bth->flags) >> 4;
142 struct rxe_bth *bth = arg;
144 bth->flags = (BTH_PAD_MASK & (pad << 4)) |
145 (~BTH_PAD_MASK & bth->flags);
150 struct rxe_bth *bth = arg;
152 return BTH_TVER_MASK & bth->flags;
157 struct rxe_bth *bth = arg;
159 bth->flags = (BTH_TVER_MASK & tver) |
160 (~BTH_TVER_MASK & bth->flags);
165 struct rxe_bth *bth = arg;
167 return be16_to_cpu(bth->pkey);
172 struct rxe_bth *bth = arg;
174 bth->pkey = cpu_to_be16(pkey);
179 struct rxe_bth *bth = arg;
181 return BTH_QPN_MASK & be32_to_cpu(bth->qpn);
186 struct rxe_bth *bth = arg;
187 u32 resvqpn = be32_to_cpu(bth->qpn);
189 bth->qpn = cpu_to_be32((BTH_QPN_MASK & qpn) |
195 struct rxe_bth *bth = arg;
197 return 0 != (cpu_to_be32(BTH_FECN_MASK) & bth->qpn);
202 struct rxe_bth *bth = arg;
205 bth->qpn |= cpu_to_be32(BTH_FECN_MASK);
207 bth->qpn &= ~cpu_to_be32(BTH_FECN_MASK);
212 struct rxe_bth *bth = arg;
214 return 0 != (cpu_to_be32(BTH_BECN_MASK) & bth->qpn);
219 struct rxe_bth *bth = arg;
222 bth->qpn |= cpu_to_be32(BTH_BECN_MASK);
224 bth->qpn &= ~cpu_to_be32(BTH_BECN_MASK);
229 struct rxe_bth *bth = arg;
231 return (BTH_RESV6A_MASK & be32_to_cpu(bth->qpn)) >> 24;
236 struct rxe_bth *bth = arg;
238 bth->qpn = cpu_to_be32(~BTH_RESV6A_MASK);
243 struct rxe_bth *bth = arg;
245 return 0 != (cpu_to_be32(BTH_ACK_MASK) & bth->apsn);
250 struct rxe_bth *bth = arg;
253 bth->apsn |= cpu_to_be32(BTH_ACK_MASK);
255 bth->apsn &= ~cpu_to_be32(BTH_ACK_MASK);
260 struct rxe_bth *bth = arg;
262 bth->apsn &= ~cpu_to_be32(BTH_RESV7_MASK);
267 struct rxe_bth *bth = arg;
269 return BTH_PSN_MASK & be32_to_cpu(bth->apsn);
274 struct rxe_bth *bth = arg;
275 u32 apsn = be32_to_cpu(bth->apsn);
277 bth->apsn = cpu_to_be32((BTH_PSN_MASK & psn) |
410 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr + pkt->offset);
412 bth->opcode = opcode;
413 bth->flags = (pad << 4) & BTH_PAD_MASK;
415 bth->flags |= BTH_SE_MASK;
417 bth->flags |= BTH_MIG_MASK;
418 bth->pkey = cpu_to_be16(pkey);
419 bth->qpn = cpu_to_be32(qpn & BTH_QPN_MASK);
423 bth->apsn = cpu_to_be32(psn);