Lines Matching refs:ft_wwn
220 struct ft_lport_wwn *ft_wwn; in ft_add_tpg() local
245 ft_wwn = container_of(wwn, struct ft_lport_wwn, se_wwn); in ft_add_tpg()
250 tpg->lport_wwn = ft_wwn; in ft_add_tpg()
268 ft_wwn->tpg = tpg; in ft_add_tpg()
277 struct ft_lport_wwn *ft_wwn = tpg->lport_wwn; in ft_del_tpg() local
288 ft_wwn->tpg = NULL; in ft_del_tpg()
307 struct ft_lport_wwn *ft_wwn; in ft_lport_find_tpg() local
309 list_for_each_entry(ft_wwn, &ft_wwn_list, ft_wwn_node) { in ft_lport_find_tpg()
310 if (ft_wwn->wwpn == lport->wwpn) in ft_lport_find_tpg()
311 return ft_wwn->tpg; in ft_lport_find_tpg()
329 struct ft_lport_wwn *ft_wwn; in ft_add_wwn() local
336 ft_wwn = kzalloc(sizeof(*ft_wwn), GFP_KERNEL); in ft_add_wwn()
337 if (!ft_wwn) in ft_add_wwn()
339 ft_wwn->wwpn = wwpn; in ft_add_wwn()
345 kfree(ft_wwn); in ft_add_wwn()
349 list_add_tail(&ft_wwn->ft_wwn_node, &ft_wwn_list); in ft_add_wwn()
350 ft_format_wwn(ft_wwn->name, sizeof(ft_wwn->name), wwpn); in ft_add_wwn()
353 return &ft_wwn->se_wwn; in ft_add_wwn()
358 struct ft_lport_wwn *ft_wwn = container_of(wwn, in ft_del_wwn() local
361 pr_debug("del wwn %s\n", ft_wwn->name); in ft_del_wwn()
363 list_del(&ft_wwn->ft_wwn_node); in ft_del_wwn()
366 kfree(ft_wwn); in ft_del_wwn()