Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/target/
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 …]
Dtarget_core_fabric_configfs.c74 struct se_portal_group *se_tpg; in target_fabric_mappedlun_link() local
97 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link()
130 (se_tpg->se_tpg_tfo->tpg_check_prod_mode_write_protect( in target_fabric_mappedlun_link()
131 se_tpg)) ? true : false; in target_fabric_mappedlun_link()
139 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); in target_fabric_mappedlun_link()
183 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_mappedlun_write_protect_store() local
199 se_tpg->se_tpg_tfo->fabric_name, in target_fabric_mappedlun_write_protect_store()
217 struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; in target_fabric_mappedlun_release() local
219 core_dev_free_initiator_node_lun_acl(se_tpg, lacl); in target_fabric_mappedlun_release()
271 struct se_portal_group *se_tpg = se_nacl->se_tpg; in target_fabric_make_mappedlun() local
[all …]
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 …]
Dtarget_core_fabric_lib.c261 struct se_portal_group *se_tpg, in iscsi_parse_pr_out_transport_id() argument
348 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id_len()
357 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id_len()
372 switch (nacl->se_tpg->proto_id) { in target_get_pr_transport_id()
385 pr_err("Unknown proto_id: 0x%02x\n", nacl->se_tpg->proto_id); in target_get_pr_transport_id()
Dtarget_core_pr.c208 if (!sess || !sess->se_tpg) in target_scsi2_reservation_release()
227 tpg = sess->se_tpg; in target_scsi2_reservation_release()
259 if (!sess || !sess->se_tpg) in target_scsi2_reservation_reserve()
268 tpg = sess->se_tpg; in target_scsi2_reservation_reserve()
705 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_alloc_registration()
755 if (tfo != nacl_tmp->se_tpg->se_tpg_tfo) in __core_scsi3_alloc_registration()
1020 struct se_portal_group *se_tpg = nacl->se_tpg; in __core_scsi3_dump_registration() local
1031 tfo->fabric_name, tfo->tpg_get_wwn(se_tpg), in __core_scsi3_dump_registration()
1032 tfo->tpg_get_tag(se_tpg)); in __core_scsi3_dump_registration()
1050 const struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_add_registration()
[all …]
Dtarget_core_internal.h134 int target_tpg_enable(struct se_portal_group *se_tpg);
135 int target_tpg_disable(struct se_portal_group *se_tpg);
Dtarget_core_alua.c1171 struct se_portal_group *se_tpg = lun->lun_tpg; in core_alua_update_tpg_secondary_metadata() local
1190 if (se_tpg->se_tpg_tfo->tpg_get_tag != NULL) { in core_alua_update_tpg_secondary_metadata()
1192 db_root, se_tpg->se_tpg_tfo->fabric_name, in core_alua_update_tpg_secondary_metadata()
1193 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg), in core_alua_update_tpg_secondary_metadata()
1194 se_tpg->se_tpg_tfo->tpg_get_tag(se_tpg), in core_alua_update_tpg_secondary_metadata()
1198 db_root, se_tpg->se_tpg_tfo->fabric_name, in core_alua_update_tpg_secondary_metadata()
1199 se_tpg->se_tpg_tfo->tpg_get_wwn(se_tpg), in core_alua_update_tpg_secondary_metadata()
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()
/linux-6.6.21/drivers/target/tcm_remote/
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-6.6.21/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c162 static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_fabric_wwn() argument
164 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn()
165 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn()
171 static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_tag() argument
173 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag()
174 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag()
178 static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode() argument
180 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode()
181 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode()
186 static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_cache() argument
[all …]
Dtcm_qla2xxx.h50 struct se_portal_group se_tpg; member
/linux-6.6.21/drivers/target/iscsi/
Discsi_target_configfs.c155 struct se_portal_group *se_tpg, in lio_target_call_addnptotpg() argument
213 tpg = to_iscsi_tpg(se_tpg); in lio_target_call_addnptotpg()
220 config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_addnptotpg()
252 struct se_portal_group *se_tpg; in lio_target_call_delnpfromtpg() local
261 se_tpg = &tpg->tpg_se_tpg; in lio_target_call_delnpfromtpg()
263 " PORTAL: %pISpc\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_delnpfromtpg()
651 struct se_portal_group *se_tpg = se_nacl->se_tpg; in lio_target_nacl_cmdsn_depth_store() local
652 struct iscsi_portal_group *tpg = to_iscsi_tpg(se_tpg); in lio_target_nacl_cmdsn_depth_store()
707 ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); in lio_target_nacl_tag_store()
746 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
[all …]
Discsi_target_login.c137 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_check_for_session_reinstatement() local
152 spin_lock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement()
153 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_check_for_session_reinstatement()
180 spin_unlock_bh(&se_tpg->session_lock); in iscsi_check_for_session_reinstatement()
491 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_login_non_zero_tsih_s2() local
496 spin_lock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2()
497 list_for_each_entry_safe(se_sess, se_sess_tmp, &se_tpg->tpg_sess_list, in iscsi_login_non_zero_tsih_s2()
514 spin_unlock_bh(&se_tpg->session_lock); in iscsi_login_non_zero_tsih_s2()
696 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsi_post_login_handler() local
752 spin_lock_bh(&se_tpg->session_lock); in iscsi_post_login_handler()
[all …]
Discsi_target_erl0.c748 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_handle_time2retain_timeout() local
750 spin_lock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
752 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
758 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
767 spin_unlock_bh(&se_tpg->session_lock); in iscsit_handle_time2retain_timeout()
800 struct se_portal_group *se_tpg = &tpg->tpg_se_tpg; in iscsit_stop_time2retain_timer() local
802 lockdep_assert_held(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
811 spin_unlock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
815 spin_lock(&se_tpg->session_lock); in iscsit_stop_time2retain_timer()
/linux-6.6.21/drivers/target/tcm_fc/
Dtfc_conf.c178 ret = core_tpg_set_initiator_node_tag(se_nacl->se_tpg, se_nacl, page); in ft_nacl_tag_store()
259 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in ft_add_tpg()
271 return &tpg->se_tpg; in ft_add_tpg()
274 static void ft_del_tpg(struct se_portal_group *se_tpg) in ft_del_tpg() argument
276 struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_tpg()
280 config_item_name(&tpg->se_tpg.tpg_group.cg_item)); in ft_del_tpg()
295 core_tpg_deregister(se_tpg); in ft_del_tpg()
382 static inline struct ft_tpg *ft_tpg(struct se_portal_group *se_tpg) in ft_tpg() argument
384 return container_of(se_tpg, struct ft_tpg, se_tpg); in ft_tpg()
387 static char *ft_get_fabric_wwn(struct se_portal_group *se_tpg) in ft_get_fabric_wwn() argument
[all …]
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()
/linux-6.6.21/drivers/target/loopback/
Dtcm_loop.c445 static inline struct tcm_loop_tpg *tl_tpg(struct se_portal_group *se_tpg) in tl_tpg() argument
447 return container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); in tl_tpg()
450 static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) in tcm_loop_get_endpoint_wwn() argument
455 return &tl_tpg(se_tpg)->tl_hba->tl_wwn_address[0]; in tcm_loop_get_endpoint_wwn()
458 static u16 tcm_loop_get_tag(struct se_portal_group *se_tpg) in tcm_loop_get_tag() argument
464 return tl_tpg(se_tpg)->tl_tpgt; in tcm_loop_get_tag()
471 static int tcm_loop_check_demo_mode(struct se_portal_group *se_tpg) in tcm_loop_check_demo_mode() argument
476 static int tcm_loop_check_prot_fabric_only(struct se_portal_group *se_tpg) in tcm_loop_check_prot_fabric_only() argument
478 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, in tcm_loop_check_prot_fabric_only()
582 struct se_portal_group *se_tpg, in tcm_loop_port_link() argument
[all …]
/linux-6.6.21/drivers/target/sbp/
Dsbp_target.c83 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
84 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_session_find_by_guid()
89 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_session_find_by_guid()
119 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
120 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_count_all_by_lun()
133 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_count_all_by_lun()
145 spin_lock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
146 list_for_each_entry(se_sess, &tpg->se_tpg.tpg_sess_list, sess_list) { in sbp_login_find_by_id()
156 spin_unlock_bh(&tpg->se_tpg.session_lock); in sbp_login_find_by_id()
163 struct se_portal_group *se_tpg = &tpg->se_tpg; in sbp_get_lun_from_tpg() local
[all …]
/linux-6.6.21/drivers/scsi/elx/efct/
Defct_lio.c81 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_tpg_enable_show() local
83 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_tpg_enable_show()
92 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_tpg_enable_store() local
94 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_tpg_enable_store()
139 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_npiv_tpg_enable_show() local
141 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_npiv_tpg_enable_show()
150 struct se_portal_group *se_tpg = to_tpg(item); in efct_lio_npiv_tpg_enable_store() local
152 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_npiv_tpg_enable_store()
212 static char *efct_lio_get_fabric_wwn(struct se_portal_group *se_tpg) in efct_lio_get_fabric_wwn() argument
215 container_of(se_tpg, struct efct_lio_tpg, tpg); in efct_lio_get_fabric_wwn()
[all …]
/linux-6.6.21/drivers/xen/
Dxen-scsiback.c174 struct se_portal_group se_tpg; member
951 mutex_lock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry()
952 hlist_for_each_entry(se_lun, &tpg_entry->se_tpg.tpg_lun_hlist, link) { in scsiback_add_translation_entry()
961 mutex_unlock(&tpg_entry->se_tpg.tpg_lun_mutex); in scsiback_add_translation_entry()
1328 static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) in scsiback_get_fabric_wwn() argument
1330 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_fabric_wwn()
1331 struct scsiback_tpg, se_tpg); in scsiback_get_fabric_wwn()
1337 static u16 scsiback_get_tag(struct se_portal_group *se_tpg) in scsiback_get_tag() argument
1339 struct scsiback_tpg *tpg = container_of(se_tpg, in scsiback_get_tag()
1340 struct scsiback_tpg, se_tpg); in scsiback_get_tag()
[all …]
/linux-6.6.21/drivers/vhost/
Dscsi.c130 struct se_portal_group se_tpg; member
297 static int vhost_scsi_check_true(struct se_portal_group *se_tpg) in vhost_scsi_check_true() argument
302 static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) in vhost_scsi_get_fabric_wwn() argument
304 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_fabric_wwn()
305 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_fabric_wwn()
311 static u16 vhost_scsi_get_tpgt(struct se_portal_group *se_tpg) in vhost_scsi_get_tpgt() argument
313 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_get_tpgt()
314 struct vhost_scsi_tpg, se_tpg); in vhost_scsi_get_tpgt()
318 static int vhost_scsi_check_prot_fabric_only(struct se_portal_group *se_tpg) in vhost_scsi_check_prot_fabric_only() argument
320 struct vhost_scsi_tpg *tpg = container_of(se_tpg, in vhost_scsi_check_prot_fabric_only()
[all …]
/linux-6.6.21/drivers/usb/gadget/function/
Df_tcm.c1054 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in usbg_cmd_work()
1183 tv_nexus->tvn_se_sess->se_tpg->se_tpg_tfo, in bot_cmd_work()
1251 static int usbg_check_true(struct se_portal_group *se_tpg) in usbg_check_true() argument
1256 static char *usbg_get_fabric_wwn(struct se_portal_group *se_tpg) in usbg_get_fabric_wwn() argument
1258 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_fabric_wwn()
1259 struct usbg_tpg, se_tpg); in usbg_get_fabric_wwn()
1265 static u16 usbg_get_tag(struct se_portal_group *se_tpg) in usbg_get_tag() argument
1267 struct usbg_tpg *tpg = container_of(se_tpg, in usbg_get_tag()
1268 struct usbg_tpg, se_tpg); in usbg_get_tag()
1369 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_SAS); in usbg_make_tpg()
[all …]
Dtcm.h41 struct se_portal_group se_tpg; member
/linux-6.6.21/drivers/infiniband/ulp/srpt/
Dib_srpt.c3306 static int srpt_check_true(struct se_portal_group *se_tpg) in srpt_check_true() argument
3461 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_show() local
3462 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rdma_size_show()
3470 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rdma_size_store() local
3471 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rdma_size_store()
3498 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rsp_size_show() local
3499 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rsp_size_show()
3507 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_max_rsp_size_store() local
3508 struct srpt_port *sport = srpt_tpg_to_sport(se_tpg); in srpt_tpg_attrib_srp_max_rsp_size_store()
3535 struct se_portal_group *se_tpg = attrib_to_tpg(item); in srpt_tpg_attrib_srp_sq_size_show() local
[all …]
/linux-6.6.21/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c2223 nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, in ibmvscsis_make_nexus()
3675 static char *ibmvscsis_get_fabric_wwn(struct se_portal_group *se_tpg) in ibmvscsis_get_fabric_wwn() argument
3678 container_of(se_tpg, struct ibmvscsis_tport, se_tpg); in ibmvscsis_get_fabric_wwn()
3683 static u16 ibmvscsis_get_tag(struct se_portal_group *se_tpg) in ibmvscsis_get_tag() argument
3686 container_of(se_tpg, struct ibmvscsis_tport, se_tpg); in ibmvscsis_get_tag()
3691 static u32 ibmvscsis_get_default_depth(struct se_portal_group *se_tpg) in ibmvscsis_get_default_depth() argument
3696 static int ibmvscsis_check_true(struct se_portal_group *se_tpg) in ibmvscsis_check_true() argument
3885 rc = core_tpg_register(&tport->tport_wwn, &tport->se_tpg, in ibmvscsis_make_tpg()
3890 return &tport->se_tpg; in ibmvscsis_make_tpg()
3893 static void ibmvscsis_drop_tpg(struct se_portal_group *se_tpg) in ibmvscsis_drop_tpg() argument
[all …]

12