Lines Matching refs:se_cmd
133 struct se_cmd tvc_se_cmd;
260 struct se_cmd se_cmd; member
415 static void vhost_scsi_release_cmd_res(struct se_cmd *se_cmd) in vhost_scsi_release_cmd_res() argument
417 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd_res()
453 sbitmap_clear_bit(&svq->scsi_tags, se_cmd->map_tag); in vhost_scsi_release_cmd_res()
479 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
481 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) { in vhost_scsi_release_cmd()
482 struct vhost_scsi_tmf *tmf = container_of(se_cmd, in vhost_scsi_release_cmd()
483 struct vhost_scsi_tmf, se_cmd); in vhost_scsi_release_cmd()
487 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
498 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
501 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
505 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
507 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_queue_data_in()
511 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
513 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_queue_status()
517 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
519 struct vhost_scsi_tmf *tmf = container_of(se_cmd, struct vhost_scsi_tmf, in vhost_scsi_queue_tm_rsp()
520 se_cmd); in vhost_scsi_queue_tm_rsp()
522 tmf->scsi_resp = se_cmd->se_tmr_req->response; in vhost_scsi_queue_tm_rsp()
523 transport_generic_free_cmd(&tmf->se_cmd, 0); in vhost_scsi_queue_tm_rsp()
526 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
563 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
565 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
692 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
702 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
705 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
712 se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
714 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
716 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
718 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
734 vhost_scsi_release_cmd_res(se_cmd); in vhost_scsi_complete_cmd_work()
1046 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_target_queue_cmd() local
1056 se_cmd->prot_pto = true; in vhost_scsi_target_queue_cmd()
1061 se_cmd->tag = 0; in vhost_scsi_target_queue_cmd()
1062 target_init_cmd(se_cmd, nexus->tvn_se_sess, &cmd->tvc_sense_buf[0], in vhost_scsi_target_queue_cmd()
1066 if (target_submit_prep(se_cmd, cdb, sg_ptr, in vhost_scsi_target_queue_cmd()
1071 target_submit(se_cmd); in vhost_scsi_target_queue_cmd()
1629 if (target_submit_tmr(&tmf->se_cmd, tpg->tpg_nexus->tvn_se_sess, NULL, in vhost_scsi_handle_tmf()