Lines Matching refs:req

17 	struct nvme_fc_port_info req;
43 memset(&req, 0, sizeof(struct nvme_fc_port_info));
44 req.port_name = wwn_to_u64(fcport->port_name);
45 req.node_name = wwn_to_u64(fcport->node_name);
46 req.port_role = 0;
47 req.dev_loss_tmo = 0;
50 req.port_role = FC_PORT_ROLE_NVME_INITIATOR;
53 req.port_role |= FC_PORT_ROLE_NVME_TARGET;
56 req.port_role |= FC_PORT_ROLE_NVME_DISCOVERY;
58 req.port_id = fcport->d_id.b24;
62 __func__, req.node_name, req.port_name,
63 req.port_id);
65 ret = nvme_fc_register_remoteport(vha->nvme_local_port, &req,
76 "PortID:%06x Supports SLER\n", req.port_id);
80 "PortID:%06x Supports PI control\n", req.port_id);
379 struct req_que *req = NULL;
390 req = qpair->req;
396 handle = qla2xxx_get_next_handle(req);
402 if (req->cnt < (req_cnt + 2)) {
404 cnt = *req->out_ptr;
406 cnt = rd_reg_dword_relaxed(req->req_q_out);
411 if (req->ring_index < cnt)
412 req->cnt = cnt - req->ring_index;
414 req->cnt = req->length - (req->ring_index - cnt);
416 if (req->cnt < (req_cnt + 2)){
430 req->current_outstanding_cmd = handle;
431 req->outstanding_cmds[handle] = sp;
433 req->cnt -= req_cnt;
435 cmd_pkt = (struct cmd_nvme *)req->ring_ptr;
436 cmd_pkt->handle = make_handle(req->id, handle);
509 req->ring_index++;
510 if (req->ring_index == req->length) {
511 req->ring_index = 0;
512 req->ring_ptr = req->ring;
514 req->ring_ptr++;
516 cont_pkt = (cont_a64_entry_t *)req->ring_ptr;
533 req->ring_index++;
534 if (req->ring_index == req->length) {
535 req->ring_index = 0;
536 req->ring_ptr = req->ring;
538 req->ring_ptr++;
542 wrt_reg_dword(req->req_q_in, req->ring_index);