Searched refs:ft_wwn (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/target/tcm_fc/
H A Dtfc_conf.c301 struct ft_lport_wwn *ft_wwn; ft_add_tpg() local
326 ft_wwn = container_of(wwn, struct ft_lport_wwn, se_wwn); ft_add_tpg()
331 tpg->lport_wwn = ft_wwn; ft_add_tpg()
350 ft_wwn->tpg = tpg; ft_add_tpg()
359 struct ft_lport_wwn *ft_wwn = tpg->lport_wwn; ft_del_tpg() local
370 ft_wwn->tpg = NULL; ft_del_tpg()
389 struct ft_lport_wwn *ft_wwn; ft_lport_find_tpg() local
391 list_for_each_entry(ft_wwn, &ft_wwn_list, ft_wwn_node) { ft_lport_find_tpg()
392 if (ft_wwn->wwpn == lport->wwpn) ft_lport_find_tpg()
393 return ft_wwn->tpg; ft_lport_find_tpg()
411 struct ft_lport_wwn *ft_wwn; ft_add_wwn() local
418 ft_wwn = kzalloc(sizeof(*ft_wwn), GFP_KERNEL); ft_add_wwn()
419 if (!ft_wwn) ft_add_wwn()
421 ft_wwn->wwpn = wwpn; ft_add_wwn()
427 kfree(ft_wwn); ft_add_wwn()
431 list_add_tail(&ft_wwn->ft_wwn_node, &ft_wwn_list); ft_add_wwn()
432 ft_format_wwn(ft_wwn->name, sizeof(ft_wwn->name), wwpn); ft_add_wwn()
435 return &ft_wwn->se_wwn; ft_add_wwn()
440 struct ft_lport_wwn *ft_wwn = container_of(wwn, ft_del_wwn() local
443 pr_debug("del wwn %s\n", ft_wwn->name); ft_del_wwn()
445 list_del(&ft_wwn->ft_wwn_node); ft_del_wwn()
448 kfree(ft_wwn); ft_del_wwn()

Completed in 327 milliseconds