Lines Matching refs:qedi_cmd
20 void qedi_iscsi_unmap_sg_list(struct qedi_cmd *cmd) in qedi_iscsi_unmap_sg_list()
39 struct qedi_cmd *cmd; in qedi_process_logout_resp()
41 cmd = (struct qedi_cmd *)task->dd_data; in qedi_process_logout_resp()
91 struct qedi_cmd *cmd; in qedi_process_text_resp()
94 cmd = (struct qedi_cmd *)task->dd_data; in qedi_process_text_resp()
150 struct qedi_cmd *qedi_cmd = in qedi_tmf_resp_work() local
151 container_of(work, struct qedi_cmd, tmf_work); in qedi_tmf_resp_work()
152 struct qedi_conn *qedi_conn = qedi_cmd->conn; in qedi_tmf_resp_work()
159 resp_hdr_ptr = (struct iscsi_tm_rsp *)qedi_cmd->tmf_resp_buf; in qedi_tmf_resp_work()
161 rval = qedi_cleanup_all_io(qedi, qedi_conn, qedi_cmd->task, true); in qedi_tmf_resp_work()
188 struct qedi_cmd *qedi_cmd = NULL; in qedi_process_tmf_resp() local
192 qedi_cmd = task->dd_data; in qedi_process_tmf_resp()
193 qedi_cmd->tmf_resp_buf = kzalloc(sizeof(*resp_hdr_ptr), GFP_ATOMIC); in qedi_process_tmf_resp()
194 if (!qedi_cmd->tmf_resp_buf) { in qedi_process_tmf_resp()
202 resp_hdr_ptr = (struct iscsi_tm_rsp *)qedi_cmd->tmf_resp_buf; in qedi_process_tmf_resp()
220 tmf_hdr = (struct iscsi_tm *)qedi_cmd->task->hdr; in qedi_process_tmf_resp()
223 if (likely(qedi_cmd->io_cmd_in_list)) { in qedi_process_tmf_resp()
224 qedi_cmd->io_cmd_in_list = false; in qedi_process_tmf_resp()
225 list_del_init(&qedi_cmd->io_cmd); in qedi_process_tmf_resp()
244 INIT_WORK(&qedi_cmd->tmf_work, qedi_tmf_resp_work); in qedi_process_tmf_resp()
245 queue_work(qedi->tmf_thread, &qedi_cmd->tmf_work); in qedi_process_tmf_resp()
267 struct qedi_cmd *cmd; in qedi_process_login_resp()
270 cmd = (struct qedi_cmd *)task->dd_data; in qedi_process_login_resp()
417 struct qedi_cmd *cmd; in qedi_process_nopin_mesg()
581 struct qedi_cmd *cmd = task->dd_data; in qedi_scsi_completion()
716 struct qedi_cmd *cmd = task->dd_data; in qedi_process_nopin_local_cmpl()
736 struct qedi_cmd *qedi_cmd = NULL; in qedi_process_cmd_cleanup_resp() local
739 struct qedi_cmd *dbg_cmd; in qedi_process_cmd_cleanup_resp()
757 qedi_cmd = work->qedi_cmd; in qedi_process_cmd_cleanup_resp()
758 if (!qedi_cmd->list_tmf_work) { in qedi_process_cmd_cleanup_resp()
765 mtask = qedi_cmd->task; in qedi_process_cmd_cleanup_resp()
771 qedi_cmd->list_tmf_work = NULL; in qedi_process_cmd_cleanup_resp()
805 qedi_cmd->state = CLEANUP_RECV; in qedi_process_cmd_cleanup_resp()
829 struct qedi_cmd *qedi_cmd; in qedi_fp_process_cqes() local
871 qedi_cmd = container_of(work, struct qedi_cmd, cqe_work); in qedi_fp_process_cqes()
872 task = qedi_cmd->task; in qedi_fp_process_cqes()
970 struct qedi_cmd *qedi_cmd; in qedi_send_iscsi_login() local
977 qedi_cmd = (struct qedi_cmd *)task->dd_data; in qedi_send_iscsi_login()
990 qedi_cmd->task_id = tid; in qedi_send_iscsi_login()
1007 qedi_update_itt_map(qedi, tid, task->itt, qedi_cmd); in qedi_send_iscsi_login()
1053 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_login()
1054 qedi_cmd->io_cmd_in_list = true; in qedi_send_iscsi_login()
1072 struct qedi_cmd *qedi_cmd; in qedi_send_iscsi_logout() local
1078 qedi_cmd = (struct qedi_cmd *)task->dd_data; in qedi_send_iscsi_logout()
1091 qedi_cmd->task_id = tid; in qedi_send_iscsi_logout()
1101 qedi_update_itt_map(qedi, tid, task->itt, qedi_cmd); in qedi_send_iscsi_logout()
1126 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_logout()
1127 qedi_cmd->io_cmd_in_list = true; in qedi_send_iscsi_logout()
1140 struct qedi_cmd *cmd, *cmd_tmp; in qedi_cleanup_all_io()
1287 struct qedi_cmd *qedi_cmd, in qedi_wait_for_cleanup_request() argument
1290 struct qedi_cmd *cmd = (struct qedi_cmd *)task->dd_data; in qedi_wait_for_cleanup_request()
1294 ((qedi_cmd->state == in qedi_wait_for_cleanup_request()
1296 ((qedi_cmd->type == TYPEIO) && in qedi_wait_for_cleanup_request()
1301 qedi_cmd->state = CLEANUP_WAIT_FAILED; in qedi_wait_for_cleanup_request()
1314 struct qedi_cmd *qedi_cmd = in qedi_abort_work() local
1315 container_of(work, struct qedi_cmd, tmf_work); in qedi_abort_work()
1316 struct qedi_conn *qedi_conn = qedi_cmd->conn; in qedi_abort_work()
1321 struct qedi_cmd *cmd; in qedi_abort_work()
1326 mtask = qedi_cmd->task; in qedi_abort_work()
1349 cmd = (struct qedi_cmd *)ctask->dd_data; in qedi_abort_work()
1367 qedi_cmd->type = TYPEIO; in qedi_abort_work()
1368 qedi_cmd->state = CLEANUP_WAIT; in qedi_abort_work()
1369 list_work->qedi_cmd = qedi_cmd; in qedi_abort_work()
1373 qedi_cmd->list_tmf_work = list_work; in qedi_abort_work()
1386 rval = qedi_wait_for_cleanup_request(qedi, qedi_conn, ctask, qedi_cmd, in qedi_abort_work()
1396 send_iscsi_tmf(qedi_conn, qedi_cmd->task, ctask); in qedi_abort_work()
1401 if (qedi_cmd->list_tmf_work) { in qedi_abort_work()
1403 qedi_cmd->list_tmf_work = NULL; in qedi_abort_work()
1430 struct qedi_cmd *qedi_cmd; in send_iscsi_tmf() local
1431 struct qedi_cmd *cmd; in send_iscsi_tmf()
1438 qedi_cmd = (struct qedi_cmd *)mtask->dd_data; in send_iscsi_tmf()
1452 qedi_cmd->task_id = tid; in send_iscsi_tmf()
1458 qedi_update_itt_map(qedi, tid, mtask->itt, qedi_cmd); in send_iscsi_tmf()
1468 cmd = (struct qedi_cmd *)ctask->dd_data; in send_iscsi_tmf()
1496 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in send_iscsi_tmf()
1497 qedi_cmd->io_cmd_in_list = true; in send_iscsi_tmf()
1508 struct qedi_cmd *qedi_cmd = mtask->dd_data; in qedi_send_iscsi_tmf() local
1518 INIT_WORK(&qedi_cmd->tmf_work, qedi_abort_work); in qedi_send_iscsi_tmf()
1519 queue_work(qedi->tmf_thread, &qedi_cmd->tmf_work); in qedi_send_iscsi_tmf()
1547 struct qedi_cmd *qedi_cmd; in qedi_send_iscsi_text() local
1555 qedi_cmd = (struct qedi_cmd *)task->dd_data; in qedi_send_iscsi_text()
1568 qedi_cmd->task_id = tid; in qedi_send_iscsi_text()
1579 qedi_update_itt_map(qedi, tid, task->itt, qedi_cmd); in qedi_send_iscsi_text()
1625 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_text()
1626 qedi_cmd->io_cmd_in_list = true; in qedi_send_iscsi_text()
1646 struct qedi_cmd *qedi_cmd; in qedi_send_iscsi_nopout() local
1654 qedi_cmd = (struct qedi_cmd *)task->dd_data; in qedi_send_iscsi_nopout()
1667 qedi_cmd->task_id = tid; in qedi_send_iscsi_nopout()
1685 qedi_update_itt_map(qedi, tid, task->itt, qedi_cmd); in qedi_send_iscsi_nopout()
1695 list_add_tail(&qedi_cmd->io_cmd, &qedi_conn->active_cmd_list); in qedi_send_iscsi_nopout()
1696 qedi_cmd->io_cmd_in_list = true; in qedi_send_iscsi_nopout()
1745 static int qedi_split_bd(struct qedi_cmd *cmd, u64 addr, int sg_len, in qedi_split_bd()
1778 static int qedi_map_scsi_sg(struct qedi_ctx *qedi, struct qedi_cmd *cmd) in qedi_map_scsi_sg()
1873 static void qedi_iscsi_map_sg_list(struct qedi_cmd *cmd) in qedi_iscsi_map_sg_list()
1975 struct qedi_cmd *cmd = task->dd_data; in qedi_iscsi_send_ioreq()
2134 struct qedi_cmd *cmd = task->dd_data; in qedi_iscsi_cleanup_task()