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
318 tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); in ft_add_tpg()
319 if (!tpg) in ft_add_tpg()
321 tpg->index = index; in ft_add_tpg()
322 tpg->lport_acl = lacl; in ft_add_tpg()
323 INIT_LIST_HEAD(&tpg->lun_list); in ft_add_tpg()
327 kfree(tpg); in ft_add_tpg()
331 ret = core_tpg_register(&ft_configfs->tf_ops, wwn, &tpg->se_tpg, in ft_add_tpg()
332 tpg, TRANSPORT_TPG_TYPE_NORMAL); in ft_add_tpg()
335 kfree(tpg); in ft_add_tpg()
338 tpg->workqueue = wq; in ft_add_tpg()
341 list_add_tail(&tpg->list, &lacl->tpg_list); in ft_add_tpg()
344 return &tpg->se_tpg; in ft_add_tpg()
349 struct ft_tpg *tpg = container_of(se_tpg, struct ft_tpg, se_tpg); in ft_del_tpg() local
352 config_item_name(&tpg->se_tpg.tpg_group.cg_item)); in ft_del_tpg()
354 destroy_workqueue(tpg->workqueue); in ft_del_tpg()
360 list_del(&tpg->list); in ft_del_tpg()
361 if (tpg->tport) { in ft_del_tpg()
362 tpg->tport->tpg = NULL; in ft_del_tpg()
363 tpg->tport = NULL; in ft_del_tpg()
368 kfree(tpg); in ft_del_tpg()
380 struct ft_tpg *tpg; in ft_lport_find_tpg() local
384 list_for_each_entry(tpg, &lacl->tpg_list, list) in ft_lport_find_tpg()
385 return tpg; /* XXX for now return first entry */ in ft_lport_find_tpg()
468 struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; in ft_get_fabric_wwn() local
470 return tpg->lport_acl->name; in ft_get_fabric_wwn()
475 struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; in ft_get_tag() local
481 return tpg->index; in ft_get_tag()
510 struct ft_tpg *tpg = se_tpg->se_tpg_fabric_ptr; in ft_tpg_get_inst_index() local
512 return tpg->index; in ft_tpg_get_inst_index()