Lines Matching refs:se_cmd

99 	struct se_cmd tvc_se_cmd;
316 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
318 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
333 percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag); in vhost_scsi_release_cmd()
351 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
354 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
358 static int vhost_scsi_write_pending_status(struct se_cmd *se_cmd) in vhost_scsi_write_pending_status() argument
368 static int vhost_scsi_get_cmd_state(struct se_cmd *se_cmd) in vhost_scsi_get_cmd_state() argument
382 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
384 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_data_in()
390 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
392 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_status()
398 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
403 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
442 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_free_cmd() local
445 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_free_cmd()
449 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
451 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
536 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
546 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
549 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
552 v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq, se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
554 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
556 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
558 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
795 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_submission_work() local
806 se_cmd->prot_pto = true; in vhost_scsi_submission_work()
812 se_cmd->tag = 0; in vhost_scsi_submission_work()
813 rc = target_submit_cmd_map_sgls(se_cmd, tv_nexus->tvn_se_sess, in vhost_scsi_submission_work()
821 transport_send_check_condition_and_sense(se_cmd, in vhost_scsi_submission_work()
823 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_submission_work()