Lines Matching refs:se_cmd

98 	struct se_cmd tvc_se_cmd;
309 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
311 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
326 target_free_tag(se_sess, se_cmd); in vhost_scsi_release_cmd()
334 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
337 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
341 static int vhost_scsi_write_pending_status(struct se_cmd *se_cmd) in vhost_scsi_write_pending_status() argument
351 static int vhost_scsi_get_cmd_state(struct se_cmd *se_cmd) in vhost_scsi_get_cmd_state() argument
365 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
367 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_data_in()
373 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
375 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_status()
381 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
386 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
425 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_free_cmd() local
428 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_free_cmd()
432 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
434 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
517 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
524 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
527 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
530 v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq, se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
532 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
534 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
536 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
752 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_submission_work() local
763 se_cmd->prot_pto = true; in vhost_scsi_submission_work()
769 se_cmd->tag = 0; in vhost_scsi_submission_work()
770 rc = target_submit_cmd_map_sgls(se_cmd, tv_nexus->tvn_se_sess, in vhost_scsi_submission_work()
778 transport_send_check_condition_and_sense(se_cmd, in vhost_scsi_submission_work()
780 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_submission_work()