Lines Matching refs:se_tpg
162 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
188 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_cache()
189 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_cache()
194 static int tcm_qla2xxx_check_demo_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_write_protect() argument
196 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_write_protect()
197 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_write_protect()
202 static int tcm_qla2xxx_check_prod_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prod_write_protect() argument
204 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prod_write_protect()
205 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prod_write_protect()
210 static int tcm_qla2xxx_check_demo_mode_login_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_login_only() argument
212 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_login_only()
213 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_login_only()
218 static int tcm_qla2xxx_check_prot_fabric_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prot_fabric_only() argument
220 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prot_fabric_only()
221 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prot_fabric_only()
226 static u32 tcm_qla2xxx_tpg_get_inst_index(struct se_portal_group *se_tpg) in tcm_qla2xxx_tpg_get_inst_index() argument
228 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_get_inst_index()
229 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_get_inst_index()
441 struct se_portal_group *se_tpg; in tcm_qla2xxx_handle_cmd() local
466 se_tpg = se_sess->se_tpg; in tcm_qla2xxx_handle_cmd()
467 tpg = container_of(se_tpg, struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_handle_cmd()
786 struct se_portal_group *se_tpg = se_nacl->se_tpg; in tcm_qla2xxx_clear_nacl_from_fcport_map() local
787 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_clear_nacl_from_fcport_map()
850 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
851 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
852 struct tcm_qla2xxx_tpg, se_tpg); \
860 struct se_portal_group *se_tpg = attrib_to_tpg(item); \
861 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
862 struct tcm_qla2xxx_tpg, se_tpg); \
908 static int tcm_qla2xxx_enable_tpg(struct se_portal_group *se_tpg, in tcm_qla2xxx_enable_tpg() argument
911 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_enable_tpg()
915 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_enable_tpg()
916 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_enable_tpg()
945 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_fabric_prot_type_store() local
946 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_fabric_prot_type_store()
947 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_fabric_prot_type_store()
967 struct se_portal_group *se_tpg = to_tpg(item); in tcm_qla2xxx_tpg_fabric_prot_type_show() local
968 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_fabric_prot_type_show()
969 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_fabric_prot_type_show()
1019 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_make_tpg()
1027 return &tpg->se_tpg; in tcm_qla2xxx_make_tpg()
1030 static void tcm_qla2xxx_drop_tpg(struct se_portal_group *se_tpg) in tcm_qla2xxx_drop_tpg() argument
1032 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_drop_tpg()
1033 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_drop_tpg()
1043 core_tpg_deregister(se_tpg); in tcm_qla2xxx_drop_tpg()
1051 static int tcm_qla2xxx_npiv_enable_tpg(struct se_portal_group *se_tpg, in tcm_qla2xxx_npiv_enable_tpg() argument
1054 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_npiv_enable_tpg()
1058 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_npiv_enable_tpg()
1059 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_npiv_enable_tpg()
1110 ret = core_tpg_register(wwn, &tpg->se_tpg, SCSI_PROTOCOL_FCP); in tcm_qla2xxx_npiv_make_tpg()
1116 return &tpg->se_tpg; in tcm_qla2xxx_npiv_make_tpg()
1366 static int tcm_qla2xxx_session_cb(struct se_portal_group *se_tpg, in tcm_qla2xxx_session_cb() argument
1369 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_session_cb()
1370 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_session_cb()
1435 se_sess = target_setup_session(&tpg->se_tpg, num_tags, in tcm_qla2xxx_check_initiator_node_acl()