Lines Matching defs:req

125 	/* pdu xmit req from user space */
181 struct cpl_act_open_req *req;
202 req = (struct cpl_act_open_req *)skb->head;
204 INIT_TP_WR(req, 0);
205 OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ,
207 req->local_port = csk->saddr.sin_port;
208 req->peer_port = csk->daddr.sin_port;
209 req->local_ip = csk->saddr.sin_addr.s_addr;
210 req->peer_ip = csk->daddr.sin_addr.s_addr;
211 req->opt0 = cpu_to_be64(opt0);
212 req->params = 0;
213 req->opt2 = cpu_to_be32(opt2);
217 csk, &req->local_ip, ntohs(req->local_port),
218 &req->peer_ip, ntohs(req->peer_port),
227 struct cpl_close_con_req *req = (struct cpl_close_con_req *)skb->head;
235 INIT_TP_WR(req, tid);
236 OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_CLOSE_CON_REQ, tid));
237 req->rsvd = 0;
247 struct cpl_abort_req *req;
252 req = (struct cpl_abort_req *)skb->data;
253 req->cmd = CPL_ABORT_NO_RST;
259 struct cpl_abort_req *req;
269 req = (struct cpl_abort_req *)skb->head;
271 req->cmd = CPL_ABORT_SEND_RST;
273 INIT_TP_WR(req, csk->tid);
274 OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_ABORT_REQ, csk->tid));
275 req->rsvd0 = htonl(csk->snd_nxt);
276 req->rsvd1 = !cxgbi_sock_flag(csk, CTPF_TX_DATA_SENT);
281 req->rsvd1);
311 struct cpl_rx_data_ack *req;
317 skb = alloc_wr(sizeof(*req), 0, GFP_ATOMIC);
322 req = (struct cpl_rx_data_ack *)skb->head;
325 INIT_TP_WR(req, csk->tid);
326 OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_RX_DATA_ACK,
328 req->credit_dack = cpu_to_be32(RX_CREDITS(credits) | RX_FORCE_ACK(1));
417 struct fw_ofld_tx_data_wr *req;
421 req = (struct fw_ofld_tx_data_wr *)__skb_push(skb, sizeof(*req));
424 req->op_to_immdlen = htonl(FW_WR_OP(FW_OFLD_TX_DATA_WR) |
427 req->flowid_len16 = htonl(FW_WR_FLOWID(csk->tid) |
430 req->op_to_immdlen =
434 req->flowid_len16 =
441 req->tunnel_to_proxy = htonl(wr_ulp_mode) |
443 req->plen = htonl(len);
539 struct cpl_act_establish *req = (struct cpl_act_establish *)skb->data;
540 unsigned short tcp_opt = ntohs(req->tcp_opt);
541 unsigned int tid = GET_TID(req);
542 unsigned int atid = GET_TID_TID(ntohl(req->tos_atid));
545 u32 rcv_isn = be32_to_cpu(req->rcv_isn);
598 cxgbi_sock_established(csk, ntohl(req->snd_isn), ntohs(req->tcp_opt));
705 struct cpl_peer_close *req = (struct cpl_peer_close *)skb->data;
706 unsigned int tid = GET_TID(req);
765 struct cpl_abort_req_rss *req = (struct cpl_abort_req_rss *)skb->data;
766 unsigned int tid = GET_TID(req);
779 csk, csk->state, csk->flags, csk->tid, req->status);
781 if (req->status == CPL_ERR_RTX_NEG_ADVICE ||
782 req->status == CPL_ERR_PERSIST_NEG_ADVICE)
798 csk->err = abort_status_to_errno(csk, req->status, &rst_status);
1234 static inline void ulp_mem_io_set_hdr(struct ulp_mem_io *req,
1238 struct ulptx_idata *idata = (struct ulptx_idata *)(req + 1);
1240 INIT_ULPTX_WR(req, wr_len, 0, 0);
1241 req->cmd = htonl(ULPTX_CMD(ULP_TX_MEM_WRITE) | (1 << 23));
1242 req->dlen = htonl(ULP_MEMIO_DATA_LEN(dlen >> 5));
1243 req->lock_addr = htonl(ULP_MEMIO_ADDR(pm_addr >> 5));
1244 req->len16 = htonl(DIV_ROUND_UP(wr_len - sizeof(req->wr), 16));
1258 struct ulp_mem_io *req;
1273 req = (struct ulp_mem_io *)skb->head;
1276 ulp_mem_io_set_hdr(req, wr_len, dlen, pm_addr);
1277 idata = (struct ulptx_idata *)(req + 1);
1331 struct cpl_set_tcb_field *req;
1336 skb = alloc_wr(sizeof(*req), 0, GFP_KERNEL);
1341 req = (struct cpl_set_tcb_field *)skb->head;
1342 INIT_TP_WR(req, csk->tid);
1343 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, csk->tid));
1344 req->reply_ctrl = htons(NO_REPLY(reply) | QUEUENO(csk->rss_qid));
1345 req->word_cookie = htons(0);
1346 req->mask = cpu_to_be64(0x3 << 8);
1347 req->val = cpu_to_be64(pg_idx << 8);
1361 struct cpl_set_tcb_field *req;
1366 skb = alloc_wr(sizeof(*req), 0, GFP_KERNEL);
1373 req = (struct cpl_set_tcb_field *)skb->head;
1374 INIT_TP_WR(req, tid);
1375 OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid));
1376 req->reply_ctrl = htons(NO_REPLY(reply) | QUEUENO(csk->rss_qid));
1377 req->word_cookie = htons(0);
1378 req->mask = cpu_to_be64(0x3 << 4);
1379 req->val = cpu_to_be64(((hcrc ? ULP_CRC_HEADER : 0) |