Lines Matching refs:netdev
60 static int bnx2fc_create(struct net_device *netdev, enum fip_state fip_mode);
63 static int bnx2fc_enable(struct net_device *netdev);
64 static int bnx2fc_disable(struct net_device *netdev);
67 static int bnx2fc_ctlr_alloc(struct net_device *netdev);
111 ((struct fcoe_port *)lport_priv(lport))->priv)->netdev; in bnx2fc_netdev()
349 skb->dev = interface->netdev; in bnx2fc_xmit()
705 interface->netdev->name); in bnx2fc_shost_config()
742 static int bnx2fc_net_config(struct fc_lport *lport, struct net_device *netdev) in bnx2fc_net_config() argument
770 if (fcoe_get_wwn(netdev, &wwnn, NETDEV_FCOE_WWNN)) in bnx2fc_net_config()
776 if (fcoe_get_wwn(netdev, &wwpn, NETDEV_FCOE_WWPN)) in bnx2fc_net_config()
871 interface->netdev->name, event); in bnx2fc_indicate_netevent()
1055 skb->dev = bnx2fc_from_ctlr(fip)->netdev; in bnx2fc_fip_send()
1065 struct net_device *netdev = interface->netdev; in bnx2fc_vport_create() local
1092 netdev->name); in bnx2fc_vport_create()
1169 struct net_device *netdev = interface->netdev; in bnx2fc_interface_setup() local
1199 interface->fip_packet_type.dev = netdev; in bnx2fc_interface_setup()
1204 interface->fcoe_packet_type.dev = netdev; in bnx2fc_interface_setup()
1244 struct net_device *netdev; in bnx2fc_interface_release() local
1251 netdev = interface->netdev; in bnx2fc_interface_release()
1259 dev_put(netdev); in bnx2fc_interface_release()
1318 hba->phys_dev = cnic->netdev; in bnx2fc_hba_create()
1368 struct net_device *netdev, in bnx2fc_interface_create() argument
1378 ctlr_dev = fcoe_ctlr_device_add(&netdev->dev, &bnx2fc_fcoe_sysfs_templ, in bnx2fc_interface_create()
1387 dev_hold(netdev); in bnx2fc_interface_create()
1390 interface->netdev = netdev; in bnx2fc_interface_create()
1404 dev_put(netdev); in bnx2fc_interface_create()
1468 rc = bnx2fc_net_config(lport, interface->netdev); in bnx2fc_if_create()
1477 interface->netdev->name); in bnx2fc_if_create()
1593 static int bnx2fc_destroy(struct net_device *netdev) in bnx2fc_destroy() argument
1603 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_destroy()
1848 hba->cnic->netdev->name); in bnx2fc_fw_init()
1983 dev->netdev->name, dev->flags, dev->max_fcoe_conn); in bnx2fc_ulp_init()
2030 static int bnx2fc_disable(struct net_device *netdev) in bnx2fc_disable() argument
2039 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_disable()
2143 static int bnx2fc_enable(struct net_device *netdev) in bnx2fc_enable() argument
2152 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_enable()
2211 static int _bnx2fc_create(struct net_device *netdev, in _bnx2fc_create() argument
2219 struct net_device *phys_dev = netdev; in _bnx2fc_create()
2241 if (netdev->priv_flags & IFF_802_1Q_VLAN) in _bnx2fc_create()
2242 phys_dev = vlan_dev_real_dev(netdev); in _bnx2fc_create()
2267 if (bnx2fc_interface_lookup(netdev)) { in _bnx2fc_create()
2272 interface = bnx2fc_interface_create(hba, netdev, fip_mode); in _bnx2fc_create()
2279 if (netdev->priv_flags & IFF_802_1Q_VLAN) { in _bnx2fc_create()
2280 vlan_id = vlan_dev_vlan_id(netdev); in _bnx2fc_create()
2299 netdev->name); in _bnx2fc_create()
2363 static int bnx2fc_create(struct net_device *netdev, enum fip_state fip_mode) in bnx2fc_create() argument
2365 return _bnx2fc_create(netdev, fip_mode, BNX2FC_CREATE_LINK_UP); in bnx2fc_create()
2379 static int bnx2fc_ctlr_alloc(struct net_device *netdev) in bnx2fc_ctlr_alloc() argument
2381 return _bnx2fc_create(netdev, FIP_MODE_FABRIC, in bnx2fc_ctlr_alloc()
2404 *netdev) in bnx2fc_interface_lookup()
2410 if (interface->netdev == netdev) in bnx2fc_interface_lookup()
2444 dev->netdev->name, dev->flags); in bnx2fc_ulp_exit()
2491 static bool bnx2fc_match(struct net_device *netdev) in bnx2fc_match() argument
2493 struct net_device *phys_dev = netdev; in bnx2fc_match()
2496 if (netdev->priv_flags & IFF_802_1Q_VLAN) in bnx2fc_match()
2497 phys_dev = vlan_dev_real_dev(netdev); in bnx2fc_match()