/drivers/target/ |
D | target_core_xcopy.c | 55 static int target_xcopy_locate_se_dev_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, in target_xcopy_locate_se_dev_e4() argument 111 static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, in target_xcopy_parse_tiddesc_e4() argument 165 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 177 xop->dst_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 186 static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, in target_xcopy_parse_target_descriptors() argument 190 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors() 222 rc = target_xcopy_parse_tiddesc_e4(se_cmd, xop, in target_xcopy_parse_target_descriptors() 245 rc = target_xcopy_locate_se_dev_e4(se_cmd, xop, true); in target_xcopy_parse_target_descriptors() 247 rc = target_xcopy_locate_se_dev_e4(se_cmd, xop, false); in target_xcopy_parse_target_descriptors() 270 static int target_xcopy_parse_segdesc_02(struct se_cmd *se_cmd, struct xcopy_op *xop, in target_xcopy_parse_segdesc_02() argument [all …]
|
D | target_core_tmr.c | 40 struct se_cmd *se_cmd, in core_tmr_alloc_req() argument 53 se_cmd->se_cmd_flags |= SCF_SCSI_TMR_CDB; in core_tmr_alloc_req() 54 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req() 55 tmr->task_cmd = se_cmd; in core_tmr_alloc_req() 78 static int core_tmr_handle_tas_abort(struct se_cmd *cmd, int tas) in core_tmr_handle_tas_abort() 98 struct se_cmd *cmd) in target_check_cdb_and_preempt() 112 static bool __target_check_io_state(struct se_cmd *se_cmd, in __target_check_io_state() argument 115 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state() 129 spin_lock(&se_cmd->t_state_lock); in __target_check_io_state() 130 if (se_cmd->transport_state & (CMD_T_COMPLETE | CMD_T_FABRIC_STOP)) { in __target_check_io_state() [all …]
|
D | target_core_transport.c | 66 static void transport_complete_task_attr(struct se_cmd *cmd); 67 static void transport_handle_queue_full(struct se_cmd *cmd, 69 static int transport_put_cmd(struct se_cmd *cmd); 588 static void target_remove_from_state_list(struct se_cmd *cmd) in target_remove_from_state_list() 607 static int transport_cmd_check_stop(struct se_cmd *cmd, bool remove_from_lists, in transport_cmd_check_stop() 660 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) in transport_cmd_check_stop_to_fabric() 665 static void transport_lun_remove_cmd(struct se_cmd *cmd) in transport_lun_remove_cmd() 676 int transport_cmd_finish_abort(struct se_cmd *cmd, int remove) in transport_cmd_finish_abort() 700 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_complete_failure_work() 710 static unsigned char *transport_get_sense_buffer(struct se_cmd *cmd) in transport_get_sense_buffer() [all …]
|
D | target_core_user.c | 123 struct se_cmd *se_cmd; member 161 static struct tcmu_cmd *tcmu_alloc_cmd(struct se_cmd *se_cmd) in tcmu_alloc_cmd() argument 163 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd() 172 tcmu_cmd->se_cmd = se_cmd; in tcmu_alloc_cmd() 312 struct se_cmd *se_cmd = cmd->se_cmd; in gather_data_area() local 324 data_sg = se_cmd->t_data_sg; in gather_data_area() 325 data_nents = se_cmd->t_data_nents; in gather_data_area() 334 count = DIV_ROUND_UP(se_cmd->data_length, DATA_BLOCK_SIZE); in gather_data_area() 340 data_sg = se_cmd->t_bidi_data_sg; in gather_data_area() 341 data_nents = se_cmd->t_bidi_data_nents; in gather_data_area() [all …]
|
D | target_core_device.c | 59 transport_lookup_cmd_lun(struct se_cmd *se_cmd, u64 unpacked_lun) in transport_lookup_cmd_lun() argument 62 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_cmd_lun() 72 if (se_cmd->data_direction == DMA_TO_DEVICE) in transport_lookup_cmd_lun() 73 atomic_long_add(se_cmd->data_length, in transport_lookup_cmd_lun() 75 else if (se_cmd->data_direction == DMA_FROM_DEVICE) in transport_lookup_cmd_lun() 76 atomic_long_add(se_cmd->data_length, in transport_lookup_cmd_lun() 86 se_cmd->se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun() 87 se_cmd->pr_res_key = deve->pr_res_key; in transport_lookup_cmd_lun() 88 se_cmd->orig_fe_lun = unpacked_lun; in transport_lookup_cmd_lun() 89 se_cmd->se_cmd_flags |= SCF_SE_LUN_CMD; in transport_lookup_cmd_lun() [all …]
|
D | target_core_pr.h | 55 extern sense_reason_t target_scsi2_reservation_release(struct se_cmd *); 56 extern sense_reason_t target_scsi2_reservation_reserve(struct se_cmd *); 69 extern sense_reason_t target_scsi3_emulate_pr_in(struct se_cmd *); 70 extern sense_reason_t target_scsi3_emulate_pr_out(struct se_cmd *); 71 extern sense_reason_t target_check_reservation(struct se_cmd *);
|
D | target_core_spc.c | 64 spc_emulate_inquiry_std(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_inquiry_std() 125 spc_emulate_evpd_80(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_80() 174 spc_emulate_evpd_83(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_83() 442 spc_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_86() 484 spc_emulate_evpd_b0(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b0() 578 spc_emulate_evpd_b1(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b1() 591 spc_emulate_evpd_b2(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b2() 655 spc_emulate_evpd_b3(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b3() 668 spc_emulate_evpd_00(struct se_cmd *cmd, unsigned char *buf); 672 sense_reason_t (*emulate)(struct se_cmd *, unsigned char *); [all …]
|
D | target_core_alua.h | 91 extern sense_reason_t target_emulate_report_target_port_groups(struct se_cmd *); 92 extern sense_reason_t target_emulate_set_target_port_groups(struct se_cmd *); 93 extern sense_reason_t target_emulate_report_referrals(struct se_cmd *); 94 extern int core_alua_check_nonop_delay(struct se_cmd *); 155 extern sense_reason_t target_alua_state_check(struct se_cmd *cmd);
|
D | target_core_internal.h | 109 struct list_head *, struct se_cmd *); 134 int transport_cmd_finish_abort(struct se_cmd *, int); 135 unsigned char *transport_dump_cmd_direction(struct se_cmd *); 144 void transport_send_task_abort(struct se_cmd *); 145 sense_reason_t target_cmd_size_check(struct se_cmd *cmd, unsigned int size); 149 void __target_execute_cmd(struct se_cmd *, bool);
|
/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 49 struct se_cmd *se_cmd; in _ft_dump_cmd() local 53 se_cmd = &cmd->se_cmd; in _ft_dump_cmd() 55 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd() 58 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd() 59 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd() 61 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, count) in _ft_dump_cmd() 97 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in ft_free_cmd() 101 void ft_release_cmd(struct se_cmd *se_cmd) in ft_release_cmd() argument 103 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_release_cmd() 108 int ft_check_stop_free(struct se_cmd *se_cmd) in ft_check_stop_free() argument [all …]
|
D | tfc_io.c | 54 int ft_queue_data_in(struct se_cmd *se_cmd) in ft_queue_data_in() argument 56 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_data_in() 80 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in() 87 remaining = se_cmd->data_length; in ft_queue_data_in() 92 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in() 94 sg = se_cmd->t_data_sg; in ft_queue_data_in() 191 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in() 196 return ft_queue_status(se_cmd); in ft_queue_data_in() 203 target_execute_cmd(&cmd->se_cmd); in ft_execute_work() 211 struct se_cmd *se_cmd = &cmd->se_cmd; in ft_recv_write_data() local [all …]
|
D | tcm_fc.h | 118 struct se_cmd se_cmd; /* Local TCM I/O descriptor */ member 153 int ft_check_stop_free(struct se_cmd *); 154 void ft_release_cmd(struct se_cmd *); 155 int ft_queue_status(struct se_cmd *); 156 int ft_queue_data_in(struct se_cmd *); 157 int ft_write_pending(struct se_cmd *); 158 int ft_write_pending_status(struct se_cmd *); 159 int ft_get_cmd_state(struct se_cmd *); 160 void ft_queue_tm_resp(struct se_cmd *); 161 void ft_aborted_task(struct se_cmd *);
|
/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 265 transport_generic_free_cmd(&mcmd->se_cmd, 0); in tcm_qla2xxx_complete_mcmd() 289 transport_generic_free_cmd(&cmd->se_cmd, 0); in tcm_qla2xxx_complete_free() 312 static int tcm_qla2xxx_check_stop_free(struct se_cmd *se_cmd) in tcm_qla2xxx_check_stop_free() argument 316 if ((se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) == 0) { in tcm_qla2xxx_check_stop_free() 317 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in tcm_qla2xxx_check_stop_free() 321 return target_put_sess_cmd(se_cmd); in tcm_qla2xxx_check_stop_free() 327 static void tcm_qla2xxx_release_cmd(struct se_cmd *se_cmd) in tcm_qla2xxx_release_cmd() argument 331 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) { in tcm_qla2xxx_release_cmd() 332 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_release_cmd() 333 struct qla_tgt_mgmt_cmd, se_cmd); in tcm_qla2xxx_release_cmd() [all …]
|
D | qla_target.c | 1548 struct se_cmd *se_cmd; in __qlt_24xx_handle_abts() local 1554 list_for_each_entry(se_cmd, &se_sess->sess_cmd_list, se_cmd_list) { in __qlt_24xx_handle_abts() 1556 container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in __qlt_24xx_handle_abts() 1557 if (se_cmd->tag == abts->exchange_addr_to_abort) { in __qlt_24xx_handle_abts() 1805 if (cmd->se_cmd.prot_op == TARGET_PROT_NORMAL) { in qlt_pci_map_calc_cnt() 1816 if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || in qlt_pci_map_calc_cnt() 1817 (cmd->se_cmd.prot_op == TARGET_PROT_DOUT_STRIP)) { in qlt_pci_map_calc_cnt() 1831 if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || in qlt_pci_map_calc_cnt() 1832 (cmd->se_cmd.prot_op == TARGET_PROT_DOUT_STRIP)) { in qlt_pci_map_calc_cnt() 2114 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_pre_xmit_response() local [all …]
|
/drivers/target/loopback/ |
D | tcm_loop.c | 47 static int tcm_loop_queue_status(struct se_cmd *se_cmd); 52 static int tcm_loop_check_stop_free(struct se_cmd *se_cmd) in tcm_loop_check_stop_free() argument 59 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) in tcm_loop_check_stop_free() 65 transport_generic_free_cmd(se_cmd, 0); in tcm_loop_check_stop_free() 69 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) in tcm_loop_release_cmd() argument 71 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_release_cmd() 112 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_submission_work() local 148 se_cmd->se_cmd_flags |= SCF_BIDI; in tcm_loop_submission_work() 155 se_cmd->prot_pto = true; in tcm_loop_submission_work() 164 se_cmd->tag = tl_cmd->sc_cmd_tag; in tcm_loop_submission_work() [all …]
|
/drivers/usb/gadget/function/ |
D | f_tcm.c | 64 transport_generic_free_cmd(&cmd->se_cmd, 0); in bot_status_complete() 152 if (cmd->se_cmd.scsi_status == SAM_STAT_GOOD) { in bot_send_status() 205 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_read_response() local 216 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in bot_send_read_response() 220 sg_copy_to_buffer(se_cmd->t_data_sg, in bot_send_read_response() 221 se_cmd->t_data_nents, in bot_send_read_response() 223 se_cmd->data_length); in bot_send_read_response() 228 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response() 229 fu->bot_req_in->sg = se_cmd->t_data_sg; in bot_send_read_response() 233 fu->bot_req_in->length = se_cmd->data_length; in bot_send_read_response() [all …]
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 65 isert_prot_cmd(struct isert_conn *conn, struct se_cmd *cmd) in isert_prot_cmd() 1130 data_len = cmd->se_cmd.data_length; in isert_handle_scsi_cmd() 1133 cmd->se_cmd.se_cmd_flags |= SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC; in isert_handle_scsi_cmd() 1147 sg_copy_from_buffer(cmd->se_cmd.t_data_sg, sg_nents, in isert_handle_scsi_cmd() 1153 cmd->se_cmd.t_data_sg = &isert_cmd->sg; in isert_handle_scsi_cmd() 1154 cmd->se_cmd.t_data_nents = 1; in isert_handle_scsi_cmd() 1162 if (cmd->write_data_done == cmd->se_cmd.data_length) { in isert_handle_scsi_cmd() 1175 target_put_sess_cmd(&cmd->se_cmd); in isert_handle_scsi_cmd() 1208 cmd->se_cmd.data_length); in isert_handle_iscsi_dataout() 1211 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in isert_handle_iscsi_dataout() [all …]
|
/drivers/target/iscsi/ |
D | iscsi_target_tmr.c | 45 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_abort_task() 121 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_task_reassign() 165 if (ref_lun != ref_cmd->se_cmd.orig_fe_lun) { in iscsit_tmr_task_reassign() 168 ref_lun, ref_cmd->se_cmd.orig_fe_lun); in iscsit_tmr_task_reassign() 241 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_task_reassign_complete_write() local 260 if (!(cmd->se_cmd.transport_state & CMD_T_SENT)) { in iscsit_task_reassign_complete_write() 263 cmd->init_task_tag, cmd->se_cmd.t_state); in iscsit_task_reassign_complete_write() 264 target_execute_cmd(se_cmd); in iscsit_task_reassign_complete_write() 283 cmd->se_cmd.data_length) { in iscsit_task_reassign_complete_write() 285 length = (cmd->se_cmd.data_length - offset); in iscsit_task_reassign_complete_write() [all …]
|
D | iscsi_target_configfs.c | 1374 static int iscsi_get_cmd_state(struct se_cmd *se_cmd) in iscsi_get_cmd_state() argument 1376 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in iscsi_get_cmd_state() 1400 static int lio_queue_data_in(struct se_cmd *se_cmd) in lio_queue_data_in() argument 1402 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_queue_data_in() 1410 static int lio_write_pending(struct se_cmd *se_cmd) in lio_write_pending() argument 1412 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_write_pending() 1421 static int lio_write_pending_status(struct se_cmd *se_cmd) in lio_write_pending_status() argument 1423 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_write_pending_status() 1433 static int lio_queue_status(struct se_cmd *se_cmd) in lio_queue_status() argument 1435 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_queue_status() [all …]
|
D | iscsi_target_seq_pdu_list.c | 223 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) in iscsit_determine_counts_for_list() 234 unsolicited_data_length = min(cmd->se_cmd.data_length, in iscsit_determine_counts_for_list() 237 while (offset < cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 250 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 252 (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 253 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 272 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list() 273 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list() 306 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) in iscsit_do_build_pdu_and_seq_lists() 320 unsolicited_data_length = min(cmd->se_cmd.data_length, in iscsit_do_build_pdu_and_seq_lists() [all …]
|
D | iscsi_target.c | 497 !(cmd->se_cmd.transport_state & CMD_T_FABRIC_STOP)) in iscsit_aborted_task() 844 const bool do_put = cmd->se_cmd.se_tfo != NULL; in iscsit_add_reject_from_cmd() 877 target_put_sess_cmd(&cmd->se_cmd); in iscsit_add_reject_from_cmd() 913 if (ent >= cmd->se_cmd.t_data_nents) { in iscsit_map_iovec() 918 sg = &cmd->se_cmd.t_data_sg[ent]; in iscsit_map_iovec() 984 u32 iov_count = max(1UL, DIV_ROUND_UP(cmd->se_cmd.data_length, PAGE_SIZE)); in iscsit_allocate_iovecs() 1161 transport_init_se_cmd(&cmd->se_cmd, &iscsi_ops, in iscsit_setup_scsi_cmd() 1171 target_get_sess_cmd(&cmd->se_cmd, true); in iscsit_setup_scsi_cmd() 1173 cmd->sense_reason = transport_lookup_cmd_lun(&cmd->se_cmd, in iscsit_setup_scsi_cmd() 1179 cmd->se_cmd.tag = (__force u32)cmd->init_task_tag; in iscsit_setup_scsi_cmd() [all …]
|
/drivers/xen/ |
D | xen-scsiback.c | 136 struct se_cmd se_cmd; member 380 resid = pending_req->se_cmd.residual_count; in scsiback_cmd_done() 394 target_put_sess_cmd(&pending_req->se_cmd); in scsiback_cmd_done() 399 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_cmd_exec() local 404 se_cmd->tag = pending_req->rqid; in scsiback_cmd_exec() 405 rc = target_submit_cmd_map_sgls(se_cmd, sess, pending_req->cmnd, in scsiback_cmd_exec() 412 transport_send_check_condition_and_sense(se_cmd, in scsiback_cmd_exec() 414 transport_generic_free_cmd(se_cmd, 0); in scsiback_cmd_exec() 599 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_device_action() local 605 rc = target_submit_tmr(&pending_req->se_cmd, nexus->tvn_se_sess, in scsiback_device_action() [all …]
|
/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.c | 65 static void ibmvscsis_determine_resid(struct se_cmd *se_cmd, in ibmvscsis_determine_resid() argument 68 u32 residual_count = se_cmd->residual_count; in ibmvscsis_determine_resid() 73 if (se_cmd->se_cmd_flags & SCF_UNDERFLOW_BIT) { in ibmvscsis_determine_resid() 74 if (se_cmd->data_direction == DMA_TO_DEVICE) { in ibmvscsis_determine_resid() 78 } else if (se_cmd->data_direction == DMA_FROM_DEVICE) { in ibmvscsis_determine_resid() 83 } else if (se_cmd->se_cmd_flags & SCF_OVERFLOW_BIT) { in ibmvscsis_determine_resid() 84 if (se_cmd->data_direction == DMA_TO_DEVICE) { in ibmvscsis_determine_resid() 88 } else if (se_cmd->data_direction == DMA_FROM_DEVICE) { in ibmvscsis_determine_resid() 1178 memset(&cmd->se_cmd, 0, sizeof(cmd->se_cmd)); in ibmvscsis_get_free_cmd() 1788 if (cmd->se_cmd.transport_state & CMD_T_ABORTED && in ibmvscsis_send_messages() [all …]
|
/drivers/target/sbp/ |
D | sbp_target.c | 937 req->se_cmd.map_tag = tag; in sbp_mgt_get_req() 938 req->se_cmd.tag = next_orb; in sbp_mgt_get_req() 1233 req->se_cmd.tag = req->orb_pointer; in sbp_handle_command() 1234 if (target_submit_cmd(&req->se_cmd, sess->se_sess, req->cmd_buf, in sbp_handle_command() 1265 if (req->se_cmd.data_direction == DMA_FROM_DEVICE) { in sbp_rw_data() 1299 length = req->se_cmd.data_length; in sbp_rw_data() 1302 sg_miter_start(&iter, req->se_cmd.t_data_sg, req->se_cmd.t_data_nents, in sbp_rw_data() 1367 target_put_sess_cmd(&req->se_cmd); in sbp_send_status() 1373 struct se_cmd *se_cmd = &req->se_cmd; in sbp_sense_mangle() local 1377 WARN_ON(se_cmd->scsi_sense_length < 18); in sbp_sense_mangle() [all …]
|
/drivers/vhost/ |
D | scsi.c | 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() 341 static int vhost_scsi_write_pending(struct se_cmd *se_cmd) in vhost_scsi_write_pending() argument 344 target_execute_cmd(se_cmd); in vhost_scsi_write_pending() 348 static int vhost_scsi_write_pending_status(struct se_cmd *se_cmd) in vhost_scsi_write_pending_status() argument 358 static int vhost_scsi_get_cmd_state(struct se_cmd *se_cmd) in vhost_scsi_get_cmd_state() argument 372 static int vhost_scsi_queue_data_in(struct se_cmd *se_cmd) in vhost_scsi_queue_data_in() argument 374 struct vhost_scsi_cmd *cmd = container_of(se_cmd, in vhost_scsi_queue_data_in() [all …]
|