Lines Matching defs:wr

83 	struct wrqe *wr;
107 wr = alloc_wrqe(roundup2(flowclen, 16), &toep->ofld_txq->wrq);
108 if (wr == NULL) {
112 flowc = wrtod(wr);
113 memset(flowc, 0, wr->wr_len);
164 t4_wrq_tx(sc, wr);
191 struct wrqe *wr;
200 (wr = alloc_wrqe(roundup2(flowclen, 16),
207 flowc = wrtod(wr);
208 memset(flowc, 0, wr->wr_len);
229 t4_wrq_tx(sc, wr);
243 struct wrqe *wr;
267 wr = alloc_wrqe(sizeof(*req), &toep->ofld_txq->wrq);
268 if (wr == NULL) {
272 req = wrtod(wr);
293 t4_l2t_send(sc, wr, toep->l2te);
398 struct wrqe *wr;
404 wr = alloc_wrqe(sizeof(*req), toep->ctrlq);
405 if (wr == NULL)
407 req = wrtod(wr);
412 t4_wrq_tx(sc, wr);
458 struct wrqe *wr;
471 wr = alloc_wrqe(sizeof(*req), &toep->ofld_txq->wrq);
472 if (wr == NULL) {
476 req = wrtod(wr);
478 req->wr.wr_hi = htonl(V_FW_WR_OP(FW_TP_WR) |
479 V_FW_WR_IMMDLEN(sizeof(*req) - sizeof(req->wr)));
480 req->wr.wr_mid = htonl(V_FW_WR_LEN16(howmany(sizeof(*req), 16)) |
482 req->wr.wr_lo = cpu_to_be64(0);
488 t4_l2t_send(sc, wr, toep->l2te);
629 struct wrqe *wr;
640 wr = alloc_wrqe(roundup2(plen, 16), &toep->ofld_txq->wrq);
641 if (wr == NULL)
644 m_copydata(m, 0, plen, wrtod(wr));
661 t4_wrq_tx(sc, wr);
691 struct wrqe *wr;
870 wr = alloc_wrqe(roundup2(sizeof(*txwr) + plen, 16),
872 if (wr == NULL) {
877 txwr = wrtod(wr);
878 credits = howmany(wr->wr_len, 16);
890 wr = alloc_wrqe(roundup2(wr_len, 16),
892 if (wr == NULL) {
897 txwr = wrtod(wr);
950 t4_l2t_send(sc, wr, toep->l2te);
1034 struct wrqe *wr;
1054 wr = alloc_wrqe(roundup2(plen, 16), &toep->ofld_txq->wrq);
1055 if (__predict_false(wr == NULL))
1058 m_copydata(sndptr, 0, plen, wrtod(wr));
1059 return (wr);
1136 wr = alloc_wrqe(roundup2(wr_len, 16), &toep->ofld_txq->wrq);
1137 if (wr == NULL) {
1141 txwr = wrtod(wr);
1142 credits = howmany(wr->wr_len, 16);
1183 return (wr);
1191 struct wrqe *wr;
1246 wr = write_iscsi_mbuf_wr(toep, sndptr);
1247 if (wr == NULL) {
1253 credits = howmany(wr->wr_len, 16);
1271 wrhdr = wrtod(wr);
1293 t4_l2t_send(sc, wr, toep->l2te);
1595 struct wrqe *wr;
1598 wr = alloc_wrqe(sizeof(*cpl), &ofld_txq->wrq);
1599 if (wr == NULL) {
1603 cpl = wrtod(wr);
1608 t4_wrq_tx(sc, wr);
2075 struct wrqe *wr;
2079 wr = alloc_wrqe(len, wrq);
2080 if (wr == NULL) {
2084 write_set_tcb_field(sc, wrtod(wr), toep, word, mask, val, reply,
2103 t4_wrq_tx(sc, wr);