Searched refs:se_cmd (Results 1 - 25 of 29) sorted by relevance

12

/drivers/target/tcm_fc/
H A Dtfc_cmd.c55 struct se_cmd *se_cmd; local
59 se_cmd = &cmd->se_cmd;
60 pr_debug("%s: cmd %p sess %p seq %p se_cmd %p\n",
61 caller, cmd, cmd->sess, cmd->seq, se_cmd);
64 caller, cmd, se_cmd->t_data_nents,
65 se_cmd->data_length, se_cmd->se_cmd_flags);
67 for_each_sg(se_cmd
99 ft_release_cmd(struct se_cmd *se_cmd) argument
106 ft_check_stop_free(struct se_cmd *se_cmd) argument
115 ft_queue_status(struct se_cmd *se_cmd) argument
170 ft_write_pending_status(struct se_cmd *se_cmd) argument
180 ft_write_pending(struct se_cmd *se_cmd) argument
239 ft_get_task_tag(struct se_cmd *se_cmd) argument
246 ft_get_cmd_state(struct se_cmd *se_cmd) argument
400 ft_queue_tm_resp(struct se_cmd *se_cmd) argument
[all...]
H A Dtcm_fc.h118 struct se_cmd se_cmd; /* Local TCM I/O descriptor */ member in struct:ft_cmd
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 *);
[all...]
H A Dtfc_io.c61 int ft_queue_data_in(struct se_cmd *se_cmd) argument
63 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd);
90 remaining = se_cmd->data_length;
95 BUG_ON(remaining && !se_cmd->t_data_sg);
97 sg = se_cmd->t_data_sg;
183 return ft_queue_status(se_cmd);
191 struct se_cmd *se_cmd local
[all...]
/drivers/target/
H A Dtarget_core_ua.h29 extern int core_scsi3_ua_check(struct se_cmd *, unsigned char *);
32 extern void core_scsi3_ua_for_check_condition(struct se_cmd *, u8 *, u8 *);
33 extern int core_scsi3_ua_clear_for_request_sense(struct se_cmd *,
H A Dtarget_core_tmr.c44 struct se_cmd *se_cmd,
57 se_cmd->se_cmd_flags |= SCF_SCSI_TMR_CDB;
58 se_cmd->se_tmr_req = tmr;
59 tmr->task_cmd = se_cmd;
88 struct se_cmd *cmd,
107 struct se_cmd *cmd)
126 struct se_cmd *se_cmd, *tmp_cmd; local
131 list_for_each_entry_safe(se_cmd, tmp_cm
43 core_tmr_alloc_req( struct se_cmd *se_cmd, void *fabric_tmr_ptr, u8 function, gfp_t gfp_flags) argument
[all...]
H A Dtarget_core_device.c61 int transport_lookup_cmd_lun(struct se_cmd *se_cmd, u32 unpacked_lun) argument
64 struct se_session *se_sess = se_cmd->se_sess;
69 se_cmd->scsi_sense_reason = TCM_NON_EXISTENT_LUN;
70 se_cmd->se_cmd_flags |= SCF_SCSI_CDB_EXCEPTION;
75 se_cmd->se_deve = se_sess->se_node_acl->device_list[unpacked_lun];
76 if (se_cmd->se_deve->lun_flags & TRANSPORT_LUNFLAGS_INITIATOR_ACCESS) {
77 struct se_dev_entry *deve = se_cmd->se_deve;
80 deve->total_bytes += se_cmd->data_length;
82 if ((se_cmd
170 transport_lookup_tmr_lun(struct se_cmd *se_cmd, u32 unpacked_lun) argument
315 core_dec_lacl_count(struct se_node_acl *se_nacl, struct se_cmd *se_cmd) argument
648 struct se_cmd *se_cmd = se_task->task_se_cmd; local
[all...]
H A Dtarget_core_transport.c69 static int transport_generic_write_pending(struct se_cmd *);
71 static int __transport_execute_tasks(struct se_device *dev, struct se_cmd *);
72 static void transport_complete_task_attr(struct se_cmd *cmd);
73 static void transport_handle_queue_full(struct se_cmd *cmd,
75 static void transport_free_dev_tasks(struct se_cmd *cmd);
76 static int transport_generic_get_mem(struct se_cmd *cmd);
77 static void transport_put_cmd(struct se_cmd *cmd);
78 static void transport_remove_cmd_from_queue(struct se_cmd *cmd);
79 static int transport_set_sense_codes(struct se_cmd *cmd, u8 asc, u8 ascq);
447 static void transport_all_task_dev_remove_state(struct se_cmd *cm
1686 target_submit_cmd(struct se_cmd *se_cmd, struct se_session *se_sess, unsigned char *cdb, unsigned char *sense, u32 unpacked_lun, u32 data_length, int task_attr, int data_dir, int flags) argument
1747 struct se_cmd *se_cmd = container_of(work, struct se_cmd, work); local
1771 target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, unsigned char *sense, u32 unpacked_lun, void *fabric_tmr_ptr, unsigned char tm_type, gfp_t gfp, unsigned int tag, int flags) argument
2071 transport_set_supported_SAM_opcode(struct se_cmd *se_cmd) argument
4106 target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd, bool ack_kref) argument
4131 struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); local
4156 target_put_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd) argument
4167 struct se_cmd *se_cmd; local
4193 struct se_cmd *se_cmd, *tmp_cmd; local
[all...]
H A Dtarget_core_internal.h22 void core_dec_lacl_count(struct se_node_acl *, struct se_cmd *);
82 struct list_head *, struct se_cmd *);
106 void transport_cmd_finish_abort(struct se_cmd *, int);
109 unsigned char *transport_dump_cmd_direction(struct se_cmd *);
119 void transport_send_task_abort(struct se_cmd *);
H A Dtarget_core_cdb.c69 target_emulate_inquiry_std(struct se_cmd *cmd, char *buf)
110 target_emulate_evpd_80(struct se_cmd *cmd, unsigned char *buf)
166 target_emulate_evpd_83(struct se_cmd *cmd, unsigned char *buf)
418 target_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf)
432 target_emulate_evpd_b0(struct se_cmd *cmd, unsigned char *buf)
501 target_emulate_evpd_b1(struct se_cmd *cmd, unsigned char *buf)
514 target_emulate_evpd_b2(struct se_cmd *cmd, unsigned char *buf)
565 target_emulate_evpd_00(struct se_cmd *cmd, unsigned char *buf);
569 int (*emulate)(struct se_cmd *, unsigned char *);
582 target_emulate_evpd_00(struct se_cmd *cm
[all...]
H A Dtarget_core_alua.h71 extern int core_alua_check_nonop_delay(struct se_cmd *);
H A Dtarget_core_ua.c42 struct se_cmd *cmd,
204 struct se_cmd *cmd,
274 struct se_cmd *cmd,
H A Dtarget_core_alua.c64 struct se_cmd *cmd = task->task_se_cmd;
181 struct se_cmd *cmd = task->task_se_cmd;
362 struct se_cmd *cmd,
378 struct se_cmd *cmd,
426 struct se_cmd *cmd,
466 struct se_cmd *cmd,
503 struct se_cmd *cmd,
523 struct se_cmd *cmd,
663 struct se_cmd *cmd)
676 * struct se_cmd
[all...]
H A Dtarget_core_pr.c72 struct se_cmd *cmd,
88 static int core_scsi2_reservation_check(struct se_cmd *cmd, u32 *pr_reg_type)
120 static int target_check_scsi2_reservation_conflict(struct se_cmd *cmd)
198 struct se_cmd *cmd = task->task_se_cmd;
249 struct se_cmd *cmd = task->task_se_cmd;
264 * This is currently the case for target_core_mod passthrough struct se_cmd
325 struct se_cmd *cmd,
592 struct se_cmd *cmd,
1488 struct se_cmd *cmd,
2106 struct se_cmd *cm
[all...]
H A Dtarget_core_file.c366 struct se_cmd *cmd = task->task_se_cmd;
406 static void fd_emulate_write_fua(struct se_cmd *cmd, struct se_task *task)
424 struct se_cmd *cmd = task->task_se_cmd;
H A Dtarget_core_iblock.c293 struct se_cmd *cmd = bio->bi_private;
309 struct se_cmd *cmd = task->task_se_cmd;
508 struct se_cmd *cmd = task->task_se_cmd;
/drivers/target/loopback/
H A Dtcm_loop.c52 static int tcm_loop_queue_status(struct se_cmd *se_cmd);
57 static int tcm_loop_check_stop_free(struct se_cmd *se_cmd) argument
60 * Do not release struct se_cmd's containing a valid TMR
64 if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB)
67 * Release the struct se_cmd, which will make a callback to release
70 transport_generic_free_cmd(se_cmd, 0);
74 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) argument
162 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd; local
295 struct se_cmd *se_cmd = NULL; local
748 tcm_loop_get_task_tag(struct se_cmd *se_cmd) argument
753 tcm_loop_get_cmd_state(struct se_cmd *se_cmd) argument
771 tcm_loop_write_pending(struct se_cmd *se_cmd) argument
786 tcm_loop_write_pending_status(struct se_cmd *se_cmd) argument
791 tcm_loop_queue_data_in(struct se_cmd *se_cmd) argument
809 tcm_loop_queue_status(struct se_cmd *se_cmd) argument
837 tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) argument
850 tcm_loop_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length) argument
[all...]
H A Dtcm_loop.h16 struct se_cmd tl_se_cmd;
/drivers/target/iscsi/
H A Discsi_target_tmr.c45 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req;
64 se_tmr->ref_cmd = &ref_cmd->se_cmd;
125 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req;
162 se_tmr->ref_cmd = &ref_cmd->se_cmd;
198 struct se_cmd *se_cmd = se_tmr->ref_cmd; local
199 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd);
234 struct se_cmd *se_cmd local
304 struct se_cmd *se_cmd = &cmd->se_cmd; local
367 struct se_cmd *se_cmd = se_tmr->ref_cmd; local
418 struct se_cmd *se_cmd; local
554 struct se_cmd *se_cmd = se_tmr->ref_cmd; local
789 struct se_cmd *se_cmd = se_tmr->ref_cmd; local
[all...]
H A Discsi_target_configfs.c1492 static u32 iscsi_get_task_tag(struct se_cmd *se_cmd) argument
1494 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd);
1499 static int iscsi_get_cmd_state(struct se_cmd *se_cmd) argument
1501 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd);
1527 static int lio_queue_data_in(struct se_cmd *se_cmd) argument
1536 lio_write_pending(struct se_cmd *se_cmd) argument
1546 lio_write_pending_status(struct se_cmd *se_cmd) argument
1558 lio_queue_status(struct se_cmd *se_cmd) argument
1567 lio_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length) argument
1590 lio_queue_tm_rsp(struct se_cmd *se_cmd) argument
1715 lio_release_cmd(struct se_cmd *se_cmd) argument
[all...]
H A Discsi_target_erl1.c417 struct se_cmd *se_cmd = &cmd->se_cmd; local
419 if (!(se_cmd->transport_state & CMD_T_COMPLETE)) {
926 struct se_cmd *se_cmd = &cmd->se_cmd; local
940 if (se_cmd->se_cmd_flags & SCF_SCSI_CDB_EXCEPTION) {
941 if (se_cmd->scsi_sense_reason == TCM_RESERVATION_CONFLICT) {
956 if (transport_check_aborted_status(se_cmd,
[all...]
H A Discsi_target_util.c189 struct se_cmd *se_cmd; local
216 se_cmd = &cmd->se_cmd;
218 * Initialize struct se_cmd descriptor from target_core_mod infrastructure
220 transport_init_se_cmd(se_cmd, &lio_target_fabric_configfs->tf_ops,
231 struct se_cmd *se_cmd; local
254 se_cmd = &cmd->se_cmd;
479 struct se_cmd *se_cmd = &cmd->se_cmd; local
[all...]
H A Discsi_target.c764 u32 iov_count = (cmd->se_cmd.t_data_nents == 0) ? 1 :
765 cmd->se_cmd.t_data_nents;
782 u32 length = cmd->se_cmd.data_length;
818 transport_generic_map_mem_to_cmd(&cmd->se_cmd, sgl, nents, NULL, 0);
821 * so that cmd->se_cmd.t_tasks_se_num has been set.
1008 ret = transport_lookup_cmd_lun(&cmd->se_cmd,
1011 if (cmd->se_cmd.scsi_sense_reason == TCM_NON_EXISTENT_LUN) {
1025 transport_ret = transport_generic_allocate_tasks(&cmd->se_cmd, hdr->cdb);
1038 cmd->data_length = cmd->se_cmd.data_length;
1054 core_alua_check_nonop_delay(&cmd->se_cmd);
1243 struct se_cmd *se_cmd; local
[all...]
H A Discsi_target_core.h469 struct se_cmd se_cmd; member in struct:iscsi_cmd
/drivers/infiniband/ulp/srpt/
H A Dib_srpt.h240 struct se_cmd cmd;
H A Dib_srpt.c98 static int srpt_queue_status(struct se_cmd *cmd);
1081 struct se_cmd *cmd;
1417 struct se_cmd *cmd;
1499 struct se_cmd *cmd;
1709 static int srpt_check_stop_free(struct se_cmd *cmd)
1724 struct se_cmd *cmd;
1863 struct se_cmd *cmd;
2962 static int srpt_write_pending_status(struct se_cmd *se_cmd) argument
2966 ioctx = container_of(se_cmd, struc
2973 srpt_write_pending(struct se_cmd *se_cmd) argument
3487 srpt_release_cmd(struct se_cmd *se_cmd) argument
3546 srpt_get_task_tag(struct se_cmd *se_cmd) argument
3555 srpt_get_tcm_cmd_state(struct se_cmd *se_cmd) argument
[all...]

Completed in 295 milliseconds

12