Home
last modified time | relevance | path

Searched refs:se_sess (Results 1 – 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_transport.c227 int transport_init_session(struct se_session *se_sess) in transport_init_session() argument
229 INIT_LIST_HEAD(&se_sess->sess_list); in transport_init_session()
230 INIT_LIST_HEAD(&se_sess->sess_acl_list); in transport_init_session()
231 INIT_LIST_HEAD(&se_sess->sess_cmd_list); in transport_init_session()
232 spin_lock_init(&se_sess->sess_cmd_lock); in transport_init_session()
233 init_waitqueue_head(&se_sess->cmd_list_wq); in transport_init_session()
234 return percpu_ref_init(&se_sess->cmd_count, in transport_init_session()
239 void transport_uninit_session(struct se_session *se_sess) in transport_uninit_session() argument
241 percpu_ref_exit(&se_sess->cmd_count); in transport_uninit_session()
250 struct se_session *se_sess; in transport_alloc_session() local
[all …]
Dtarget_core_tmr.c83 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state()
106 if ((tmr_sess != se_cmd->se_sess) && tas) in __target_check_io_state()
117 struct se_session *se_sess) in core_tmr_abort_task() argument
128 if (se_sess != se_cmd->se_sess) in core_tmr_abort_task()
142 spin_lock(&se_sess->sess_cmd_lock); in core_tmr_abort_task()
143 rc = __target_check_io_state(se_cmd, se_sess, 0); in core_tmr_abort_task()
144 spin_unlock(&se_sess->sess_cmd_lock); in core_tmr_abort_task()
217 sess = cmd->se_sess; in core_tmr_drain_tmr_list()
315 sess = cmd->se_sess; in core_tmr_drain_state_list()
374 if (tmr && tmr->task_cmd && tmr->task_cmd->se_sess) { in core_tmr_lun_reset()
[all …]
Dtarget_core_pr.c90 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_check()
121 struct se_session *se_sess = cmd->se_sess; in target_check_scsi2_reservation_conflict() local
127 pr_reg = core_scsi3_locate_pr_reg(cmd->se_dev, se_sess->se_node_acl, in target_check_scsi2_reservation_conflict()
128 se_sess); in target_check_scsi2_reservation_conflict()
204 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_release()
245 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_reserve()
315 struct se_session *se_sess = cmd->se_sess; in core_scsi3_pr_seq_non_holder() local
316 struct se_node_acl *nacl = se_sess->se_node_acl; in core_scsi3_pr_seq_non_holder()
504 se_sess->se_node_acl->initiatorname, cdb[0], in core_scsi3_pr_seq_non_holder()
556 se_sess->se_node_acl->initiatorname, cdb[0], in core_scsi3_pr_seq_non_holder()
[all …]
Dtarget_core_device.c51 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_cmd_lun() local
52 struct se_node_acl *nacl = se_sess->se_node_acl; in transport_lookup_cmd_lun()
109 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
110 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
150 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_tmr_lun() local
151 struct se_node_acl *nacl = se_sess->se_node_acl; in transport_lookup_tmr_lun()
194 struct se_session *se_sess = cmd->se_sess; in target_lun_is_rdonly() local
199 deve = target_nacl_find_deve(se_sess->se_node_acl, cmd->orig_fe_lun); in target_lun_is_rdonly()
Dtarget_core_ua.c29 struct se_session *sess = cmd->se_sess; in target_scsi3_ua_check()
198 struct se_session *sess = cmd->se_sess; in core_scsi3_ua_for_check_condition()
272 struct se_session *sess = cmd->se_sess; in core_scsi3_ua_clear_for_request_sense()
Dtarget_core_spc.c55 struct se_session *sess = cmd->se_sess; in spc_emulate_inquiry_std()
92 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
441 struct se_session *sess = cmd->se_sess; in spc_emulate_evpd_86()
450 cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE1_PROT) in spc_emulate_evpd_86()
453 cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE3_PROT) in spc_emulate_evpd_86()
460 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
777 struct se_session *sess = cmd->se_sess; in spc_modesense_control()
1212 struct se_session *sess = cmd->se_sess; in spc_emulate_report_luns()
Dtarget_core_stat.c1266 struct se_session *se_sess; in target_stat_iport_indx_show() local
1271 se_sess = nacl->nacl_sess; in target_stat_iport_indx_show()
1272 if (!se_sess) { in target_stat_iport_indx_show()
1280 tpg->se_tpg_tfo->sess_get_index(se_sess)); in target_stat_iport_indx_show()
1310 struct se_session *se_sess; in target_stat_iport_port_ident_show() local
1316 se_sess = nacl->nacl_sess; in target_stat_iport_port_ident_show()
1317 if (!se_sess) { in target_stat_iport_port_ident_show()
1326 tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, buf, 64); in target_stat_iport_port_ident_show()
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_stat.c604 struct se_session *se_sess; in iscsi_stat_sess_node_show() local
608 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_node_show()
609 if (se_sess) { in iscsi_stat_sess_node_show()
610 sess = se_sess->fabric_sess_ptr; in iscsi_stat_sess_node_show()
625 struct se_session *se_sess; in iscsi_stat_sess_indx_show() local
629 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_indx_show()
630 if (se_sess) { in iscsi_stat_sess_indx_show()
631 sess = se_sess->fabric_sess_ptr; in iscsi_stat_sess_indx_show()
647 struct se_session *se_sess; in iscsi_stat_sess_cmd_pdus_show() local
651 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_cmd_pdus_show()
[all …]
Discsi_target_nodeattrib.c102 struct se_session *se_sess; in iscsit_na_nopin_timeout() local
126 se_sess = se_nacl->nacl_sess; in iscsit_na_nopin_timeout()
127 if (se_sess) { in iscsit_na_nopin_timeout()
128 sess = se_sess->fabric_sess_ptr; in iscsit_na_nopin_timeout()
Discsi_target_login.c138 struct se_session *se_sess, *se_sess_tmp; in iscsi_check_for_session_reinstatement() local
153 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_check_for_session_reinstatement()
156 sess_p = se_sess->fabric_sess_ptr; in iscsi_check_for_session_reinstatement()
320 sess->se_sess = transport_alloc_session(TARGET_PROT_NORMAL); in iscsi_login_zero_tsih_s1()
321 if (IS_ERR(sess->se_sess)) { in iscsi_login_zero_tsih_s1()
442 if (sess->se_sess->sup_prot_ops & in iscsi_login_zero_tsih_s2()
479 struct se_session *se_sess, *se_sess_tmp; in iscsi_login_non_zero_tsih_s2() local
484 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2()
487 sess_p = (struct iscsi_session *)se_sess->fabric_sess_ptr; in iscsi_login_non_zero_tsih_s2()
681 struct se_session *se_sess = sess->se_sess; in iscsi_post_login_handler() local
[all …]
Discsi_target_configfs.c448 struct se_session *se_sess; \
452 se_sess = se_nacl->nacl_sess; \
453 if (!se_sess) { \
457 sess = se_sess->fabric_sess_ptr; \
504 struct se_session *se_sess; in lio_target_nacl_info_show() local
509 se_sess = se_nacl->nacl_sess; in lio_target_nacl_info_show()
510 if (!se_sess) { in lio_target_nacl_info_show()
514 sess = se_sess->fabric_sess_ptr; in lio_target_nacl_info_show()
1345 static u32 lio_sess_get_index(struct se_session *se_sess) in lio_sess_get_index() argument
1347 struct iscsi_session *sess = se_sess->fabric_sess_ptr; in lio_sess_get_index()
[all …]
Discsi_target_util.c142 static int iscsit_wait_for_tag(struct se_session *se_sess, int state, int *cpup) in iscsit_wait_for_tag() argument
152 sbq = &se_sess->sess_tag_pool; in iscsit_wait_for_tag()
175 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd() local
178 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in iscsit_allocate_cmd()
180 tag = iscsit_wait_for_tag(se_sess, state, &cpu); in iscsit_allocate_cmd()
185 cmd = (struct iscsi_cmd *)(se_sess->sess_cmd_map + (tag * size)); in iscsit_allocate_cmd()
726 BUG_ON(!sess || !sess->se_sess); in iscsit_release_cmd()
736 target_free_tag(sess->se_sess, se_cmd); in iscsit_release_cmd()
772 if (!rc && shutdown && se_cmd->se_sess) { in iscsit_free_cmd()
Discsi_target_device.c33 se_nacl = sess->se_sess->se_node_acl; in iscsit_determine_maxcmdsn()
Discsi_target_nego.c116 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_handle_authentication()
298 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_target_check_first_request()
1261 sess->se_sess->se_node_acl = core_tpg_check_initiator_node_acl( in iscsi_target_locate_portal()
1263 if (!sess->se_sess->se_node_acl) { in iscsi_target_locate_portal()
1272 se_nacl = sess->se_sess->se_node_acl; in iscsi_target_locate_portal()
1287 ret = transport_alloc_session_tags(sess->se_sess, tag_num, tag_size); in iscsi_target_locate_portal()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c273 struct se_session *se_sess = sess->se_sess; in tcm_qla2xxx_get_cmd() local
277 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in tcm_qla2xxx_get_cmd()
281 cmd = &((struct qla_tgt_cmd *)se_sess->sess_cmd_map)[tag]; in tcm_qla2xxx_get_cmd()
291 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd()
363 static void tcm_qla2xxx_close_session(struct se_session *se_sess) in tcm_qla2xxx_close_session() argument
365 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
373 target_sess_cmd_list_set_waiting(se_sess); in tcm_qla2xxx_close_session()
380 static u32 tcm_qla2xxx_sess_get_index(struct se_session *se_sess) in tcm_qla2xxx_sess_get_index() argument
448 struct se_session *se_sess; in tcm_qla2xxx_handle_cmd() local
468 se_sess = sess->se_sess; in tcm_qla2xxx_handle_cmd()
[all …]
/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtfc_sess.c190 struct se_session *se_sess, void *p) in ft_sess_alloc_cb() argument
230 sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, in ft_sess_create()
234 if (IS_ERR(sess->se_sess)) { in ft_sess_create()
235 int rc = PTR_ERR(sess->se_sess); in ft_sess_create()
278 target_sess_cmd_list_set_waiting(sess->se_sess); in ft_close_sess()
279 target_wait_for_sess_cmds(sess->se_sess); in ft_close_sess()
309 void ft_sess_close(struct se_session *se_sess) in ft_sess_close() argument
311 struct ft_sess *sess = se_sess->fabric_sess_ptr; in ft_sess_close()
328 u32 ft_sess_get_index(struct se_session *se_sess) in ft_sess_get_index() argument
330 struct ft_sess *sess = se_sess->fabric_sess_ptr; in ft_sess_get_index()
[all …]
Dtfc_cmd.c82 target_free_tag(sess->se_sess, &cmd->se_cmd); in ft_free_cmd()
371 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm()
430 struct se_session *se_sess = sess->se_sess; in ft_recv_cmd() local
433 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in ft_recv_cmd()
437 cmd = &((struct ft_cmd *)se_sess->sess_cmd_map)[tag]; in ft_recv_cmd()
445 target_free_tag(se_sess, &cmd->se_cmd); in ft_recv_cmd()
551 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, in ft_send_work()
Dtcm_fc.h34 struct se_session *se_sess; member
/kernel/linux/linux-5.10/drivers/target/loopback/
Dtcm_loop.c145 rc = target_submit_cmd_map_sgls(se_cmd, tl_nexus->se_sess, sc->cmnd, in tcm_loop_submission_work()
198 struct se_session *se_sess; in tcm_loop_issue_tmr() local
219 se_sess = tl_tpg->tl_nexus->se_sess; in tcm_loop_issue_tmr()
221 rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun, in tcm_loop_issue_tmr()
516 static u32 tcm_loop_sess_get_index(struct se_session *se_sess) in tcm_loop_sess_get_index() argument
712 struct se_session *se_sess, void *p) in tcm_loop_alloc_sess_cb() argument
738 tl_nexus->se_sess = target_setup_session(&tl_tpg->tl_se_tpg, 0, 0, in tcm_loop_make_nexus()
741 if (IS_ERR(tl_nexus->se_sess)) { in tcm_loop_make_nexus()
742 ret = PTR_ERR(tl_nexus->se_sess); in tcm_loop_make_nexus()
755 struct se_session *se_sess; in tcm_loop_drop_nexus() local
[all …]
Dtcm_loop.h29 struct se_session *se_sess; member
/kernel/linux/linux-5.10/include/trace/events/
Dtarget.h146 __string( initiator, cmd->se_sess->se_node_acl->initiatorname )
157 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);
186 __string(initiator, cmd->se_sess->se_node_acl->initiatorname)
201 __assign_str(initiator, cmd->se_sess->se_node_acl->initiatorname);
/kernel/linux/linux-5.10/drivers/target/sbp/
Dsbp_target.c80 struct se_session *se_sess; in sbp_session_find_by_guid() local
84 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid()
85 sess = se_sess->fabric_sess_ptr; in sbp_session_find_by_guid()
114 struct se_session *se_sess; in sbp_login_count_all_by_lun() local
120 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun()
121 sess = se_sess->fabric_sess_ptr; in sbp_login_count_all_by_lun()
141 struct se_session *se_sess; in sbp_login_find_by_id() local
146 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id()
147 sess = se_sess->fabric_sess_ptr; in sbp_login_find_by_id()
199 sess->se_sess = target_setup_session(&tpg->se_tpg, 128, in sbp_session_create()
[all …]
/kernel/linux/linux-5.10/include/target/
Dtarget_core_fabric.h135 int transport_init_session(struct se_session *se_sess);
163 int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess,
/kernel/linux/linux-5.10/drivers/xen/
Dxen-scsiback.c618 struct se_session *se_sess = nexus->tvn_se_sess; in scsiback_get_pend_req() local
622 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in scsiback_get_pend_req()
628 req = &((struct vscsibk_pend *)se_sess->sess_cmd_map)[tag]; in scsiback_get_pend_req()
1364 target_free_tag(se_cmd->se_sess, se_cmd); in scsiback_release_cmd()
1367 static u32 scsiback_sess_get_index(struct se_session *se_sess) in scsiback_sess_get_index() argument
1474 struct se_session *se_sess, void *p) in scsiback_alloc_sess_cb() argument
1520 struct se_session *se_sess; in scsiback_drop_nexus() local
1530 se_sess = tv_nexus->tvn_se_sess; in scsiback_drop_nexus()
1531 if (!se_sess) { in scsiback_drop_nexus()
1557 target_remove_session(se_sess); in scsiback_drop_nexus()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_tcm.c1077 struct se_session *se_sess = tv_nexus->tvn_se_sess; in usbg_get_cmd() local
1081 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in usbg_get_cmd()
1085 cmd = &((struct usbg_cmd *)se_sess->sess_cmd_map)[tag]; in usbg_get_cmd()
1290 struct se_session *se_sess = se_cmd->se_sess; in usbg_release_cmd() local
1293 target_free_tag(se_sess, se_cmd); in usbg_release_cmd()
1296 static u32 usbg_sess_get_index(struct se_session *se_sess) in usbg_sess_get_index() argument
1561 struct se_session *se_sess, void *p) in usbg_alloc_sess_cb() argument
1608 struct se_session *se_sess; in tcm_usbg_drop_nexus() local
1617 se_sess = tv_nexus->tvn_se_sess; in tcm_usbg_drop_nexus()
1618 if (!se_sess) in tcm_usbg_drop_nexus()
[all …]

12