Lines Matching refs:se_cmd
100 struct se_cmd tvc_se_cmd;
470 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
472 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
487 percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag); in vhost_scsi_release_cmd()
505 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
508 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
512 static int vhost_scsi_write_pending_status(struct se_cmd *se_cmd) in vhost_scsi_write_pending_status() argument
522 static u32 vhost_scsi_get_task_tag(struct se_cmd *se_cmd) in vhost_scsi_get_task_tag() argument
527 static int vhost_scsi_get_cmd_state(struct se_cmd *se_cmd) in vhost_scsi_get_cmd_state() argument
541 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
543 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_data_in()
549 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
551 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_status()
557 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
562 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
601 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_free_cmd() local
604 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_free_cmd()
608 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
610 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
695 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
705 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
708 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
711 v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq, se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
713 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
715 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
717 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
954 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_submission_work() local
965 se_cmd->prot_pto = true; in vhost_scsi_submission_work()
971 rc = target_submit_cmd_map_sgls(se_cmd, tv_nexus->tvn_se_sess, in vhost_scsi_submission_work()
979 transport_send_check_condition_and_sense(se_cmd, in vhost_scsi_submission_work()
981 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_submission_work()