Lines Matching refs:se_cmd

96 	struct se_cmd tvc_se_cmd;
216 struct se_cmd se_cmd; member
326 static void vhost_scsi_release_cmd_res(struct se_cmd *se_cmd) in vhost_scsi_release_cmd_res() argument
328 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd_res()
349 sbitmap_clear_bit(&svq->scsi_tags, se_cmd->map_tag); in vhost_scsi_release_cmd_res()
361 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
363 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) { in vhost_scsi_release_cmd()
364 struct vhost_scsi_tmf *tmf = container_of(se_cmd, in vhost_scsi_release_cmd()
365 struct vhost_scsi_tmf, se_cmd); in vhost_scsi_release_cmd()
370 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
380 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
383 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
387 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
389 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_queue_data_in()
393 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
395 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_queue_status()
399 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
401 struct vhost_scsi_tmf *tmf = container_of(se_cmd, struct vhost_scsi_tmf, in vhost_scsi_queue_tm_rsp()
402 se_cmd); in vhost_scsi_queue_tm_rsp()
404 tmf->scsi_resp = se_cmd->se_tmr_req->response; in vhost_scsi_queue_tm_rsp()
405 transport_generic_free_cmd(&tmf->se_cmd, 0); in vhost_scsi_queue_tm_rsp()
408 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
445 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
447 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
557 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
564 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
567 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
574 se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
576 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
578 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
580 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
593 vhost_scsi_release_cmd_res(se_cmd); in vhost_scsi_complete_cmd_work()
890 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_target_queue_cmd() local
901 se_cmd->prot_pto = true; in vhost_scsi_target_queue_cmd()
907 se_cmd->tag = 0; in vhost_scsi_target_queue_cmd()
908 target_init_cmd(se_cmd, tv_nexus->tvn_se_sess, &cmd->tvc_sense_buf[0], in vhost_scsi_target_queue_cmd()
913 if (target_submit_prep(se_cmd, cmd->tvc_cdb, sg_ptr, in vhost_scsi_target_queue_cmd()
918 target_queue_submission(se_cmd); in vhost_scsi_target_queue_cmd()
1337 if (target_submit_tmr(&tmf->se_cmd, tpg->tpg_nexus->tvn_se_sess, NULL, in vhost_scsi_handle_tmf()