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()
872 interface->netdev->name, event); in bnx2fc_indicate_netevent()
1056 skb->dev = bnx2fc_from_ctlr(fip)->netdev; in bnx2fc_fip_send()
1066 struct net_device *netdev = interface->netdev; in bnx2fc_vport_create() local
1093 netdev->name); in bnx2fc_vport_create()
1170 struct net_device *netdev = interface->netdev; in bnx2fc_interface_setup() local
1200 interface->fip_packet_type.dev = netdev; in bnx2fc_interface_setup()
1205 interface->fcoe_packet_type.dev = netdev; in bnx2fc_interface_setup()
1245 struct net_device *netdev; in bnx2fc_interface_release() local
1252 netdev = interface->netdev; in bnx2fc_interface_release()
1260 dev_put(netdev); in bnx2fc_interface_release()
1319 hba->phys_dev = cnic->netdev; in bnx2fc_hba_create()
1369 struct net_device *netdev, in bnx2fc_interface_create() argument
1379 ctlr_dev = fcoe_ctlr_device_add(&netdev->dev, &bnx2fc_fcoe_sysfs_templ, in bnx2fc_interface_create()
1388 dev_hold(netdev); in bnx2fc_interface_create()
1391 interface->netdev = netdev; in bnx2fc_interface_create()
1405 dev_put(netdev); in bnx2fc_interface_create()
1469 rc = bnx2fc_net_config(lport, interface->netdev); in bnx2fc_if_create()
1478 interface->netdev->name); in bnx2fc_if_create()
1594 static int bnx2fc_destroy(struct net_device *netdev) in bnx2fc_destroy() argument
1604 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_destroy()
1849 hba->cnic->netdev->name); in bnx2fc_fw_init()
1984 dev->netdev->name, dev->flags, dev->max_fcoe_conn); in bnx2fc_ulp_init()
2031 static int bnx2fc_disable(struct net_device *netdev) in bnx2fc_disable() argument
2040 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_disable()
2073 static int bnx2fc_enable(struct net_device *netdev) in bnx2fc_enable() argument
2082 interface = bnx2fc_interface_lookup(netdev); in bnx2fc_enable()
2141 static int _bnx2fc_create(struct net_device *netdev, in _bnx2fc_create() argument
2149 struct net_device *phys_dev = netdev; in _bnx2fc_create()
2171 if (netdev->priv_flags & IFF_802_1Q_VLAN) in _bnx2fc_create()
2172 phys_dev = vlan_dev_real_dev(netdev); in _bnx2fc_create()
2197 if (bnx2fc_interface_lookup(netdev)) { in _bnx2fc_create()
2202 interface = bnx2fc_interface_create(hba, netdev, fip_mode); in _bnx2fc_create()
2209 if (netdev->priv_flags & IFF_802_1Q_VLAN) { in _bnx2fc_create()
2210 vlan_id = vlan_dev_vlan_id(netdev); in _bnx2fc_create()
2229 netdev->name); in _bnx2fc_create()
2293 static int bnx2fc_create(struct net_device *netdev, enum fip_state fip_mode) in bnx2fc_create() argument
2295 return _bnx2fc_create(netdev, fip_mode, BNX2FC_CREATE_LINK_UP); in bnx2fc_create()
2309 static int bnx2fc_ctlr_alloc(struct net_device *netdev) in bnx2fc_ctlr_alloc() argument
2311 return _bnx2fc_create(netdev, FIP_MODE_FABRIC, in bnx2fc_ctlr_alloc()
2334 *netdev) in bnx2fc_interface_lookup()
2340 if (interface->netdev == netdev) in bnx2fc_interface_lookup()
2374 dev->netdev->name, dev->flags); in bnx2fc_ulp_exit()
2421 static bool bnx2fc_match(struct net_device *netdev) in bnx2fc_match() argument
2423 struct net_device *phys_dev = netdev; in bnx2fc_match()
2426 if (netdev->priv_flags & IFF_802_1Q_VLAN) in bnx2fc_match()
2427 phys_dev = vlan_dev_real_dev(netdev); in bnx2fc_match()