Lines Matching refs:se_tpg

188 static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg)  in tcm_qla2xxx_get_fabric_wwn()  argument
190 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn()
191 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn()
197 static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_tag() argument
199 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag()
200 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag()
204 static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode() argument
206 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode()
207 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode()
212 static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_cache() argument
214 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_cache()
215 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_cache()
220 static int tcm_qla2xxx_check_demo_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_write_protect() argument
222 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_write_protect()
223 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_write_protect()
228 static int tcm_qla2xxx_check_prod_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prod_write_protect() argument
230 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prod_write_protect()
231 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prod_write_protect()
236 static int tcm_qla2xxx_check_demo_mode_login_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_login_only() argument
238 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_login_only()
239 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_login_only()
244 static int tcm_qla2xxx_check_prot_fabric_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prot_fabric_only() argument
246 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prot_fabric_only()
247 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prot_fabric_only()
252 static u32 tcm_qla2xxx_tpg_get_inst_index(struct se_portal_group *se_tpg) in tcm_qla2xxx_tpg_get_inst_index() argument
254 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_get_inst_index()
255 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_get_inst_index()
651 struct se_portal_group *se_tpg = se_nacl->se_tpg; in tcm_qla2xxx_clear_nacl_from_fcport_map() local
652 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_clear_nacl_from_fcport_map()
733 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
734 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
735 struct tcm_qla2xxx_tpg, se_tpg); \
743 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
744 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
745 struct tcm_qla2xxx_tpg, se_tpg); \
788 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_enable_show() local
789 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_enable_show()
790 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_enable_show()
800 struct se_portal_group *se_tpg = &base_tpg->se_tpg; in tcm_qla2xxx_depend_tpg() local
803 if (!target_depend_item(&se_tpg->tpg_group.cg_item)) { in tcm_qla2xxx_depend_tpg()
814 struct se_portal_group *se_tpg = &base_tpg->se_tpg; in tcm_qla2xxx_undepend_tpg() local
819 target_undepend_item(&se_tpg->tpg_group.cg_item); in tcm_qla2xxx_undepend_tpg()
827 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_enable_store() local
828 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_enable_store()
829 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_enable_store()
876 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_fabric_prot_type_store() local
877 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_fabric_prot_type_store()
878 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_fabric_prot_type_store()
898 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_fabric_prot_type_show() local
899 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_fabric_prot_type_show()
900 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_fabric_prot_type_show()
953 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_make_tpg()
961 return &tpg->se_tpg; in tcm_qla2xxx_make_tpg()
964 static void tcm_qla2xxx_drop_tpg(struct se_portal_group *se_tpg) in tcm_qla2xxx_drop_tpg() argument
966 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_drop_tpg()
967 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_drop_tpg()
977 core_tpg_deregister(se_tpg); in tcm_qla2xxx_drop_tpg()
994 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_npiv_tpg_enable_store() local
995 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_npiv_tpg_enable_store()
999 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_npiv_tpg_enable_store()
1000 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_npiv_tpg_enable_store()
1070 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_npiv_make_tpg()
1076 return &tpg->se_tpg; in tcm_qla2xxx_npiv_make_tpg()
1350 struct se_portal_group *se_tpg; in tcm_qla2xxx_check_initiator_node_acl() local
1373 se_tpg = &tpg->se_tpg; in tcm_qla2xxx_check_initiator_node_acl()
1392 se_sess->se_node_acl = core_tpg_check_initiator_node_acl(se_tpg, in tcm_qla2xxx_check_initiator_node_acl()
1413 transport_register_session(se_nacl->se_tpg, se_nacl, se_sess, sess); in tcm_qla2xxx_check_initiator_node_acl()