Lines Matching refs:qedi_conn
17 static int send_iscsi_tmf(struct qedi_conn *qedi_conn,
33 struct qedi_conn *qedi_conn) in qedi_process_logout_resp() argument
35 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_logout_resp()
44 resp_hdr = (struct iscsi_logout_rsp *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_logout_resp()
60 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_logout_resp()
62 spin_lock(&qedi_conn->list_lock); in qedi_process_logout_resp()
66 qedi_conn->active_cmd_count--; in qedi_process_logout_resp()
70 cmd->task_id, qedi_conn->iscsi_conn_id, in qedi_process_logout_resp()
73 spin_unlock(&qedi_conn->list_lock); in qedi_process_logout_resp()
84 struct qedi_conn *qedi_conn) in qedi_process_text_resp() argument
86 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_text_resp()
99 resp_hdr_ptr = (struct iscsi_text_rsp *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_text_resp()
118 qedi_conn->gen_pdu.resp_wr_ptr = qedi_conn->gen_pdu.resp_buf + pld_len; in qedi_process_text_resp()
124 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_text_resp()
126 spin_lock(&qedi_conn->list_lock); in qedi_process_text_resp()
130 qedi_conn->active_cmd_count--; in qedi_process_text_resp()
134 cmd->task_id, qedi_conn->iscsi_conn_id, in qedi_process_text_resp()
137 spin_unlock(&qedi_conn->list_lock); in qedi_process_text_resp()
142 qedi_conn->gen_pdu.resp_buf, in qedi_process_text_resp()
143 (qedi_conn->gen_pdu.resp_wr_ptr - in qedi_process_text_resp()
144 qedi_conn->gen_pdu.resp_buf)); in qedi_process_text_resp()
152 struct qedi_conn *qedi_conn = qedi_cmd->conn; in qedi_tmf_resp_work() local
153 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_tmf_resp_work()
154 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_tmf_resp_work()
161 rval = qedi_cleanup_all_io(qedi, qedi_conn, qedi_cmd->task, true); in qedi_tmf_resp_work()
172 spin_lock(&qedi_conn->tmf_work_lock); in qedi_tmf_resp_work()
173 qedi_conn->fw_cleanup_works--; in qedi_tmf_resp_work()
174 spin_unlock(&qedi_conn->tmf_work_lock); in qedi_tmf_resp_work()
180 struct qedi_conn *qedi_conn) in qedi_process_tmf_resp() argument
183 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_tmf_resp()
197 qedi_conn->iscsi_conn_id); in qedi_process_tmf_resp()
222 spin_lock(&qedi_conn->list_lock); in qedi_process_tmf_resp()
226 qedi_conn->active_cmd_count--; in qedi_process_tmf_resp()
228 spin_unlock(&qedi_conn->list_lock); in qedi_process_tmf_resp()
230 spin_lock(&qedi_conn->tmf_work_lock); in qedi_process_tmf_resp()
235 if (qedi_conn->ep_disconnect_starting) { in qedi_process_tmf_resp()
237 spin_unlock(&qedi_conn->tmf_work_lock); in qedi_process_tmf_resp()
241 qedi_conn->fw_cleanup_works++; in qedi_process_tmf_resp()
242 spin_unlock(&qedi_conn->tmf_work_lock); in qedi_process_tmf_resp()
248 spin_unlock(&qedi_conn->tmf_work_lock); in qedi_process_tmf_resp()
260 struct qedi_conn *qedi_conn) in qedi_process_login_resp() argument
262 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_login_resp()
276 resp_hdr_ptr = (struct iscsi_login_rsp *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_login_resp()
295 qedi_conn->gen_pdu.resp_wr_ptr = qedi_conn->gen_pdu.resp_buf + pld_len; in qedi_process_login_resp()
297 spin_lock(&qedi_conn->list_lock); in qedi_process_login_resp()
301 qedi_conn->active_cmd_count--; in qedi_process_login_resp()
303 spin_unlock(&qedi_conn->list_lock); in qedi_process_login_resp()
308 qedi_conn->gen_pdu.resp_buf, in qedi_process_login_resp()
309 (qedi_conn->gen_pdu.resp_wr_ptr - in qedi_process_login_resp()
310 qedi_conn->gen_pdu.resp_buf)); in qedi_process_login_resp()
315 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_login_resp()
411 struct qedi_conn *qedi_conn, u16 que_idx) in qedi_process_nopin_mesg() argument
413 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_nopin_mesg()
431 hdr = (struct iscsi_nopin *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_nopin_mesg()
460 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_nopin_mesg()
462 spin_lock(&qedi_conn->list_lock); in qedi_process_nopin_mesg()
466 qedi_conn->active_cmd_count--; in qedi_process_nopin_mesg()
469 spin_unlock(&qedi_conn->list_lock); in qedi_process_nopin_mesg()
482 struct qedi_conn *qedi_conn, in qedi_process_async_mesg() argument
485 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_async_mesg()
508 resp_hdr = (struct iscsi_async *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_async_mesg()
536 struct qedi_conn *qedi_conn, in qedi_process_reject_mesg() argument
539 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_reject_mesg()
558 hdr = (struct iscsi_reject *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_reject_mesg()
586 struct qedi_conn *qedi_conn; in qedi_scsi_completion() local
591 qedi_conn = qedi->cid_que.conn_cid_tbl[iscsi_cid]; in qedi_scsi_completion()
645 qedi_conn->iscsi_conn_id, hdr->residual_count, in qedi_scsi_completion()
652 spin_lock(&qedi_conn->list_lock); in qedi_scsi_completion()
656 qedi_conn->active_cmd_count--; in qedi_scsi_completion()
658 spin_unlock(&qedi_conn->list_lock); in qedi_scsi_completion()
662 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_scsi_completion()
676 struct qedi_conn *conn, uint16_t que_idx) in qedi_mtask_completion()
712 struct qedi_conn *qedi_conn) in qedi_process_nopin_local_cmpl() argument
714 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_nopin_local_cmpl()
738 struct qedi_conn *qedi_conn; in qedi_process_cmd_cleanup_resp() local
744 qedi_conn = qedi->cid_que.conn_cid_tbl[iscsi_cid]; in qedi_process_cmd_cleanup_resp()
745 if (!qedi_conn) { in qedi_process_cmd_cleanup_resp()
752 spin_lock_bh(&qedi_conn->tmf_work_lock); in qedi_process_cmd_cleanup_resp()
753 list_for_each_entry_safe(work, work_tmp, &qedi_conn->tmf_work_list, in qedi_process_cmd_cleanup_resp()
761 proto_itt, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
774 spin_unlock_bh(&qedi_conn->tmf_work_lock); in qedi_process_cmd_cleanup_resp()
781 proto_itt, tmf_hdr->flags, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
787 get_itt(tmf_hdr->rtt), qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
796 qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
798 spin_lock(&qedi_conn->list_lock); in qedi_process_cmd_cleanup_resp()
802 qedi_conn->active_cmd_count--; in qedi_process_cmd_cleanup_resp()
804 spin_unlock(&qedi_conn->list_lock); in qedi_process_cmd_cleanup_resp()
808 wake_up_interruptible(&qedi_conn->wait_queue); in qedi_process_cmd_cleanup_resp()
812 if (atomic_inc_return(&qedi_conn->cmd_cleanup_cmpl) == in qedi_process_cmd_cleanup_resp()
813 qedi_conn->cmd_cleanup_req) { in qedi_process_cmd_cleanup_resp()
816 cqe->itid, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
817 wake_up(&qedi_conn->wait_queue); in qedi_process_cmd_cleanup_resp()
827 struct qedi_conn *q_conn; in qedi_fp_process_cqes()
923 static void qedi_ring_doorbell(struct qedi_conn *qedi_conn) in qedi_ring_doorbell() argument
925 qedi_conn->ep->db_data.sq_prod = qedi_conn->ep->fw_sq_prod_idx; in qedi_ring_doorbell()
929 writel(*(u32 *)&qedi_conn->ep->db_data, qedi_conn->ep->p_doorbell); in qedi_ring_doorbell()
936 QEDI_INFO(&qedi_conn->qedi->dbg_ctx, QEDI_LOG_MP_REQ, in qedi_ring_doorbell()
938 qedi_conn->ep->sq_prod_idx, qedi_conn->ep->fw_sq_prod_idx, in qedi_ring_doorbell()
939 qedi_conn->iscsi_conn_id); in qedi_ring_doorbell()
942 static u16 qedi_get_wqe_idx(struct qedi_conn *qedi_conn) in qedi_get_wqe_idx() argument
947 ep = qedi_conn->ep; in qedi_get_wqe_idx()
959 int qedi_send_iscsi_login(struct qedi_conn *qedi_conn, in qedi_send_iscsi_login() argument
967 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_login()
976 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_login()
978 ep = qedi_conn->ep; in qedi_send_iscsi_login()
1009 login_req_pdu_header.cid = qedi_conn->iscsi_conn_id; in qedi_send_iscsi_login()
1016 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_login()
1018 (u32)(qedi_conn->gen_pdu.req_dma_addr); in qedi_send_iscsi_login()
1020 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32); in qedi_send_iscsi_login()
1025 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_login()
1027 (u32)(qedi_conn->gen_pdu.resp_dma_addr); in qedi_send_iscsi_login()
1029 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32); in qedi_send_iscsi_login()
1035 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_login()
1041 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_login()
1052 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_login()
1053 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_login()
1055 qedi_conn->active_cmd_count++; in qedi_send_iscsi_login()
1056 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_login()
1058 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_login()
1062 int qedi_send_iscsi_logout(struct qedi_conn *qedi_conn, in qedi_send_iscsi_logout() argument
1071 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_logout()
1080 ep = qedi_conn->ep; in qedi_send_iscsi_logout()
1105 logout_pdu_header.cid = qedi_conn->iscsi_conn_id; in qedi_send_iscsi_logout()
1109 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_logout()
1115 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_logout()
1125 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_logout()
1126 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_logout()
1128 qedi_conn->active_cmd_count++; in qedi_send_iscsi_logout()
1129 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_logout()
1131 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_logout()
1135 int qedi_cleanup_all_io(struct qedi_ctx *qedi, struct qedi_conn *qedi_conn, in qedi_cleanup_all_io() argument
1144 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_cleanup_all_io()
1158 qedi_conn->cmd_cleanup_req = 0; in qedi_cleanup_all_io()
1159 atomic_set(&qedi_conn->cmd_cleanup_cmpl, 0); in qedi_cleanup_all_io()
1163 qedi_conn->active_cmd_count, qedi_conn->iscsi_conn_id, in qedi_cleanup_all_io()
1169 spin_lock(&qedi_conn->list_lock); in qedi_cleanup_all_io()
1171 list_for_each_entry_safe(cmd, cmd_tmp, &qedi_conn->active_cmd_list, in qedi_cleanup_all_io()
1184 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1189 qedi_conn->cmd_cleanup_req++; in qedi_cleanup_all_io()
1194 qedi_conn->active_cmd_count--; in qedi_cleanup_all_io()
1197 &cmd->io_cmd, qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1200 spin_unlock(&qedi_conn->list_lock); in qedi_cleanup_all_io()
1207 qedi_conn->cmd_cleanup_req, in qedi_cleanup_all_io()
1208 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1210 rval = wait_event_interruptible_timeout(qedi_conn->wait_queue, in qedi_cleanup_all_io()
1211 (qedi_conn->cmd_cleanup_req == in qedi_cleanup_all_io()
1212 atomic_read(&qedi_conn->cmd_cleanup_cmpl)) || in qedi_cleanup_all_io()
1218 qedi_conn->cmd_cleanup_req, in qedi_cleanup_all_io()
1219 atomic_read(&qedi_conn->cmd_cleanup_cmpl), in qedi_cleanup_all_io()
1220 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1227 qedi_conn->cmd_cleanup_req, in qedi_cleanup_all_io()
1228 atomic_read(&qedi_conn->cmd_cleanup_cmpl), in qedi_cleanup_all_io()
1229 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1236 if (!wait_event_interruptible_timeout(qedi_conn->wait_queue, in qedi_cleanup_all_io()
1237 (qedi_conn->cmd_cleanup_req == in qedi_cleanup_all_io()
1238 atomic_read(&qedi_conn->cmd_cleanup_cmpl)) || in qedi_cleanup_all_io()
1252 void qedi_clearsq(struct qedi_ctx *qedi, struct qedi_conn *qedi_conn, in qedi_clearsq() argument
1258 qedi_ep = qedi_conn->ep; in qedi_clearsq()
1259 qedi_conn->cmd_cleanup_req = 0; in qedi_clearsq()
1260 atomic_set(&qedi_conn->cmd_cleanup_cmpl, 0); in qedi_clearsq()
1265 qedi_conn->iscsi_conn_id); in qedi_clearsq()
1271 qedi_conn->iscsi_conn_id, qedi_conn, qedi_ep); in qedi_clearsq()
1275 rval = qedi_cleanup_all_io(qedi, qedi_conn, task, true); in qedi_clearsq()
1279 qedi_conn->iscsi_conn_id); in qedi_clearsq()
1285 struct qedi_conn *qedi_conn, in qedi_wait_for_cleanup_request() argument
1293 wait = wait_event_interruptible_timeout(qedi_conn->wait_queue, in qedi_wait_for_cleanup_request()
1305 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_wait_for_cleanup_request()
1316 struct qedi_conn *qedi_conn = qedi_cmd->conn; in qedi_abort_work() local
1317 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_abort_work()
1318 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_abort_work()
1353 qedi_conn->iscsi_conn_id); in qedi_abort_work()
1377 list_work->ptr_tmf_work, list_work, qedi_conn->iscsi_conn_id, in qedi_abort_work()
1380 spin_lock_bh(&qedi_conn->tmf_work_lock); in qedi_abort_work()
1381 list_add_tail(&list_work->list, &qedi_conn->tmf_work_list); in qedi_abort_work()
1382 spin_unlock_bh(&qedi_conn->tmf_work_lock); in qedi_abort_work()
1386 rval = qedi_wait_for_cleanup_request(qedi, qedi_conn, ctask, qedi_cmd, in qedi_abort_work()
1391 qedi_conn->iscsi_conn_id); in qedi_abort_work()
1396 send_iscsi_tmf(qedi_conn, qedi_cmd->task, ctask); in qedi_abort_work()
1400 spin_lock_bh(&qedi_conn->tmf_work_lock); in qedi_abort_work()
1406 spin_unlock_bh(&qedi_conn->tmf_work_lock); in qedi_abort_work()
1408 spin_lock(&qedi_conn->list_lock); in qedi_abort_work()
1412 qedi_conn->active_cmd_count--; in qedi_abort_work()
1414 spin_unlock(&qedi_conn->list_lock); in qedi_abort_work()
1417 spin_lock(&qedi_conn->tmf_work_lock); in qedi_abort_work()
1418 qedi_conn->fw_cleanup_works--; in qedi_abort_work()
1419 spin_unlock(&qedi_conn->tmf_work_lock); in qedi_abort_work()
1422 static int send_iscsi_tmf(struct qedi_conn *qedi_conn, struct iscsi_task *mtask, in send_iscsi_tmf() argument
1427 struct qedi_ctx *qedi = qedi_conn->qedi; in send_iscsi_tmf()
1439 ep = qedi_conn->ep; in send_iscsi_tmf()
1483 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in send_iscsi_tmf()
1489 sq_idx = qedi_get_wqe_idx(qedi_conn); in send_iscsi_tmf()
1495 spin_lock(&qedi_conn->list_lock); in send_iscsi_tmf()
1496 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in send_iscsi_tmf()
1498 qedi_conn->active_cmd_count++; in send_iscsi_tmf()
1499 spin_unlock(&qedi_conn->list_lock); in send_iscsi_tmf()
1501 qedi_ring_doorbell(qedi_conn); in send_iscsi_tmf()
1505 int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn, struct iscsi_task *mtask) in qedi_send_iscsi_tmf() argument
1509 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_tmf()
1514 spin_lock(&qedi_conn->tmf_work_lock); in qedi_send_iscsi_tmf()
1515 qedi_conn->fw_cleanup_works++; in qedi_send_iscsi_tmf()
1516 spin_unlock(&qedi_conn->tmf_work_lock); in qedi_send_iscsi_tmf()
1524 rc = send_iscsi_tmf(qedi_conn, mtask, NULL); in qedi_send_iscsi_tmf()
1528 qedi_conn->iscsi_conn_id); in qedi_send_iscsi_tmf()
1535 int qedi_send_iscsi_text(struct qedi_conn *qedi_conn, in qedi_send_iscsi_text() argument
1543 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_text()
1553 req_sge = (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_text()
1554 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_text()
1557 ep = qedi_conn->ep; in qedi_send_iscsi_text()
1588 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_text()
1590 (u32)(qedi_conn->gen_pdu.req_dma_addr); in qedi_send_iscsi_text()
1592 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32); in qedi_send_iscsi_text()
1597 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_text()
1599 (u32)(qedi_conn->gen_pdu.resp_dma_addr); in qedi_send_iscsi_text()
1601 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32); in qedi_send_iscsi_text()
1607 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_text()
1613 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_text()
1624 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_text()
1625 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_text()
1627 qedi_conn->active_cmd_count++; in qedi_send_iscsi_text()
1628 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_text()
1630 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_text()
1634 int qedi_send_iscsi_nopout(struct qedi_conn *qedi_conn, in qedi_send_iscsi_nopout() argument
1642 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_nopout()
1653 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_nopout()
1656 ep = qedi_conn->ep; in qedi_send_iscsi_nopout()
1694 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_nopout()
1695 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_nopout()
1697 qedi_conn->active_cmd_count++; in qedi_send_iscsi_nopout()
1698 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_nopout()
1704 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_nopout()
1706 (u32)(qedi_conn->gen_pdu.req_dma_addr); in qedi_send_iscsi_nopout()
1708 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32); in qedi_send_iscsi_nopout()
1713 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_nopout()
1715 (u32)(qedi_conn->gen_pdu.resp_dma_addr); in qedi_send_iscsi_nopout()
1717 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32); in qedi_send_iscsi_nopout()
1724 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_nopout()
1730 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_nopout()
1741 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_nopout()
1918 struct qedi_conn *qedi_conn = conn->dd_data; in qedi_trace_io() local
1927 io_log->cid = qedi_conn->iscsi_conn_id; in qedi_trace_io()
1974 struct qedi_conn *qedi_conn = conn->dd_data; in qedi_iscsi_send_ioreq() local
1996 ep = qedi_conn->ep; in qedi_iscsi_send_ioreq()
1997 cls_conn = qedi_conn->cls_conn; in qedi_iscsi_send_ioreq()
2084 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_iscsi_send_ioreq()
2092 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_iscsi_send_ioreq()
2118 spin_lock(&qedi_conn->list_lock); in qedi_iscsi_send_ioreq()
2119 list_add_tail(&cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_iscsi_send_ioreq()
2121 qedi_conn->active_cmd_count++; in qedi_iscsi_send_ioreq()
2122 spin_unlock(&qedi_conn->list_lock); in qedi_iscsi_send_ioreq()
2124 qedi_ring_doorbell(qedi_conn); in qedi_iscsi_send_ioreq()
2133 struct qedi_conn *qedi_conn = conn->dd_data; in qedi_iscsi_cleanup_task() local
2138 QEDI_INFO(&qedi_conn->qedi->dbg_ctx, QEDI_LOG_SCSI_TM, in qedi_iscsi_cleanup_task()
2141 cmd->state, qedi_conn->iscsi_conn_id); in qedi_iscsi_cleanup_task()
2144 ep = qedi_conn->ep; in qedi_iscsi_cleanup_task()
2146 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_iscsi_cleanup_task()
2156 qedi_ring_doorbell(qedi_conn); in qedi_iscsi_cleanup_task()