Lines Matching refs:dev
506 netif_tx_stop_all_queues(sp->dev); in s2io_stop_all_tx_queue()
515 netif_tx_stop_all_queues(sp->dev); in s2io_stop_tx_queue()
526 netif_tx_start_all_queues(sp->dev); in s2io_start_all_tx_queue()
537 netif_tx_wake_all_queues(sp->dev); in s2io_wake_all_tx_queue()
545 if (cnt && __netif_subqueue_stopped(fifo->dev, fifo->fifo_no)) in s2io_wake_tx_queue()
546 netif_wake_subqueue(fifo->dev, fifo->fifo_no); in s2io_wake_tx_queue()
548 if (netif_queue_stopped(fifo->dev)) { in s2io_wake_tx_queue()
550 netif_wake_queue(fifo->dev); in s2io_wake_tx_queue()
571 struct net_device *dev = nic->dev; in init_shared_mem() local
637 fifo->dev = dev; in init_shared_mem()
643 tmp_v = dma_alloc_coherent(&nic->pdev->dev, PAGE_SIZE, in init_shared_mem()
660 dev->name, tmp_v); in init_shared_mem()
661 tmp_v = dma_alloc_coherent(&nic->pdev->dev, in init_shared_mem()
704 dev->name, i); in init_shared_mem()
738 tmp_v_addr = dma_alloc_coherent(&nic->pdev->dev, size, in init_shared_mem()
839 dma_alloc_coherent(&nic->pdev->dev, size, in init_shared_mem()
857 dev_name(&nic->pdev->dev), (unsigned long long)tmp_p_addr); in init_shared_mem()
875 struct net_device *dev; in free_shared_mem() local
885 dev = nic->dev; in free_shared_mem()
910 dma_free_coherent(&nic->pdev->dev, PAGE_SIZE, in free_shared_mem()
919 dma_free_coherent(&nic->pdev->dev, PAGE_SIZE, in free_shared_mem()
925 dev->name, mac_control->zerodma_virt_addr); in free_shared_mem()
943 dma_free_coherent(&nic->pdev->dev, size, tmp_v_addr, in free_shared_mem()
997 dma_free_coherent(&nic->pdev->dev, mac_control->stats_mem_sz, in free_shared_mem()
1059 nic->dev->name); in s2io_print_pci_mode()
1094 nic->dev->name, val64 & PCI_MODE_32_BITS ? 32 : 64, pcimode); in s2io_print_pci_mode()
1190 struct net_device *dev = nic->dev; in init_nic() local
1252 val64 = dev->mtu; in init_nic()
1612 val64 = MAC_RTS_FRM_LEN_SET(dev->mtu+22); in init_nic()
1637 dev->name, i); in init_nic()
1715 dev->name); in init_nic()
2212 struct net_device *dev = nic->dev; in start_nic() local
2276 dev->name, (unsigned long long)val64); in start_nic()
2329 dma_unmap_single(&nic->pdev->dev, in s2io_txdl_getskb()
2340 dma_unmap_single(&nic->pdev->dev, (dma_addr_t)txds->Buffer_Pointer, in s2io_txdl_getskb()
2349 dma_unmap_page(&nic->pdev->dev, in s2io_txdl_getskb()
2368 struct net_device *dev = nic->dev; in free_tx_buffers() local
2395 dev->name, cnt, i); in free_tx_buffers()
2483 ring->dev->name); in fill_rx_buffers()
2496 ring->dev->name, rxdp); in fill_rx_buffers()
2516 skb = netdev_alloc_skb(nic->dev, size); in fill_rx_buffers()
2519 ring->dev->name); in fill_rx_buffers()
2536 dma_map_single(&ring->pdev->dev, skb->data, in fill_rx_buffers()
2539 if (dma_mapping_error(&nic->pdev->dev, rxdp1->Buffer0_ptr)) in fill_rx_buffers()
2571 dma_map_single(&ring->pdev->dev, in fill_rx_buffers()
2574 if (dma_mapping_error(&nic->pdev->dev, rxdp3->Buffer0_ptr)) in fill_rx_buffers()
2577 dma_sync_single_for_device(&ring->pdev->dev, in fill_rx_buffers()
2590 rxdp3->Buffer2_ptr = dma_map_single(&ring->pdev->dev, in fill_rx_buffers()
2595 if (dma_mapping_error(&nic->pdev->dev, rxdp3->Buffer2_ptr)) in fill_rx_buffers()
2600 dma_map_single(&ring->pdev->dev, in fill_rx_buffers()
2605 if (dma_mapping_error(&nic->pdev->dev, in fill_rx_buffers()
2607 dma_unmap_single(&ring->pdev->dev, in fill_rx_buffers()
2662 struct net_device *dev = sp->dev; in free_rxd_blk() local
2680 dma_unmap_single(&sp->pdev->dev, in free_rxd_blk()
2682 dev->mtu + in free_rxd_blk()
2689 dma_unmap_single(&sp->pdev->dev, in free_rxd_blk()
2692 dma_unmap_single(&sp->pdev->dev, in free_rxd_blk()
2695 dma_unmap_single(&sp->pdev->dev, in free_rxd_blk()
2697 dev->mtu + 4, DMA_FROM_DEVICE); in free_rxd_blk()
2717 struct net_device *dev = sp->dev; in free_rx_buffers() local
2734 dev->name, buf_cnt, i); in free_rx_buffers()
2742 ring->dev->name); in s2io_chk_rx_buffers()
2763 struct net_device *dev = ring->dev; in s2io_poll_msix() local
2767 struct s2io_nic *nic = netdev_priv(dev); in s2io_poll_msix()
2830 static void s2io_netpoll(struct net_device *dev) in s2io_netpoll() argument
2832 struct s2io_nic *nic = netdev_priv(dev); in s2io_netpoll()
2868 dev->name); in s2io_netpoll()
2917 ring_data->dev->name); in rx_intr_handler()
2923 ring_data->dev->name); in rx_intr_handler()
2928 dma_unmap_single(&ring_data->pdev->dev, in rx_intr_handler()
2937 dma_sync_single_for_cpu(&ring_data->pdev->dev, in rx_intr_handler()
2940 dma_unmap_single(&ring_data->pdev->dev, in rx_intr_handler()
3086 struct net_device *dev) in s2io_mdio_write() argument
3089 struct s2io_nic *sp = netdev_priv(dev); in s2io_mdio_write()
3131 static u64 s2io_mdio_read(u32 mmd_type, u64 addr, struct net_device *dev) in s2io_mdio_read() argument
3135 struct s2io_nic *sp = netdev_priv(dev); in s2io_mdio_read()
3231 static void s2io_updt_xpak_counter(struct net_device *dev) in s2io_updt_xpak_counter() argument
3239 struct s2io_nic *sp = netdev_priv(dev); in s2io_updt_xpak_counter()
3246 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); in s2io_updt_xpak_counter()
3264 s2io_mdio_write(MDIO_MMD_PMAPMD, addr, val16, dev); in s2io_updt_xpak_counter()
3265 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); in s2io_updt_xpak_counter()
3270 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); in s2io_updt_xpak_counter()
3302 val64 = s2io_mdio_read(MDIO_MMD_PMAPMD, addr, dev); in s2io_updt_xpak_counter()
3525 struct net_device *dev = sp->dev; in s2io_set_swapper() local
3554 dev->name, (unsigned long long)val64); in s2io_set_swapper()
3648 dev->name, (unsigned long long)val64); in s2io_set_swapper()
3832 sp->dev->name, pci_name(pdev), pdev->irq); in s2io_test_msi()
3851 sp->dev->name, pci_name(pdev)); in s2io_test_msi()
3890 free_irq(sp->pdev->irq, sp->dev); in remove_inta_isr()
3909 static int s2io_open(struct net_device *dev) in s2io_open() argument
3911 struct s2io_nic *sp = netdev_priv(dev); in s2io_open()
3919 netif_carrier_off(dev); in s2io_open()
3926 dev->name); in s2io_open()
3930 if (do_s2io_prog_unicast(dev, dev->dev_addr) == FAILURE) { in s2io_open()
3968 static int s2io_close(struct net_device *dev) in s2io_close() argument
3970 struct s2io_nic *sp = netdev_priv(dev); in s2io_close()
4007 static netdev_tx_t s2io_xmit(struct sk_buff *skb, struct net_device *dev) in s2io_xmit() argument
4009 struct s2io_nic *sp = netdev_priv(dev); in s2io_xmit()
4024 DBG_PRINT(TX_DBG, "%s: In Neterion Tx routine\n", dev->name); in s2io_xmit()
4027 DBG_PRINT(TX_DBG, "%s: Buffer has no data..\n", dev->name); in s2io_xmit()
4034 dev->name); in s2io_xmit()
4081 if (__netif_subqueue_stopped(dev, fifo->fifo_no)) { in s2io_xmit()
4086 if (netif_queue_stopped(dev)) { in s2io_xmit()
4129 txdp->Buffer_Pointer = dma_map_single(&sp->pdev->dev, skb->data, in s2io_xmit()
4131 if (dma_mapping_error(&sp->pdev->dev, txdp->Buffer_Pointer)) in s2io_xmit()
4145 txdp->Buffer_Pointer = (u64)skb_frag_dma_map(&sp->pdev->dev, in s2io_xmit()
4198 struct net_device *dev = sp->dev; in s2io_alarm_handle() local
4200 s2io_handle_errors(dev); in s2io_alarm_handle()
4362 struct net_device *dev = (struct net_device *)dev_id; in s2io_handle_errors() local
4363 struct s2io_nic *sp = netdev_priv(dev); in s2io_handle_errors()
4385 s2io_updt_xpak_counter(dev); in s2io_handle_errors()
4664 struct net_device *dev = (struct net_device *)dev_id; in s2io_isr() local
4665 struct s2io_nic *sp = netdev_priv(dev); in s2io_isr()
4793 static struct net_device_stats *s2io_get_stats(struct net_device *dev) in s2io_get_stats() argument
4795 struct s2io_nic *sp = netdev_priv(dev); in s2io_get_stats()
4813 dev->stats.rx_packets += delta; in s2io_get_stats()
4818 dev->stats.tx_packets += delta; in s2io_get_stats()
4823 dev->stats.rx_bytes += delta; in s2io_get_stats()
4828 dev->stats.tx_bytes += delta; in s2io_get_stats()
4832 dev->stats.rx_errors += delta; in s2io_get_stats()
4837 dev->stats.tx_errors += delta; in s2io_get_stats()
4841 dev->stats.rx_dropped += delta; in s2io_get_stats()
4845 dev->stats.tx_dropped += delta; in s2io_get_stats()
4857 dev->stats.multicast += delta; in s2io_get_stats()
4863 dev->stats.rx_length_errors += delta; in s2io_get_stats()
4867 dev->stats.rx_crc_errors += delta; in s2io_get_stats()
4869 return &dev->stats; in s2io_get_stats()
4886 static void s2io_set_multicast(struct net_device *dev, bool may_sleep) in s2io_set_multicast() argument
4890 struct s2io_nic *sp = netdev_priv(dev); in s2io_set_multicast()
4898 if ((dev->flags & IFF_ALLMULTI) && (!sp->m_cast_flg)) { in s2io_set_multicast()
4915 } else if ((dev->flags & IFF_ALLMULTI) && (sp->m_cast_flg)) { in s2io_set_multicast()
4934 if ((dev->flags & IFF_PROMISC) && (!sp->promisc_flg)) { in s2io_set_multicast()
4955 dev->name); in s2io_set_multicast()
4956 } else if (!(dev->flags & IFF_PROMISC) && (sp->promisc_flg)) { in s2io_set_multicast()
4976 DBG_PRINT(INFO_DBG, "%s: left promiscuous mode\n", dev->name); in s2io_set_multicast()
4980 if ((!sp->m_cast_flg) && netdev_mc_count(dev)) { in s2io_set_multicast()
4981 if (netdev_mc_count(dev) > in s2io_set_multicast()
4986 dev->name); in s2io_set_multicast()
4991 sp->mc_addr_count = netdev_mc_count(dev); in s2io_set_multicast()
5011 dev->name); in s2io_set_multicast()
5018 netdev_for_each_mc_addr(ha, dev) { in s2io_set_multicast()
5041 dev->name); in s2io_set_multicast()
5050 static void s2io_ndo_set_multicast(struct net_device *dev) in s2io_ndo_set_multicast() argument
5052 s2io_set_multicast(dev, false); in s2io_ndo_set_multicast()
5081 do_s2io_prog_unicast(sp->dev, in do_s2io_restore_unicast_mc()
5195 static int s2io_set_mac_addr(struct net_device *dev, void *p) in s2io_set_mac_addr() argument
5202 eth_hw_addr_set(dev, addr->sa_data); in s2io_set_mac_addr()
5205 return do_s2io_prog_unicast(dev, dev->dev_addr); in s2io_set_mac_addr()
5217 static int do_s2io_prog_unicast(struct net_device *dev, const u8 *addr) in do_s2io_prog_unicast() argument
5219 struct s2io_nic *sp = netdev_priv(dev); in do_s2io_prog_unicast()
5273 s2io_ethtool_set_link_ksettings(struct net_device *dev, in s2io_ethtool_set_link_ksettings() argument
5276 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_set_link_ksettings()
5282 s2io_close(sp->dev); in s2io_ethtool_set_link_ksettings()
5283 s2io_open(sp->dev); in s2io_ethtool_set_link_ksettings()
5301 s2io_ethtool_get_link_ksettings(struct net_device *dev, in s2io_ethtool_get_link_ksettings() argument
5304 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_get_link_ksettings()
5316 if (netif_carrier_ok(sp->dev)) { in s2io_ethtool_get_link_ksettings()
5339 static void s2io_ethtool_gdrvinfo(struct net_device *dev, in s2io_ethtool_gdrvinfo() argument
5342 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_gdrvinfo()
5362 static void s2io_ethtool_gregs(struct net_device *dev, in s2io_ethtool_gregs() argument
5368 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_gregs()
5421 static int s2io_ethtool_set_led(struct net_device *dev, in s2io_ethtool_set_led() argument
5424 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_set_led()
5458 s2io_ethtool_gringparam(struct net_device *dev, in s2io_ethtool_gringparam() argument
5463 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_gringparam()
5496 static void s2io_ethtool_getpause_data(struct net_device *dev, in s2io_ethtool_getpause_data() argument
5500 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_getpause_data()
5522 static int s2io_ethtool_setpause_data(struct net_device *dev, in s2io_ethtool_setpause_data() argument
5526 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_setpause_data()
5760 static int s2io_ethtool_geeprom(struct net_device *dev, in s2io_ethtool_geeprom() argument
5765 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_geeprom()
5796 static int s2io_ethtool_seeprom(struct net_device *dev, in s2io_ethtool_seeprom() argument
5802 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_seeprom()
5918 struct net_device *dev = sp->dev; in s2io_eeprom_test() local
5943 dev->name, (unsigned long long)0x12345, in s2io_eeprom_test()
5965 dev->name, (unsigned long long)0x12345, in s2io_eeprom_test()
6175 static void s2io_ethtool_test(struct net_device *dev, in s2io_ethtool_test() argument
6179 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_test()
6180 int orig_state = netif_running(sp->dev); in s2io_ethtool_test()
6185 s2io_close(sp->dev); in s2io_ethtool_test()
6204 s2io_open(sp->dev); in s2io_ethtool_test()
6211 dev->name); in s2io_ethtool_test()
6229 static void s2io_get_ethtool_stats(struct net_device *dev, in s2io_get_ethtool_stats() argument
6234 struct s2io_nic *sp = netdev_priv(dev); in s2io_get_ethtool_stats()
6506 static int s2io_ethtool_get_regs_len(struct net_device *dev) in s2io_ethtool_get_regs_len() argument
6512 static int s2io_get_eeprom_len(struct net_device *dev) in s2io_get_eeprom_len() argument
6517 static int s2io_get_sset_count(struct net_device *dev, int sset) in s2io_get_sset_count() argument
6519 struct s2io_nic *sp = netdev_priv(dev); in s2io_get_sset_count()
6538 static void s2io_ethtool_get_strings(struct net_device *dev, in s2io_ethtool_get_strings() argument
6542 struct s2io_nic *sp = netdev_priv(dev); in s2io_ethtool_get_strings()
6563 static int s2io_set_features(struct net_device *dev, netdev_features_t features) in s2io_set_features() argument
6565 struct s2io_nic *sp = netdev_priv(dev); in s2io_set_features()
6566 netdev_features_t changed = (features ^ dev->features) & NETIF_F_LRO; in s2io_set_features()
6568 if (changed && netif_running(dev)) { in s2io_set_features()
6573 dev->features = features; in s2io_set_features()
6618 static int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in s2io_ioctl() argument
6634 static int s2io_change_mtu(struct net_device *dev, int new_mtu) in s2io_change_mtu() argument
6636 struct s2io_nic *sp = netdev_priv(dev); in s2io_change_mtu()
6639 dev->mtu = new_mtu; in s2io_change_mtu()
6640 if (netif_running(dev)) { in s2io_change_mtu()
6670 struct net_device *dev = nic->dev; in s2io_set_link() local
6677 if (!netif_running(dev)) in s2io_set_link()
6715 dev->name); in s2io_set_link()
6748 struct net_device *dev = sp->dev; in set_rxd_buffer_pointer() local
6763 *skb = netdev_alloc_skb(dev, size); in set_rxd_buffer_pointer()
6767 dev->name, "1 buf mode SKBs"); in set_rxd_buffer_pointer()
6777 dma_map_single(&sp->pdev->dev, (*skb)->data, in set_rxd_buffer_pointer()
6780 if (dma_mapping_error(&sp->pdev->dev, rxdp1->Buffer0_ptr)) in set_rxd_buffer_pointer()
6792 *skb = netdev_alloc_skb(dev, size); in set_rxd_buffer_pointer()
6796 dev->name, in set_rxd_buffer_pointer()
6803 dma_map_single(&sp->pdev->dev, (*skb)->data, in set_rxd_buffer_pointer()
6804 dev->mtu + 4, DMA_FROM_DEVICE); in set_rxd_buffer_pointer()
6805 if (dma_mapping_error(&sp->pdev->dev, rxdp3->Buffer2_ptr)) in set_rxd_buffer_pointer()
6808 dma_map_single(&sp->pdev->dev, ba->ba_0, in set_rxd_buffer_pointer()
6810 if (dma_mapping_error(&sp->pdev->dev, rxdp3->Buffer0_ptr)) { in set_rxd_buffer_pointer()
6811 dma_unmap_single(&sp->pdev->dev, in set_rxd_buffer_pointer()
6813 dev->mtu + 4, in set_rxd_buffer_pointer()
6821 dma_map_single(&sp->pdev->dev, ba->ba_1, in set_rxd_buffer_pointer()
6823 if (dma_mapping_error(&sp->pdev->dev, rxdp3->Buffer1_ptr)) { in set_rxd_buffer_pointer()
6824 dma_unmap_single(&sp->pdev->dev, in set_rxd_buffer_pointer()
6827 dma_unmap_single(&sp->pdev->dev, in set_rxd_buffer_pointer()
6829 dev->mtu + 4, in set_rxd_buffer_pointer()
6847 struct net_device *dev = sp->dev; in set_rxd_buffer_size() local
6853 rxdp->Control_2 |= SET_BUFFER2_SIZE_3(dev->mtu + 4); in set_rxd_buffer_size()
6862 struct net_device *dev = sp->dev; in rxd_owner_bit_reset() local
6869 size = dev->mtu + HEADER_ETHERNET_II_802_3_SIZE + in rxd_owner_bit_reset()
6874 size = dev->mtu + ALIGN_SIZE + BUF0_LEN + 4; in rxd_owner_bit_reset()
6909 struct net_device *dev = sp->dev; in s2io_add_isr() local
6915 DBG_PRINT(ERR_DBG, "%s: Defaulting to INTA\n", dev->name); in s2io_add_isr()
6936 dev->name, i); in s2io_add_isr()
6947 dev->name, i); in s2io_add_isr()
6972 "failed\n", dev->name, i); in s2io_add_isr()
6976 dev->name); in s2io_add_isr()
6992 sp->name, dev); in s2io_add_isr()
6995 dev->name); in s2io_add_isr()
7095 struct net_device *dev = sp->dev; in s2io_card_up() local
7102 dev->name); in s2io_card_up()
7118 ring->mtu = dev->mtu; in s2io_card_up()
7119 ring->lro = !!(dev->features & NETIF_F_LRO); in s2io_card_up()
7123 dev->name); in s2io_card_up()
7150 s2io_set_multicast(dev, true); in s2io_card_up()
7152 if (dev->features & NETIF_F_LRO) { in s2io_card_up()
7154 sp->lro_max_aggr_per_sess = ((1<<16) - 1) / dev->mtu; in s2io_card_up()
7162 DBG_PRINT(ERR_DBG, "%s: Starting NIC failed\n", dev->name); in s2io_card_up()
7221 struct net_device *dev = sp->dev; in s2io_restart_nic() local
7225 if (!netif_running(dev)) in s2io_restart_nic()
7230 DBG_PRINT(ERR_DBG, "%s: Device bring up failed\n", dev->name); in s2io_restart_nic()
7233 DBG_PRINT(ERR_DBG, "%s: was reset by Tx watchdog timer\n", dev->name); in s2io_restart_nic()
7252 static void s2io_tx_watchdog(struct net_device *dev, unsigned int txqueue) in s2io_tx_watchdog() argument
7254 struct s2io_nic *sp = netdev_priv(dev); in s2io_tx_watchdog()
7257 if (netif_carrier_ok(dev)) { in s2io_tx_watchdog()
7281 struct net_device *dev = ring_data->dev; in rx_osm_handler() local
7291 skb->dev = dev; in rx_osm_handler()
7345 dev->name, err_mask); in rx_osm_handler()
7346 dev->stats.rx_crc_errors++; in rx_osm_handler()
7375 (dev->features & NETIF_F_RXCSUM)) { in rx_osm_handler()
7463 struct net_device *dev = sp->dev; in s2io_link() local
7469 DBG_PRINT(ERR_DBG, "%s: Link down\n", dev->name); in s2io_link()
7471 netif_carrier_off(dev); in s2io_link()
7477 DBG_PRINT(ERR_DBG, "%s: Link Up\n", dev->name); in s2io_link()
7482 netif_carrier_on(dev); in s2io_link()
7662 struct net_device *dev; in s2io_init_nic() local
7685 if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) { in s2io_init_nic()
7699 dev = alloc_etherdev_mq(sizeof(struct s2io_nic), tx_fifo_num); in s2io_init_nic()
7701 dev = alloc_etherdev(sizeof(struct s2io_nic)); in s2io_init_nic()
7702 if (dev == NULL) { in s2io_init_nic()
7709 pci_set_drvdata(pdev, dev); in s2io_init_nic()
7710 SET_NETDEV_DEV(dev, &pdev->dev); in s2io_init_nic()
7713 sp = netdev_priv(dev); in s2io_init_nic()
7714 sp->dev = dev; in s2io_init_nic()
7812 ring->dev = sp->dev; in s2io_init_nic()
7830 DBG_PRINT(ERR_DBG, "%s: Memory allocation failed\n", dev->name); in s2io_init_nic()
7838 dev->name); in s2io_init_nic()
7846 dev->name); in s2io_init_nic()
7857 dev->netdev_ops = &s2io_netdev_ops; in s2io_init_nic()
7858 dev->ethtool_ops = &netdev_ethtool_ops; in s2io_init_nic()
7859 dev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | in s2io_init_nic()
7862 dev->features |= dev->hw_features | in s2io_init_nic()
7865 dev->watchdog_timeo = WATCH_DOG_TIMEOUT; in s2io_init_nic()
7874 dev->name); in s2io_init_nic()
7911 netif_napi_add(dev, &ring->napi, s2io_poll_msix); in s2io_init_nic()
7914 netif_napi_add(dev, &sp->napi, s2io_poll_inta); in s2io_init_nic()
7950 dev->addr_len = ETH_ALEN; in s2io_init_nic()
7951 eth_hw_addr_set(dev, sp->def_mac_addr[0].mac_addr); in s2io_init_nic()
7965 dev->min_mtu = MIN_MTU; in s2io_init_nic()
7966 dev->max_mtu = S2IO_JUMBO_SIZE; in s2io_init_nic()
8010 if (register_netdev(dev)) { in s2io_init_nic()
8017 DBG_PRINT(ERR_DBG, "%s: Neterion %s (rev %d)\n", dev->name, in s2io_init_nic()
8019 DBG_PRINT(ERR_DBG, "%s: Driver version %s\n", dev->name, in s2io_init_nic()
8021 DBG_PRINT(ERR_DBG, "%s: MAC Address: %pM\n", dev->name, dev->dev_addr); in s2io_init_nic()
8027 unregister_netdev(dev); in s2io_init_nic()
8034 dev->name); in s2io_init_nic()
8038 dev->name); in s2io_init_nic()
8044 DBG_PRINT(ERR_DBG, "%s: NAPI disabled\n", dev->name); in s2io_init_nic()
8047 DBG_PRINT(ERR_DBG, "%s: NAPI enabled\n", dev->name); in s2io_init_nic()
8051 DBG_PRINT(ERR_DBG, "%s: Using %d Tx fifo(s)\n", dev->name, in s2io_init_nic()
8054 DBG_PRINT(ERR_DBG, "%s: Using %d Rx ring(s)\n", dev->name, in s2io_init_nic()
8059 DBG_PRINT(ERR_DBG, "%s: Interrupt type INTA\n", dev->name); in s2io_init_nic()
8062 DBG_PRINT(ERR_DBG, "%s: Interrupt type MSI-X\n", dev->name); in s2io_init_nic()
8072 dev->name); in s2io_init_nic()
8075 dev->name); in s2io_init_nic()
8080 dev->name); in s2io_init_nic()
8085 dev->name); in s2io_init_nic()
8090 dev->name); in s2io_init_nic()
8094 dev->name); in s2io_init_nic()
8096 snprintf(sp->name, sizeof(sp->name), "%s Neterion %s", dev->name, in s2io_init_nic()
8109 netif_carrier_off(dev); in s2io_init_nic()
8123 free_netdev(dev); in s2io_init_nic()
8139 struct net_device *dev = pci_get_drvdata(pdev); in s2io_rem_nic() local
8142 if (dev == NULL) { in s2io_rem_nic()
8147 sp = netdev_priv(dev); in s2io_rem_nic()
8152 unregister_netdev(dev); in s2io_rem_nic()
8158 free_netdev(dev); in s2io_rem_nic()
8462 struct net_device *dev = skb->dev; in queue_rx_frame() local
8463 struct s2io_nic *sp = netdev_priv(dev); in queue_rx_frame()
8465 skb->protocol = eth_type_trans(skb, dev); in queue_rx_frame()