Lines Matching refs:se_tpg

193 static u8 tcm_qla2xxx_get_fabric_proto_ident(struct se_portal_group *se_tpg)  in tcm_qla2xxx_get_fabric_proto_ident()  argument
195 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_proto_ident()
196 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_proto_ident()
203 proto_id = fc_get_fabric_proto_ident(se_tpg); in tcm_qla2xxx_get_fabric_proto_ident()
210 static char *tcm_qla2xxx_get_fabric_wwn(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_fabric_wwn() argument
212 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_fabric_wwn()
213 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_fabric_wwn()
219 static u16 tcm_qla2xxx_get_tag(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_tag() argument
221 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_tag()
222 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_tag()
226 static u32 tcm_qla2xxx_get_default_depth(struct se_portal_group *se_tpg) in tcm_qla2xxx_get_default_depth() argument
232 struct se_portal_group *se_tpg, in tcm_qla2xxx_get_pr_transport_id() argument
238 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_pr_transport_id()
239 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_pr_transport_id()
246 ret = fc_get_pr_transport_id(se_tpg, se_nacl, pr_reg, in tcm_qla2xxx_get_pr_transport_id()
255 struct se_portal_group *se_tpg, in tcm_qla2xxx_get_pr_transport_id_len() argument
260 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_get_pr_transport_id_len()
261 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_get_pr_transport_id_len()
268 ret = fc_get_pr_transport_id_len(se_tpg, se_nacl, pr_reg, in tcm_qla2xxx_get_pr_transport_id_len()
277 struct se_portal_group *se_tpg, in tcm_qla2xxx_parse_pr_out_transport_id() argument
282 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_parse_pr_out_transport_id()
283 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_parse_pr_out_transport_id()
290 tid = fc_parse_pr_out_transport_id(se_tpg, buf, out_tid_len, in tcm_qla2xxx_parse_pr_out_transport_id()
298 static int tcm_qla2xxx_check_demo_mode(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode() argument
300 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode()
301 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode()
306 static int tcm_qla2xxx_check_demo_mode_cache(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_cache() argument
308 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_cache()
309 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_cache()
314 static int tcm_qla2xxx_check_demo_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_write_protect() argument
316 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_write_protect()
317 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_write_protect()
322 static int tcm_qla2xxx_check_prod_write_protect(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prod_write_protect() argument
324 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prod_write_protect()
325 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prod_write_protect()
330 static int tcm_qla2xxx_check_demo_mode_login_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_demo_mode_login_only() argument
332 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_demo_mode_login_only()
333 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_demo_mode_login_only()
338 static int tcm_qla2xxx_check_prot_fabric_only(struct se_portal_group *se_tpg) in tcm_qla2xxx_check_prot_fabric_only() argument
340 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_check_prot_fabric_only()
341 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_check_prot_fabric_only()
347 struct se_portal_group *se_tpg) in tcm_qla2xxx_alloc_fabric_acl() argument
361 struct se_portal_group *se_tpg, in tcm_qla2xxx_release_fabric_acl() argument
369 static u32 tcm_qla2xxx_tpg_get_inst_index(struct se_portal_group *se_tpg) in tcm_qla2xxx_tpg_get_inst_index() argument
371 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_get_inst_index()
372 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_get_inst_index()
776 struct se_portal_group *se_tpg = se_nacl->se_tpg; in tcm_qla2xxx_clear_nacl_from_fcport_map() local
777 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_clear_nacl_from_fcport_map()
847 struct se_portal_group *se_tpg, in tcm_qla2xxx_make_nodeacl() argument
859 se_nacl_new = tcm_qla2xxx_alloc_fabric_acl(se_tpg); in tcm_qla2xxx_make_nodeacl()
869 se_nacl = core_tpg_add_initiator_node_acl(se_tpg, se_nacl_new, in tcm_qla2xxx_make_nodeacl()
872 tcm_qla2xxx_release_fabric_acl(se_tpg, se_nacl_new); in tcm_qla2xxx_make_nodeacl()
887 struct se_portal_group *se_tpg = se_acl->se_tpg; in tcm_qla2xxx_drop_nodeacl() local
891 core_tpg_del_initiator_node_acl(se_tpg, se_acl, 1); in tcm_qla2xxx_drop_nodeacl()
900 struct se_portal_group *se_tpg, \
903 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
904 struct tcm_qla2xxx_tpg, se_tpg); \
910 struct se_portal_group *se_tpg, \
914 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, \
915 struct tcm_qla2xxx_tpg, se_tpg); \
997 struct se_portal_group *se_tpg, in tcm_qla2xxx_tpg_show_enable() argument
1000 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_show_enable()
1001 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_show_enable()
1011 struct se_portal_group *se_tpg = &base_tpg->se_tpg; in tcm_qla2xxx_depend_tpg() local
1014 if (!target_depend_item(&se_tpg->tpg_group.cg_item)) { in tcm_qla2xxx_depend_tpg()
1025 struct se_portal_group *se_tpg = &base_tpg->se_tpg; in tcm_qla2xxx_undepend_tpg() local
1030 target_undepend_item(&se_tpg->tpg_group.cg_item); in tcm_qla2xxx_undepend_tpg()
1036 struct se_portal_group *se_tpg, in tcm_qla2xxx_tpg_store_enable() argument
1040 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_store_enable()
1041 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_store_enable()
1082 struct se_portal_group *se_tpg, in tcm_qla2xxx_tpg_show_dynamic_sessions() argument
1085 return target_show_dynamic_sessions(se_tpg, page); in tcm_qla2xxx_tpg_show_dynamic_sessions()
1091 struct se_portal_group *se_tpg, in tcm_qla2xxx_tpg_store_fabric_prot_type() argument
1095 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_store_fabric_prot_type()
1096 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_store_fabric_prot_type()
1114 struct se_portal_group *se_tpg, in tcm_qla2xxx_tpg_show_fabric_prot_type() argument
1117 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_tpg_show_fabric_prot_type()
1118 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_tpg_show_fabric_prot_type()
1169 &tpg->se_tpg, tpg, TRANSPORT_TPG_TYPE_NORMAL); in tcm_qla2xxx_make_tpg()
1177 return &tpg->se_tpg; in tcm_qla2xxx_make_tpg()
1180 static void tcm_qla2xxx_drop_tpg(struct se_portal_group *se_tpg) in tcm_qla2xxx_drop_tpg() argument
1182 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_drop_tpg()
1183 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_drop_tpg()
1193 core_tpg_deregister(se_tpg); in tcm_qla2xxx_drop_tpg()
1202 struct se_portal_group *se_tpg, in tcm_qla2xxx_npiv_tpg_show_enable() argument
1205 return tcm_qla2xxx_tpg_show_enable(se_tpg, page); in tcm_qla2xxx_npiv_tpg_show_enable()
1209 struct se_portal_group *se_tpg, in tcm_qla2xxx_npiv_tpg_store_enable() argument
1213 struct se_wwn *se_wwn = se_tpg->se_tpg_wwn; in tcm_qla2xxx_npiv_tpg_store_enable()
1217 struct tcm_qla2xxx_tpg *tpg = container_of(se_tpg, in tcm_qla2xxx_npiv_tpg_store_enable()
1218 struct tcm_qla2xxx_tpg, se_tpg); in tcm_qla2xxx_npiv_tpg_store_enable()
1289 &tpg->se_tpg, tpg, TRANSPORT_TPG_TYPE_NORMAL); in tcm_qla2xxx_npiv_make_tpg()
1295 return &tpg->se_tpg; in tcm_qla2xxx_npiv_make_tpg()
1573 struct se_portal_group *se_tpg; in tcm_qla2xxx_check_initiator_node_acl() local
1596 se_tpg = &tpg->se_tpg; in tcm_qla2xxx_check_initiator_node_acl()
1615 se_sess->se_node_acl = core_tpg_check_initiator_node_acl(se_tpg, in tcm_qla2xxx_check_initiator_node_acl()
1636 transport_register_session(se_nacl->se_tpg, se_nacl, se_sess, sess); in tcm_qla2xxx_check_initiator_node_acl()