/linux-3.4.99/net/openvswitch/ |
D | vport-internal_dev.c | 38 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument 40 return netdev_priv(netdev); in internal_dev_priv() 44 static struct rtnl_link_stats64 *internal_dev_get_stats(struct net_device *netdev, in internal_dev_get_stats() argument 47 struct vport *vport = ovs_internal_dev_get_vport(netdev); in internal_dev_get_stats() 78 static int internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument 81 ovs_vport_receive(internal_dev_priv(netdev)->vport, skb); in internal_dev_xmit() 86 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument 88 netif_start_queue(netdev); in internal_dev_open() 92 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument 94 netif_stop_queue(netdev); in internal_dev_stop() [all …]
|
/linux-3.4.99/drivers/net/ethernet/micrel/ |
D | ks8842.c | 169 struct net_device *netdev; member 269 static void ks8842_update_link_status(struct net_device *netdev, in ks8842_update_link_status() argument 274 netif_carrier_on(netdev); in ks8842_update_link_status() 275 netif_wake_queue(netdev); in ks8842_update_link_status() 277 netif_stop_queue(netdev); in ks8842_update_link_status() 278 netif_carrier_off(netdev); in ks8842_update_link_status() 431 static int ks8842_tx_frame_dma(struct sk_buff *skb, struct net_device *netdev) in ks8842_tx_frame_dma() argument 433 struct ks8842_adapter *adapter = netdev_priv(netdev); in ks8842_tx_frame_dma() 438 netdev_dbg(netdev, "%s: TX ongoing\n", __func__); in ks8842_tx_frame_dma() 467 ctl->adesc->callback_param = netdev; in ks8842_tx_frame_dma() [all …]
|
D | ks8851_mll.c | 431 struct net_device *netdev; member 624 netif_dbg(ks, hw, ks->netdev, "setting power mode %d\n", pwrmode); in ks_set_powermode() 778 static void ks_rcv(struct ks_net *ks, struct net_device *netdev) in ks_rcv() argument 797 skb = netdev_alloc_skb(netdev, frame_hdr->len + 16); in ks_rcv() 804 skb->protocol = eth_type_trans(skb, netdev); in ks_rcv() 823 static void ks_update_link_status(struct net_device *netdev, struct ks_net *ks) in ks_update_link_status() argument 828 netif_carrier_on(netdev); in ks_update_link_status() 831 netif_carrier_off(netdev); in ks_update_link_status() 834 netif_dbg(ks, link, ks->netdev, in ks_update_link_status() 851 struct net_device *netdev = pw; in ks_irq() local [all …]
|
/linux-3.4.99/drivers/net/ethernet/faraday/ |
D | ftmac100.c | 77 struct net_device *netdev; member 127 struct net_device *netdev = priv->netdev; in ftmac100_reset() local 150 netdev_err(netdev, "software reset failed\n"); in ftmac100_reset() 174 struct net_device *netdev = priv->netdev; in ftmac100_start_hw() local 189 ftmac100_set_mac(priv, netdev->dev_addr); in ftmac100_start_hw() 334 struct net_device *netdev = priv->netdev; in ftmac100_rx_packet_error() local 339 netdev_info(netdev, "rx err\n"); in ftmac100_rx_packet_error() 341 netdev->stats.rx_errors++; in ftmac100_rx_packet_error() 347 netdev_info(netdev, "rx crc err\n"); in ftmac100_rx_packet_error() 349 netdev->stats.rx_crc_errors++; in ftmac100_rx_packet_error() [all …]
|
D | ftgmac100.c | 70 struct net_device *netdev; member 119 struct net_device *netdev = priv->netdev; in ftgmac100_reset_hw() local 134 netdev_err(netdev, "software reset failed\n"); in ftgmac100_reset_hw() 161 ftgmac100_set_mac(priv, priv->netdev->dev_addr); in ftgmac100_init_hw() 353 struct net_device *netdev = priv->netdev; in ftgmac100_rx_packet_error() local 358 netdev_info(netdev, "rx err\n"); in ftgmac100_rx_packet_error() 360 netdev->stats.rx_errors++; in ftgmac100_rx_packet_error() 366 netdev_info(netdev, "rx crc err\n"); in ftgmac100_rx_packet_error() 368 netdev->stats.rx_crc_errors++; in ftgmac100_rx_packet_error() 372 netdev_info(netdev, "rx IP checksum err\n"); in ftgmac100_rx_packet_error() [all …]
|
/linux-3.4.99/drivers/net/ethernet/toshiba/ |
D | spider_net_ethtool.c | 50 spider_net_ethtool_get_settings(struct net_device *netdev, in spider_net_ethtool_get_settings() argument 54 card = netdev_priv(netdev); in spider_net_ethtool_get_settings() 68 spider_net_ethtool_get_drvinfo(struct net_device *netdev, in spider_net_ethtool_get_drvinfo() argument 72 card = netdev_priv(netdev); in spider_net_ethtool_get_drvinfo() 83 spider_net_ethtool_get_wol(struct net_device *netdev, in spider_net_ethtool_get_wol() argument 92 spider_net_ethtool_get_msglevel(struct net_device *netdev) in spider_net_ethtool_get_msglevel() argument 95 card = netdev_priv(netdev); in spider_net_ethtool_get_msglevel() 100 spider_net_ethtool_set_msglevel(struct net_device *netdev, in spider_net_ethtool_set_msglevel() argument 104 card = netdev_priv(netdev); in spider_net_ethtool_set_msglevel() 109 spider_net_ethtool_nway_reset(struct net_device *netdev) in spider_net_ethtool_nway_reset() argument [all …]
|
D | spider_net.c | 128 spider_net_write_phy(struct net_device *netdev, int mii_id, in spider_net_write_phy() argument 131 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() 151 spider_net_read_phy(struct net_device *netdev, int mii_id, int reg) in spider_net_read_phy() argument 153 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() 182 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg() 183 estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); in spider_net_setup_aneg() 245 struct net_device *netdev = card->netdev; in spider_net_set_promisc() local 247 if (netdev->flags & IFF_PROMISC) { in spider_net_set_promisc() 254 macu = netdev->dev_addr[0]; in spider_net_set_promisc() 256 macu |= netdev->dev_addr[1]; in spider_net_set_promisc() [all …]
|
/linux-3.4.99/drivers/net/usb/ |
D | rtl8150.c | 132 struct net_device *netdev; member 205 netif_device_detach(dev->netdev); in async_set_registers() 265 memcpy(dev->netdev->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr() 268 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument 271 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address() 273 if (netif_running(netdev)) in rtl8150_set_mac_address() 276 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in rtl8150_set_mac_address() 277 dbg("%s: Setting MAC address to %pM\n", netdev->name, netdev->dev_addr); in rtl8150_set_mac_address() 279 set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); in rtl8150_set_mac_address() 291 for (i = 0; i * 2 < netdev->addr_len; i++) { in rtl8150_set_mac_address() [all …]
|
/linux-3.4.99/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 173 struct net_device *netdev; in peak_usb_read_bulk_callback() local 176 netdev = dev->netdev; in peak_usb_read_bulk_callback() 178 if (!netif_device_present(netdev)) in peak_usb_read_bulk_callback() 195 netdev_err(netdev, in peak_usb_read_bulk_callback() 226 netif_device_detach(netdev); in peak_usb_read_bulk_callback() 228 netdev_err(netdev, "failed resubmitting read bulk urb: %d\n", in peak_usb_read_bulk_callback() 239 struct net_device *netdev; in peak_usb_write_bulk_callback() local 244 netdev = dev->netdev; in peak_usb_write_bulk_callback() 248 if (!netif_device_present(netdev)) in peak_usb_write_bulk_callback() 255 netdev->stats.tx_packets++; in peak_usb_write_bulk_callback() [all …]
|
/linux-3.4.99/drivers/net/ethernet/freescale/ |
D | ucc_geth_ethtool.c | 109 uec_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in uec_get_settings() argument 111 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_settings() 125 uec_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in uec_set_settings() argument 127 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_settings() 137 uec_get_pauseparam(struct net_device *netdev, in uec_get_pauseparam() argument 140 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_get_pauseparam() 151 uec_set_pauseparam(struct net_device *netdev, in uec_set_pauseparam() argument 154 struct ucc_geth_private *ugeth = netdev_priv(netdev); in uec_set_pauseparam() 161 if (netif_running(netdev)) { in uec_set_pauseparam() 183 uec_get_msglevel(struct net_device *netdev) in uec_get_msglevel() argument [all …]
|
/linux-3.4.99/drivers/net/ethernet/atheros/atlx/ |
D | atlx.c | 55 static int atlx_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) in atlx_ioctl() argument 61 return atlx_mii_ioctl(netdev, ifr, cmd); in atlx_ioctl() 74 static int atlx_set_mac(struct net_device *netdev, void *p) in atlx_set_mac() argument 76 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_set_mac() 79 if (netif_running(netdev)) in atlx_set_mac() 85 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac() 86 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac() 87 netdev->addr_assign_type &= ~NET_ADDR_RANDOM; in atlx_set_mac() 95 struct net_device *netdev = adapter->netdev; in atlx_check_for_link() local 107 if (netif_carrier_ok(netdev)) { in atlx_check_for_link() [all …]
|
/linux-3.4.99/drivers/net/can/usb/ |
D | ems_usb.c | 253 struct net_device *netdev; member 274 struct net_device *netdev = dev->netdev; in ems_usb_read_interrupt_callback() local 277 if (!netif_device_present(netdev)) in ems_usb_read_interrupt_callback() 291 netdev_info(netdev, "Rx interrupt aborted %d\n", urb->status); in ems_usb_read_interrupt_callback() 298 netif_device_detach(netdev); in ems_usb_read_interrupt_callback() 300 netdev_err(netdev, "failed resubmitting intr urb: %d\n", err); in ems_usb_read_interrupt_callback() 308 struct net_device_stats *stats = &dev->netdev->stats; in ems_usb_rx_can_msg() 310 skb = alloc_can_skb(dev->netdev, &cf); in ems_usb_rx_can_msg() 339 struct net_device_stats *stats = &dev->netdev->stats; in ems_usb_rx_err() 341 skb = alloc_can_err_skb(dev->netdev, &cf); in ems_usb_rx_err() [all …]
|
/linux-3.4.99/drivers/net/ethernet/octeon/ |
D | octeon_mgmt.c | 62 struct net_device *netdev; member 146 static void octeon_mgmt_rx_fill_ring(struct net_device *netdev) in octeon_mgmt_rx_fill_ring() argument 148 struct octeon_mgmt *p = netdev_priv(netdev); in octeon_mgmt_rx_fill_ring() 157 size = netdev->mtu + OCTEON_MGMT_RX_HEADROOM + 8 + NET_IP_ALIGN; in octeon_mgmt_rx_fill_ring() 159 skb = netdev_alloc_skb(netdev, size); in octeon_mgmt_rx_fill_ring() 230 if (cleaned && netif_queue_stopped(p->netdev)) in octeon_mgmt_clean_tx_buffers() 231 netif_wake_queue(p->netdev); in octeon_mgmt_clean_tx_buffers() 241 static void octeon_mgmt_update_rx_stats(struct net_device *netdev) in octeon_mgmt_update_rx_stats() argument 243 struct octeon_mgmt *p = netdev_priv(netdev); in octeon_mgmt_update_rx_stats() 255 netdev->stats.rx_errors += bad; in octeon_mgmt_update_rx_stats() [all …]
|
/linux-3.4.99/net/wireless/ |
D | nl80211.h | 10 struct net_device *netdev); 12 struct net_device *netdev); 14 struct net_device *netdev); 16 struct net_device *netdev, u32 cmd); 18 struct net_device *netdev); 21 struct net_device *netdev, 24 struct net_device *netdev, 27 struct net_device *netdev, 30 struct net_device *netdev, 33 struct net_device *netdev, [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 78 static int ixgb_open(struct net_device *netdev); 79 static int ixgb_close(struct net_device *netdev); 85 static void ixgb_set_multi(struct net_device *netdev); 88 struct net_device *netdev); 89 static struct net_device_stats *ixgb_get_stats(struct net_device *netdev); 90 static int ixgb_change_mtu(struct net_device *netdev, int new_mtu); 91 static int ixgb_set_mac(struct net_device *netdev, void *p); 104 static int ixgb_vlan_rx_add_vid(struct net_device *netdev, u16 vid); 105 static int ixgb_vlan_rx_kill_vid(struct net_device *netdev, u16 vid); 207 struct net_device *netdev = adapter->netdev; in ixgb_up() local [all …]
|
/linux-3.4.99/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 223 skb = netdev_alloc_skb(adapter->netdev, pool->buff_size); in ibmveth_replenish_buffer_pool() 226 netdev_dbg(adapter->netdev, in ibmveth_replenish_buffer_pool() 259 adapter->netdev->mtu + in ibmveth_replenish_buffer_pool() 424 netdev_dbg(adapter->netdev, "h_add_logical_lan_buffer failed " in ibmveth_rxq_recycle_buffer() 490 adapter->netdev->mtu + IBMVETH_BUFF_OH, in ibmveth_cleanup() 526 static int ibmveth_open(struct net_device *netdev) in ibmveth_open() argument 528 struct ibmveth_adapter *adapter = netdev_priv(netdev); in ibmveth_open() 537 netdev_dbg(netdev, "open starting\n"); in ibmveth_open() 548 netdev_err(netdev, "unable to allocate filter or buffer list " in ibmveth_open() 563 netdev_err(netdev, "unable to allocate rx queue pages\n"); in ibmveth_open() [all …]
|
/linux-3.4.99/net/dcb/ |
D | dcbnl.c | 235 static int dcbnl_getstate(struct net_device *netdev, struct nlattr **tb, in dcbnl_getstate() argument 241 if (!netdev->dcbnl_ops->getstate) in dcbnl_getstate() 244 ret = dcbnl_reply(netdev->dcbnl_ops->getstate(netdev), RTM_GETDCB, in dcbnl_getstate() 250 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlattr **tb, in dcbnl_getpfccfg() argument 262 if (!tb[DCB_ATTR_PFC_CFG] || !netdev->dcbnl_ops->getpfccfg) in dcbnl_getpfccfg() 292 netdev->dcbnl_ops->getpfccfg(netdev, i - DCB_PFC_UP_ATTR_0, in dcbnl_getpfccfg() 317 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlattr **tb, in dcbnl_getperm_hwaddr() argument 326 if (!netdev->dcbnl_ops->getpermhwaddr) in dcbnl_getperm_hwaddr() 340 netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); in dcbnl_getperm_hwaddr() 359 static int dcbnl_getcap(struct net_device *netdev, struct nlattr **tb, in dcbnl_getcap() argument [all …]
|
/linux-3.4.99/drivers/scsi/fcoe/ |
D | fcoe.c | 113 static bool fcoe_match(struct net_device *netdev); 114 static int fcoe_create(struct net_device *netdev, enum fip_state fip_mode); 115 static int fcoe_destroy(struct net_device *netdev); 116 static int fcoe_enable(struct net_device *netdev); 117 static int fcoe_disable(struct net_device *netdev); 283 struct net_device *netdev) in fcoe_interface_setup() argument 291 fcoe->netdev = netdev; in fcoe_interface_setup() 294 ops = netdev->netdev_ops; in fcoe_interface_setup() 296 if (ops->ndo_fcoe_enable(netdev)) in fcoe_interface_setup() 297 FCOE_NETDEV_DBG(netdev, "Failed to enable FCoE" in fcoe_interface_setup() [all …]
|
D | fcoe_transport.c | 88 struct net_device *netdev) in __fcoe_get_lesb() argument 111 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb() 177 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument 179 const struct net_device_ops *ops = netdev->netdev_ops; in fcoe_get_wwn() 182 return ops->ndo_fcoe_get_wwn(netdev, wwn, type); in fcoe_get_wwn() 395 static struct fcoe_transport *fcoe_transport_lookup(struct net_device *netdev) in fcoe_transport_lookup() argument 400 if (ft->match && ft->match(netdev)) in fcoe_transport_lookup() 463 ft->name, nm->netdev->name); in fcoe_transport_detach() 519 static int fcoe_add_netdev_mapping(struct net_device *netdev, in fcoe_add_netdev_mapping() argument 530 nm->netdev = netdev; in fcoe_add_netdev_mapping() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/ |
D | e100.c | 568 struct net_device *netdev; member 696 netif_err(nic, hw, nic->netdev, in e100_self_test() 702 netif_err(nic, hw, nic->netdev, "Self-test failed: timed out\n"); in e100_self_test() 805 netif_err(nic, probe, nic->netdev, "EEPROM corrupted\n"); in e100_eeprom_load() 927 static int mdio_read(struct net_device *netdev, int addr, int reg) in mdio_read() argument 929 struct nic *nic = netdev_priv(netdev); in mdio_read() 933 static void mdio_write(struct net_device *netdev, int addr, int reg, int data) in mdio_write() argument 935 struct nic *nic = netdev_priv(netdev); in mdio_write() 961 netdev_err(nic->netdev, "e100.mdio_ctrl won't go Ready\n"); in mdio_ctrl_hw() 973 netif_printk(nic, hw, KERN_DEBUG, nic->netdev, in mdio_ctrl_hw() [all …]
|
/linux-3.4.99/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 76 static int igbvf_get_settings(struct net_device *netdev, in igbvf_get_settings() argument 79 struct igbvf_adapter *adapter = netdev_priv(netdev); in igbvf_get_settings() 113 static int igbvf_set_settings(struct net_device *netdev, in igbvf_set_settings() argument 119 static void igbvf_get_pauseparam(struct net_device *netdev, in igbvf_get_pauseparam() argument 125 static int igbvf_set_pauseparam(struct net_device *netdev, in igbvf_set_pauseparam() argument 131 static u32 igbvf_get_msglevel(struct net_device *netdev) in igbvf_get_msglevel() argument 133 struct igbvf_adapter *adapter = netdev_priv(netdev); in igbvf_get_msglevel() 137 static void igbvf_set_msglevel(struct net_device *netdev, u32 data) in igbvf_set_msglevel() argument 139 struct igbvf_adapter *adapter = netdev_priv(netdev); in igbvf_set_msglevel() 143 static int igbvf_get_regs_len(struct net_device *netdev) in igbvf_get_regs_len() argument [all …]
|
/linux-3.4.99/drivers/staging/wlan-ng/ |
D | p80211netdev.c | 97 static int p80211knetdev_init(netdevice_t *netdev); 98 static struct net_device_stats *p80211knetdev_get_stats(netdevice_t *netdev); 99 static int p80211knetdev_open(netdevice_t *netdev); 100 static int p80211knetdev_stop(netdevice_t *netdev); 102 netdevice_t *netdev); 107 static void p80211knetdev_tx_timeout(netdevice_t *netdev); 130 static int p80211knetdev_init(netdevice_t *netdev) in p80211knetdev_init() argument 153 static struct net_device_stats *p80211knetdev_get_stats(netdevice_t *netdev) in p80211knetdev_get_stats() argument 155 wlandevice_t *wlandev = netdev->ml_priv; in p80211knetdev_get_stats() 177 static int p80211knetdev_open(netdevice_t *netdev) in p80211knetdev_open() argument [all …]
|
/linux-3.4.99/drivers/net/ethernet/cisco/enic/ |
D | enic_main.c | 196 static int enic_get_settings(struct net_device *netdev, in enic_get_settings() argument 199 struct enic *enic = netdev_priv(netdev); in enic_get_settings() 206 if (netif_carrier_ok(netdev)) { in enic_get_settings() 219 static void enic_get_drvinfo(struct net_device *netdev, in enic_get_drvinfo() argument 222 struct enic *enic = netdev_priv(netdev); in enic_get_drvinfo() 235 static void enic_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in enic_get_strings() argument 253 static int enic_get_sset_count(struct net_device *netdev, int sset) in enic_get_sset_count() argument 263 static void enic_get_ethtool_stats(struct net_device *netdev, in enic_get_ethtool_stats() argument 266 struct enic *enic = netdev_priv(netdev); in enic_get_ethtool_stats() 278 static u32 enic_get_msglevel(struct net_device *netdev) in enic_get_msglevel() argument [all …]
|
/linux-3.4.99/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 166 struct net_device *netdev = adapter->netdev; in atl1e_check_link() local 175 if (netif_carrier_ok(netdev)) { /* old link state: Up */ in atl1e_check_link() 182 netif_carrier_off(netdev); in atl1e_check_link() 183 netif_stop_queue(netdev); in atl1e_check_link() 197 netdev_info(netdev, in atl1e_check_link() 204 if (!netif_carrier_ok(netdev)) { in atl1e_check_link() 206 netif_carrier_on(netdev); in atl1e_check_link() 207 netif_wake_queue(netdev); in atl1e_check_link() 230 struct net_device *netdev = adapter->netdev; in atl1e_link_chg_event() local 241 if (netif_carrier_ok(netdev)) { in atl1e_link_chg_event() [all …]
|
/linux-3.4.99/drivers/infiniband/hw/amso1100/ |
D | c2.c | 73 static int c2_up(struct net_device *netdev); 74 static int c2_down(struct net_device *netdev); 75 static int c2_xmit_frame(struct sk_buff *skb, struct net_device *netdev); 76 static void c2_tx_interrupt(struct net_device *netdev); 77 static void c2_rx_interrupt(struct net_device *netdev); 79 static void c2_tx_timeout(struct net_device *netdev); 80 static int c2_change_mtu(struct net_device *netdev, int new_mtu); 90 static void c2_print_macaddr(struct net_device *netdev) in c2_print_macaddr() argument 92 pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name, netdev->dev_addr, netdev->irq); in c2_print_macaddr() 97 struct net_device *netdev = c2_port->netdev; in c2_set_rxbufsize() local [all …]
|