Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/target/
Dtarget_core_transport.c277 void transport_init_session(struct se_session *se_sess) in transport_init_session() argument
279 INIT_LIST_HEAD(&se_sess->sess_list); in transport_init_session()
280 INIT_LIST_HEAD(&se_sess->sess_acl_list); in transport_init_session()
281 spin_lock_init(&se_sess->sess_cmd_lock); in transport_init_session()
291 struct se_session *se_sess; in transport_alloc_session() local
293 se_sess = kmem_cache_zalloc(se_sess_cache, GFP_KERNEL); in transport_alloc_session()
294 if (!se_sess) { in transport_alloc_session()
299 transport_init_session(se_sess); in transport_alloc_session()
300 se_sess->sup_prot_ops = sup_prot_ops; in transport_alloc_session()
302 return se_sess; in transport_alloc_session()
[all …]
Dtarget_core_tmr.c74 struct se_session *sess = se_cmd->se_sess; in __target_check_io_state()
97 if ((tmr_sess != se_cmd->se_sess) && tas) in __target_check_io_state()
108 struct se_session *se_sess) in core_tmr_abort_task() argument
123 if (se_sess != se_cmd->se_sess) in core_tmr_abort_task()
140 spin_lock(&se_sess->sess_cmd_lock); in core_tmr_abort_task()
141 rc = __target_check_io_state(se_cmd, se_sess, 0); in core_tmr_abort_task()
142 spin_unlock(&se_sess->sess_cmd_lock); in core_tmr_abort_task()
216 sess = cmd->se_sess; in core_tmr_drain_tmr_list()
320 sess = cmd->se_sess; in core_tmr_drain_state_list()
380 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()
505 se_sess->se_node_acl->initiatorname, cdb[0], in core_scsi3_pr_seq_non_holder()
557 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()
115 se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
119 se_cmd->se_lun = se_sess->se_tpg->tpg_virt_lun0; in transport_lookup_cmd_lun()
147 struct se_session *se_sess = se_cmd->se_sess; in transport_lookup_tmr_lun() local
148 struct se_node_acl *nacl = se_sess->se_node_acl; in transport_lookup_tmr_lun()
186 struct se_session *se_sess = cmd->se_sess; in target_lun_is_rdonly() local
191 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_stat.c1261 struct se_session *se_sess; in target_stat_iport_indx_show() local
1266 se_sess = nacl->nacl_sess; in target_stat_iport_indx_show()
1267 if (!se_sess) { in target_stat_iport_indx_show()
1275 tpg->se_tpg_tfo->sess_get_index(se_sess)); in target_stat_iport_indx_show()
1305 struct se_session *se_sess; in target_stat_iport_port_ident_show() local
1311 se_sess = nacl->nacl_sess; in target_stat_iport_port_ident_show()
1312 if (!se_sess) { in target_stat_iport_port_ident_show()
1321 tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, buf, 64); in target_stat_iport_port_ident_show()
Dtarget_core_spc.c77 struct se_session *sess = cmd->se_sess; in spc_emulate_inquiry_std()
114 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type) in spc_emulate_inquiry_std()
469 struct se_session *sess = cmd->se_sess; in spc_emulate_evpd_86()
478 cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE1_PROT) in spc_emulate_evpd_86()
481 cmd->se_sess->sess_prot_type == TARGET_DIF_TYPE3_PROT) in spc_emulate_evpd_86()
488 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) { in spc_emulate_evpd_86()
805 struct se_session *sess = cmd->se_sess; in spc_modesense_control()
1240 struct se_session *sess = cmd->se_sess; in spc_emulate_report_luns()
2116 struct se_session *sess = cmd->se_sess; in spc_rsoc_get_descr()
/linux-6.6.21/drivers/target/iscsi/
Discsi_target_stat.c603 struct se_session *se_sess; in iscsi_stat_sess_node_show() local
607 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_node_show()
608 if (se_sess) { in iscsi_stat_sess_node_show()
609 sess = se_sess->fabric_sess_ptr; in iscsi_stat_sess_node_show()
624 struct se_session *se_sess; in iscsi_stat_sess_indx_show() local
628 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_indx_show()
629 if (se_sess) { in iscsi_stat_sess_indx_show()
630 sess = se_sess->fabric_sess_ptr; in iscsi_stat_sess_indx_show()
646 struct se_session *se_sess; in iscsi_stat_sess_cmd_pdus_show() local
650 se_sess = se_nacl->nacl_sess; in iscsi_stat_sess_cmd_pdus_show()
[all …]
Discsi_target_nodeattrib.c103 struct se_session *se_sess; in iscsit_na_nopin_timeout() local
127 se_sess = se_nacl->nacl_sess; in iscsit_na_nopin_timeout()
128 if (se_sess) { in iscsit_na_nopin_timeout()
129 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()
455 if (sess->se_sess->sup_prot_ops & in iscsi_login_zero_tsih_s2()
492 struct se_session *se_sess, *se_sess_tmp; in iscsi_login_non_zero_tsih_s2() local
497 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2()
500 sess_p = (struct iscsit_session *)se_sess->fabric_sess_ptr; in iscsi_login_non_zero_tsih_s2()
694 struct se_session *se_sess = sess->se_sess; in iscsi_post_login_handler() local
[all …]
Discsi_target_configfs.c473 struct se_session *se_sess; \
477 se_sess = se_nacl->nacl_sess; \
478 if (!se_sess) { \
482 sess = se_sess->fabric_sess_ptr; \
529 struct se_session *se_sess; in lio_target_nacl_info_show() local
534 se_sess = se_nacl->nacl_sess; in lio_target_nacl_info_show()
535 if (!se_sess) { in lio_target_nacl_info_show()
539 sess = se_sess->fabric_sess_ptr; in lio_target_nacl_info_show()
1366 static u32 lio_sess_get_index(struct se_session *se_sess) in lio_sess_get_index() argument
1368 struct iscsit_session *sess = se_sess->fabric_sess_ptr; in lio_sess_get_index()
[all …]
Discsi_target_util.c125 static int iscsit_wait_for_tag(struct se_session *se_sess, int state, int *cpup) in iscsit_wait_for_tag() argument
135 sbq = &se_sess->sess_tag_pool; in iscsit_wait_for_tag()
158 struct se_session *se_sess = conn->sess->se_sess; in iscsit_allocate_cmd() local
161 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in iscsit_allocate_cmd()
163 tag = iscsit_wait_for_tag(se_sess, state, &cpu); in iscsit_allocate_cmd()
168 cmd = (struct iscsit_cmd *)(se_sess->sess_cmd_map + (tag * size)); in iscsit_allocate_cmd()
709 BUG_ON(!sess || !sess->se_sess); in iscsit_release_cmd()
719 target_free_tag(sess->se_sess, se_cmd); in iscsit_release_cmd()
755 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.c110 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_get_node_auth()
290 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_target_check_first_request()
825 se_nacl = conn->sess->se_sess->se_node_acl; in iscsi_conn_auth_required()
1304 sess->se_sess->se_node_acl = core_tpg_check_initiator_node_acl( in iscsi_target_locate_portal()
1306 if (!sess->se_sess->se_node_acl) { in iscsi_target_locate_portal()
1315 se_nacl = sess->se_sess->se_node_acl; in iscsi_target_locate_portal()
1330 ret = transport_alloc_session_tags(sess->se_sess, tag_num, tag_size); in iscsi_target_locate_portal()
/linux-6.6.21/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c278 struct se_session *se_sess = sess->se_sess; in tcm_qla2xxx_get_cmd() local
282 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in tcm_qla2xxx_get_cmd()
286 cmd = &((struct qla_tgt_cmd *)se_sess->sess_cmd_map)[tag]; in tcm_qla2xxx_get_cmd()
296 target_free_tag(cmd->sess->se_sess, &cmd->se_cmd); in tcm_qla2xxx_rel_cmd()
368 static void tcm_qla2xxx_close_session(struct se_session *se_sess) in tcm_qla2xxx_close_session() argument
370 struct fc_port *sess = se_sess->fabric_sess_ptr; in tcm_qla2xxx_close_session()
374 target_stop_session(se_sess); in tcm_qla2xxx_close_session()
438 struct se_session *se_sess; in tcm_qla2xxx_handle_cmd() local
459 se_sess = sess->se_sess; in tcm_qla2xxx_handle_cmd()
460 if (!se_sess) { in tcm_qla2xxx_handle_cmd()
[all …]
/linux-6.6.21/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_stop_session(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.c81 target_free_tag(sess->se_sess, &cmd->se_cmd); in ft_free_cmd()
365 rc = target_submit_tmr(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_tm()
424 struct se_session *se_sess = sess->se_sess; in ft_recv_cmd() local
427 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in ft_recv_cmd()
431 cmd = &((struct ft_cmd *)se_sess->sess_cmd_map)[tag]; in ft_recv_cmd()
439 target_free_tag(se_sess, &cmd->se_cmd); in ft_recv_cmd()
546 if (target_init_cmd(&cmd->se_cmd, cmd->sess->se_sess, in ft_send_work()
/linux-6.6.21/drivers/target/loopback/
Dtcm_loop.c147 target_init_cmd(se_cmd, tl_nexus->se_sess, &tl_cmd->tl_sense_buf[0], in tcm_loop_target_queue_cmd()
193 struct se_session *se_sess; in tcm_loop_issue_tmr() local
214 se_sess = tl_tpg->tl_nexus->se_sess; in tcm_loop_issue_tmr()
216 rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun, in tcm_loop_issue_tmr()
483 static u32 tcm_loop_sess_get_index(struct se_session *se_sess) in tcm_loop_sess_get_index() argument
672 struct se_session *se_sess, void *p) in tcm_loop_alloc_sess_cb() argument
698 tl_nexus->se_sess = target_setup_session(&tl_tpg->tl_se_tpg, 0, 0, in tcm_loop_make_nexus()
701 if (IS_ERR(tl_nexus->se_sess)) { in tcm_loop_make_nexus()
702 ret = PTR_ERR(tl_nexus->se_sess); in tcm_loop_make_nexus()
715 struct se_session *se_sess; in tcm_loop_drop_nexus() local
[all …]
Dtcm_loop.h28 struct se_session *se_sess; member
/linux-6.6.21/drivers/scsi/elx/efct/
Defct_lio.c339 static void efct_lio_close_session(struct se_session *se_sess) in efct_lio_close_session() argument
341 struct efc_node *node = se_sess->fabric_sess_ptr; in efct_lio_close_session()
343 pr_debug("se_sess=%p node=%p", se_sess, node); in efct_lio_close_session()
1066 struct se_session *se_sess, void *private) in efct_session_cb() argument
1079 tgt_node->session = se_sess; in efct_session_cb()
1163 struct se_session *se_sess; in efct_lio_setup_session() local
1189 se_sess = target_setup_session(se_tpg, 0, 0, TARGET_PROT_NORMAL, wwpn, in efct_lio_setup_session()
1191 if (IS_ERR(se_sess)) { in efct_lio_setup_session()
1202 se_sess, node, id); in efct_lio_setup_session()
1247 struct se_session *se_sess; in efct_lio_remove_session() local
[all …]
/linux-6.6.21/include/target/
Dtarget_core_fabric.h141 void transport_init_session(struct se_session *se_sess);
162 int target_init_cmd(struct se_cmd *se_cmd, struct se_session *se_sess,
178 int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess,
196 void target_stop_session(struct se_session *se_sess);
/linux-6.6.21/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);
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/xen/
Dxen-scsiback.c677 struct se_session *se_sess = nexus->tvn_se_sess; in scsiback_get_pend_req() local
681 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in scsiback_get_pend_req()
687 req = &((struct vscsibk_pend *)se_sess->sess_cmd_map)[tag]; in scsiback_get_pend_req()
1417 target_free_tag(se_cmd->se_sess, se_cmd); in scsiback_release_cmd()
1512 struct se_session *se_sess, void *p) in scsiback_alloc_sess_cb() argument
1558 struct se_session *se_sess; in scsiback_drop_nexus() local
1568 se_sess = tv_nexus->tvn_se_sess; in scsiback_drop_nexus()
1569 if (!se_sess) { in scsiback_drop_nexus()
1595 target_remove_session(se_sess); in scsiback_drop_nexus()
/linux-6.6.21/drivers/usb/gadget/function/
Df_tcm.c1075 struct se_session *se_sess = tv_nexus->tvn_se_sess; in usbg_get_cmd() local
1079 tag = sbitmap_queue_get(&se_sess->sess_tag_pool, &cpu); in usbg_get_cmd()
1083 cmd = &((struct usbg_cmd *)se_sess->sess_cmd_map)[tag]; in usbg_get_cmd()
1276 struct se_session *se_sess = se_cmd->se_sess; in usbg_release_cmd() local
1279 target_free_tag(se_sess, se_cmd); in usbg_release_cmd()
1515 struct se_session *se_sess, void *p) in usbg_alloc_sess_cb() argument
1562 struct se_session *se_sess; in tcm_usbg_drop_nexus() local
1571 se_sess = tv_nexus->tvn_se_sess; in tcm_usbg_drop_nexus()
1572 if (!se_sess) in tcm_usbg_drop_nexus()
1588 target_remove_session(se_sess); in tcm_usbg_drop_nexus()

12