/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 | 430 struct net_device *netdev; member 622 netif_dbg(ks, hw, ks->netdev, "setting power mode %d\n", pwrmode); in ks_set_powermode() 776 static void ks_rcv(struct ks_net *ks, struct net_device *netdev) in ks_rcv() argument 801 netdev->stats.rx_dropped++; in ks_rcv() 803 netdev->stats.rx_frame_errors++; in ks_rcv() 805 netdev->stats.rx_length_errors++; in ks_rcv() 810 skb = netdev_alloc_skb(netdev, frame_hdr->len + 16); in ks_rcv() 816 skb->protocol = eth_type_trans(skb, netdev); in ks_rcv() 819 netdev->stats.rx_bytes += frame_hdr->len - 4; in ks_rcv() 820 netdev->stats.rx_packets++; in ks_rcv() [all …]
|
/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 …]
|
/drivers/net/usb/ |
D | rtl8150.c | 132 struct net_device *netdev; member 208 netif_device_detach(dev->netdev); in async_set_registers() 266 memcpy(dev->netdev->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr() 269 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument 272 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address() 274 if (netif_running(netdev)) in rtl8150_set_mac_address() 277 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in rtl8150_set_mac_address() 278 netdev_dbg(netdev, "Setting MAC address to %pM\n", netdev->dev_addr); in rtl8150_set_mac_address() 280 set_registers(dev, IDR, netdev->addr_len, netdev->dev_addr); in rtl8150_set_mac_address() 292 for (i = 0; i * 2 < netdev->addr_len; i++) { in rtl8150_set_mac_address() [all …]
|
/drivers/net/can/usb/ |
D | usb_8dev.c | 139 struct net_device *netdev; member 214 struct net_device *netdev; in usb_8dev_send_cmd() local 216 netdev = priv->netdev; in usb_8dev_send_cmd() 229 netdev_err(netdev, "sending command message failed\n"); in usb_8dev_send_cmd() 237 netdev_err(netdev, "no command message answer\n"); in usb_8dev_send_cmd() 327 static int usb_8dev_set_mode(struct net_device *netdev, enum can_mode mode) in usb_8dev_set_mode() argument 329 struct usb_8dev_priv *priv = netdev_priv(netdev); in usb_8dev_set_mode() 336 netdev_warn(netdev, "couldn't start device"); in usb_8dev_set_mode() 352 struct net_device_stats *stats = &priv->netdev->stats; in usb_8dev_rx_err_msg() 368 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg() [all …]
|
D | ems_usb.c | 252 struct net_device *netdev; member 273 struct net_device *netdev = dev->netdev; in ems_usb_read_interrupt_callback() local 276 if (!netif_device_present(netdev)) in ems_usb_read_interrupt_callback() 290 netdev_info(netdev, "Rx interrupt aborted %d\n", urb->status); in ems_usb_read_interrupt_callback() 297 netif_device_detach(netdev); in ems_usb_read_interrupt_callback() 299 netdev_err(netdev, "failed resubmitting intr urb: %d\n", err); in ems_usb_read_interrupt_callback() 307 struct net_device_stats *stats = &dev->netdev->stats; in ems_usb_rx_can_msg() 309 skb = alloc_can_skb(dev->netdev, &cf); in ems_usb_rx_can_msg() 338 struct net_device_stats *stats = &dev->netdev->stats; in ems_usb_rx_err() 340 skb = alloc_can_err_skb(dev->netdev, &cf); in ems_usb_rx_err() [all …]
|
/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 …]
|
/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 95 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_link_speed_update() local 98 if (!__ethtool_get_settings(netdev, &ecmd)) { in fcoe_link_speed_update() 132 struct net_device *netdev) in __fcoe_get_lesb() argument 155 htonl(dev_get_stats(netdev, &temp)->rx_crc_errors); in __fcoe_get_lesb() 167 struct net_device *netdev = fcoe_get_netdev(lport); in fcoe_get_lesb() local 169 __fcoe_get_lesb(lport, fc_lesb, netdev); in fcoe_get_lesb() 182 struct net_device *netdev = fcoe_get_netdev(fip->lp); in fcoe_ctlr_get_lesb() local 186 __fcoe_get_lesb(fip->lp, &fc_lesb, netdev); in fcoe_ctlr_get_lesb() 266 int fcoe_get_wwn(struct net_device *netdev, u64 *wwn, int type) in fcoe_get_wwn() argument 268 const struct net_device_ops *ops = netdev->netdev_ops; in fcoe_get_wwn() [all …]
|
D | fcoe.c | 114 static bool fcoe_match(struct net_device *netdev); 115 static int fcoe_create(struct net_device *netdev, enum fip_state fip_mode); 116 static int fcoe_destroy(struct net_device *netdev); 117 static int fcoe_enable(struct net_device *netdev); 118 static int fcoe_disable(struct net_device *netdev); 121 static int fcoe_ctlr_alloc(struct net_device *netdev); 302 struct net_device *netdev) in fcoe_interface_setup() argument 310 fcoe->netdev = netdev; in fcoe_interface_setup() 313 ops = netdev->netdev_ops; in fcoe_interface_setup() 315 if (ops->ndo_fcoe_enable(netdev)) in fcoe_interface_setup() [all …]
|
/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() 85 spider_net_ethtool_get_wol(struct net_device *netdev, in spider_net_ethtool_get_wol() argument 94 spider_net_ethtool_get_msglevel(struct net_device *netdev) in spider_net_ethtool_get_msglevel() argument 97 card = netdev_priv(netdev); in spider_net_ethtool_get_msglevel() 102 spider_net_ethtool_set_msglevel(struct net_device *netdev, in spider_net_ethtool_set_msglevel() argument 106 card = netdev_priv(netdev); in spider_net_ethtool_set_msglevel() 111 spider_net_ethtool_nway_reset(struct net_device *netdev) in spider_net_ethtool_nway_reset() argument [all …]
|
D | spider_net.c | 129 spider_net_write_phy(struct net_device *netdev, int mii_id, in spider_net_write_phy() argument 132 struct spider_net_card *card = netdev_priv(netdev); in spider_net_write_phy() 153 spider_net_read_phy(struct net_device *netdev, int mii_id, int reg) in spider_net_read_phy() argument 155 struct spider_net_card *card = netdev_priv(netdev); in spider_net_read_phy() 184 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg() 185 estat = spider_net_read_phy(card->netdev, phy->mii_id, MII_ESTATUS); in spider_net_setup_aneg() 247 struct net_device *netdev = card->netdev; in spider_net_set_promisc() local 249 if (netdev->flags & IFF_PROMISC) { in spider_net_set_promisc() 256 macu = netdev->dev_addr[0]; in spider_net_set_promisc() 258 macu |= netdev->dev_addr[1]; in spider_net_set_promisc() [all …]
|
D | ps3_gelic_net.c | 97 ether_netdev = card->netdev[GELIC_PORT_ETHERNET_0]; in gelic_card_get_ether_port_status() 532 netif_stop_queue(card->netdev[GELIC_PORT_ETHERNET_0]); in gelic_card_stop_queues() 534 if (card->netdev[GELIC_PORT_WIRELESS]) in gelic_card_stop_queues() 535 netif_stop_queue(card->netdev[GELIC_PORT_WIRELESS]); in gelic_card_stop_queues() 539 netif_wake_queue(card->netdev[GELIC_PORT_ETHERNET_0]); in gelic_card_wake_queues() 541 if (card->netdev[GELIC_PORT_WIRELESS]) in gelic_card_wake_queues() 542 netif_wake_queue(card->netdev[GELIC_PORT_WIRELESS]); in gelic_card_wake_queues() 555 struct net_device *netdev; in gelic_card_release_tx_chain() local 562 netdev = tx_chain->tail->skb->dev; in gelic_card_release_tx_chain() 572 netdev->stats.tx_dropped++; in gelic_card_release_tx_chain() [all …]
|
/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() 163 netdev_info(netdev, "Please re-open the interface\n"); in uec_set_pauseparam() [all …]
|
/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, 106 static int ixgb_vlan_rx_kill_vid(struct net_device *netdev, 209 struct net_device *netdev = adapter->netdev; in ixgb_up() local [all …]
|
/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() 573 netdev_err(netdev, "unable to map filter or buffer list " in ibmveth_open() [all …]
|
/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() 930 static int mdio_read(struct net_device *netdev, int addr, int reg) in mdio_read() argument 932 struct nic *nic = netdev_priv(netdev); in mdio_read() 936 static void mdio_write(struct net_device *netdev, int addr, int reg, int data) in mdio_write() argument 938 struct nic *nic = netdev_priv(netdev); in mdio_write() 964 netdev_err(nic->netdev, "e100.mdio_ctrl won't go Ready\n"); in mdio_ctrl_hw() 976 netif_printk(nic, hw, KERN_DEBUG, nic->netdev, in mdio_ctrl_hw() [all …]
|
/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() 94 struct net_device *netdev = adapter->netdev; in atlx_check_for_link() local 106 if (netif_carrier_ok(netdev)) { in atlx_check_for_link() 109 netdev->name); in atlx_check_for_link() [all …]
|
D | atl2.c | 74 static void atl2_set_ethtool_ops(struct net_device *netdev); 117 hw->max_frame_size = adapter->netdev->mtu; in atl2_sw_init() 135 static void atl2_set_multi(struct net_device *netdev) in atl2_set_multi() argument 137 struct atl2_adapter *adapter = netdev_priv(netdev); in atl2_set_multi() 146 if (netdev->flags & IFF_PROMISC) { in atl2_set_multi() 148 } else if (netdev->flags & IFF_ALLMULTI) { in atl2_set_multi() 161 netdev_for_each_mc_addr(ha, netdev) { in atl2_set_multi() 256 ATL2_WRITE_REG(hw, REG_MTU, adapter->netdev->mtu + in atl2_configure() 375 static void atl2_vlan_mode(struct net_device *netdev, in atl2_vlan_mode() argument 378 struct atl2_adapter *adapter = netdev_priv(netdev); in atl2_vlan_mode() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/drivers/net/ethernet/octeon/ |
D | octeon_mgmt.c | 119 struct net_device *netdev; member 213 static void octeon_mgmt_rx_fill_ring(struct net_device *netdev) in octeon_mgmt_rx_fill_ring() argument 215 struct octeon_mgmt *p = netdev_priv(netdev); in octeon_mgmt_rx_fill_ring() 223 size = netdev->mtu + OCTEON_MGMT_RX_HEADROOM + 8 + NET_IP_ALIGN; in octeon_mgmt_rx_fill_ring() 225 skb = netdev_alloc_skb(netdev, size); in octeon_mgmt_rx_fill_ring() 331 if (cleaned && netif_queue_stopped(p->netdev)) in octeon_mgmt_clean_tx_buffers() 332 netif_wake_queue(p->netdev); in octeon_mgmt_clean_tx_buffers() 342 static void octeon_mgmt_update_rx_stats(struct net_device *netdev) in octeon_mgmt_update_rx_stats() argument 344 struct octeon_mgmt *p = netdev_priv(netdev); in octeon_mgmt_update_rx_stats() 355 netdev->stats.rx_errors += bad; in octeon_mgmt_update_rx_stats() [all …]
|