Lines Matching refs:se_cmd

137 	struct se_cmd se_cmd;  member
342 resid = pending_req->se_cmd.residual_count; in scsiback_cmd_done()
356 target_put_sess_cmd(&pending_req->se_cmd); in scsiback_cmd_done()
361 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_cmd_exec() local
366 se_cmd->tag = pending_req->rqid; in scsiback_cmd_exec()
367 rc = target_submit_cmd_map_sgls(se_cmd, sess, pending_req->cmnd, in scsiback_cmd_exec()
374 transport_send_check_condition_and_sense(se_cmd, in scsiback_cmd_exec()
376 transport_generic_free_cmd(se_cmd, 0); in scsiback_cmd_exec()
561 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_device_action() local
567 rc = target_submit_tmr(&pending_req->se_cmd, nexus->tvn_se_sess, in scsiback_device_action()
576 err = (se_cmd->se_tmr_req->response == TMR_FUNCTION_COMPLETE) ? in scsiback_device_action()
580 transport_generic_free_cmd(&pending_req->se_cmd, 0); in scsiback_device_action()
630 req->se_cmd.map_tag = tag; in scsiback_get_pend_req()
631 req->se_cmd.map_cpu = cpu; in scsiback_get_pend_req()
739 transport_generic_free_cmd(&pending_req->se_cmd, 0); in scsiback_do_cmd_fn()
755 transport_generic_free_cmd(&pending_req->se_cmd, 0); in scsiback_do_cmd_fn()
1357 static int scsiback_check_stop_free(struct se_cmd *se_cmd) in scsiback_check_stop_free() argument
1359 return transport_generic_free_cmd(se_cmd, 0); in scsiback_check_stop_free()
1362 static void scsiback_release_cmd(struct se_cmd *se_cmd) in scsiback_release_cmd() argument
1364 target_free_tag(se_cmd->se_sess, se_cmd); in scsiback_release_cmd()
1372 static int scsiback_write_pending(struct se_cmd *se_cmd) in scsiback_write_pending() argument
1375 target_execute_cmd(se_cmd); in scsiback_write_pending()
1384 static int scsiback_get_cmd_state(struct se_cmd *se_cmd) in scsiback_get_cmd_state() argument
1389 static int scsiback_queue_data_in(struct se_cmd *se_cmd) in scsiback_queue_data_in() argument
1391 struct vscsibk_pend *pending_req = container_of(se_cmd, in scsiback_queue_data_in()
1392 struct vscsibk_pend, se_cmd); in scsiback_queue_data_in()
1399 static int scsiback_queue_status(struct se_cmd *se_cmd) in scsiback_queue_status() argument
1401 struct vscsibk_pend *pending_req = container_of(se_cmd, in scsiback_queue_status()
1402 struct vscsibk_pend, se_cmd); in scsiback_queue_status()
1404 if (se_cmd->sense_buffer && in scsiback_queue_status()
1405 ((se_cmd->se_cmd_flags & SCF_TRANSPORT_TASK_SENSE) || in scsiback_queue_status()
1406 (se_cmd->se_cmd_flags & SCF_EMULATED_TASK_SENSE))) in scsiback_queue_status()
1410 pending_req->result = se_cmd->scsi_status; in scsiback_queue_status()
1416 static void scsiback_queue_tm_rsp(struct se_cmd *se_cmd) in scsiback_queue_tm_rsp() argument
1418 struct vscsibk_pend *pending_req = container_of(se_cmd, in scsiback_queue_tm_rsp()
1419 struct vscsibk_pend, se_cmd); in scsiback_queue_tm_rsp()
1424 static void scsiback_aborted_task(struct se_cmd *se_cmd) in scsiback_aborted_task() argument