/kernel/linux/linux-6.6/include/target/ |
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 *); 235 target_reverse_dma_direction(struct se_cmd *se_cmd) target_reverse_dma_direction() argument [all...] |
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...] |
/kernel/linux/linux-5.10/include/target/ |
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 *); 220 target_reverse_dma_direction(struct se_cmd *se_cmd) target_reverse_dma_direction() argument [all...] |
H A D | target_core_backend.h | 42 sense_reason_t (*parse_cdb)(struct se_cmd *cmd); 52 unsigned char *(*get_sense_buffer)(struct se_cmd *); 63 sense_reason_t (*execute_rw)(struct se_cmd *cmd, struct scatterlist *, 65 sense_reason_t (*execute_sync_cache)(struct se_cmd *cmd); 66 sense_reason_t (*execute_write_same)(struct se_cmd *cmd); 67 sense_reason_t (*execute_unmap)(struct se_cmd *cmd, 74 void target_complete_cmd(struct se_cmd *, u8); 75 void target_set_cmd_data_length(struct se_cmd *, int); 76 void target_complete_cmd_with_length(struct se_cmd *, u8, int); 78 void transport_copy_sense_to_cmd(struct se_cmd *, unsigne [all...] |
/kernel/linux/linux-5.10/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 36 struct se_cmd *se_cmd; in _ft_dump_cmd() local 40 se_cmd = &cmd->se_cmd; in _ft_dump_cmd() 41 pr_debug("%s: cmd %p sess %p seq %p se_cmd %p\n", in _ft_dump_cmd() 42 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd() 45 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd() 46 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd() 48 for_each_sg(se_cmd in _ft_dump_cmd() 86 ft_release_cmd(struct se_cmd *se_cmd) ft_release_cmd() argument 93 ft_check_stop_free(struct se_cmd *se_cmd) ft_check_stop_free() argument 101 ft_queue_status(struct se_cmd *se_cmd) ft_queue_status() argument 178 ft_write_pending(struct se_cmd *se_cmd) ft_write_pending() argument 227 ft_get_cmd_state(struct se_cmd *se_cmd) ft_get_cmd_state() argument 381 ft_queue_tm_resp(struct se_cmd *se_cmd) ft_queue_tm_resp() argument 416 ft_aborted_task(struct se_cmd *se_cmd) ft_aborted_task() argument [all...] |
H A D | tfc_io.c | 42 int ft_queue_data_in(struct se_cmd *se_cmd) in ft_queue_data_in() argument 44 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_data_in() 68 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in() 75 remaining = se_cmd->data_length; in ft_queue_data_in() 80 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in() 82 sg = se_cmd->t_data_sg; in ft_queue_data_in() 178 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in() 183 return ft_queue_status(se_cmd); in ft_queue_data_in() 198 struct se_cmd *se_cmd = &cmd->se_cmd; ft_recv_write_data() local [all...] |
H A D | tcm_fc.h | 109 struct se_cmd se_cmd; /* Local TCM I/O descriptor */ member 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 int ft_get_cmd_state(struct se_cmd *); 150 void ft_queue_tm_resp(struct se_cmd *); 151 void ft_aborted_task(struct se_cmd *); [all...] |
/kernel/linux/linux-6.6/drivers/target/tcm_fc/ |
H A D | tfc_cmd.c | 35 struct se_cmd *se_cmd; in _ft_dump_cmd() local 39 se_cmd = &cmd->se_cmd; in _ft_dump_cmd() 40 pr_debug("%s: cmd %p sess %p seq %p se_cmd %p\n", in _ft_dump_cmd() 41 caller, cmd, cmd->sess, cmd->seq, se_cmd); in _ft_dump_cmd() 44 caller, cmd, se_cmd->t_data_nents, in _ft_dump_cmd() 45 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd() 47 for_each_sg(se_cmd in _ft_dump_cmd() 85 ft_release_cmd(struct se_cmd *se_cmd) ft_release_cmd() argument 92 ft_check_stop_free(struct se_cmd *se_cmd) ft_check_stop_free() argument 100 ft_queue_status(struct se_cmd *se_cmd) ft_queue_status() argument 177 ft_write_pending(struct se_cmd *se_cmd) ft_write_pending() argument 375 ft_queue_tm_resp(struct se_cmd *se_cmd) ft_queue_tm_resp() argument 410 ft_aborted_task(struct se_cmd *se_cmd) ft_aborted_task() argument [all...] |
H A D | tfc_io.c | 41 int ft_queue_data_in(struct se_cmd *se_cmd) in ft_queue_data_in() argument 43 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_queue_data_in() 67 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in() 74 remaining = se_cmd->data_length; in ft_queue_data_in() 79 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in() 81 sg = se_cmd->t_data_sg; in ft_queue_data_in() 177 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in() 182 return ft_queue_status(se_cmd); in ft_queue_data_in() 197 struct se_cmd *se_cmd = &cmd->se_cmd; ft_recv_write_data() local [all...] |
H A D | tcm_fc.h | 109 struct se_cmd se_cmd; /* Local TCM I/O descriptor */ member 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 *);
|
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_xcopy.c | 128 static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, in target_xcopy_parse_tiddesc_e4() argument 188 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 205 xop->dst_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 214 static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, in target_xcopy_parse_target_descriptors() argument 218 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors() 254 rc = target_xcopy_parse_tiddesc_e4(se_cmd, xop, in target_xcopy_parse_target_descriptors() 272 rc = target_xcopy_locate_se_dev_e4(se_cmd->se_sess, in target_xcopy_parse_target_descriptors() 278 rc = target_xcopy_locate_se_dev_e4(se_cmd in target_xcopy_parse_target_descriptors() 311 target_xcopy_parse_segdesc_02(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p) target_xcopy_parse_segdesc_02() argument 348 target_xcopy_parse_segment_descriptors(struct se_cmd *se_cmd, struct xcopy_op *xop, unsigned char *p, unsigned int sdll, sense_reason_t *sense_ret) target_xcopy_parse_segment_descriptors() argument 405 struct se_cmd se_cmd; global() member 414 xcopy_pt_get_cmd_state(struct se_cmd *se_cmd) xcopy_pt_get_cmd_state() argument 429 xcopy_pt_release_cmd(struct se_cmd *se_cmd) xcopy_pt_release_cmd() argument 438 xcopy_pt_check_stop_free(struct se_cmd *se_cmd) xcopy_pt_check_stop_free() argument 447 xcopy_pt_write_pending(struct se_cmd *se_cmd) xcopy_pt_write_pending() argument 452 xcopy_pt_queue_data_in(struct se_cmd *se_cmd) xcopy_pt_queue_data_in() argument 457 xcopy_pt_queue_status(struct se_cmd *se_cmd) xcopy_pt_queue_status() argument 576 struct se_cmd *se_cmd = &xpt_cmd->se_cmd; target_xcopy_issue_pt_cmd() local 602 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; target_xcopy_read_source() local 647 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; target_xcopy_write_destination() local 800 struct se_cmd *se_cmd = xop->xop_se_cmd; target_parse_xcopy_cmd() local 886 target_do_xcopy(struct se_cmd *se_cmd) target_do_xcopy() argument 929 target_rcr_operating_parameters(struct se_cmd *se_cmd) target_rcr_operating_parameters() argument 1019 target_do_receive_copy_results(struct se_cmd *se_cmd) target_do_receive_copy_results() argument [all...] |
H A D | target_core_tmr.c | 27 struct se_cmd *se_cmd, in core_tmr_alloc_req() 40 se_cmd->se_cmd_flags |= SCF_SCSI_TMR_CDB; in core_tmr_alloc_req() 41 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req() 42 tmr->task_cmd = se_cmd; in core_tmr_alloc_req() 66 struct se_cmd *cmd) in target_check_cdb_and_preempt() 80 static bool __target_check_io_state(struct se_cmd *se_cmd, in __target_check_io_state() argument 83 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state() 90 * this se_cmd ha in __target_check_io_state() 26 core_tmr_alloc_req( struct se_cmd *se_cmd, void *fabric_tmr_ptr, u8 function, gfp_t gfp_flags) core_tmr_alloc_req() argument 120 struct se_cmd *se_cmd, *next; core_tmr_abort_task() local [all...] |
H A D | target_core_transport.c | 53 static void transport_complete_task_attr(struct se_cmd *cmd); 54 static void translate_sense_reason(struct se_cmd *cmd, sense_reason_t reason); 55 static void transport_handle_queue_full(struct se_cmd *cmd, 645 static void target_remove_from_state_list(struct se_cmd *cmd) in target_remove_from_state_list() 668 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) in transport_cmd_check_stop_to_fabric() 675 * Clear struct se_cmd->se_lun before the handoff to FE. in transport_cmd_check_stop_to_fabric() 698 * allocated I/O reference and struct se_cmd now. in transport_cmd_check_stop_to_fabric() 700 * Fabric modules are expected to return '1' here if the se_cmd being in transport_cmd_check_stop_to_fabric() 706 static void transport_lun_remove_cmd(struct se_cmd *cmd) in transport_lun_remove_cmd() 719 struct se_cmd *cm in target_complete_failure_work() 1603 target_submit_cmd_map_sgls(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, struct scatterlist *sgl, u32 sgl_count, struct scatterlist *sgl_bidi, u32 sgl_bidi_count, struct scatterlist *sgl_prot, u32 sgl_prot_count) target_submit_cmd_map_sgls() argument 1752 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) target_submit_cmd() argument 1764 struct se_cmd *se_cmd = container_of(work, struct se_cmd, work); target_complete_tmr_failure() local 1776 struct se_cmd *se_cmd; target_lookup_lun_from_tag() local 1813 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) target_submit_tmr() argument 2833 target_get_sess_cmd(struct se_cmd *se_cmd, bool ack_kref) target_get_sess_cmd() argument 2880 struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); target_release_cmd_kref() local 2909 target_put_sess_cmd(struct se_cmd *se_cmd) target_put_sess_cmd() argument [all...] |
H A D | target_core_user.c | 171 struct se_cmd *se_cmd; member 177 /* Can't use se_cmd when cleaning up expired cmds, because if 178 cmd has been completed then accessing se_cmd is off limits */ 572 struct se_cmd *se_cmd = cmd->se_cmd; in tcmu_cmd_set_block_cnts() local 574 cmd->dbi_cnt = DIV_ROUND_UP(se_cmd->data_length, DATA_BLOCK_SIZE); in tcmu_cmd_set_block_cnts() 576 if (se_cmd->se_cmd_flags & SCF_BIDI) { in tcmu_cmd_set_block_cnts() 577 BUG_ON(!(se_cmd in tcmu_cmd_set_block_cnts() 623 tcmu_alloc_cmd(struct se_cmd *se_cmd) tcmu_alloc_cmd() argument 692 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; scatter_data_area() local 741 struct se_cmd *se_cmd = cmd->se_cmd; gather_data_area() local 896 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; tcmu_cmd_get_cmd_size() local 989 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; queue_cmd_ring() local 1176 tcmu_queue_cmd(struct se_cmd *se_cmd) tcmu_queue_cmd() argument 1235 struct se_cmd *se_cmd; tcmu_tmr_notify() local 1296 struct se_cmd *se_cmd = cmd->se_cmd; tcmu_handle_completion() local 1465 struct se_cmd *se_cmd; tcmu_check_expired_ring_cmd() local 1484 struct se_cmd *se_cmd; tcmu_check_expired_queue_cmd() local [all...] |
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_xcopy.c | 115 static int target_xcopy_parse_tiddesc_e4(struct se_cmd *se_cmd, struct xcopy_op *xop, in target_xcopy_parse_tiddesc_e4() argument 175 xop->src_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 192 xop->dst_dev = se_cmd->se_dev; in target_xcopy_parse_tiddesc_e4() 201 static int target_xcopy_parse_target_descriptors(struct se_cmd *se_cmd, in target_xcopy_parse_target_descriptors() argument 205 struct se_device *local_dev = se_cmd->se_dev; in target_xcopy_parse_target_descriptors() 241 rc = target_xcopy_parse_tiddesc_e4(se_cmd, xop, in target_xcopy_parse_target_descriptors() 259 rc = target_xcopy_locate_se_dev_e4(se_cmd->se_sess, in target_xcopy_parse_target_descriptors() 265 rc = target_xcopy_locate_se_dev_e4(se_cmd in target_xcopy_parse_target_descriptors() 391 struct se_cmd se_cmd; global() member 400 xcopy_pt_get_cmd_state(struct se_cmd *se_cmd) xcopy_pt_get_cmd_state() argument 415 xcopy_pt_release_cmd(struct se_cmd *se_cmd) xcopy_pt_release_cmd() argument 424 xcopy_pt_check_stop_free(struct se_cmd *se_cmd) xcopy_pt_check_stop_free() argument 433 xcopy_pt_write_pending(struct se_cmd *se_cmd) xcopy_pt_write_pending() argument 438 xcopy_pt_queue_data_in(struct se_cmd *se_cmd) xcopy_pt_queue_data_in() argument 443 xcopy_pt_queue_status(struct se_cmd *se_cmd) xcopy_pt_queue_status() argument 551 struct se_cmd *se_cmd = &xpt_cmd->se_cmd; target_xcopy_issue_pt_cmd() local 577 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; target_xcopy_read_source() local 622 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; target_xcopy_write_destination() local 788 struct se_cmd *se_cmd = xop->xop_se_cmd; target_parse_xcopy_cmd() local 873 target_do_xcopy(struct se_cmd *se_cmd) target_do_xcopy() argument 916 target_rcr_operating_parameters(struct se_cmd *se_cmd) target_rcr_operating_parameters() argument 1006 target_do_receive_copy_results(struct se_cmd *se_cmd) target_do_receive_copy_results() argument [all...] |
H A D | target_core_tmr.c | 27 struct se_cmd *se_cmd, in core_tmr_alloc_req() 40 se_cmd->se_cmd_flags |= SCF_SCSI_TMR_CDB; in core_tmr_alloc_req() 41 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req() 42 tmr->task_cmd = se_cmd; in core_tmr_alloc_req() 57 struct se_cmd *cmd) in target_check_cdb_and_preempt() 71 static bool __target_check_io_state(struct se_cmd *se_cmd, in __target_check_io_state() argument 74 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state() 81 * this se_cmd ha in __target_check_io_state() 26 core_tmr_alloc_req( struct se_cmd *se_cmd, void *fabric_tmr_ptr, u8 function, gfp_t gfp_flags) core_tmr_alloc_req() argument 111 struct se_cmd *se_cmd, *next; core_tmr_abort_task() local [all...] |
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) in target_remove_from_state_list() 712 static void target_remove_from_tmr_list(struct se_cmd *cmd) in target_remove_from_tmr_list() 734 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) in transport_cmd_check_stop_to_fabric() 757 * allocated I/O reference and struct se_cmd now. in transport_cmd_check_stop_to_fabric() 759 * Fabric modules are expected to return '1' here if the se_cmd being in transport_cmd_check_stop_to_fabric() 765 static void transport_lun_remove_cmd(struct se_cmd *cmd) in transport_lun_remove_cmd() 779 * Clear struct se_cmd in transport_lun_remove_cmd() 1667 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) target_init_cmd() argument 1724 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) target_submit_prep() argument 1791 target_submit(struct se_cmd *se_cmd) target_submit() argument 1856 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) target_submit_cmd() argument 1909 struct se_cmd *se_cmd, *next_cmd; target_queued_submit_work() local 1937 target_queue_submission(struct se_cmd *se_cmd) target_queue_submission() argument 1951 struct se_cmd *se_cmd = container_of(work, struct se_cmd, work); target_complete_tmr_failure() local 1977 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) target_submit_tmr() argument 2992 target_get_sess_cmd(struct se_cmd *se_cmd, bool ack_kref) target_get_sess_cmd() argument 3033 struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); target_release_cmd_kref() local 3056 target_put_sess_cmd(struct se_cmd *se_cmd) target_put_sess_cmd() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 239 transport_generic_free_cmd(&mcmd->se_cmd, 0); in tcm_qla2xxx_complete_mcmd() 273 transport_generic_free_cmd(&cmd->se_cmd, 0); in tcm_qla2xxx_complete_free() 288 cmd->se_cmd.map_tag = tag; in tcm_qla2xxx_get_cmd() 289 cmd->se_cmd.map_cpu = cpu; in tcm_qla2xxx_get_cmd() 296 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd() 319 static int tcm_qla2xxx_check_stop_free(struct se_cmd *se_cmd) in tcm_qla2xxx_check_stop_free() argument 323 if ((se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) == 0) { in tcm_qla2xxx_check_stop_free() 324 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in tcm_qla2xxx_check_stop_free() 334 tcm_qla2xxx_release_cmd(struct se_cmd *se_cmd) tcm_qla2xxx_release_cmd() argument 380 tcm_qla2xxx_write_pending(struct se_cmd *se_cmd) tcm_qla2xxx_write_pending() argument 419 tcm_qla2xxx_get_cmd_state(struct se_cmd *se_cmd) tcm_qla2xxx_get_cmd_state() argument 437 struct se_cmd *se_cmd = &cmd->se_cmd; tcm_qla2xxx_handle_cmd() local 561 struct se_cmd *se_cmd = &cmd->se_cmd; tcm_qla2xxx_dif_tags() local 579 struct se_cmd *se_cmd = &mcmd->se_cmd; tcm_qla2xxx_handle_tmr() local 642 tcm_qla2xxx_queue_data_in(struct se_cmd *se_cmd) tcm_qla2xxx_queue_data_in() argument 681 tcm_qla2xxx_queue_status(struct se_cmd *se_cmd) tcm_qla2xxx_queue_status() argument 727 tcm_qla2xxx_queue_tm_rsp(struct se_cmd *se_cmd) tcm_qla2xxx_queue_tm_rsp() argument 761 tcm_qla2xxx_aborted_task(struct se_cmd *se_cmd) tcm_qla2xxx_aborted_task() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
H A D | tcm_qla2xxx.c | 239 transport_generic_free_cmd(&mcmd->se_cmd, 0); in tcm_qla2xxx_complete_mcmd() 268 transport_generic_free_cmd(&cmd->se_cmd, 0); in tcm_qla2xxx_complete_free() 283 cmd->se_cmd.map_tag = tag; in tcm_qla2xxx_get_cmd() 284 cmd->se_cmd.map_cpu = cpu; in tcm_qla2xxx_get_cmd() 291 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd() 314 static int tcm_qla2xxx_check_stop_free(struct se_cmd *se_cmd) in tcm_qla2xxx_check_stop_free() argument 318 if ((se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) == 0) { in tcm_qla2xxx_check_stop_free() 319 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in tcm_qla2xxx_check_stop_free() 329 tcm_qla2xxx_release_cmd(struct se_cmd *se_cmd) tcm_qla2xxx_release_cmd() argument 385 tcm_qla2xxx_write_pending(struct se_cmd *se_cmd) tcm_qla2xxx_write_pending() argument 429 tcm_qla2xxx_get_cmd_state(struct se_cmd *se_cmd) tcm_qla2xxx_get_cmd_state() argument 447 struct se_cmd *se_cmd = &cmd->se_cmd; tcm_qla2xxx_handle_cmd() local 557 struct se_cmd *se_cmd = &cmd->se_cmd; tcm_qla2xxx_dif_tags() local 575 struct se_cmd *se_cmd = &mcmd->se_cmd; tcm_qla2xxx_handle_tmr() local 645 tcm_qla2xxx_queue_data_in(struct se_cmd *se_cmd) tcm_qla2xxx_queue_data_in() argument 684 tcm_qla2xxx_queue_status(struct se_cmd *se_cmd) tcm_qla2xxx_queue_status() argument 730 tcm_qla2xxx_queue_tm_rsp(struct se_cmd *se_cmd) tcm_qla2xxx_queue_tm_rsp() argument 764 tcm_qla2xxx_aborted_task(struct se_cmd *se_cmd) tcm_qla2xxx_aborted_task() argument [all...] |
/kernel/linux/linux-6.6/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) in tcm_loop_check_stop_free() argument 62 return transport_generic_free_cmd(se_cmd, 0); in tcm_loop_check_stop_free() 65 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) in tcm_loop_release_cmd() argument 67 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_release_cmd() 71 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB) in tcm_loop_release_cmd() 103 struct se_cmd *se_cm in tcm_loop_target_queue_cmd() local 192 struct se_cmd *se_cmd; tcm_loop_issue_tmr() local 488 tcm_loop_get_cmd_state(struct se_cmd *se_cmd) tcm_loop_get_cmd_state() argument 496 tcm_loop_write_pending(struct se_cmd *se_cmd) tcm_loop_write_pending() argument 511 tcm_loop_queue_data_or_status(const char *func, struct se_cmd *se_cmd, u8 scsi_status) tcm_loop_queue_data_or_status() argument 538 tcm_loop_queue_data_in(struct se_cmd *se_cmd) tcm_loop_queue_data_in() argument 543 tcm_loop_queue_status(struct se_cmd *se_cmd) tcm_loop_queue_status() argument 549 tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) tcm_loop_queue_tm_rsp() argument 558 tcm_loop_aborted_task(struct se_cmd *se_cmd) tcm_loop_aborted_task() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A 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 in bot_send_read_response() 247 struct se_cmd *se_cmd = &cmd->se_cmd; bot_send_write_request() local 512 struct se_cmd *se_cmd = &cmd->se_cmd; uasp_prepare_r_request() local 545 struct se_cmd *se_cmd = &cmd->se_cmd; uasp_prepare_status() local 676 struct se_cmd *se_cmd = &cmd->se_cmd; uasp_send_write_request() local 958 struct se_cmd *se_cmd = &cmd->se_cmd; usbg_data_write_cmpl() local 981 struct se_cmd *se_cmd = &cmd->se_cmd; usbg_prepare_w_request() local 1004 usbg_send_status_response(struct se_cmd *se_cmd) usbg_send_status_response() argument 1016 usbg_send_write_request(struct se_cmd *se_cmd) usbg_send_write_request() argument 1028 usbg_send_read_response(struct se_cmd *se_cmd) usbg_send_read_response() argument 1043 struct se_cmd *se_cmd; usbg_cmd_work() local 1172 struct se_cmd *se_cmd; bot_cmd_work() local 1272 usbg_release_cmd(struct se_cmd *se_cmd) usbg_release_cmd() argument 1282 usbg_queue_tm_rsp(struct se_cmd *se_cmd) usbg_queue_tm_rsp() argument 1286 usbg_aborted_task(struct se_cmd *se_cmd) usbg_aborted_task() argument 1659 usbg_check_stop_free(struct se_cmd *se_cmd) usbg_check_stop_free() argument [all...] |
/kernel/linux/linux-5.10/drivers/target/loopback/ |
H A 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 54 return transport_generic_free_cmd(se_cmd, 0); in tcm_loop_check_stop_free() 57 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) in tcm_loop_release_cmd() argument 59 struct tcm_loop_cmd *tl_cmd = container_of(se_cmd, in tcm_loop_release_cmd() 100 struct se_cmd *se_cmd in tcm_loop_submission_work() local 197 struct se_cmd *se_cmd; tcm_loop_issue_tmr() local 526 tcm_loop_get_cmd_state(struct se_cmd *se_cmd) tcm_loop_get_cmd_state() argument 534 tcm_loop_write_pending(struct se_cmd *se_cmd) tcm_loop_write_pending() argument 549 tcm_loop_queue_data_or_status(const char *func, struct se_cmd *se_cmd, u8 scsi_status) tcm_loop_queue_data_or_status() argument 578 tcm_loop_queue_data_in(struct se_cmd *se_cmd) tcm_loop_queue_data_in() argument 583 tcm_loop_queue_status(struct se_cmd *se_cmd) tcm_loop_queue_status() argument 589 tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) tcm_loop_queue_tm_rsp() argument 598 tcm_loop_aborted_task(struct se_cmd *se_cmd) tcm_loop_aborted_task() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A 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 in bot_send_read_response() 247 struct se_cmd *se_cmd = &cmd->se_cmd; bot_send_write_request() local 512 struct se_cmd *se_cmd = &cmd->se_cmd; uasp_prepare_r_request() local 545 struct se_cmd *se_cmd = &cmd->se_cmd; uasp_prepare_status() local 676 struct se_cmd *se_cmd = &cmd->se_cmd; uasp_send_write_request() local 958 struct se_cmd *se_cmd = &cmd->se_cmd; usbg_data_write_cmpl() local 981 struct se_cmd *se_cmd = &cmd->se_cmd; usbg_prepare_w_request() local 1004 usbg_send_status_response(struct se_cmd *se_cmd) usbg_send_status_response() argument 1016 usbg_send_write_request(struct se_cmd *se_cmd) usbg_send_write_request() argument 1028 usbg_send_read_response(struct se_cmd *se_cmd) usbg_send_read_response() argument 1043 struct se_cmd *se_cmd; usbg_cmd_work() local 1174 struct se_cmd *se_cmd; bot_cmd_work() local 1286 usbg_release_cmd(struct se_cmd *se_cmd) usbg_release_cmd() argument 1305 usbg_get_cmd_state(struct se_cmd *se_cmd) usbg_get_cmd_state() argument 1310 usbg_queue_tm_rsp(struct se_cmd *se_cmd) usbg_queue_tm_rsp() argument 1314 usbg_aborted_task(struct se_cmd *se_cmd) usbg_aborted_task() argument 1707 usbg_check_stop_free(struct se_cmd *se_cmd) usbg_check_stop_free() argument [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 76 isert_prot_cmd(struct isert_conn *conn, struct se_cmd *cmd) in isert_prot_cmd() 1065 data_len = cmd->se_cmd.data_length; in isert_handle_scsi_cmd() 1068 cmd->se_cmd.se_cmd_flags |= SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC; in isert_handle_scsi_cmd() 1082 sg_copy_from_buffer(cmd->se_cmd.t_data_sg, sg_nents, in isert_handle_scsi_cmd() 1088 cmd->se_cmd.t_data_sg = &isert_cmd->sg; in isert_handle_scsi_cmd() 1089 cmd->se_cmd.t_data_nents = 1; in isert_handle_scsi_cmd() 1098 if (cmd->write_data_done == cmd->se_cmd.data_length) { in isert_handle_scsi_cmd() 1111 target_put_sess_cmd(&cmd->se_cmd); in isert_handle_scsi_cmd() 1144 cmd->se_cmd.data_length); in isert_handle_iscsi_dataout() 1147 sg_start = &cmd->se_cmd in isert_handle_iscsi_dataout() 1411 struct se_cmd *se_cmd = &cmd->iscsi_cmd->se_cmd; isert_rdma_rw_ctx_destroy() local 1457 struct se_cmd *se_cmd = &cmd->se_cmd; isert_put_cmd() local 1532 isert_check_pi_status(struct se_cmd *se_cmd, struct ib_mr *sig_mr) isert_check_pi_status() argument 1625 struct se_cmd *se_cmd = &cmd->se_cmd; isert_rdma_read_done() local 1983 isert_set_dif_domain(struct se_cmd *se_cmd, struct ib_sig_domain *domain) isert_set_dif_domain() argument 2003 isert_set_sig_attrs(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs) isert_set_sig_attrs() argument 2042 struct se_cmd *se_cmd = &cmd->iscsi_cmd->se_cmd; isert_rdma_rw_ctx_post() local 2097 struct se_cmd *se_cmd = &cmd->se_cmd; isert_put_datain() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.c | 76 isert_prot_cmd(struct isert_conn *conn, struct se_cmd *cmd) in isert_prot_cmd() 1065 data_len = cmd->se_cmd.data_length; in isert_handle_scsi_cmd() 1068 cmd->se_cmd.se_cmd_flags |= SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC; in isert_handle_scsi_cmd() 1082 sg_copy_from_buffer(cmd->se_cmd.t_data_sg, sg_nents, in isert_handle_scsi_cmd() 1088 cmd->se_cmd.t_data_sg = &isert_cmd->sg; in isert_handle_scsi_cmd() 1089 cmd->se_cmd.t_data_nents = 1; in isert_handle_scsi_cmd() 1098 if (cmd->write_data_done == cmd->se_cmd.data_length) { in isert_handle_scsi_cmd() 1111 target_put_sess_cmd(&cmd->se_cmd); in isert_handle_scsi_cmd() 1144 cmd->se_cmd.data_length); in isert_handle_iscsi_dataout() 1147 sg_start = &cmd->se_cmd in isert_handle_iscsi_dataout() 1411 struct se_cmd *se_cmd = &cmd->iscsit_cmd->se_cmd; isert_rdma_rw_ctx_destroy() local 1457 struct se_cmd *se_cmd = &cmd->se_cmd; isert_put_cmd() local 1532 isert_check_pi_status(struct se_cmd *se_cmd, struct ib_mr *sig_mr) isert_check_pi_status() argument 1625 struct se_cmd *se_cmd = &cmd->se_cmd; isert_rdma_read_done() local 1983 isert_set_dif_domain(struct se_cmd *se_cmd, struct ib_sig_domain *domain) isert_set_dif_domain() argument 2003 isert_set_sig_attrs(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs) isert_set_sig_attrs() argument 2042 struct se_cmd *se_cmd = &cmd->iscsit_cmd->se_cmd; isert_rdma_rw_ctx_post() local 2097 struct se_cmd *se_cmd = &cmd->se_cmd; isert_put_datain() local [all...] |