Searched defs:se_cmd (Results 1 - 15 of 15) sorted by relevance

/drivers/target/tcm_fc/
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);
88 remaining = se_cmd->data_length;
93 BUG_ON(remaining && !se_cmd->t_data_sg);
95 sg = se_cmd->t_data_sg;
182 return ft_queue_status(se_cmd);
190 struct se_cmd *se_cmd local
[all...]
H A Dtcm_fc.h119 struct se_cmd se_cmd; /* Local TCM I/O descriptor */ member in struct:ft_cmd
159 int ft_check_stop_free(struct se_cmd *);
160 void ft_release_cmd(struct se_cmd *);
161 int ft_queue_status(struct se_cmd *);
162 int ft_queue_data_in(struct se_cmd *);
163 int ft_write_pending(struct se_cmd *);
164 int ft_write_pending_status(struct se_cmd *);
165 u32 ft_get_task_tag(struct se_cmd *);
166 int ft_get_cmd_state(struct se_cmd *);
[all...]
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);
67 caller, cmd, se_cmd->t_data_nents,
68 se_cmd->data_length, se_cmd->se_cmd_flags);
70 for_each_sg(se_cmd
104 ft_release_cmd(struct se_cmd *se_cmd) argument
111 ft_check_stop_free(struct se_cmd *se_cmd) argument
120 ft_queue_status(struct se_cmd *se_cmd) argument
173 ft_write_pending_status(struct se_cmd *se_cmd) argument
183 ft_write_pending(struct se_cmd *se_cmd) argument
240 ft_get_task_tag(struct se_cmd *se_cmd) argument
247 ft_get_cmd_state(struct se_cmd *se_cmd) argument
252 ft_is_state_remove(struct se_cmd *se_cmd) argument
442 ft_queue_tm_resp(struct se_cmd *se_cmd) argument
[all...]
H A Dtfc_conf.c500 static u16 ft_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_len) argument
/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_erl1.c417 struct se_cmd *se_cmd = &cmd->se_cmd; local
419 if (!atomic_read(&se_cmd->t_transport_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
253 se_cmd = &cmd->se_cmd;
480 struct se_cmd *se_cmd = &cmd->se_cmd; local
[all...]
H A Discsi_target.c763 u32 iov_count = (cmd->se_cmd.t_data_nents == 0) ? 1 :
764 cmd->se_cmd.t_data_nents;
781 u32 length = cmd->se_cmd.data_length;
817 transport_generic_map_mem_to_cmd(&cmd->se_cmd, sgl, nents, NULL, 0);
820 * so that cmd->se_cmd.t_tasks_se_num has been set.
1012 if (cmd->se_cmd.scsi_sense_reason == TCM_NON_EXISTENT_LUN) {
1026 transport_ret = transport_generic_allocate_tasks(&cmd->se_cmd, hdr->cdb);
1039 cmd->data_length = cmd->se_cmd.data_length;
1055 core_alua_check_nonop_delay(&cmd->se_cmd);
1119 ret = transport_generic_new_cmd(&cmd->se_cmd);
1244 struct se_cmd *se_cmd; local
3516 struct se_cmd *se_cmd; local
[all...]
H A Discsi_target_configfs.c1494 static u32 iscsi_get_task_tag(struct se_cmd *se_cmd) argument
1496 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd);
1501 static int iscsi_get_cmd_state(struct se_cmd *se_cmd) argument
1503 struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd);
1508 static int iscsi_is_state_remove(struct se_cmd *se_cmd) argument
1551 lio_queue_data_in(struct se_cmd *se_cmd) argument
1560 lio_write_pending(struct se_cmd *se_cmd) argument
1570 lio_write_pending_status(struct se_cmd *se_cmd) argument
1582 lio_queue_status(struct se_cmd *se_cmd) argument
1591 lio_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length) argument
1614 lio_queue_tm_rsp(struct se_cmd *se_cmd) argument
1758 lio_release_cmd(struct se_cmd *se_cmd) argument
[all...]
H A Discsi_target_core.h469 struct se_cmd se_cmd; member in struct:iscsi_cmd
/drivers/target/
H A Dtarget_core_tmr.c44 struct se_cmd *se_cmd,
56 tmr->task_cmd = se_cmd;
85 struct se_cmd *cmd,
104 struct se_cmd *cmd)
125 struct se_cmd *cmd;
141 pr_err("Unable to locate struct se_cmd for TMR\n");
182 struct se_cmd *prout_cmd,
188 struct se_cmd *cmd;
311 struct se_cmd *prout_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
175 transport_lookup_tmr_lun(struct se_cmd *se_cmd, u32 unpacked_lun) argument
320 core_dec_lacl_count(struct se_node_acl *se_nacl, struct se_cmd *se_cmd) argument
653 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);
80 static void transport_generic_request_failure(struct se_cmd *);
1660 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
1976 transport_set_supported_SAM_opcode(struct se_cmd *se_cmd) argument
3998 target_get_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd, bool ack_kref) argument
4021 struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); local
4046 target_put_sess_cmd(struct se_session *se_sess, struct se_cmd *se_cmd) argument
4057 struct se_cmd *se_cmd; local
4083 struct se_cmd *se_cmd, *tmp_cmd; local
[all...]
/drivers/target/loopback/
H A Dtcm_loop.c56 static struct se_cmd *tcm_loop_allocate_core_cmd(
61 struct se_cmd *se_cmd; local
81 se_cmd = &tl_cmd->tl_se_cmd;
105 * Initialize struct se_cmd descriptor from target_core_mod infrastructure
107 transport_init_se_cmd(se_cmd, se_tpg->se_tpg_tfo, se_sess,
112 se_cmd->se_cmd_flags |= SCF_BIDI;
115 * Locate the struct se_lun pointer and attach it to struct se_cmd
117 if (transport_lookup_cmd_lun(se_cmd, tl_cmd->sc->device->lun) < 0) {
123 return se_cmd;
132 tcm_loop_new_cmd_map(struct se_cmd *se_cmd) argument
183 tcm_loop_check_stop_free(struct se_cmd *se_cmd) argument
200 tcm_loop_release_cmd(struct se_cmd *se_cmd) argument
273 struct se_cmd *se_cmd; local
319 struct se_cmd *se_cmd = NULL; local
765 tcm_loop_is_state_remove(struct se_cmd *se_cmd) argument
791 tcm_loop_get_task_tag(struct se_cmd *se_cmd) argument
796 tcm_loop_get_cmd_state(struct se_cmd *se_cmd) argument
827 tcm_loop_write_pending(struct se_cmd *se_cmd) argument
842 tcm_loop_write_pending_status(struct se_cmd *se_cmd) argument
847 tcm_loop_queue_data_in(struct se_cmd *se_cmd) argument
862 tcm_loop_queue_status(struct se_cmd *se_cmd) argument
887 tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) argument
900 tcm_loop_set_fabric_sense_len(struct se_cmd *se_cmd, u32 sense_length) argument
[all...]
/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c98 static int srpt_queue_status(struct se_cmd *cmd);
1081 struct se_cmd *cmd;
1413 struct se_cmd *cmd;
1495 struct se_cmd *cmd;
1702 static int srpt_check_stop_free(struct se_cmd *cmd)
1717 struct se_cmd *cmd;
1851 struct se_cmd *cmd;
2950 static int srpt_write_pending_status(struct se_cmd *se_cmd) argument
2954 ioctx = container_of(se_cmd, struc
2961 srpt_write_pending(struct se_cmd *se_cmd) argument
3474 srpt_release_cmd(struct se_cmd *se_cmd) argument
3552 srpt_get_task_tag(struct se_cmd *se_cmd) argument
3561 srpt_get_tcm_cmd_state(struct se_cmd *se_cmd) argument
3579 srpt_is_state_remove(struct se_cmd *se_cmd) argument
[all...]

Completed in 139 milliseconds