/drivers/target/ |
D | target_core_xcopy.c | 65 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 123 static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, in target_xcopy_parse_tiddesc_e4() argument 177 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 189 xop->dst_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 198 static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, in target_xcopy_parse_target_descriptors() argument 202 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors() 232 rc = target_xcopy_parse_tiddesc_e4(se_cmd, xop, in target_xcopy_parse_target_descriptors() 255 rc = target_xcopy_locate_se_dev_e4(se_cmd, xop, true); in target_xcopy_parse_target_descriptors() 257 rc = target_xcopy_locate_se_dev_e4(se_cmd, xop, false); in target_xcopy_parse_target_descriptors() 273 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 | 43 struct se_cmd *se_cmd, in core_tmr_alloc_req() argument 56 se_cmd->se_cmd_flags |= SCF_SCSI_TMR_CDB; in core_tmr_alloc_req() 57 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req() 58 tmr->task_cmd = se_cmd; in core_tmr_alloc_req() 81 static int core_tmr_handle_tas_abort(struct se_cmd *cmd, int tas) in core_tmr_handle_tas_abort() 101 struct se_cmd *cmd) in target_check_cdb_and_preempt() 115 static bool __target_check_io_state(struct se_cmd *se_cmd, in __target_check_io_state() argument 118 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state() 132 spin_lock(&se_cmd->t_state_lock); in __target_check_io_state() 133 if (se_cmd->transport_state & (CMD_T_COMPLETE | CMD_T_FABRIC_STOP)) { in __target_check_io_state() [all …]
|
D | target_core_transport.c | 68 static void transport_complete_task_attr(struct se_cmd *cmd); 69 static void transport_handle_queue_full(struct se_cmd *cmd, 71 static int transport_put_cmd(struct se_cmd *cmd); 518 static void target_remove_from_state_list(struct se_cmd *cmd) in target_remove_from_state_list() 537 static int transport_cmd_check_stop(struct se_cmd *cmd, bool remove_from_lists, in transport_cmd_check_stop() 591 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) in transport_cmd_check_stop_to_fabric() 596 static void transport_lun_remove_cmd(struct se_cmd *cmd) in transport_lun_remove_cmd() 607 int transport_cmd_finish_abort(struct se_cmd *cmd, int remove) in transport_cmd_finish_abort() 631 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_complete_failure_work() 641 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 160 static struct tcmu_cmd *tcmu_alloc_cmd(struct se_cmd *se_cmd) in tcmu_alloc_cmd() argument 162 struct se_device *se_dev = se_cmd->se_dev; in tcmu_alloc_cmd() 171 tcmu_cmd->se_cmd = se_cmd; in tcmu_alloc_cmd() 173 tcmu_cmd->data_length = se_cmd->data_length; in tcmu_alloc_cmd() 279 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; in tcmu_queue_cmd_ring() local 301 req.iov[se_cmd->t_data_nents + 2]), in tcmu_queue_cmd_ring() 304 + round_up(scsi_command_size(se_cmd->t_task_cdb), TCMU_OP_ALIGN_SIZE); in tcmu_queue_cmd_ring() 364 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, i) { in tcmu_queue_cmd_ring() 370 if (tcmu_cmd->se_cmd->data_direction == DMA_TO_DEVICE) { in tcmu_queue_cmd_ring() [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_device.c | 58 transport_lookup_cmd_lun(struct se_cmd *se_cmd, u32 unpacked_lun) in transport_lookup_cmd_lun() argument 61 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_cmd_lun() 69 se_cmd->se_deve = se_sess->se_node_acl->device_list[unpacked_lun]; in transport_lookup_cmd_lun() 70 if (se_cmd->se_deve->lun_flags & TRANSPORT_LUNFLAGS_INITIATOR_ACCESS) { in transport_lookup_cmd_lun() 71 struct se_dev_entry *deve = se_cmd->se_deve; in transport_lookup_cmd_lun() 75 if ((se_cmd->data_direction == DMA_TO_DEVICE) && in transport_lookup_cmd_lun() 79 se_cmd->se_tfo->get_fabric_name(), in transport_lookup_cmd_lun() 85 if (se_cmd->data_direction == DMA_TO_DEVICE) in transport_lookup_cmd_lun() 86 deve->write_bytes += se_cmd->data_length; in transport_lookup_cmd_lun() 87 else if (se_cmd->data_direction == DMA_FROM_DEVICE) in transport_lookup_cmd_lun() [all …]
|
D | target_core_spc.c | 70 spc_emulate_inquiry_std(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_inquiry_std() 129 spc_emulate_evpd_80(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_80() 178 spc_emulate_evpd_83(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_83() 472 spc_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_86() 505 spc_emulate_evpd_b0(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b0() 592 spc_emulate_evpd_b1(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b1() 605 spc_emulate_evpd_b2(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b2() 657 spc_emulate_evpd_b3(struct se_cmd *cmd, unsigned char *buf) in spc_emulate_evpd_b3() 670 spc_emulate_evpd_00(struct se_cmd *cmd, unsigned char *buf); 674 sense_reason_t (*emulate)(struct se_cmd *, unsigned char *); [all …]
|
D | target_core_internal.h | 74 struct list_head *, struct se_cmd *); 95 int transport_cmd_finish_abort(struct se_cmd *, int); 96 unsigned char *transport_dump_cmd_direction(struct se_cmd *); 104 bool target_stop_cmd(struct se_cmd *cmd, unsigned long *flags); 106 void transport_send_task_abort(struct se_cmd *); 107 sense_reason_t target_cmd_size_check(struct se_cmd *cmd, unsigned int size);
|
D | target_core_alua.h | 92 extern sense_reason_t target_emulate_report_target_port_groups(struct se_cmd *); 93 extern sense_reason_t target_emulate_set_target_port_groups(struct se_cmd *); 94 extern sense_reason_t target_emulate_report_referrals(struct se_cmd *); 95 extern int core_alua_check_nonop_delay(struct se_cmd *); 159 extern sense_reason_t target_alua_state_check(struct se_cmd *cmd);
|
/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 55 struct se_cmd *se_cmd; in _ft_dump_cmd() local 59 se_cmd = &cmd->se_cmd; in _ft_dump_cmd() 61 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd() 64 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd() 65 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd() 67 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, count) in _ft_dump_cmd() 103 percpu_ida_free(&sess->se_sess->sess_tag_pool, cmd->se_cmd.map_tag); in ft_free_cmd() 107 void ft_release_cmd(struct se_cmd *se_cmd) in ft_release_cmd() argument 109 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_release_cmd() 114 int ft_check_stop_free(struct se_cmd *se_cmd) in ft_check_stop_free() argument [all …]
|
D | tfc_io.c | 60 int ft_queue_data_in(struct se_cmd *se_cmd) in ft_queue_data_in() argument 62 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_data_in() 86 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in() 93 remaining = se_cmd->data_length; in ft_queue_data_in() 98 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in() 100 sg = se_cmd->t_data_sg; in ft_queue_data_in() 197 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in() 202 return ft_queue_status(se_cmd); in ft_queue_data_in() 209 target_execute_cmd(&cmd->se_cmd); in ft_execute_work() 217 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 155 int ft_check_stop_free(struct se_cmd *); 156 void ft_release_cmd(struct se_cmd *); 157 int ft_queue_status(struct se_cmd *); 158 int ft_queue_data_in(struct se_cmd *); 159 int ft_write_pending(struct se_cmd *); 160 int ft_write_pending_status(struct se_cmd *); 161 u32 ft_get_task_tag(struct se_cmd *); 162 int ft_get_cmd_state(struct se_cmd *); 163 void ft_queue_tm_resp(struct se_cmd *); [all …]
|
/drivers/scsi/qla2xxx/ |
D | tcm_qla2xxx.c | 375 transport_generic_free_cmd(&mcmd->se_cmd, 0); in tcm_qla2xxx_complete_mcmd() 398 transport_generic_free_cmd(&cmd->se_cmd, 0); in tcm_qla2xxx_complete_free() 416 static int tcm_qla2xxx_check_stop_free(struct se_cmd *se_cmd) in tcm_qla2xxx_check_stop_free() argument 420 if ((se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) == 0) { in tcm_qla2xxx_check_stop_free() 421 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in tcm_qla2xxx_check_stop_free() 425 return target_put_sess_cmd(se_cmd); in tcm_qla2xxx_check_stop_free() 431 static void tcm_qla2xxx_release_cmd(struct se_cmd *se_cmd) in tcm_qla2xxx_release_cmd() argument 435 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) { in tcm_qla2xxx_release_cmd() 436 struct qla_tgt_mgmt_cmd *mcmd = container_of(se_cmd, in tcm_qla2xxx_release_cmd() 437 struct qla_tgt_mgmt_cmd, se_cmd); in tcm_qla2xxx_release_cmd() [all …]
|
/drivers/target/loopback/ |
D | tcm_loop.c | 52 static int tcm_loop_queue_status(struct se_cmd *se_cmd); 57 static int tcm_loop_check_stop_free(struct se_cmd *se_cmd) in tcm_loop_check_stop_free() argument 64 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) in tcm_loop_check_stop_free() 70 transport_generic_free_cmd(se_cmd, 0); in tcm_loop_check_stop_free() 74 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) in tcm_loop_release_cmd() argument 76 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_release_cmd() 169 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_submission_work() local 205 se_cmd->se_cmd_flags |= SCF_BIDI; in tcm_loop_submission_work() 212 se_cmd->prot_pto = true; in tcm_loop_submission_work() 221 rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, in tcm_loop_submission_work() [all …]
|
/drivers/usb/gadget/legacy/ |
D | tcm_usb_gadget.c | 163 if (cmd->se_cmd.scsi_status == SAM_STAT_GOOD) { in bot_send_status() 216 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_read_response() local 227 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); in bot_send_read_response() 231 sg_copy_to_buffer(se_cmd->t_data_sg, in bot_send_read_response() 232 se_cmd->t_data_nents, in bot_send_read_response() 234 se_cmd->data_length); in bot_send_read_response() 239 fu->bot_req_in->num_sgs = se_cmd->t_data_nents; in bot_send_read_response() 240 fu->bot_req_in->sg = se_cmd->t_data_sg; in bot_send_read_response() 244 fu->bot_req_in->length = se_cmd->data_length; in bot_send_read_response() 258 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_write_request() local [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_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_configfs.c | 1731 static u32 iscsi_get_task_tag(struct se_cmd *se_cmd) in iscsi_get_task_tag() argument 1733 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in iscsi_get_task_tag() 1739 static int iscsi_get_cmd_state(struct se_cmd *se_cmd) in iscsi_get_cmd_state() argument 1741 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in iscsi_get_cmd_state() 1767 static int lio_queue_data_in(struct se_cmd *se_cmd) in lio_queue_data_in() argument 1769 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_queue_data_in() 1777 static int lio_write_pending(struct se_cmd *se_cmd) in lio_write_pending() argument 1779 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_write_pending() 1788 static int lio_write_pending_status(struct se_cmd *se_cmd) in lio_write_pending_status() argument 1790 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); in lio_write_pending_status() [all …]
|
D | iscsi_target.c | 507 !(cmd->se_cmd.transport_state & CMD_T_FABRIC_STOP)) in iscsit_aborted_task() 677 const bool do_put = cmd->se_cmd.se_tfo != NULL; in iscsit_add_reject_from_cmd() 710 target_put_sess_cmd(&cmd->se_cmd); in iscsit_add_reject_from_cmd() 743 sg = &cmd->se_cmd.t_data_sg[data_offset / PAGE_SIZE]; in iscsit_map_iovec() 809 u32 iov_count = max(1UL, DIV_ROUND_UP(cmd->se_cmd.data_length, PAGE_SIZE)); in iscsit_allocate_iovecs() 990 transport_init_se_cmd(&cmd->se_cmd, &lio_target_fabric_configfs->tf_ops, in iscsit_setup_scsi_cmd() 1000 target_get_sess_cmd(&cmd->se_cmd, true); in iscsit_setup_scsi_cmd() 1002 cmd->sense_reason = transport_lookup_cmd_lun(&cmd->se_cmd, in iscsit_setup_scsi_cmd() 1007 cmd->sense_reason = target_setup_cmd_from_cdb(&cmd->se_cmd, hdr->cdb); in iscsit_setup_scsi_cmd() 1030 core_alua_check_nonop_delay(&cmd->se_cmd); in iscsit_setup_scsi_cmd() [all …]
|
D | iscsi_target_util.c | 169 cmd->se_cmd.map_tag = tag; in iscsit_allocate_cmd() 333 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_check_unsolicited_dataout() local 340 transport_send_check_condition_and_sense(se_cmd, in iscsit_check_unsolicited_dataout() 351 transport_send_check_condition_and_sense(se_cmd, in iscsit_check_unsolicited_dataout() 359 if (((cmd->first_burst_len + payload_length) != cmd->se_cmd.data_length) && in iscsit_check_unsolicited_dataout() 366 conn->sess->sess_ops->FirstBurstLength, cmd->se_cmd.data_length); in iscsit_check_unsolicited_dataout() 367 transport_send_check_condition_and_sense(se_cmd, in iscsit_check_unsolicited_dataout() 690 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_release_cmd() local 706 percpu_ida_free(&sess->se_sess->sess_tag_pool, se_cmd->map_tag); in iscsit_release_cmd() 732 struct se_cmd *se_cmd = NULL; in iscsit_free_cmd() local [all …]
|
D | iscsi_target_erl1.c | 413 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_handle_recovery_datain() local 415 if (!(se_cmd->transport_state & CMD_T_COMPLETE)) { in iscsit_handle_recovery_datain() 924 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_execute_cmd() local 954 if (transport_check_aborted_status(se_cmd, in iscsit_execute_cmd() 961 return transport_send_check_condition_and_sense(se_cmd, in iscsit_execute_cmd() 971 target_execute_cmd(&cmd->se_cmd); in iscsit_execute_cmd() 983 if (transport_check_aborted_status(se_cmd, 1) in iscsit_execute_cmd() 1003 if (transport_check_aborted_status(se_cmd, 1) != 0) in iscsit_execute_cmd() 1008 return transport_handle_cdb_direct(&cmd->se_cmd); in iscsit_execute_cmd() 1016 if (cmd->se_cmd.se_tmr_req->response) { in iscsit_execute_cmd() [all …]
|
/drivers/xen/ |
D | xen-scsiback.c | 141 struct se_cmd se_cmd; member 386 resid = pending_req->se_cmd.residual_count; in scsiback_cmd_done() 399 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_cmd_exec() local 405 memset(se_cmd, 0, sizeof(*se_cmd)); in scsiback_cmd_exec() 408 rc = target_submit_cmd_map_sgls(se_cmd, sess, pending_req->cmnd, in scsiback_cmd_exec() 415 transport_send_check_condition_and_sense(se_cmd, in scsiback_cmd_exec() 417 transport_generic_free_cmd(se_cmd, 0); in scsiback_cmd_exec() 603 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_device_action() local 612 transport_init_se_cmd(se_cmd, tpg->se_tpg.se_tpg_tfo, in scsiback_device_action() 616 rc = core_tmr_alloc_req(se_cmd, tmr, act, GFP_KERNEL); in scsiback_device_action() [all …]
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 67 isert_prot_cmd(struct isert_conn *conn, struct se_cmd *cmd) in isert_prot_cmd() 1314 sg = &cmd->se_cmd.t_data_sg[0]; in isert_handle_scsi_cmd() 1324 if (cmd->write_data_done == cmd->se_cmd.data_length) { in isert_handle_scsi_cmd() 1337 target_put_sess_cmd(&cmd->se_cmd); in isert_handle_scsi_cmd() 1368 unsol_data_len, cmd->write_data_done, cmd->se_cmd.data_length); in isert_handle_iscsi_dataout() 1371 sg_start = &cmd->se_cmd.t_data_sg[sg_off]; in isert_handle_iscsi_dataout() 1753 cmd->se_cmd.t_state == TRANSPORT_WRITE_PENDING) { in isert_put_cmd() 1754 struct se_cmd *se_cmd = &cmd->se_cmd; in isert_put_cmd() local 1756 target_put_sess_cmd(se_cmd); in isert_put_cmd() 1761 transport_generic_free_cmd(&cmd->se_cmd, 0); in isert_put_cmd() [all …]
|
/drivers/vhost/ |
D | scsi.c | 99 struct se_cmd tvc_se_cmd; 458 static void tcm_vhost_release_cmd(struct se_cmd *se_cmd) in tcm_vhost_release_cmd() argument 460 struct tcm_vhost_cmd *tv_cmd = container_of(se_cmd, in tcm_vhost_release_cmd() 462 struct se_session *se_sess = se_cmd->se_sess; in tcm_vhost_release_cmd() 475 percpu_ida_free(&se_sess->sess_tag_pool, se_cmd->map_tag); in tcm_vhost_release_cmd() 493 static int tcm_vhost_write_pending(struct se_cmd *se_cmd) in tcm_vhost_write_pending() argument 496 target_execute_cmd(se_cmd); in tcm_vhost_write_pending() 500 static int tcm_vhost_write_pending_status(struct se_cmd *se_cmd) in tcm_vhost_write_pending_status() argument 510 static u32 tcm_vhost_get_task_tag(struct se_cmd *se_cmd) in tcm_vhost_get_task_tag() argument 515 static int tcm_vhost_get_cmd_state(struct se_cmd *se_cmd) in tcm_vhost_get_cmd_state() argument [all …]
|
/drivers/target/sbp/ |
D | sbp_target.c | 1238 if (target_submit_cmd(&req->se_cmd, sess->se_sess, req->cmd_buf, in sbp_handle_command() 1270 if (req->se_cmd.data_direction == DMA_FROM_DEVICE) { in sbp_rw_data() 1304 length = req->se_cmd.data_length; in sbp_rw_data() 1307 sg_miter_start(&iter, req->se_cmd.t_data_sg, req->se_cmd.t_data_nents, in sbp_rw_data() 1371 struct se_cmd *se_cmd = &req->se_cmd; in sbp_sense_mangle() local 1375 WARN_ON(se_cmd->scsi_sense_length < 18); in sbp_sense_mangle() 1401 status[0] |= se_cmd->scsi_status & 0x3f;/* status */ in sbp_sense_mangle() 1406 status[2] = se_cmd->scsi_asc; /* sense_code */ in sbp_sense_mangle() 1407 status[3] = se_cmd->scsi_ascq; /* sense_qualifier */ in sbp_sense_mangle() 1438 struct se_cmd *se_cmd = &req->se_cmd; in sbp_send_sense() local [all …]
|