Lines Matching refs:se_cmd
104 struct se_cmd tvc_se_cmd;
323 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
325 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
340 target_free_tag(se_sess, se_cmd); in vhost_scsi_release_cmd()
348 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
351 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
360 static int vhost_scsi_get_cmd_state(struct se_cmd *se_cmd) in vhost_scsi_get_cmd_state() argument
374 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
376 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_data_in()
382 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
384 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_status()
390 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
395 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
434 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_free_cmd() local
437 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_free_cmd()
441 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
443 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
526 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
533 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
536 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
539 v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq, se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
541 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
543 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
545 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
761 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_submission_work() local
772 se_cmd->prot_pto = true; in vhost_scsi_submission_work()
778 se_cmd->tag = 0; in vhost_scsi_submission_work()
779 rc = target_submit_cmd_map_sgls(se_cmd, tv_nexus->tvn_se_sess, in vhost_scsi_submission_work()
787 transport_send_check_condition_and_sense(se_cmd, in vhost_scsi_submission_work()
789 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_submission_work()