/linux-master/include/target/ |
H A D | target_core_backend.h | 45 sense_reason_t (*parse_cdb)(struct se_cmd *cmd); 55 unsigned char *(*get_sense_buffer)(struct se_cmd *); 66 sense_reason_t (*execute_rw)(struct se_cmd *cmd, struct scatterlist *, 68 sense_reason_t (*execute_sync_cache)(struct se_cmd *cmd); 69 sense_reason_t (*execute_write_same)(struct se_cmd *cmd); 70 sense_reason_t (*execute_unmap)(struct se_cmd *cmd, 72 sense_reason_t (*execute_pr_out)(struct se_cmd *cmd, u8 sa, u64 key, 74 sense_reason_t (*execute_pr_in)(struct se_cmd *cmd, u8 sa, 81 void target_complete_cmd(struct se_cmd *, u8); 82 void target_set_cmd_data_length(struct se_cmd *, in [all...] |
H A D | target_core_fabric.h | 29 * target-core will currently reset se_cmd->data_length to this 60 * Optional to release struct se_cmd and fabric dependent allocated 66 int (*check_stop_free)(struct se_cmd *); 67 void (*release_cmd)(struct se_cmd *); 76 int (*write_pending)(struct se_cmd *); 78 int (*get_cmd_state)(struct se_cmd *); 79 int (*queue_data_in)(struct se_cmd *); 80 int (*queue_status)(struct se_cmd *); 81 void (*queue_tm_rsp)(struct se_cmd *); 82 void (*aborted_task)(struct se_cmd *); 240 target_reverse_dma_direction(struct se_cmd *se_cmd) argument [all...] |
/linux-master/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 35 struct se_cmd *se_cmd; local 39 se_cmd = &cmd->se_cmd; 40 pr_debug("%s: cmd %p sess %p seq %p se_cmd %p\n", 41 caller, cmd, cmd->sess, cmd->seq, se_cmd); 44 caller, cmd, se_cmd->t_data_nents, 45 se_cmd->data_length, se_cmd->se_cmd_flags); 47 for_each_sg(se_cmd 85 ft_release_cmd(struct se_cmd *se_cmd) argument 92 ft_check_stop_free(struct se_cmd *se_cmd) argument 100 ft_queue_status(struct se_cmd *se_cmd) argument 177 ft_write_pending(struct se_cmd *se_cmd) argument 375 ft_queue_tm_resp(struct se_cmd *se_cmd) argument 410 ft_aborted_task(struct se_cmd *se_cmd) argument [all...] |
H A D | tcm_fc.h | 109 struct se_cmd se_cmd; /* Local TCM I/O descriptor */ member in struct:ft_cmd 144 int ft_check_stop_free(struct se_cmd *); 145 void ft_release_cmd(struct se_cmd *); 146 int ft_queue_status(struct se_cmd *); 147 int ft_queue_data_in(struct se_cmd *); 148 int ft_write_pending(struct se_cmd *); 149 void ft_queue_tm_resp(struct se_cmd *); 150 void ft_aborted_task(struct se_cmd *);
|
H A D | tfc_io.c | 41 int ft_queue_data_in(struct se_cmd *se_cmd) argument 43 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); 67 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) 74 remaining = se_cmd->data_length; 79 BUG_ON(remaining && !se_cmd->t_data_sg); 81 sg = se_cmd->t_data_sg; 177 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; 182 return ft_queue_status(se_cmd); 197 struct se_cmd *se_cmd = &cmd->se_cmd; local [all...] |
/linux-master/drivers/target/ |
H A D | target_core_tmr.c | 27 struct se_cmd *se_cmd, 40 se_cmd->se_cmd_flags |= SCF_SCSI_TMR_CDB; 41 se_cmd->se_tmr_req = tmr; 42 tmr->task_cmd = se_cmd; 57 struct se_cmd *cmd) 71 static bool __target_check_io_state(struct se_cmd *se_cmd, argument 74 struct se_session *sess = se_cmd->se_sess; 81 * this se_cmd ha 26 core_tmr_alloc_req( struct se_cmd *se_cmd, void *fabric_tmr_ptr, u8 function, gfp_t gfp_flags) argument 111 struct se_cmd *se_cmd, *next; local [all...] |
H A D | target_core_xcopy.c | 116 static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, argument 176 xop->src_dev = se_cmd->se_dev; 193 xop->dst_dev = se_cmd->se_dev; 202 static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, argument 206 struct se_device *local_dev = se_cmd->se_dev; 242 rc = target_xcopy_parse_tiddesc_e4(se_cmd, xop, 260 rc = target_xcopy_locate_se_dev_e4(se_cmd->se_sess, 266 rc = target_xcopy_locate_se_dev_e4(se_cmd 392 struct se_cmd se_cmd; member in struct:xcopy_pt_cmd 401 xcopy_pt_get_cmd_state(struct se_cmd *se_cmd) argument 416 xcopy_pt_release_cmd(struct se_cmd *se_cmd) argument 425 xcopy_pt_check_stop_free(struct se_cmd *se_cmd) argument 434 xcopy_pt_write_pending(struct se_cmd *se_cmd) argument 439 xcopy_pt_queue_data_in(struct se_cmd *se_cmd) argument 444 xcopy_pt_queue_status(struct se_cmd *se_cmd) argument 552 struct se_cmd *se_cmd = &xpt_cmd->se_cmd; local 578 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; local 623 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; local 789 struct se_cmd *se_cmd = xop->xop_se_cmd; local 874 target_do_xcopy(struct se_cmd *se_cmd) argument 917 target_rcr_operating_parameters(struct se_cmd *se_cmd) argument 1007 target_do_receive_copy_results(struct se_cmd *se_cmd) argument [all...] |
H A D | target_core_pr.h | 62 extern sense_reason_t target_scsi2_reservation_release(struct se_cmd *); 63 extern sense_reason_t target_scsi2_reservation_reserve(struct se_cmd *); 76 extern sense_reason_t target_scsi3_emulate_pr_in(struct se_cmd *); 77 extern sense_reason_t target_scsi3_emulate_pr_out(struct se_cmd *); 78 extern sense_reason_t target_check_reservation(struct se_cmd *);
|
H A D | target_core_ua.h | 36 extern sense_reason_t target_scsi3_ua_check(struct se_cmd *); 40 extern bool core_scsi3_ua_for_check_condition(struct se_cmd *, u8 *, u8 *, 42 extern int core_scsi3_ua_clear_for_request_sense(struct se_cmd *,
|
H A D | target_core_xcopy.h | 24 struct se_cmd *xop_se_cmd; 67 extern sense_reason_t target_do_xcopy(struct se_cmd *); 68 extern sense_reason_t target_do_receive_copy_results(struct se_cmd *);
|
H A D | target_core_transport.c | 54 static void transport_complete_task_attr(struct se_cmd *cmd); 55 static void translate_sense_reason(struct se_cmd *cmd, sense_reason_t reason); 56 static void transport_handle_queue_full(struct se_cmd *cmd, 696 static void target_remove_from_state_list(struct se_cmd *cmd) 712 static void target_remove_from_tmr_list(struct se_cmd *cmd) 734 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) 757 * allocated I/O reference and struct se_cmd now. 759 * Fabric modules are expected to return '1' here if the se_cmd being 765 static void transport_lun_remove_cmd(struct se_cmd *cmd) 779 * Clear struct se_cmd 1688 target_init_cmd(struct se_cmd *se_cmd, struct se_session *se_sess, unsigned char *sense, u64 unpacked_lun, u32 data_length, int task_attr, int data_dir, int flags) argument 1745 target_submit_prep(struct se_cmd *se_cmd, unsigned char *cdb, struct scatterlist *sgl, u32 sgl_count, struct scatterlist *sgl_bidi, u32 sgl_bidi_count, struct scatterlist *sgl_prot, u32 sgl_prot_count, gfp_t gfp) argument 1830 target_submit_cmd(struct se_cmd *se_cmd, struct se_session *se_sess, unsigned char *cdb, unsigned char *sense, u64 unpacked_lun, u32 data_length, int task_attr, int data_dir, int flags) argument 1883 struct se_cmd *se_cmd, *next_cmd; local 1911 target_queue_submission(struct se_cmd *se_cmd) argument 1929 target_submit(struct se_cmd *se_cmd) argument 1953 struct se_cmd *se_cmd = container_of(work, struct se_cmd, work); local 1979 target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, unsigned char *sense, u64 unpacked_lun, void *fabric_tmr_ptr, unsigned char tm_type, gfp_t gfp, u64 tag, int flags) argument 2994 target_get_sess_cmd(struct se_cmd *se_cmd, bool ack_kref) argument 3035 struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); local 3058 target_put_sess_cmd(struct se_cmd *se_cmd) argument [all...] |
H A D | target_core_device.c | 48 transport_lookup_cmd_lun(struct se_cmd *se_cmd) argument 51 struct se_session *se_sess = se_cmd->se_sess; 57 deve = target_nacl_find_deve(nacl, se_cmd->orig_fe_lun); 61 if (se_cmd->data_direction == DMA_TO_DEVICE) 62 atomic_long_add(se_cmd->data_length, 64 else if (se_cmd->data_direction == DMA_FROM_DEVICE) 65 atomic_long_add(se_cmd->data_length, 68 if ((se_cmd->data_direction == DMA_TO_DEVICE) && 72 se_cmd 143 transport_lookup_tmr_lun(struct se_cmd *se_cmd) argument [all...] |
H A D | target_core_alua.h | 85 extern sense_reason_t target_emulate_report_target_port_groups(struct se_cmd *); 86 extern sense_reason_t target_emulate_set_target_port_groups(struct se_cmd *); 87 extern sense_reason_t target_emulate_report_referrals(struct se_cmd *); 88 extern int core_alua_check_nonop_delay(struct se_cmd *); 149 extern sense_reason_t target_alua_state_check(struct se_cmd *cmd);
|
H A D | target_core_internal.h | 117 struct list_head *, struct se_cmd *); 142 unsigned char *transport_dump_cmd_direction(struct se_cmd *); 151 sense_reason_t target_cmd_size_check(struct se_cmd *cmd, unsigned int size); 156 void __target_execute_cmd(struct se_cmd *, bool);
|
H A D | target_core_user.c | 177 struct se_cmd *se_cmd; member in struct:tcmu_cmd 183 /* Can't use se_cmd when cleaning up expired cmds, because if 184 cmd has been completed then accessing se_cmd is off limits */ 581 struct se_cmd *se_cmd = cmd->se_cmd; local 584 cmd->dbi_cnt = DIV_ROUND_UP(se_cmd->data_length, blk_size); 586 if (se_cmd->se_cmd_flags & SCF_BIDI) { 587 BUG_ON(!(se_cmd 633 tcmu_alloc_cmd(struct se_cmd *se_cmd) argument 777 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; local 786 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; local 903 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; local 1015 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; local 1203 tcmu_queue_cmd(struct se_cmd *se_cmd) argument 1261 struct se_cmd *se_cmd; local 1323 struct se_cmd *se_cmd = cmd->se_cmd; local 1520 struct se_cmd *se_cmd; local 1539 struct se_cmd *se_cmd; local [all...] |
/linux-master/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 239 transport_generic_free_cmd(&mcmd->se_cmd, 0); 273 transport_generic_free_cmd(&cmd->se_cmd, 0); 288 cmd->se_cmd.map_tag = tag; 289 cmd->se_cmd.map_cpu = cpu; 296 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); 319 static int tcm_qla2xxx_check_stop_free(struct se_cmd *se_cmd) argument 323 if ((se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) == 0) { 324 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); 334 tcm_qla2xxx_release_cmd(struct se_cmd *se_cmd) argument 380 tcm_qla2xxx_write_pending(struct se_cmd *se_cmd) argument 419 tcm_qla2xxx_get_cmd_state(struct se_cmd *se_cmd) argument 437 struct se_cmd *se_cmd = &cmd->se_cmd; local 561 struct se_cmd *se_cmd = &cmd->se_cmd; local 579 struct se_cmd *se_cmd = &mcmd->se_cmd; local 642 tcm_qla2xxx_queue_data_in(struct se_cmd *se_cmd) argument 681 tcm_qla2xxx_queue_status(struct se_cmd *se_cmd) argument 727 tcm_qla2xxx_queue_tm_rsp(struct se_cmd *se_cmd) argument 761 tcm_qla2xxx_aborted_task(struct se_cmd *se_cmd) argument [all...] |
/linux-master/drivers/target/loopback/ |
H A D | tcm_loop.c | 46 static int tcm_loop_queue_status(struct se_cmd *se_cmd); 60 static int tcm_loop_check_stop_free(struct se_cmd *se_cmd) argument 62 return transport_generic_free_cmd(se_cmd, 0); 65 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) argument 67 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, 71 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) 103 struct se_cmd *se_cm local 192 struct se_cmd *se_cmd; local 488 tcm_loop_get_cmd_state(struct se_cmd *se_cmd) argument 496 tcm_loop_write_pending(struct se_cmd *se_cmd) argument 511 tcm_loop_queue_data_or_status(const char *func, struct se_cmd *se_cmd, u8 scsi_status) argument 538 tcm_loop_queue_data_in(struct se_cmd *se_cmd) argument 543 tcm_loop_queue_status(struct se_cmd *se_cmd) argument 549 tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) argument 558 tcm_loop_aborted_task(struct se_cmd *se_cmd) argument [all...] |
H A D | tcm_loop.h | 4 #include <target/target_core_base.h> /* struct se_cmd */ 18 struct se_cmd tl_se_cmd;
|
/linux-master/drivers/usb/gadget/function/ |
H A D | f_tcm.c | 64 transport_generic_free_cmd(&cmd->se_cmd, 0); 152 if (cmd->se_cmd.scsi_status == SAM_STAT_GOOD) { 205 struct se_cmd *se_cmd = &cmd->se_cmd; local 216 cmd->data_buf = kmalloc(se_cmd->data_length, GFP_ATOMIC); 220 sg_copy_to_buffer(se_cmd->t_data_sg, 221 se_cmd->t_data_nents, 223 se_cmd->data_length); 228 fu->bot_req_in->num_sgs = se_cmd 247 struct se_cmd *se_cmd = &cmd->se_cmd; local 512 struct se_cmd *se_cmd = &cmd->se_cmd; local 545 struct se_cmd *se_cmd = &cmd->se_cmd; local 676 struct se_cmd *se_cmd = &cmd->se_cmd; local 958 struct se_cmd *se_cmd = &cmd->se_cmd; local 981 struct se_cmd *se_cmd = &cmd->se_cmd; local 1004 usbg_send_status_response(struct se_cmd *se_cmd) argument 1016 usbg_send_write_request(struct se_cmd *se_cmd) argument 1028 usbg_send_read_response(struct se_cmd *se_cmd) argument 1043 struct se_cmd *se_cmd; local 1172 struct se_cmd *se_cmd; local 1272 usbg_release_cmd(struct se_cmd *se_cmd) argument 1282 usbg_queue_tm_rsp(struct se_cmd *se_cmd) argument 1286 usbg_aborted_task(struct se_cmd *se_cmd) argument 1659 usbg_check_stop_free(struct se_cmd *se_cmd) argument [all...] |
H A D | tcm.h | 72 struct se_cmd se_cmd; member in struct:usbg_cmd
|
/linux-master/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 76 isert_prot_cmd(struct isert_conn *conn, struct se_cmd *cmd) 1065 data_len = cmd->se_cmd.data_length; 1068 cmd->se_cmd.se_cmd_flags |= SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC; 1082 sg_copy_from_buffer(cmd->se_cmd.t_data_sg, sg_nents, 1088 cmd->se_cmd.t_data_sg = &isert_cmd->sg; 1089 cmd->se_cmd.t_data_nents = 1; 1098 if (cmd->write_data_done == cmd->se_cmd.data_length) { 1111 target_put_sess_cmd(&cmd->se_cmd); 1144 cmd->se_cmd.data_length); 1147 sg_start = &cmd->se_cmd 1411 struct se_cmd *se_cmd = &cmd->iscsit_cmd->se_cmd; local 1457 struct se_cmd *se_cmd = &cmd->se_cmd; local 1532 isert_check_pi_status(struct se_cmd *se_cmd, struct ib_mr *sig_mr) argument 1625 struct se_cmd *se_cmd = &cmd->se_cmd; local 1983 isert_set_dif_domain(struct se_cmd *se_cmd, struct ib_sig_domain *domain) argument 2003 isert_set_sig_attrs(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs) argument 2042 struct se_cmd *se_cmd = &cmd->iscsit_cmd->se_cmd; local 2097 struct se_cmd *se_cmd = &cmd->se_cmd; local [all...] |
/linux-master/drivers/target/iscsi/ |
H A D | iscsi_target_tmr.c | 37 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; 113 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; 157 if (ref_lun != ref_cmd->se_cmd.orig_fe_lun) { 160 ref_lun, ref_cmd->se_cmd.orig_fe_lun); 233 struct se_cmd *se_cmd = &cmd->se_cmd; local 252 if (!(cmd->se_cmd.transport_state & CMD_T_SENT)) { 255 cmd->init_task_tag, cmd->se_cmd.t_state); 256 target_execute_cmd(se_cmd); 304 struct se_cmd *se_cmd = &cmd->se_cmd; local [all...] |
H A D | iscsi_target_seq_pdu_list.c | 213 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) 224 unsolicited_data_length = min(cmd->se_cmd.data_length, 227 while (offset < cmd->se_cmd.data_length) { 240 if ((offset + mdsl) >= cmd->se_cmd.data_length) { 242 (cmd->se_cmd.data_length - offset); 243 offset += (cmd->se_cmd.data_length - offset); 262 if ((offset + mdsl) >= cmd->se_cmd.data_length) { 263 offset += (cmd->se_cmd.data_length - offset); 296 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) 310 unsolicited_data_length = min(cmd->se_cmd [all...] |
H A D | iscsi_target_configfs.c | 1359 static int iscsi_get_cmd_state(struct se_cmd *se_cmd) argument 1361 struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); 1385 static int lio_queue_data_in(struct se_cmd *se_cmd) argument 1387 struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); 1394 static int lio_write_pending(struct se_cmd *se_cmd) argument 1405 lio_queue_status(struct se_cmd *se_cmd) argument 1418 lio_queue_tm_rsp(struct se_cmd *se_cmd) argument 1426 lio_aborted_task(struct se_cmd *se_cmd) argument 1529 lio_check_stop_free(struct se_cmd *se_cmd) argument 1534 lio_release_cmd(struct se_cmd *se_cmd) argument [all...] |
/linux-master/drivers/xen/ |
H A D | xen-scsiback.c | 135 struct se_cmd se_cmd; member in struct:vscsibk_pend 404 resid = pending_req->se_cmd.residual_count; 416 * final se_cmd->cmd_kref put. 418 target_put_sess_cmd(&pending_req->se_cmd); 423 struct se_cmd *se_cmd = &pending_req->se_cmd; local 427 se_cmd->tag = pending_req->rqid; 428 target_init_cmd(se_cmd, ses 620 struct se_cmd *se_cmd = &pending_req->se_cmd; local 1410 scsiback_check_stop_free(struct se_cmd *se_cmd) argument 1415 scsiback_release_cmd(struct se_cmd *se_cmd) argument 1420 scsiback_write_pending(struct se_cmd *se_cmd) argument 1428 scsiback_queue_data_in(struct se_cmd *se_cmd) argument 1438 scsiback_queue_status(struct se_cmd *se_cmd) argument 1454 scsiback_queue_tm_rsp(struct se_cmd *se_cmd) argument 1462 scsiback_aborted_task(struct se_cmd *se_cmd) argument [all...] |