Lines Matching refs:netdev

935 static int cxgb4vf_mac_sync(struct net_device *netdev, const u8 *mac_addr)  in cxgb4vf_mac_sync()  argument
937 struct port_info *pi = netdev_priv(netdev); in cxgb4vf_mac_sync()
967 static int cxgb4vf_mac_unsync(struct net_device *netdev, const u8 *mac_addr) in cxgb4vf_mac_unsync() argument
969 struct port_info *pi = netdev_priv(netdev); in cxgb4vf_mac_unsync()
2068 (rxq[qs].rspq.netdev in sge_qinfo_show()
2069 ? rxq[qs].rspq.netdev->name in sge_qinfo_show()
2072 (rxq[qs].rspq.netdev in sge_qinfo_show()
2074 netdev_priv(rxq[qs].rspq.netdev))->port_id in sge_qinfo_show()
2208 (rxq[qs].rspq.netdev in sge_qstats_show()
2209 ? rxq[qs].rspq.netdev->name in sge_qstats_show()
2899 struct net_device *netdev; in cxgb4vf_pci_probe() local
3050 netdev = alloc_etherdev_mq(sizeof(struct port_info), in cxgb4vf_pci_probe()
3052 if (netdev == NULL) { in cxgb4vf_pci_probe()
3056 adapter->port[pidx] = netdev; in cxgb4vf_pci_probe()
3057 SET_NETDEV_DEV(netdev, &pdev->dev); in cxgb4vf_pci_probe()
3058 pi = netdev_priv(netdev); in cxgb4vf_pci_probe()
3068 netdev->irq = pdev->irq; in cxgb4vf_pci_probe()
3070 netdev->hw_features = NETIF_F_SG | TSO_FLAGS | NETIF_F_GRO | in cxgb4vf_pci_probe()
3073 netdev->features = netdev->hw_features | NETIF_F_HIGHDMA; in cxgb4vf_pci_probe()
3074 netdev->vlan_features = netdev->features & VLAN_FEAT; in cxgb4vf_pci_probe()
3076 netdev->priv_flags |= IFF_UNICAST_FLT; in cxgb4vf_pci_probe()
3077 netdev->min_mtu = 81; in cxgb4vf_pci_probe()
3078 netdev->max_mtu = ETH_MAX_MTU; in cxgb4vf_pci_probe()
3080 netdev->netdev_ops = &cxgb4vf_netdev_ops; in cxgb4vf_pci_probe()
3081 netdev->ethtool_ops = &cxgb4vf_ethtool_ops; in cxgb4vf_pci_probe()
3082 netdev->dev_port = pi->port_id; in cxgb4vf_pci_probe()
3120 err = cxgb4vf_set_mac_addr(netdev, &addr); in cxgb4vf_pci_probe()
3174 netdev = adapter->port[pidx]; in cxgb4vf_pci_probe()
3175 if (netdev == NULL) in cxgb4vf_pci_probe()
3178 netif_set_real_num_tx_queues(netdev, pi->nqsets); in cxgb4vf_pci_probe()
3179 netif_set_real_num_rx_queues(netdev, pi->nqsets); in cxgb4vf_pci_probe()
3181 err = register_netdev(netdev); in cxgb4vf_pci_probe()
3184 " skipping\n", netdev->name); in cxgb4vf_pci_probe()
3188 netif_carrier_off(netdev); in cxgb4vf_pci_probe()
3238 netdev = adapter->port[pidx]; in cxgb4vf_pci_probe()
3239 if (netdev == NULL) in cxgb4vf_pci_probe()
3241 pi = netdev_priv(netdev); in cxgb4vf_pci_probe()
3245 unregister_netdev(netdev); in cxgb4vf_pci_probe()
3246 free_netdev(netdev); in cxgb4vf_pci_probe()
3313 struct net_device *netdev = adapter->port[pidx]; in cxgb4vf_pci_remove() local
3316 if (netdev == NULL) in cxgb4vf_pci_remove()
3319 pi = netdev_priv(netdev); in cxgb4vf_pci_remove()
3322 free_netdev(netdev); in cxgb4vf_pci_remove()