/openbmc/linux/drivers/target/ |
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_spc.c | 733 spc_emulate_inquiry(struct se_cmd *cmd) in spc_emulate_inquiry() 1306 spc_emulate_testunitready(struct se_cmd *cmd) in spc_emulate_testunitready() 1428 struct se_cmd *cmd) in tcm_is_ws_enabled() 1456 struct se_cmd *cmd) in tcm_is_caw_enabled() 1497 struct se_cmd *cmd) in tcm_is_rep_ref_enabled() 1543 struct se_cmd *cmd) in tcm_is_unmap_enabled() 1666 struct se_cmd *cmd) in tcm_is_pr_enabled() 1884 struct se_cmd *cmd) in tcm_is_3pc_enabled() 1946 struct se_cmd *cmd) in spc_rsoc_enabled() 1967 struct se_cmd *cmd) in tcm_is_set_tpg_enabled() [all …]
|
H A D | target_core_sbc.c | 32 sbc_emulate_readcapacity(struct se_cmd *cmd) in sbc_emulate_readcapacity() 75 sbc_emulate_readcapacity_16(struct se_cmd *cmd) in sbc_emulate_readcapacity_16() 138 sbc_emulate_startstop(struct se_cmd *cmd) in sbc_emulate_startstop() 169 sector_t sbc_get_write_same_sectors(struct se_cmd *cmd) in sbc_get_write_same_sectors() 193 sbc_execute_write_same_unmap(struct se_cmd *cmd) in sbc_execute_write_same_unmap() 210 sbc_emulate_noop(struct se_cmd *cmd) in sbc_emulate_noop() 342 sbc_execute_rw(struct se_cmd *cmd) in sbc_execute_rw() 568 sbc_compare_and_write(struct se_cmd *cmd) in sbc_compare_and_write() 607 bool is_write, struct se_cmd *cmd) in sbc_set_prot_op_checks() 1078 sbc_execute_unmap(struct se_cmd *cmd) in sbc_execute_unmap() [all …]
|
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_iblock.c | 336 struct se_cmd *cmd = bio->bi_private; in iblock_bio_done() 394 struct se_cmd *cmd = bio->bi_private; in iblock_end_io_flush() 414 iblock_execute_sync_cache(struct se_cmd *cmd) in iblock_execute_sync_cache() 437 iblock_execute_unmap(struct se_cmd *cmd, sector_t lba, sector_t nolb) in iblock_execute_unmap() 456 iblock_execute_zero_out(struct block_device *bdev, struct se_cmd *cmd) in iblock_execute_zero_out() 489 iblock_execute_write_same(struct se_cmd *cmd) in iblock_execute_write_same() 670 iblock_alloc_bip(struct se_cmd *cmd, struct bio *bio, in iblock_alloc_bip() 960 static sense_reason_t iblock_pr_read_keys(struct se_cmd *cmd, in iblock_pr_read_keys() 1029 static sense_reason_t iblock_pr_read_reservation(struct se_cmd *cmd, in iblock_pr_read_reservation() 1070 static sense_reason_t iblock_execute_pr_in(struct se_cmd *cmd, u8 sa, in iblock_execute_pr_in() [all …]
|
H A D | target_core_file.c | 246 struct se_cmd *cmd; 266 fd_execute_rw_aio(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents, in fd_execute_rw_aio() 312 static int fd_do_rw(struct se_cmd *cmd, struct file *fd, in fd_do_rw() 385 fd_execute_sync_cache(struct se_cmd *cmd) in fd_execute_sync_cache() 430 fd_execute_write_same(struct se_cmd *cmd) in fd_execute_write_same() 518 fd_do_prot_unmap(struct se_cmd *cmd, sector_t lba, sector_t nolb) in fd_do_prot_unmap() 537 fd_execute_unmap(struct se_cmd *cmd, sector_t lba, sector_t nolb) in fd_execute_unmap() 588 fd_execute_rw_buffered(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents, in fd_execute_rw_buffered() 672 fd_execute_rw(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents, in fd_execute_rw() 911 fd_parse_cdb(struct se_cmd *cmd) in fd_parse_cdb()
|
H A D | target_core_ua.c | 26 target_scsi3_ua_check(struct se_cmd *cmd) in target_scsi3_ua_check() 193 bool core_scsi3_ua_for_check_condition(struct se_cmd *cmd, u8 *key, u8 *asc, in core_scsi3_ua_for_check_condition() 267 struct se_cmd *cmd, in core_scsi3_ua_clear_for_request_sense()
|
H A D | target_core_pr.c | 87 target_scsi2_reservation_check(struct se_cmd *cmd) in target_scsi2_reservation_check() 201 target_scsi2_reservation_release(struct se_cmd *cmd) in target_scsi2_reservation_release() 242 target_scsi2_reservation_reserve(struct se_cmd *cmd) in target_scsi2_reservation_reserve() 564 target_scsi3_pr_reservation_check(struct se_cmd *cmd) in target_scsi3_pr_reservation_check() 1463 struct se_cmd *cmd, in core_scsi3_decode_spec_i_port() 3576 target_scsi3_emulate_pr_out(struct se_cmd *cmd) in target_scsi3_emulate_pr_out() 3734 core_scsi3_pri_read_keys(struct se_cmd *cmd) in core_scsi3_pri_read_keys() 3788 core_scsi3_pri_read_reservation(struct se_cmd *cmd) in core_scsi3_pri_read_reservation() 3924 core_scsi3_pri_read_full_status(struct se_cmd *cmd) in core_scsi3_pri_read_full_status() 4113 target_scsi3_emulate_pr_in(struct se_cmd *cmd) in target_scsi3_emulate_pr_in() [all …]
|
H A D | target_core_alua.c | 56 target_emulate_report_referrals(struct se_cmd *cmd) in target_emulate_report_referrals() 136 target_emulate_report_target_port_groups(struct se_cmd *cmd) in target_emulate_report_target_port_groups() 271 target_emulate_set_target_port_groups(struct se_cmd *cmd) in target_emulate_set_target_port_groups() 435 struct se_cmd *cmd, in core_alua_state_nonoptimized() 449 struct se_cmd *cmd, in core_alua_state_lba_dependent() 519 struct se_cmd *cmd, in core_alua_state_standby() 572 struct se_cmd *cmd, in core_alua_state_unavailable() 609 struct se_cmd *cmd, in core_alua_state_transition() 644 target_alua_state_check(struct se_cmd *cmd) in target_alua_state_check() 836 struct se_cmd *cmd) in core_alua_check_nonop_delay()
|
/openbmc/linux/drivers/target/iscsi/ |
H A D | iscsi_target_erl1.c | 381 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_handle_recovery_datain() local 383 if (!(se_cmd->transport_state & CMD_T_COMPLETE)) { in iscsit_handle_recovery_datain() 889 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_execute_cmd() local 912 if (cmd->se_cmd.transport_state & CMD_T_ABORTED) in iscsit_execute_cmd() 924 target_execute_cmd(&cmd->se_cmd); in iscsit_execute_cmd() 946 if (cmd->se_cmd.transport_state & CMD_T_ABORTED) in iscsit_execute_cmd() 951 return transport_handle_cdb_direct(&cmd->se_cmd); in iscsit_execute_cmd() 959 if (cmd->se_cmd.se_tmr_req->response) { in iscsit_execute_cmd() 1062 cmd->se_cmd.data_length) ? in iscsit_set_dataout_timeout_values() 1063 cmd->se_cmd.data_length : in iscsit_set_dataout_timeout_values() [all …]
|
H A D | iscsi_target_util.c | 171 cmd->se_cmd.map_tag = tag; in iscsit_allocate_cmd() 172 cmd->se_cmd.map_cpu = cpu; in iscsit_allocate_cmd() 339 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_check_unsolicited_dataout() local 346 transport_send_check_condition_and_sense(se_cmd, in iscsit_check_unsolicited_dataout() 357 transport_send_check_condition_and_sense(se_cmd, in iscsit_check_unsolicited_dataout() 700 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_release_cmd() local 719 target_free_tag(sess->se_sess, se_cmd); in iscsit_release_cmd() 747 struct se_cmd *se_cmd = cmd->se_cmd.se_tfo ? &cmd->se_cmd : NULL; in iscsit_free_cmd() local 753 if (se_cmd) { in iscsit_free_cmd() 755 if (!rc && shutdown && se_cmd->se_sess) { in iscsit_free_cmd() [all …]
|
H A D | iscsi_target_erl0.c | 41 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values() 51 cmd->seq_end_offset = (cmd->se_cmd.data_length > in iscsit_set_dataout_sequence_values() 59 cmd->se_cmd.data_length) ? cmd->se_cmd.data_length : in iscsit_set_dataout_sequence_values() 157 transport_send_check_condition_and_sense(&cmd->se_cmd, in iscsit_dataout_check_unsolicited_sequence() 175 if ((first_burst_len != cmd->se_cmd.data_length) && in iscsit_dataout_check_unsolicited_sequence() 181 cmd->se_cmd.data_length); in iscsit_dataout_check_unsolicited_sequence() 182 transport_send_check_condition_and_sense(&cmd->se_cmd, in iscsit_dataout_check_unsolicited_sequence() 194 if (first_burst_len == cmd->se_cmd.data_length) { in iscsit_dataout_check_unsolicited_sequence() 288 cmd->se_cmd.data_length)) { in iscsit_dataout_check_sequence() 313 cmd->se_cmd.data_length) { in iscsit_dataout_check_sequence() [all …]
|
H A D | iscsi_target_datain_values.c | 103 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_yes_and_yes() 202 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_no_and_yes() 221 cmd->se_cmd.data_length) { in iscsit_set_datain_values_no_and_yes() 222 datain->length = (cmd->se_cmd.data_length - offset); in iscsit_set_datain_values_no_and_yes() 254 if ((read_data_done + datain->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_yes() 323 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_yes_and_no() 334 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) { in iscsit_set_datain_values_yes_and_no() 423 read_data_left = (cmd->se_cmd.data_length - read_data_done); in iscsit_set_datain_values_no_and_no() 453 if ((read_data_done + pdu->length) == cmd->se_cmd.data_length) in iscsit_set_datain_values_no_and_no()
|
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | libsrp.c | 171 sg = cmd->se_cmd.t_data_sg; in srp_direct_data() 172 nsg = dma_map_sg(iue->target->dev, sg, cmd->se_cmd.t_data_nents, in srp_direct_data() 176 cmd->se_cmd.t_data_nents); in srp_direct_data() 179 len = min(cmd->se_cmd.data_length, be32_to_cpu(md->len)); in srp_direct_data() 206 sg = cmd->se_cmd.t_data_sg; in srp_indirect_data() 243 nsg = dma_map_sg(iue->target->dev, sg, cmd->se_cmd.t_data_nents, in srp_indirect_data() 247 cmd->se_cmd.t_data_nents); in srp_indirect_data() 251 len = min(cmd->se_cmd.data_length, be32_to_cpu(id->len)); in srp_indirect_data() 304 if (!cmd->se_cmd.t_data_nents) in srp_transfer_data()
|
H A D | ibmvscsi_tgt.h | 157 struct se_cmd se_cmd; member
|
/openbmc/linux/drivers/scsi/elx/efct/ |
H A D | efct_lio.c | 288 static int efct_lio_check_stop_free(struct se_cmd *se_cmd) in efct_lio_check_stop_free() argument 295 return target_put_sess_cmd(se_cmd); in efct_lio_check_stop_free() 308 efct_lio_aborted_task(struct se_cmd *se_cmd) in efct_lio_aborted_task() argument 326 static void efct_lio_release_cmd(struct se_cmd *se_cmd) in efct_lio_release_cmd() argument 366 struct se_cmd *cmd = &ocp->cmd; in efct_lio_sg_map() 379 struct se_cmd *cmd = &ocp->cmd; in efct_lio_sg_unmap() 418 efct_lio_write_pending(struct se_cmd *cmd) in efct_lio_write_pending() 536 struct se_cmd *cmd = &io->tgt_io.cmd; in efct_lio_send_resp() 652 efct_lio_queue_status(struct se_cmd *cmd) in efct_lio_queue_status() 1324 struct se_cmd *se_cmd = &io->tgt_io.cmd; in efct_scsi_recv_cmd() local [all …]
|
/openbmc/linux/drivers/target/tcm_remote/ |
H A D | tcm_remote.c | 42 static int tcm_remote_dummy_cmd_fn(struct se_cmd *se_cmd) in tcm_remote_dummy_cmd_fn() argument 47 static void tcm_remote_dummy_cmd_void_fn(struct se_cmd *se_cmd) in tcm_remote_dummy_cmd_void_fn() argument
|
/openbmc/linux/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_ddp.c | 245 ttinfo->sgl = cmd->se_cmd.t_data_sg; in cxgbit_get_r2t_ttt() 246 ttinfo->nents = cmd->se_cmd.t_data_nents; in cxgbit_get_r2t_ttt() 248 ret = cxgbit_ddp_reserve(csk, ttinfo, cmd->se_cmd.data_length); in cxgbit_get_r2t_ttt() 251 csk, cmd, cmd->se_cmd.data_length, ttinfo->nents); in cxgbit_get_r2t_ttt() 268 if (cmd->se_cmd.se_cmd_flags & SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC) { in cxgbit_unmap_cmd() 281 cmd->se_cmd.data_length)) in cxgbit_unmap_cmd()
|
H A D | cxgbit_target.c | 355 sg = &cmd->se_cmd.t_data_sg[data_offset / PAGE_SIZE]; in cxgbit_map_skb() 400 u32 data_length = cmd->se_cmd.data_length; in cxgbit_tx_datain_iso() 403 bool task_sense = !!(cmd->se_cmd.se_cmd_flags & in cxgbit_tx_datain_iso() 518 u32 data_length = cmd->se_cmd.data_length; in cxgbit_xmit_datain_pdu() 889 cmd->se_cmd.t_data_sg = &ccmd->sg; in cxgbit_handle_immediate_data() 890 cmd->se_cmd.t_data_nents = 1; in cxgbit_handle_immediate_data() 894 struct scatterlist *sg = &cmd->se_cmd.t_data_sg[0]; in cxgbit_handle_immediate_data() 902 if (cmd->write_data_done == cmd->se_cmd.data_length) { in cxgbit_handle_immediate_data() 940 target_put_sess_cmd(&cmd->se_cmd); in cxgbit_get_immediate_data() 1052 cmd->se_cmd.data_length); in cxgbit_handle_iscsi_dataout() [all …]
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_target.c | 2155 mcmd->se_cmd.cpuid = abort_cmd->se_cmd.cpuid; in __qlt_24xx_handle_abts() 2781 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_pre_xmit_response() local 2915 qlt_hba_err_chk_enabled(struct se_cmd *se_cmd) in qlt_hba_err_chk_enabled() argument 2938 qla_tgt_ref_mask_check(struct se_cmd *se_cmd) in qla_tgt_ref_mask_check() argument 2961 struct se_cmd *se_cmd = &cmd->se_cmd; in qla_tgt_set_dif_tags() local 3057 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_build_ctio_crc2_pkt() local 3072 cmd->vp_idx, __func__, se_cmd, se_cmd->prot_op, in qlt_build_ctio_crc2_pkt() 3810 struct se_cmd *se_cmd = &cmd->se_cmd; in qlt_abort_cmd() local 3832 cmd->se_cmd.t_state, cmd->se_cmd.se_cmd_flags); in qlt_abort_cmd() 3963 struct se_cmd *se_cmd; in qlt_do_ctio_completion() local [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | tcm.h | 72 struct se_cmd se_cmd; member
|
/openbmc/linux/include/target/ |
H A D | target_core_base.h | 239 struct se_cmd; 416 struct se_cmd *task_cmd; 461 struct se_cmd { struct 503 sense_reason_t (*execute_cmd)(struct se_cmd *); argument 504 sense_reason_t (*transport_complete_callback)(struct se_cmd *, bool, int *); argument 884 struct se_cmd *cmd); 1008 static inline void target_free_tag(struct se_session *sess, struct se_cmd *cmd) in target_free_tag()
|
/openbmc/linux/drivers/target/sbp/ |
H A D | sbp_target.h | 217 struct se_cmd se_cmd; member
|
/openbmc/linux/drivers/target/loopback/ |
H A D | tcm_loop.h | 18 struct se_cmd tl_se_cmd;
|
/openbmc/linux/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 101 static void srpt_release_cmd(struct se_cmd *se_cmd); 103 static int srpt_queue_status(struct se_cmd *cmd); 1374 struct se_cmd *cmd = &ioctx->cmd; in srpt_build_cmd_rsp() 1497 struct se_cmd *cmd; in srpt_handle_cmd() 1591 struct se_cmd *cmd; in srpt_handle_tsk_mgmt() 2745 static int srpt_write_pending(struct se_cmd *se_cmd) in srpt_write_pending() argument 2904 static int srpt_queue_data_in(struct se_cmd *cmd) in srpt_queue_data_in() 2930 static int srpt_queue_status(struct se_cmd *cmd) in srpt_queue_status() 3339 static void srpt_release_cmd(struct se_cmd *se_cmd) in srpt_release_cmd() argument 3360 target_free_tag(se_cmd->se_sess, se_cmd); in srpt_release_cmd() [all …]
|