Lines Matching refs:tpg

207 	struct ft_tpg *tpg;  in ft_add_acl()  local
212 tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_add_acl()
223 return core_tpg_add_initiator_node_acl(&tpg->se_tpg, in ft_add_acl()
230 struct ft_tpg *tpg; in ft_del_acl() local
237 tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_acl()
239 acl, se_acl, tpg, &tpg->se_tpg); in ft_del_acl()
241 core_tpg_del_initiator_node_acl(&tpg->se_tpg, se_acl, 1); in ft_del_acl()
245 struct ft_node_acl *ft_acl_get(struct ft_tpg *tpg, struct fc_rport_priv *rdata) in ft_acl_get() argument
249 struct se_portal_group *se_tpg = &tpg->se_tpg; in ft_acl_get()
302 struct ft_tpg *tpg; in ft_add_tpg() local
327 tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); in ft_add_tpg()
328 if (!tpg) in ft_add_tpg()
330 tpg->index = index; in ft_add_tpg()
331 tpg->lport_wwn = ft_wwn; in ft_add_tpg()
332 INIT_LIST_HEAD(&tpg->lun_list); in ft_add_tpg()
336 kfree(tpg); in ft_add_tpg()
340 ret = core_tpg_register(&ft_fabric_ops, wwn, &tpg->se_tpg, in ft_add_tpg()
341 tpg, TRANSPORT_TPG_TYPE_NORMAL); in ft_add_tpg()
344 kfree(tpg); in ft_add_tpg()
347 tpg->workqueue = wq; in ft_add_tpg()
350 ft_wwn->tpg = tpg; in ft_add_tpg()
353 return &tpg->se_tpg; in ft_add_tpg()
358 struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_tpg() local
359 struct ft_lport_wwn *ft_wwn = tpg->lport_wwn; in ft_del_tpg()
362 config_item_name(&tpg->se_tpg.tpg_group.cg_item)); in ft_del_tpg()
364 destroy_workqueue(tpg->workqueue); in ft_del_tpg()
370 ft_wwn->tpg = NULL; in ft_del_tpg()
371 if (tpg->tport) { in ft_del_tpg()
372 tpg->tport->tpg = NULL; in ft_del_tpg()
373 tpg->tport = NULL; in ft_del_tpg()
378 kfree(tpg); in ft_del_tpg()
393 return ft_wwn->tpg; in ft_lport_find_tpg()
473 struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; in ft_get_fabric_wwn() local
475 return tpg->lport_wwn->name; in ft_get_fabric_wwn()
480 struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; in ft_get_tag() local
486 return tpg->index; in ft_get_tag()
505 struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; in ft_tpg_get_inst_index() local
507 return tpg->index; in ft_tpg_get_inst_index()