Lines Matching refs:se_cmd
103 struct se_cmd tvc_se_cmd;
222 struct se_cmd se_cmd; member
341 static void vhost_scsi_release_cmd_res(struct se_cmd *se_cmd) in vhost_scsi_release_cmd_res() argument
343 struct vhost_scsi_cmd *tv_cmd = container_of(se_cmd, in vhost_scsi_release_cmd_res()
359 sbitmap_clear_bit(&svq->scsi_tags, se_cmd->map_tag); in vhost_scsi_release_cmd_res()
374 static void vhost_scsi_release_cmd(struct se_cmd *se_cmd) in vhost_scsi_release_cmd() argument
376 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) { in vhost_scsi_release_cmd()
377 struct vhost_scsi_tmf *tmf = container_of(se_cmd, in vhost_scsi_release_cmd()
378 struct vhost_scsi_tmf, se_cmd); in vhost_scsi_release_cmd()
382 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_release_cmd()
396 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument
399 target_execute_cmd(se_cmd); in vhost_scsi_write_pending()
408 static int vhost_scsi_get_cmd_state(struct se_cmd *se_cmd) in vhost_scsi_get_cmd_state() argument
413 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument
415 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_queue_data_in()
419 static int vhost_scsi_queue_status(struct se_cmd *se_cmd) in vhost_scsi_queue_status() argument
421 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_queue_status()
425 static void vhost_scsi_queue_tm_rsp(struct se_cmd *se_cmd) in vhost_scsi_queue_tm_rsp() argument
427 struct vhost_scsi_tmf *tmf = container_of(se_cmd, struct vhost_scsi_tmf, in vhost_scsi_queue_tm_rsp()
428 se_cmd); in vhost_scsi_queue_tm_rsp()
430 tmf->scsi_resp = se_cmd->se_tmr_req->response; in vhost_scsi_queue_tm_rsp()
431 transport_generic_free_cmd(&tmf->se_cmd, 0); in vhost_scsi_queue_tm_rsp()
434 static void vhost_scsi_aborted_task(struct se_cmd *se_cmd) in vhost_scsi_aborted_task() argument
471 static int vhost_scsi_check_stop_free(struct se_cmd *se_cmd) in vhost_scsi_check_stop_free() argument
473 return target_put_sess_cmd(se_cmd); in vhost_scsi_check_stop_free()
556 struct se_cmd *se_cmd; in vhost_scsi_complete_cmd_work() local
563 se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_complete_cmd_work()
566 cmd, se_cmd->residual_count, se_cmd->scsi_status); in vhost_scsi_complete_cmd_work()
569 v_rsp.resid = cpu_to_vhost32(cmd->tvc_vq, se_cmd->residual_count); in vhost_scsi_complete_cmd_work()
571 v_rsp.status = se_cmd->scsi_status; in vhost_scsi_complete_cmd_work()
573 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
575 se_cmd->scsi_sense_length); in vhost_scsi_complete_cmd_work()
589 vhost_scsi_release_cmd_res(se_cmd); in vhost_scsi_complete_cmd_work()
790 struct se_cmd *se_cmd = &cmd->tvc_se_cmd; in vhost_scsi_submission_work() local
801 se_cmd->prot_pto = true; in vhost_scsi_submission_work()
807 se_cmd->tag = 0; in vhost_scsi_submission_work()
808 rc = target_submit_cmd_map_sgls(se_cmd, tv_nexus->tvn_se_sess, in vhost_scsi_submission_work()
816 transport_send_check_condition_and_sense(se_cmd, in vhost_scsi_submission_work()
818 transport_generic_free_cmd(se_cmd, 0); in vhost_scsi_submission_work()
1237 if (target_submit_tmr(&tmf->se_cmd, tpg->tpg_nexus->tvn_se_sess, NULL, in vhost_scsi_handle_tmf()