Lines Matching refs:se_tpg
445 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
585 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_port_link()
600 struct se_portal_group *se_tpg, in tcm_loop_port_unlink() argument
607 tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); in tcm_loop_port_unlink()
633 struct se_portal_group *se_tpg = attrib_to_tpg(item); in tcm_loop_tpg_attrib_fabric_prot_type_show() local
634 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, in tcm_loop_tpg_attrib_fabric_prot_type_show()
643 struct se_portal_group *se_tpg = attrib_to_tpg(item); in tcm_loop_tpg_attrib_fabric_prot_type_store() local
644 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, in tcm_loop_tpg_attrib_fabric_prot_type_store()
671 static int tcm_loop_alloc_sess_cb(struct se_portal_group *se_tpg, in tcm_loop_alloc_sess_cb() argument
674 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_alloc_sess_cb()
748 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_nexus_show() local
749 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_nexus_show()
767 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_nexus_store() local
768 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_nexus_store()
842 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_transport_status_show() local
843 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_transport_status_show()
868 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_transport_status_store() local
869 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_transport_status_store()
891 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_address_show() local
892 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_address_show()
951 struct se_portal_group *se_tpg) in tcm_loop_drop_naa_tpg() argument
953 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg()
954 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_drop_naa_tpg()
968 core_tpg_deregister(se_tpg); in tcm_loop_drop_naa_tpg()