Lines Matching refs:se_tpg

449 static inline struct tcm_loop_tpg *tl_tpg(struct se_portal_group *se_tpg)  in tl_tpg()  argument
451 return container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); in tl_tpg()
454 static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) in tcm_loop_get_endpoint_wwn() argument
459 return &tl_tpg(se_tpg)->tl_hba->tl_wwn_address[0]; in tcm_loop_get_endpoint_wwn()
462 static u16 tcm_loop_get_tag(struct se_portal_group *se_tpg) in tcm_loop_get_tag() argument
468 return tl_tpg(se_tpg)->tl_tpgt; in tcm_loop_get_tag()
475 static int tcm_loop_check_demo_mode(struct se_portal_group *se_tpg) in tcm_loop_check_demo_mode() argument
480 static int tcm_loop_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_loop_check_demo_mode_cache() argument
489 static int tcm_loop_check_demo_mode_write_protect(struct se_portal_group *se_tpg) in tcm_loop_check_demo_mode_write_protect() argument
499 static int tcm_loop_check_prod_mode_write_protect(struct se_portal_group *se_tpg) in tcm_loop_check_prod_mode_write_protect() argument
504 static int tcm_loop_check_prot_fabric_only(struct se_portal_group *se_tpg) in tcm_loop_check_prot_fabric_only() argument
506 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, in tcm_loop_check_prot_fabric_only()
511 static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg) in tcm_loop_get_inst_index() argument
622 struct se_portal_group *se_tpg, in tcm_loop_port_link() argument
625 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_port_link()
640 struct se_portal_group *se_tpg, in tcm_loop_port_unlink() argument
647 tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); in tcm_loop_port_unlink()
673 struct se_portal_group *se_tpg = attrib_to_tpg(item); in tcm_loop_tpg_attrib_fabric_prot_type_show() local
674 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, in tcm_loop_tpg_attrib_fabric_prot_type_show()
683 struct se_portal_group *se_tpg = attrib_to_tpg(item); in tcm_loop_tpg_attrib_fabric_prot_type_store() local
684 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, struct tcm_loop_tpg, in tcm_loop_tpg_attrib_fabric_prot_type_store()
711 static int tcm_loop_alloc_sess_cb(struct se_portal_group *se_tpg, in tcm_loop_alloc_sess_cb() argument
714 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_alloc_sess_cb()
788 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_nexus_show() local
789 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_nexus_show()
807 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_nexus_store() local
808 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_nexus_store()
882 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_transport_status_show() local
883 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_transport_status_show()
908 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_transport_status_store() local
909 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_transport_status_store()
931 struct se_portal_group *se_tpg = to_tpg(item); in tcm_loop_tpg_address_show() local
932 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_tpg_address_show()
991 struct se_portal_group *se_tpg) in tcm_loop_drop_naa_tpg() argument
993 struct se_wwn *wwn = se_tpg->se_tpg_wwn; in tcm_loop_drop_naa_tpg()
994 struct tcm_loop_tpg *tl_tpg = container_of(se_tpg, in tcm_loop_drop_naa_tpg()
1008 core_tpg_deregister(se_tpg); in tcm_loop_drop_naa_tpg()