Lines Matching refs:nm
563 struct fcoe_netdev_mapping *nm = NULL, *tmp;
575 list_for_each_entry_safe(nm, tmp, &fcoe_netdevs, list) {
576 if (nm->ft == ft) {
579 ft->name, nm->netdev->name);
580 list_del(&nm->list);
581 kfree(nm);
638 struct fcoe_netdev_mapping *nm;
640 nm = kmalloc(sizeof(*nm), GFP_KERNEL);
641 if (!nm) {
646 nm->netdev = netdev;
647 nm->ft = ft;
650 list_add(&nm->list, &fcoe_netdevs);
658 struct fcoe_netdev_mapping *nm = NULL, *tmp;
661 list_for_each_entry_safe(nm, tmp, &fcoe_netdevs, list) {
662 if (nm->netdev == netdev) {
663 list_del(&nm->list);
664 kfree(nm);
686 struct fcoe_netdev_mapping *nm;
689 list_for_each_entry(nm, &fcoe_netdevs, list) {
690 if (netdev == nm->netdev) {
691 ft = nm->ft;