Home
last modified time | relevance | path

Searched refs:se_cmd (Results 1 – 25 of 58) sorted by relevance

123

/openbmc/linux/include/target/
H A Dtarget_core_fabric.h67 void (*release_cmd)(struct se_cmd *);
76 int (*write_pending)(struct se_cmd *);
80 int (*queue_status)(struct se_cmd *);
162 int target_init_cmd(struct se_cmd *se_cmd, struct se_session *se_sess,
165 int target_submit_prep(struct se_cmd *se_cmd, unsigned char *cdb,
169 void target_submit(struct se_cmd *se_cmd);
171 sense_reason_t target_cmd_init_cdb(struct se_cmd *se_cmd, unsigned char *cdb,
176 void target_queue_submission(struct se_cmd *se_cmd);
178 int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess,
235 target_reverse_dma_direction(struct se_cmd *se_cmd) in target_reverse_dma_direction() argument
[all …]
H A Dtarget_core_backend.h45 sense_reason_t (*parse_cdb)(struct se_cmd *cmd);
55 unsigned char *(*get_sense_buffer)(struct se_cmd *);
70 sense_reason_t (*execute_unmap)(struct se_cmd *cmd,
81 void target_complete_cmd(struct se_cmd *, u8);
82 void target_set_cmd_data_length(struct se_cmd *, int);
96 sector_t sbc_get_write_same_sectors(struct se_cmd *cmd);
97 void sbc_dif_generate(struct se_cmd *);
112 void *transport_kmap_data_sg(struct se_cmd *);
113 void transport_kunmap_data_sg(struct se_cmd *);
118 bool target_lun_is_rdonly(struct se_cmd *);
[all …]
/openbmc/linux/drivers/target/tcm_fc/
H A Dtfc_cmd.c35 struct se_cmd *se_cmd; in _ft_dump_cmd() local
39 se_cmd = &cmd->se_cmd; in _ft_dump_cmd()
45 se_cmd->data_length, se_cmd->se_cmd_flags); in _ft_dump_cmd()
47 for_each_sg(se_cmd->t_data_sg, sg, se_cmd->t_data_nents, count) in _ft_dump_cmd()
85 void ft_release_cmd(struct se_cmd *se_cmd) in ft_release_cmd() argument
87 struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); in ft_release_cmd()
92 int ft_check_stop_free(struct se_cmd *se_cmd) in ft_check_stop_free() argument
100 int ft_queue_status(struct se_cmd *se_cmd) in ft_queue_status() argument
177 int ft_write_pending(struct se_cmd *se_cmd) in ft_write_pending() argument
375 void ft_queue_tm_resp(struct se_cmd *se_cmd) in ft_queue_tm_resp() argument
[all …]
H A Dtfc_io.c41 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()
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()
182 return ft_queue_status(se_cmd); in ft_queue_data_in()
189 target_execute_cmd(&cmd->se_cmd); in ft_execute_work()
197 struct se_cmd *se_cmd = &cmd->se_cmd; in ft_recv_write_data() local
236 se_cmd->t_data_sg, se_cmd->t_data_nents); in ft_recv_write_data()
266 if (rel_off >= se_cmd->data_length) in ft_recv_write_data()
[all …]
H A Dtcm_fc.h109 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 *);
/openbmc/linux/drivers/target/
H A Dtarget_core_xcopy.c391 struct se_cmd se_cmd; member
400 static int xcopy_pt_get_cmd_state(struct se_cmd *se_cmd) in xcopy_pt_get_cmd_state() argument
415 static void xcopy_pt_release_cmd(struct se_cmd *se_cmd) in xcopy_pt_release_cmd() argument
433 static int xcopy_pt_write_pending(struct se_cmd *se_cmd) in xcopy_pt_write_pending() argument
443 static int xcopy_pt_queue_status(struct se_cmd *se_cmd) in xcopy_pt_queue_status() argument
517 struct se_cmd *cmd = &xpt_cmd->se_cmd; in target_xcopy_setup_pt_cmd()
551 struct se_cmd *se_cmd = &xpt_cmd->se_cmd; in target_xcopy_issue_pt_cmd() local
577 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; in target_xcopy_read_source() local
622 struct se_cmd *se_cmd = &xpt_cmd.se_cmd; in target_xcopy_write_destination() local
788 struct se_cmd *se_cmd = xop->xop_se_cmd; in target_parse_xcopy_cmd() local
[all …]
H A Dtarget_core_tmr.c27 struct se_cmd *se_cmd, in core_tmr_alloc_req() argument
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
111 struct se_cmd *se_cmd, *next; in core_tmr_abort_task() local
133 ref_tag = se_cmd->tag; in core_tmr_abort_task()
147 se_cmd->state_active = false; in core_tmr_abort_task()
183 struct se_cmd *cmd; in core_tmr_drain_tmr_list()
267 struct se_cmd *prout_cmd, in core_tmr_drain_state_list()
[all …]
H A Dtarget_core_transport.c786 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_complete_failure_work()
880 struct se_cmd *cmd = container_of(work, struct se_cmd, work); in target_abort_work()
1675 BUG_ON(se_cmd->se_tfo || se_cmd->se_sess); in target_init_cmd()
1791 void target_submit(struct se_cmd *se_cmd) in target_submit() argument
1909 struct se_cmd *se_cmd, *next_cmd; in target_queued_submit_work() local
1937 void target_queue_submission(struct se_cmd *se_cmd) in target_queue_submission() argument
1951 struct se_cmd *se_cmd = container_of(work, struct se_cmd, work); in target_complete_tmr_failure() local
1954 se_cmd->se_tfo->queue_tm_rsp(se_cmd); in target_complete_tmr_failure()
3033 struct se_cmd *se_cmd = container_of(kref, struct se_cmd, cmd_kref); in target_release_cmd_kref() local
3039 se_cmd->se_tfo->release_cmd(se_cmd); in target_release_cmd_kref()
[all …]
H A Dtarget_core_device.c48 transport_lookup_cmd_lun(struct se_cmd *se_cmd) in transport_lookup_cmd_lun() argument
72 se_cmd->se_tfo->fabric_name, in transport_lookup_cmd_lun()
73 se_cmd->orig_fe_lun); in transport_lookup_cmd_lun()
85 se_cmd->se_lun = se_lun; in transport_lookup_cmd_lun()
88 se_cmd->lun_ref_active = true; in transport_lookup_cmd_lun()
102 se_cmd->se_tfo->fabric_name, in transport_lookup_cmd_lun()
103 se_cmd->orig_fe_lun, in transport_lookup_cmd_lun()
143 int transport_lookup_tmr_lun(struct se_cmd *se_cmd) in transport_lookup_tmr_lun() argument
161 se_cmd->se_lun = se_lun; in transport_lookup_tmr_lun()
172 se_cmd->se_tfo->fabric_name, in transport_lookup_tmr_lun()
[all …]
H A Dtarget_core_pr.h62 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 Dtarget_core_user.c177 struct se_cmd *se_cmd; member
581 struct se_cmd *se_cmd = cmd->se_cmd; in tcmu_cmd_set_block_cnts() local
777 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; in scatter_data_area() local
786 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; in gather_data_area() local
903 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; in tcmu_cmd_get_cmd_size() local
1015 struct se_cmd *se_cmd = tcmu_cmd->se_cmd; in queue_cmd_ring() local
1261 struct se_cmd *se_cmd; in tcmu_tmr_notify() local
1323 struct se_cmd *se_cmd = cmd->se_cmd; in tcmu_handle_completion() local
1520 struct se_cmd *se_cmd; in tcmu_check_expired_ring_cmd() local
1527 se_cmd = cmd->se_cmd; in tcmu_check_expired_ring_cmd()
[all …]
H A Dtarget_core_alua.h85 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 Dtarget_core_ua.h36 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 Dtarget_core_xcopy.h24 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 *);
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dtcm_qla2xxx.c324 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in tcm_qla2xxx_check_stop_free()
334 static void tcm_qla2xxx_release_cmd(struct se_cmd *se_cmd) in tcm_qla2xxx_release_cmd() argument
344 cmd = container_of(se_cmd, struct qla_tgt_cmd, se_cmd); in tcm_qla2xxx_release_cmd()
380 static int tcm_qla2xxx_write_pending(struct se_cmd *se_cmd) in tcm_qla2xxx_write_pending() argument
419 static int tcm_qla2xxx_get_cmd_state(struct se_cmd *se_cmd) in tcm_qla2xxx_get_cmd_state() argument
437 struct se_cmd *se_cmd = &cmd->se_cmd; in tcm_qla2xxx_handle_cmd() local
561 struct se_cmd *se_cmd = &cmd->se_cmd; in tcm_qla2xxx_dif_tags() local
579 struct se_cmd *se_cmd = &mcmd->se_cmd; in tcm_qla2xxx_handle_tmr() local
696 cmd->se_cmd.transport_state, cmd->se_cmd.t_state, in tcm_qla2xxx_queue_status()
717 se_cmd->residual_count += se_cmd->data_length; in tcm_qla2xxx_queue_status()
[all …]
/openbmc/linux/drivers/target/loopback/
H A Dtcm_loop.c46 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
65 static void tcm_loop_release_cmd(struct se_cmd *se_cmd) in tcm_loop_release_cmd() argument
103 struct se_cmd *se_cmd = &tl_cmd->tl_se_cmd; in tcm_loop_target_queue_cmd() local
192 struct se_cmd *se_cmd; in tcm_loop_issue_tmr() local
488 static int tcm_loop_get_cmd_state(struct se_cmd *se_cmd) in tcm_loop_get_cmd_state() argument
496 static int tcm_loop_write_pending(struct se_cmd *se_cmd) in tcm_loop_write_pending() argument
512 struct se_cmd *se_cmd, u8 scsi_status) in tcm_loop_queue_data_or_status() argument
538 static int tcm_loop_queue_data_in(struct se_cmd *se_cmd) in tcm_loop_queue_data_in() argument
543 static int tcm_loop_queue_status(struct se_cmd *se_cmd) in tcm_loop_queue_status() argument
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Df_tcm.c205 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_read_response() local
247 struct se_cmd *se_cmd = &cmd->se_cmd; in bot_send_write_request() local
512 struct se_cmd *se_cmd = &cmd->se_cmd; in uasp_prepare_r_request() local
545 struct se_cmd *se_cmd = &cmd->se_cmd; in uasp_prepare_status() local
676 struct se_cmd *se_cmd = &cmd->se_cmd; in uasp_send_write_request() local
958 struct se_cmd *se_cmd = &cmd->se_cmd; in usbg_data_write_cmpl() local
981 struct se_cmd *se_cmd = &cmd->se_cmd; in usbg_prepare_w_request() local
1043 struct se_cmd *se_cmd; in usbg_cmd_work() local
1048 se_cmd = &cmd->se_cmd; in usbg_cmd_work()
1172 struct se_cmd *se_cmd; in bot_cmd_work() local
[all …]
/openbmc/linux/drivers/infiniband/ulp/isert/
H A Dib_isert.c1411 struct se_cmd *se_cmd = &cmd->iscsit_cmd->se_cmd; in isert_rdma_rw_ctx_destroy() local
1420 se_cmd->t_data_nents, se_cmd->t_prot_sg, in isert_rdma_rw_ctx_destroy()
1424 se_cmd->t_data_sg, se_cmd->t_data_nents, dir); in isert_rdma_rw_ctx_destroy()
1457 struct se_cmd *se_cmd = &cmd->se_cmd; in isert_put_cmd() local
1582 struct se_cmd *cmd = &isert_cmd->iscsit_cmd->se_cmd; in isert_rdma_write_done()
1625 struct se_cmd *se_cmd = &cmd->se_cmd; in isert_rdma_read_done() local
2042 struct se_cmd *se_cmd = &cmd->iscsit_cmd->se_cmd; in isert_rdma_rw_ctx_post() local
2071 se_cmd->t_data_sg, se_cmd->t_data_nents, in isert_rdma_rw_ctx_post()
2072 se_cmd->t_prot_sg, se_cmd->t_prot_nents, in isert_rdma_rw_ctx_post()
2076 se_cmd->t_data_sg, se_cmd->t_data_nents, in isert_rdma_rw_ctx_post()
[all …]
/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_tmr.c157 if (ref_lun != ref_cmd->se_cmd.orig_fe_lun) { in iscsit_tmr_task_reassign()
160 ref_lun, ref_cmd->se_cmd.orig_fe_lun); in iscsit_tmr_task_reassign()
233 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_task_reassign_complete_write() local
255 cmd->init_task_tag, cmd->se_cmd.t_state); in iscsit_task_reassign_complete_write()
256 target_execute_cmd(se_cmd); in iscsit_task_reassign_complete_write()
275 cmd->se_cmd.data_length) { in iscsit_task_reassign_complete_write()
277 length = (cmd->se_cmd.data_length - offset); in iscsit_task_reassign_complete_write()
304 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_task_reassign_complete_read() local
320 cmd->se_cmd.t_state); in iscsit_task_reassign_complete_read()
321 transport_handle_cdb_direct(se_cmd); in iscsit_task_reassign_complete_read()
[all …]
H A Discsi_target_seq_pdu_list.c213 if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) in iscsit_determine_counts_for_list()
227 while (offset < cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list()
242 (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list()
243 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list()
263 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list()
313 while (offset < cmd->se_cmd.data_length) { in iscsit_do_build_pdu_and_seq_lists()
351 (cmd->se_cmd.data_length - offset); in iscsit_do_build_pdu_and_seq_lists()
357 (cmd->se_cmd.data_length - offset)); in iscsit_do_build_pdu_and_seq_lists()
360 (cmd->se_cmd.data_length - offset); in iscsit_do_build_pdu_and_seq_lists()
408 (cmd->se_cmd.data_length - offset)); in iscsit_do_build_pdu_and_seq_lists()
[all …]
H A Discsi_target_configfs.c1359 static int iscsi_get_cmd_state(struct se_cmd *se_cmd) in iscsi_get_cmd_state() argument
1361 struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); in iscsi_get_cmd_state()
1385 static int lio_queue_data_in(struct se_cmd *se_cmd) in lio_queue_data_in() argument
1387 struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); in lio_queue_data_in()
1394 static int lio_write_pending(struct se_cmd *se_cmd) in lio_write_pending() argument
1396 struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); in lio_write_pending()
1405 static int lio_queue_status(struct se_cmd *se_cmd) in lio_queue_status() argument
1418 static void lio_queue_tm_rsp(struct se_cmd *se_cmd) in lio_queue_tm_rsp() argument
1426 static void lio_aborted_task(struct se_cmd *se_cmd) in lio_aborted_task() argument
1529 static int lio_check_stop_free(struct se_cmd *se_cmd) in lio_check_stop_free() argument
[all …]
H A Discsi_target.c869 target_put_sess_cmd(&cmd->se_cmd); in iscsit_add_reject_from_cmd()
910 sg = &cmd->se_cmd.t_data_sg[ent]; in iscsit_map_iovec()
941 cmd->se_cmd.t_data_nents, i) { in iscsit_map_iovec()
1492 struct se_cmd *se_cmd; in __iscsit_check_dataout_hdr() local
1515 se_cmd = &cmd->se_cmd; in __iscsit_check_dataout_hdr()
1521 cmd->se_cmd.data_length); in __iscsit_check_dataout_hdr()
1723 target_execute_cmd(&cmd->se_cmd); in iscsit_check_dataout_payload()
2890 cmd->se_cmd.data_length); in iscsit_send_datain()
3297 if (cmd->se_cmd.sense_buffer && in iscsit_send_response()
4220 struct se_cmd *se_cmd = &cmd->se_cmd; in iscsit_release_commands_from_conn() local
[all …]
/openbmc/linux/drivers/xen/
H A Dxen-scsiback.c135 struct se_cmd se_cmd; member
423 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_cmd_exec() local
620 struct se_cmd *se_cmd = &pending_req->se_cmd; in scsiback_device_action() local
1410 static int scsiback_check_stop_free(struct se_cmd *se_cmd) in scsiback_check_stop_free() argument
1415 static void scsiback_release_cmd(struct se_cmd *se_cmd) in scsiback_release_cmd() argument
1417 target_free_tag(se_cmd->se_sess, se_cmd); in scsiback_release_cmd()
1420 static int scsiback_write_pending(struct se_cmd *se_cmd) in scsiback_write_pending() argument
1428 static int scsiback_queue_data_in(struct se_cmd *se_cmd) in scsiback_queue_data_in() argument
1438 static int scsiback_queue_status(struct se_cmd *se_cmd) in scsiback_queue_status() argument
1454 static void scsiback_queue_tm_rsp(struct se_cmd *se_cmd) in scsiback_queue_tm_rsp() argument
[all …]
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/
H A Dibmvscsi_tgt.c58 static void ibmvscsis_determine_resid(struct se_cmd *se_cmd, in ibmvscsis_determine_resid() argument
1290 memset(&cmd->se_cmd, 0, sizeof(cmd->se_cmd)); in ibmvscsis_get_free_cmd()
3047 struct se_cmd *se_cmd = &cmd->se_cmd; in ibmvscsis_fast_fail() local
3057 se_cmd->residual_count == se_cmd->data_length)) { in ibmvscsis_fast_fail()
3078 struct se_cmd *se_cmd = &cmd->se_cmd; in srp_build_response() local
3706 static void ibmvscsis_release_cmd(struct se_cmd *se_cmd) in ibmvscsis_release_cmd() argument
3719 static int ibmvscsis_write_pending(struct se_cmd *se_cmd) in ibmvscsis_write_pending() argument
3753 static int ibmvscsis_queue_data_in(struct se_cmd *se_cmd) in ibmvscsis_queue_data_in() argument
3780 static int ibmvscsis_queue_status(struct se_cmd *se_cmd) in ibmvscsis_queue_status() argument
3808 se_cmd, (int)se_cmd->se_tmr_req->response); in ibmvscsis_queue_tm_rsp()
[all …]
/openbmc/linux/drivers/target/sbp/
H A Dsbp_target.c1286 sg_miter_start(&iter, req->se_cmd.t_data_sg, req->se_cmd.t_data_nents, in sbp_rw_data()
1357 struct se_cmd *se_cmd = &req->se_cmd; in sbp_sense_mangle() local
1424 struct se_cmd *se_cmd = &req->se_cmd; in sbp_send_sense() local
1441 struct se_cmd *se_cmd = &req->se_cmd; in sbp_free_request() local
1690 static void sbp_release_cmd(struct se_cmd *se_cmd) in sbp_release_cmd() argument
1698 static int sbp_write_pending(struct se_cmd *se_cmd) in sbp_write_pending() argument
1721 static int sbp_queue_data_in(struct se_cmd *se_cmd) in sbp_queue_data_in() argument
1745 static int sbp_queue_status(struct se_cmd *se_cmd) in sbp_queue_status() argument
1753 static void sbp_queue_tm_rsp(struct se_cmd *se_cmd) in sbp_queue_tm_rsp() argument
1757 static void sbp_aborted_task(struct se_cmd *se_cmd) in sbp_aborted_task() argument
[all …]

123