Home
last modified time | relevance | path

Searched refs:se_tpg (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/target/
H A Dtarget_core_tpg.c197 acl->se_tpg = tpg; in target_alloc_node_acl()
207 struct se_portal_group *tpg = acl->se_tpg; in target_add_node_acl()
338 if (acl->se_tpg->se_tpg_tfo->close_session) in target_shutdown_sessions()
339 acl->se_tpg->se_tpg_tfo->close_session(sess); in target_shutdown_sessions()
347 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_del_initiator_node_acl()
383 struct se_portal_group *tpg = acl->se_tpg; in core_tpg_set_initiator_node_queue_depth()
443 static int target_tpg_register_rtpi(struct se_portal_group *se_tpg) in target_tpg_register_rtpi() argument
448 if (se_tpg->rtpi_manual) { in target_tpg_register_rtpi()
449 ret = xa_insert(&tpg_xa, se_tpg->tpg_rtpi, se_tpg, GFP_KERNEL); in target_tpg_register_rtpi()
452 se_tpg->se_tpg_tfo->fabric_name, in target_tpg_register_rtpi()
[all …]
H A Dtarget_core_transport.c381 struct se_portal_group *se_tpg, in __transport_register_session() argument
386 const struct target_core_fabric_ops *tfo = se_tpg->se_tpg_tfo; in __transport_register_session()
390 se_sess->se_tpg = se_tpg; in __transport_register_session()
413 tfo->tpg_check_prot_fabric_only(se_tpg); in __transport_register_session()
418 if (se_tpg->se_tpg_tfo->sess_get_initiator_sid != NULL) { in __transport_register_session()
420 se_tpg->se_tpg_tfo->sess_get_initiator_sid(se_sess, in __transport_register_session()
436 list_add_tail(&se_sess->sess_list, &se_tpg->tpg_sess_list); in __transport_register_session()
439 se_tpg->se_tpg_tfo->fabric_name, se_sess->fabric_sess_ptr); in __transport_register_session()
444 struct se_portal_group *se_tpg, in transport_register_session() argument
451 spin_lock_irqsave(&se_tpg->session_lock, flags); in transport_register_session()
[all …]
H A Dtarget_core_fabric_lib.c291 struct se_portal_group *se_tpg, in iscsi_parse_pr_out_transport_id() argument
421 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id_len()
430 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id_len()
445 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id()
458 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id()
H A Dtarget_core_pr.c209 if (!sess || !sess->se_tpg) in target_scsi2_reservation_release()
228 tpg = sess->se_tpg; in target_scsi2_reservation_release()
260 if (!sess || !sess->se_tpg) in target_scsi2_reservation_reserve()
269 tpg = sess->se_tpg; in target_scsi2_reservation_reserve()
707 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_alloc_registration()
757 if (tfo != nacl_tmp->se_tpg->se_tpg_tfo) in __core_scsi3_alloc_registration()
1022 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local
1033 tfo->fabric_name, tfo->tpg_get_wwn(se_tpg), in __core_scsi3_dump_registration()
1034 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration()
1052 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_add_registration()
[all …]
H A Dtarget_core_internal.h136 int target_tpg_enable(struct se_portal_group *se_tpg);
137 int target_tpg_disable(struct se_portal_group *se_tpg);
H A Dtarget_core_ua.c258 nacl->se_tpg->se_tpg_tfo->fabric_name, in core_scsi3_ua_for_check_condition()
319 " ASCQ: 0x%02x\n", nacl->se_tpg->se_tpg_tfo->fabric_name, in core_scsi3_ua_clear_for_request_sense()
H A Dtarget_core_stat.c847 tpg = nacl->se_tpg; in target_stat_auth_inst_show()
891 tpg = nacl->se_tpg; in target_stat_auth_port_show()
1152 tpg = nacl->se_tpg; in target_stat_iport_inst_show()
1196 tpg = nacl->se_tpg; in target_stat_iport_port_show()
1219 tpg = nacl->se_tpg; in target_stat_iport_indx_show()
1264 tpg = nacl->se_tpg; in target_stat_iport_port_ident_show()
H A Dtarget_core_tmr.c383 tmr_tpg = tmr_sess->se_tpg; in core_tmr_lun_reset()
H A Dtarget_core_xcopy.c483 xcopy_pt_nacl.se_tpg = &xcopy_pt_tpg; in target_xcopy_setup_pt()
486 xcopy_pt_sess.se_tpg = &xcopy_pt_tpg; in target_xcopy_setup_pt()
/linux/drivers/target/tcm_remote/
H A Dtcm_remote.c20 static inline struct tcm_remote_tpg *remote_tpg(struct se_portal_group *se_tpg) in remote_tpg() argument
22 return container_of(se_tpg, struct tcm_remote_tpg, remote_se_tpg); in remote_tpg()
25 static char *tcm_remote_get_endpoint_wwn(struct se_portal_group *se_tpg) in tcm_remote_get_endpoint_wwn() argument
30 return &remote_tpg(se_tpg)->remote_hba->remote_wwn_address[0]; in tcm_remote_get_endpoint_wwn()
33 static u16 tcm_remote_get_tag(struct se_portal_group *se_tpg) in tcm_remote_get_tag() argument
39 return remote_tpg(se_tpg)->remote_tpgt; in tcm_remote_get_tag()
71 struct se_portal_group *se_tpg, in tcm_remote_port_link() argument
80 struct se_portal_group *se_tpg, in tcm_remote_port_unlink() argument
126 static void tcm_remote_drop_tpg(struct se_portal_group *se_tpg) in tcm_remote_drop_tpg() argument
128 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_remote_drop_tpg()
[all …]
/linux/drivers/xen/
H A Dxen-scsiback.c174 struct se_portal_group se_tpg; member
966 mutex_lock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry()
967 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
976 mutex_unlock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry()
1343 static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) in scsiback_get_fabric_wwn() argument
1345 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_fabric_wwn()
1346 struct scsiback_tpg, se_tpg); in scsiback_get_fabric_wwn()
1352 static u16 scsiback_get_tag(struct se_portal_group *se_tpg) in scsiback_get_tag() argument
1354 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_tag()
1355 struct scsiback_tpg, se_tpg); in scsiback_get_tag()
[all …]
/linux/drivers/vhost/
H A Dscsi.c170 struct se_portal_group se_tpg; member
350 static int vhost_scsi_check_true(struct se_portal_group *se_tpg) in vhost_scsi_check_true() argument
355 static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) in vhost_scsi_get_fabric_wwn() argument
357 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn()
358 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn()
364 static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) in vhost_scsi_get_tpgt() argument
366 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt()
367 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt()
371 static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) in vhost_scsi_check_prot_fabric_only() argument
373 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only()
[all …]
/linux/drivers/target/iscsi/
H A Discsi_target_login.c96 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement() local
111 spin_lock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement()
112 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_check_for_session_reinstatement()
139 spin_unlock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement()
450 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() local
455 spin_lock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2()
456 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2()
473 spin_unlock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2()
655 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler() local
711 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler()
[all …]
H A Discsi_target_erl0.c749 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local
751 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
753 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
759 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
768 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
801 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local
803 lockdep_assert_held(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
812 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
816 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
H A Discsi_target.c4476 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_close_session() local
4485 spin_lock_bh(&se_tpg->session_lock); in iscsit_close_session()
4489 spin_unlock_bh(&se_tpg->session_lock); in iscsit_close_session()
4519 spin_lock_bh(&se_tpg->session_lock); in iscsit_close_session()
4534 spin_unlock_bh(&se_tpg->session_lock); in iscsit_close_session()
4733 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_release_sessions_for_tpg() local
4738 spin_lock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg()
4740 spin_unlock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg()
4744 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsit_release_sessions_for_tpg()
4764 spin_unlock_bh(&se_tpg->session_lock); in iscsit_release_sessions_for_tpg()
H A Discsi_target_stat.c591 struct se_wwn *wwn = acl->se_node_acl.se_tpg->se_tpg_wwn; in iscsi_stat_sess_inst_show()
H A Discsi_target_nego.c117 tpg = to_iscsi_tpg(se_nacl->se_tpg); in iscsi_get_node_auth()
/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c189 static int ft_sess_alloc_cb(struct se_portal_group *se_tpg, in ft_sess_alloc_cb() argument
210 struct se_portal_group *se_tpg = &tport->tpg->se_tpg; in ft_sess_create() local
230 sess->se_sess = target_setup_session(se_tpg, TCM_FC_DEFAULT_TAGS, in ft_sess_create()
H A Dtcm_fc.h91 struct se_portal_group se_tpg; member
/linux/drivers/scsi/qla2xxx/
H A Dtcm_qla2xxx.h50 struct se_portal_group se_tpg; member
/linux/drivers/usb/gadget/function/
H A Dtcm.h51 struct se_portal_group se_tpg; member
/linux/drivers/target/sbp/
H A Dsbp_target.h161 struct se_portal_group se_tpg; member
/linux/drivers/scsi/ibmvscsi_tgt/
H A Dibmvscsi_tgt.h184 struct se_portal_group se_tpg; member
/linux/include/target/iscsi/
H A Discsi_target_core.h846 to_iscsi_tpg(struct se_portal_group *se_tpg) in to_iscsi_tpg() argument
848 return container_of(se_tpg, struct iscsi_portal_group, tpg_se_tpg); in to_iscsi_tpg()