Lines Matching refs:qedi_conn

17 static int qedi_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()
85 struct qedi_conn *qedi_conn) in qedi_process_text_resp() argument
87 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_text_resp()
100 resp_hdr_ptr = (struct iscsi_text_rsp *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_text_resp()
119 qedi_conn->gen_pdu.resp_wr_ptr = qedi_conn->gen_pdu.resp_buf + pld_len; in qedi_process_text_resp()
125 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_text_resp()
127 spin_lock(&qedi_conn->list_lock); in qedi_process_text_resp()
131 qedi_conn->active_cmd_count--; in qedi_process_text_resp()
135 cmd->task_id, qedi_conn->iscsi_conn_id, in qedi_process_text_resp()
138 spin_unlock(&qedi_conn->list_lock); in qedi_process_text_resp()
144 qedi_conn->gen_pdu.resp_buf, in qedi_process_text_resp()
145 (qedi_conn->gen_pdu.resp_wr_ptr - in qedi_process_text_resp()
146 qedi_conn->gen_pdu.resp_buf)); in qedi_process_text_resp()
154 struct qedi_conn *qedi_conn = qedi_cmd->conn; in qedi_tmf_resp_work() local
155 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_tmf_resp_work()
156 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_tmf_resp_work()
161 set_bit(QEDI_CONN_FW_CLEANUP, &qedi_conn->flags); in qedi_tmf_resp_work()
165 rval = qedi_cleanup_all_io(qedi, qedi_conn, qedi_cmd->task, true); in qedi_tmf_resp_work()
181 clear_bit(QEDI_CONN_FW_CLEANUP, &qedi_conn->flags); in qedi_tmf_resp_work()
187 struct qedi_conn *qedi_conn) in qedi_process_tmf_resp() argument
190 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_tmf_resp()
204 qedi_conn->iscsi_conn_id); in qedi_process_tmf_resp()
229 spin_lock(&qedi_conn->list_lock); in qedi_process_tmf_resp()
233 qedi_conn->active_cmd_count--; in qedi_process_tmf_resp()
235 spin_unlock(&qedi_conn->list_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()
412 struct qedi_conn *qedi_conn, u16 que_idx) in qedi_process_nopin_mesg() argument
414 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_nopin_mesg()
432 hdr = (struct iscsi_nopin *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_nopin_mesg()
461 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_nopin_mesg()
463 spin_lock(&qedi_conn->list_lock); in qedi_process_nopin_mesg()
467 qedi_conn->active_cmd_count--; in qedi_process_nopin_mesg()
470 spin_unlock(&qedi_conn->list_lock); in qedi_process_nopin_mesg()
484 struct qedi_conn *qedi_conn, in qedi_process_async_mesg() argument
487 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_async_mesg()
510 resp_hdr = (struct iscsi_async *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_async_mesg()
538 struct qedi_conn *qedi_conn, in qedi_process_reject_mesg() argument
541 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_reject_mesg()
560 hdr = (struct iscsi_reject *)&qedi_conn->gen_pdu.resp_hdr; in qedi_process_reject_mesg()
588 struct qedi_conn *qedi_conn; in qedi_scsi_completion() local
593 qedi_conn = qedi->cid_que.conn_cid_tbl[iscsi_cid]; in qedi_scsi_completion()
654 qedi_conn->iscsi_conn_id, hdr->residual_count, in qedi_scsi_completion()
661 spin_lock(&qedi_conn->list_lock); in qedi_scsi_completion()
665 qedi_conn->active_cmd_count--; in qedi_scsi_completion()
667 spin_unlock(&qedi_conn->list_lock); in qedi_scsi_completion()
671 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_scsi_completion()
686 struct qedi_conn *conn, uint16_t que_idx) in qedi_mtask_completion()
722 struct qedi_conn *qedi_conn) in qedi_process_nopin_local_cmpl() argument
724 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_process_nopin_local_cmpl()
753 struct qedi_conn *qedi_conn; in qedi_process_cmd_cleanup_resp() local
759 qedi_conn = qedi->cid_que.conn_cid_tbl[iscsi_cid]; in qedi_process_cmd_cleanup_resp()
760 if (!qedi_conn) { in qedi_process_cmd_cleanup_resp()
767 spin_lock_bh(&qedi_conn->tmf_work_lock); in qedi_process_cmd_cleanup_resp()
768 list_for_each_entry_safe(work, work_tmp, &qedi_conn->tmf_work_list, in qedi_process_cmd_cleanup_resp()
776 proto_itt, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
789 spin_unlock_bh(&qedi_conn->tmf_work_lock); in qedi_process_cmd_cleanup_resp()
794 proto_itt, tmf_hdr->flags, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
810 qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
819 dbg_cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
824 qedi_clear_task_idx(qedi_conn->qedi, rtid); in qedi_process_cmd_cleanup_resp()
826 spin_lock(&qedi_conn->list_lock); in qedi_process_cmd_cleanup_resp()
830 qedi_conn->active_cmd_count--; in qedi_process_cmd_cleanup_resp()
832 spin_unlock(&qedi_conn->list_lock); in qedi_process_cmd_cleanup_resp()
834 wake_up_interruptible(&qedi_conn->wait_queue); in qedi_process_cmd_cleanup_resp()
836 } else if (qedi_conn->cmd_cleanup_req > 0) { in qedi_process_cmd_cleanup_resp()
843 cqe->itid, protoitt, qedi_conn->cmd_cleanup_cmpl, in qedi_process_cmd_cleanup_resp()
844 qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
850 cqe->itid, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
853 qedi_conn->cmd_cleanup_cmpl++; in qedi_process_cmd_cleanup_resp()
854 wake_up(&qedi_conn->wait_queue); in qedi_process_cmd_cleanup_resp()
858 cqe->itid, qedi_conn->iscsi_conn_id); in qedi_process_cmd_cleanup_resp()
859 qedi_clear_task_idx(qedi_conn->qedi, cqe->itid); in qedi_process_cmd_cleanup_resp()
867 protoitt, cqe->itid, qedi_conn->iscsi_conn_id, task); in qedi_process_cmd_cleanup_resp()
877 struct qedi_conn *q_conn; in qedi_fp_process_cqes()
974 static void qedi_ring_doorbell(struct qedi_conn *qedi_conn) in qedi_ring_doorbell() argument
985 dbell.sq_prod = qedi_conn->ep->fw_sq_prod_idx; in qedi_ring_doorbell()
986 writel(*(u32 *)&dbell, qedi_conn->ep->p_doorbell); in qedi_ring_doorbell()
993 QEDI_INFO(&qedi_conn->qedi->dbg_ctx, QEDI_LOG_MP_REQ, in qedi_ring_doorbell()
995 qedi_conn->ep->sq_prod_idx, qedi_conn->ep->fw_sq_prod_idx, in qedi_ring_doorbell()
996 qedi_conn->iscsi_conn_id); in qedi_ring_doorbell()
999 static u16 qedi_get_wqe_idx(struct qedi_conn *qedi_conn) in qedi_get_wqe_idx() argument
1004 ep = qedi_conn->ep; in qedi_get_wqe_idx()
1016 int qedi_send_iscsi_login(struct qedi_conn *qedi_conn, in qedi_send_iscsi_login() argument
1024 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_login()
1033 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_login()
1035 ep = qedi_conn->ep; in qedi_send_iscsi_login()
1066 login_req_pdu_header.cid = qedi_conn->iscsi_conn_id; in qedi_send_iscsi_login()
1073 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_login()
1075 (u32)(qedi_conn->gen_pdu.req_dma_addr); in qedi_send_iscsi_login()
1077 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32); in qedi_send_iscsi_login()
1082 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_login()
1084 (u32)(qedi_conn->gen_pdu.resp_dma_addr); in qedi_send_iscsi_login()
1086 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32); in qedi_send_iscsi_login()
1092 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_login()
1098 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_login()
1109 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_login()
1110 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_login()
1112 qedi_conn->active_cmd_count++; in qedi_send_iscsi_login()
1113 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_login()
1115 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_login()
1119 int qedi_send_iscsi_logout(struct qedi_conn *qedi_conn, in qedi_send_iscsi_logout() argument
1128 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_logout()
1137 ep = qedi_conn->ep; in qedi_send_iscsi_logout()
1162 logout_pdu_header.cid = qedi_conn->iscsi_conn_id; in qedi_send_iscsi_logout()
1166 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_logout()
1172 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_logout()
1182 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_logout()
1183 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_logout()
1185 qedi_conn->active_cmd_count++; in qedi_send_iscsi_logout()
1186 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_logout()
1188 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_logout()
1192 int qedi_cleanup_all_io(struct qedi_ctx *qedi, struct qedi_conn *qedi_conn, in qedi_cleanup_all_io() argument
1201 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_cleanup_all_io()
1215 qedi_conn->cmd_cleanup_req = 0; in qedi_cleanup_all_io()
1216 qedi_conn->cmd_cleanup_cmpl = 0; in qedi_cleanup_all_io()
1220 qedi_conn->active_cmd_count, qedi_conn->iscsi_conn_id, in qedi_cleanup_all_io()
1226 spin_lock(&qedi_conn->list_lock); in qedi_cleanup_all_io()
1228 list_for_each_entry_safe(cmd, cmd_tmp, &qedi_conn->active_cmd_list, in qedi_cleanup_all_io()
1241 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1246 qedi_conn->cmd_cleanup_req++; in qedi_cleanup_all_io()
1251 qedi_conn->active_cmd_count--; in qedi_cleanup_all_io()
1254 &cmd->io_cmd, qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1257 spin_unlock(&qedi_conn->list_lock); in qedi_cleanup_all_io()
1264 qedi_conn->cmd_cleanup_req, in qedi_cleanup_all_io()
1265 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1267 rval = wait_event_interruptible_timeout(qedi_conn->wait_queue, in qedi_cleanup_all_io()
1268 ((qedi_conn->cmd_cleanup_req == in qedi_cleanup_all_io()
1269 qedi_conn->cmd_cleanup_cmpl) || in qedi_cleanup_all_io()
1276 qedi_conn->cmd_cleanup_req, in qedi_cleanup_all_io()
1277 qedi_conn->cmd_cleanup_cmpl, in qedi_cleanup_all_io()
1278 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1285 qedi_conn->cmd_cleanup_req, in qedi_cleanup_all_io()
1286 qedi_conn->cmd_cleanup_cmpl, in qedi_cleanup_all_io()
1287 qedi_conn->iscsi_conn_id); in qedi_cleanup_all_io()
1294 if (!wait_event_interruptible_timeout(qedi_conn->wait_queue, in qedi_cleanup_all_io()
1295 (qedi_conn->cmd_cleanup_req == in qedi_cleanup_all_io()
1296 qedi_conn->cmd_cleanup_cmpl) || in qedi_cleanup_all_io()
1311 void qedi_clearsq(struct qedi_ctx *qedi, struct qedi_conn *qedi_conn, in qedi_clearsq() argument
1317 qedi_ep = qedi_conn->ep; in qedi_clearsq()
1318 qedi_conn->cmd_cleanup_req = 0; in qedi_clearsq()
1319 qedi_conn->cmd_cleanup_cmpl = 0; in qedi_clearsq()
1324 qedi_conn->iscsi_conn_id); in qedi_clearsq()
1330 qedi_conn->iscsi_conn_id, qedi_conn, qedi_ep); in qedi_clearsq()
1334 rval = qedi_cleanup_all_io(qedi, qedi_conn, task, true); in qedi_clearsq()
1338 qedi_conn->iscsi_conn_id); in qedi_clearsq()
1344 struct qedi_conn *qedi_conn, in qedi_wait_for_cleanup_request() argument
1352 wait = wait_event_interruptible_timeout(qedi_conn->wait_queue, in qedi_wait_for_cleanup_request()
1364 cmd->task_id, qedi_conn->iscsi_conn_id); in qedi_wait_for_cleanup_request()
1375 struct qedi_conn *qedi_conn = qedi_cmd->conn; in qedi_tmf_work() local
1376 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_tmf_work()
1377 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_tmf_work()
1388 set_bit(QEDI_CONN_FW_CLEANUP, &qedi_conn->flags); in qedi_tmf_work()
1400 qedi_conn->iscsi_conn_id); in qedi_tmf_work()
1422 list_work->ptr_tmf_work, list_work, qedi_conn->iscsi_conn_id, in qedi_tmf_work()
1425 spin_lock_bh(&qedi_conn->tmf_work_lock); in qedi_tmf_work()
1426 list_add_tail(&list_work->list, &qedi_conn->tmf_work_list); in qedi_tmf_work()
1427 spin_unlock_bh(&qedi_conn->tmf_work_lock); in qedi_tmf_work()
1431 rval = qedi_wait_for_cleanup_request(qedi, qedi_conn, ctask, qedi_cmd, in qedi_tmf_work()
1436 qedi_conn->iscsi_conn_id); in qedi_tmf_work()
1443 qedi_conn->iscsi_conn_id); in qedi_tmf_work()
1448 qedi_send_iscsi_tmf(qedi_conn, qedi_cmd->task); in qedi_tmf_work()
1451 clear_bit(QEDI_CONN_FW_CLEANUP, &qedi_conn->flags); in qedi_tmf_work()
1455 spin_lock_bh(&qedi_conn->tmf_work_lock); in qedi_tmf_work()
1461 spin_unlock_bh(&qedi_conn->tmf_work_lock); in qedi_tmf_work()
1463 spin_lock(&qedi_conn->list_lock); in qedi_tmf_work()
1467 qedi_conn->active_cmd_count--; in qedi_tmf_work()
1469 spin_unlock(&qedi_conn->list_lock); in qedi_tmf_work()
1471 clear_bit(QEDI_CONN_FW_CLEANUP, &qedi_conn->flags); in qedi_tmf_work()
1474 static int qedi_send_iscsi_tmf(struct qedi_conn *qedi_conn, in qedi_send_iscsi_tmf() argument
1479 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_tmf()
1481 struct iscsi_conn *conn = qedi_conn->cls_conn->dd_data; in qedi_send_iscsi_tmf()
1494 ep = qedi_conn->ep; in qedi_send_iscsi_tmf()
1544 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_tmf()
1550 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_tmf()
1559 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_tmf()
1560 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_tmf()
1562 qedi_conn->active_cmd_count++; in qedi_send_iscsi_tmf()
1563 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_tmf()
1565 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_tmf()
1569 int qedi_iscsi_abort_work(struct qedi_conn *qedi_conn, in qedi_iscsi_abort_work() argument
1572 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_iscsi_abort_work()
1596 qedi_conn->iscsi_conn_id); in qedi_iscsi_abort_work()
1601 qedi_send_iscsi_tmf(qedi_conn, qedi_cmd->task); in qedi_iscsi_abort_work()
1605 qedi_conn->iscsi_conn_id); in qedi_iscsi_abort_work()
1612 int qedi_send_iscsi_text(struct qedi_conn *qedi_conn, in qedi_send_iscsi_text() argument
1620 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_text()
1630 req_sge = (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_text()
1631 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_text()
1634 ep = qedi_conn->ep; in qedi_send_iscsi_text()
1665 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_text()
1667 (u32)(qedi_conn->gen_pdu.req_dma_addr); in qedi_send_iscsi_text()
1669 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32); in qedi_send_iscsi_text()
1674 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_text()
1676 (u32)(qedi_conn->gen_pdu.resp_dma_addr); in qedi_send_iscsi_text()
1678 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32); in qedi_send_iscsi_text()
1684 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_text()
1690 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_text()
1701 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_text()
1702 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_text()
1704 qedi_conn->active_cmd_count++; in qedi_send_iscsi_text()
1705 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_text()
1707 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_text()
1711 int qedi_send_iscsi_nopout(struct qedi_conn *qedi_conn, in qedi_send_iscsi_nopout() argument
1719 struct qedi_ctx *qedi = qedi_conn->qedi; in qedi_send_iscsi_nopout()
1730 resp_sge = (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_nopout()
1733 ep = qedi_conn->ep; in qedi_send_iscsi_nopout()
1771 spin_lock(&qedi_conn->list_lock); in qedi_send_iscsi_nopout()
1772 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_nopout()
1774 qedi_conn->active_cmd_count++; in qedi_send_iscsi_nopout()
1775 spin_unlock(&qedi_conn->list_lock); in qedi_send_iscsi_nopout()
1781 (struct scsi_sge *)qedi_conn->gen_pdu.req_bd_tbl; in qedi_send_iscsi_nopout()
1783 (u32)(qedi_conn->gen_pdu.req_dma_addr); in qedi_send_iscsi_nopout()
1785 (u32)((u64)qedi_conn->gen_pdu.req_dma_addr >> 32); in qedi_send_iscsi_nopout()
1790 (struct scsi_sge *)qedi_conn->gen_pdu.resp_bd_tbl; in qedi_send_iscsi_nopout()
1792 (u32)(qedi_conn->gen_pdu.resp_dma_addr); in qedi_send_iscsi_nopout()
1794 (u32)((u64)qedi_conn->gen_pdu.resp_dma_addr >> 32); in qedi_send_iscsi_nopout()
1801 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_send_iscsi_nopout()
1807 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_send_iscsi_nopout()
1818 qedi_ring_doorbell(qedi_conn); in qedi_send_iscsi_nopout()
1995 struct qedi_conn *qedi_conn = conn->dd_data; in qedi_trace_io() local
2004 io_log->cid = qedi_conn->iscsi_conn_id; in qedi_trace_io()
2051 struct qedi_conn *qedi_conn = conn->dd_data; in qedi_iscsi_send_ioreq() local
2073 ep = qedi_conn->ep; in qedi_iscsi_send_ioreq()
2074 cls_conn = qedi_conn->cls_conn; in qedi_iscsi_send_ioreq()
2161 task_params.conn_icid = (u16)qedi_conn->iscsi_conn_id; in qedi_iscsi_send_ioreq()
2169 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_iscsi_send_ioreq()
2195 spin_lock(&qedi_conn->list_lock); in qedi_iscsi_send_ioreq()
2196 list_add_tail(&cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_iscsi_send_ioreq()
2198 qedi_conn->active_cmd_count++; in qedi_iscsi_send_ioreq()
2199 spin_unlock(&qedi_conn->list_lock); in qedi_iscsi_send_ioreq()
2201 qedi_ring_doorbell(qedi_conn); in qedi_iscsi_send_ioreq()
2210 struct qedi_conn *qedi_conn = conn->dd_data; in qedi_iscsi_cleanup_task() local
2215 QEDI_INFO(&qedi_conn->qedi->dbg_ctx, QEDI_LOG_SCSI_TM, in qedi_iscsi_cleanup_task()
2218 cmd->state, qedi_conn->iscsi_conn_id); in qedi_iscsi_cleanup_task()
2221 ep = qedi_conn->ep; in qedi_iscsi_cleanup_task()
2223 sq_idx = qedi_get_wqe_idx(qedi_conn); in qedi_iscsi_cleanup_task()
2233 qedi_ring_doorbell(qedi_conn); in qedi_iscsi_cleanup_task()