Lines Matching refs:netdev

63 static int bnx2fc_create(struct net_device *netdev, enum fip_mode fip_mode);
66 static int bnx2fc_enable(struct net_device *netdev);
67 static int bnx2fc_disable(struct net_device *netdev);
70 static int bnx2fc_ctlr_alloc(struct net_device *netdev);
136 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev()
369 skb->dev = interface->netdev; in bnx2fc_xmit()
756 interface->netdev->name); in bnx2fc_shost_config()
793 static int bnx2fc_net_config(struct fc_lport *lport, struct net_device *netdev) in bnx2fc_net_config() argument
821 if (fcoe_get_wwn(netdev, &wwnn, NETDEV_FCOE_WWNN)) in bnx2fc_net_config()
827 if (fcoe_get_wwn(netdev, &wwpn, NETDEV_FCOE_WWPN)) in bnx2fc_net_config()
919 interface->netdev->name, event); in bnx2fc_indicate_netevent()
1113 skb->dev = bnx2fc_from_ctlr(fip)->netdev; in bnx2fc_fip_send()
1123 struct net_device *netdev = interface->netdev; in bnx2fc_vport_create() local
1150 netdev->name); in bnx2fc_vport_create()
1230 struct net_device *netdev = interface->netdev; in bnx2fc_interface_setup() local
1260 interface->fip_packet_type.dev = netdev; in bnx2fc_interface_setup()
1265 interface->fcoe_packet_type.dev = netdev; in bnx2fc_interface_setup()
1305 struct net_device *netdev; in bnx2fc_interface_release() local
1312 netdev = interface->netdev; in bnx2fc_interface_release()
1320 dev_put(netdev); in bnx2fc_interface_release()
1380 hba->phys_dev = cnic->netdev; in bnx2fc_hba_create()
1431 struct net_device *netdev, in bnx2fc_interface_create() argument
1441 ctlr_dev = fcoe_ctlr_device_add(&netdev->dev, &bnx2fc_fcoe_sysfs_templ, in bnx2fc_interface_create()
1450 dev_hold(netdev); in bnx2fc_interface_create()
1453 interface->netdev = netdev; in bnx2fc_interface_create()
1467 dev_put(netdev); in bnx2fc_interface_create()
1530 rc = bnx2fc_net_config(lport, interface->netdev); in bnx2fc_if_create()
1539 interface->netdev->name); in bnx2fc_if_create()
1657 static int bnx2fc_destroy(struct net_device *netdev) in bnx2fc_destroy() argument
1667 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_destroy()
1909 hba->cnic->netdev->name); in bnx2fc_fw_init()
2043 dev->netdev->name, dev->flags, dev->max_fcoe_conn); in bnx2fc_ulp_init()
2053 pr_info(PFX "FCoE initialized for %s.\n", dev->netdev->name); in bnx2fc_ulp_init()
2092 static int bnx2fc_disable(struct net_device *netdev) in bnx2fc_disable() argument
2101 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_disable()
2220 static int bnx2fc_enable(struct net_device *netdev) in bnx2fc_enable() argument
2229 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_enable()
2288 static int _bnx2fc_create(struct net_device *netdev, in _bnx2fc_create() argument
2296 struct net_device *phys_dev = netdev; in _bnx2fc_create()
2318 if (is_vlan_dev(netdev)) in _bnx2fc_create()
2319 phys_dev = vlan_dev_real_dev(netdev); in _bnx2fc_create()
2344 if (bnx2fc_interface_lookup(netdev)) { in _bnx2fc_create()
2349 interface = bnx2fc_interface_create(hba, netdev, fip_mode); in _bnx2fc_create()
2356 if (is_vlan_dev(netdev)) { in _bnx2fc_create()
2357 vlan_id = vlan_dev_vlan_id(netdev); in _bnx2fc_create()
2377 netdev->name); in _bnx2fc_create()
2441 static int bnx2fc_create(struct net_device *netdev, enum fip_mode fip_mode) in bnx2fc_create() argument
2443 return _bnx2fc_create(netdev, fip_mode, BNX2FC_CREATE_LINK_UP); in bnx2fc_create()
2457 static int bnx2fc_ctlr_alloc(struct net_device *netdev) in bnx2fc_ctlr_alloc() argument
2459 return _bnx2fc_create(netdev, FIP_MODE_FABRIC, in bnx2fc_ctlr_alloc()
2482 *netdev) in bnx2fc_interface_lookup()
2488 if (interface->netdev == netdev) in bnx2fc_interface_lookup()
2522 dev->netdev->name, dev->flags); in bnx2fc_ulp_exit()
2571 static bool bnx2fc_match(struct net_device *netdev) in bnx2fc_match() argument
2573 struct net_device *phys_dev = netdev; in bnx2fc_match()
2576 if (is_vlan_dev(netdev)) in bnx2fc_match()
2577 phys_dev = vlan_dev_real_dev(netdev); in bnx2fc_match()