/drivers/net/ |
D | sh_eth.c | 62 static void update_mac_address(struct net_device *ndev) in update_mac_address() argument 64 u32 ioaddr = ndev->base_addr; in update_mac_address() 66 ctrl_outl((ndev->dev_addr[0] << 24) | (ndev->dev_addr[1] << 16) | in update_mac_address() 67 (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]), in update_mac_address() 69 ctrl_outl((ndev->dev_addr[4] << 8) | (ndev->dev_addr[5]), in update_mac_address() 81 static void read_mac_address(struct net_device *ndev) in read_mac_address() argument 83 u32 ioaddr = ndev->base_addr; in read_mac_address() 85 ndev->dev_addr[0] = (ctrl_inl(ioaddr + MAHR) >> 24); in read_mac_address() 86 ndev->dev_addr[1] = (ctrl_inl(ioaddr + MAHR) >> 16) & 0xFF; in read_mac_address() 87 ndev->dev_addr[2] = (ctrl_inl(ioaddr + MAHR) >> 8) & 0xFF; in read_mac_address() [all …]
|
D | netx-eth.c | 105 static void netx_eth_set_multicast_list(struct net_device *ndev) in netx_eth_set_multicast_list() argument 111 netx_eth_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) in netx_eth_hard_start_xmit() argument 113 struct netx_eth_priv *priv = netdev_priv(ndev); in netx_eth_hard_start_xmit() 129 ndev->trans_start = jiffies; in netx_eth_hard_start_xmit() 130 ndev->stats.tx_packets++; in netx_eth_hard_start_xmit() 131 ndev->stats.tx_bytes += skb->len; in netx_eth_hard_start_xmit() 133 netif_stop_queue(ndev); in netx_eth_hard_start_xmit() 140 static void netx_eth_receive(struct net_device *ndev) in netx_eth_receive() argument 142 struct netx_eth_priv *priv = netdev_priv(ndev); in netx_eth_receive() 156 ndev->name); in netx_eth_receive() [all …]
|
D | rionet.c | 93 static int rionet_rx_clean(struct net_device *ndev) in rionet_rx_clean() argument 97 struct rionet_private *rnet = netdev_priv(ndev); in rionet_rx_clean() 112 eth_type_trans(rnet->rx_skb[i], ndev); in rionet_rx_clean() 116 ndev->stats.rx_dropped++; in rionet_rx_clean() 121 ndev->stats.rx_errors++; in rionet_rx_clean() 123 ndev->stats.rx_packets++; in rionet_rx_clean() 124 ndev->stats.rx_bytes += RIO_MAX_MSG_SIZE; in rionet_rx_clean() 132 static void rionet_rx_fill(struct net_device *ndev, int end) in rionet_rx_fill() argument 135 struct rionet_private *rnet = netdev_priv(ndev); in rionet_rx_fill() 151 static int rionet_queue_tx_msg(struct sk_buff *skb, struct net_device *ndev, in rionet_queue_tx_msg() argument [all …]
|
D | ns83820.c | 429 struct net_device *ndev; member 475 static inline void kick_rx(struct net_device *ndev) in kick_rx() argument 477 struct ns83820 *dev = PRIV(ndev); in kick_rx() 486 ndev->name); in kick_rx() 497 static void ns83820_vlan_rx_register(struct net_device *ndev, struct vlan_group *grp) in ns83820_vlan_rx_register() argument 499 struct ns83820 *dev = PRIV(ndev); in ns83820_vlan_rx_register() 573 static inline int rx_refill(struct net_device *ndev, gfp_t gfp) in rx_refill() argument 575 struct ns83820 *dev = PRIV(ndev); in rx_refill() 582 dprintk("rx_refill(%p)\n", ndev); in rx_refill() 590 skb = __netdev_alloc_skb(ndev, REAL_RX_BUF_SIZE+16, gfp); in rx_refill() [all …]
|
D | tehuti.c | 125 static void print_eth_id(struct net_device *ndev) in print_eth_id() argument 127 printk(KERN_INFO "%s: %s, Port %c\n", ndev->name, BDX_NIC_NAME, in print_eth_id() 128 (ndev->if_port == 0) ? 'A' : 'B'); in print_eth_id() 205 if (netif_carrier_ok(priv->ndev)) { in bdx_link_changed() 206 netif_stop_queue(priv->ndev); in bdx_link_changed() 207 netif_carrier_off(priv->ndev); in bdx_link_changed() 208 ERR("%s: Link Down\n", priv->ndev->name); in bdx_link_changed() 211 if (!netif_carrier_ok(priv->ndev)) { in bdx_link_changed() 212 netif_wake_queue(priv->ndev); in bdx_link_changed() 213 netif_carrier_on(priv->ndev); in bdx_link_changed() [all …]
|
D | qla3xxx.c | 153 qdev->ndev->name); in ql_wait_for_drvr_lock() 159 qdev->ndev->name); in ql_wait_for_drvr_lock() 314 lrg_buf_cb->skb = netdev_alloc_skb(qdev->ndev, in ql_release_to_lrg_buf_free_list() 318 qdev->ndev->name); in ql_release_to_lrg_buf_free_list() 334 qdev->ndev->name, err); in ql_release_to_lrg_buf_free_list() 543 static void ql_set_mac_addr(struct net_device *ndev, u16 *addr) in ql_set_mac_addr() argument 545 __le16 *p = (__le16 *)ndev->dev_addr; in ql_set_mac_addr() 580 qdev->ndev->name, checksum); in ql_get_nvram_params() 681 qdev->ndev->name); in ql_mii_write_reg_ex() 696 qdev->ndev->name); in ql_mii_write_reg_ex() [all …]
|
D | dm9000.c | 121 struct net_device *ndev; member 548 struct net_device *ndev = db->ndev; in dm9000_show_carrier() local 553 ndev->name, (nsr & NSR_SPEED) ? 10 : 100, in dm9000_show_carrier() 556 dev_info(db->dev, "%s: link down\n", ndev->name); in dm9000_show_carrier() 564 struct net_device *ndev = db->ndev; in dm9000_poll_work() local 569 unsigned old_carrier = netif_carrier_ok(ndev) ? 1 : 0; in dm9000_poll_work() 579 netif_carrier_off(ndev); in dm9000_poll_work() 581 netif_carrier_on(ndev); in dm9000_poll_work() 586 if (netif_running(ndev)) in dm9000_poll_work() 1153 dm9000_stop(struct net_device *ndev) in dm9000_stop() argument [all …]
|
D | macsonic.c | 419 static int __init macsonic_ident(struct nubus_dev *ndev) in macsonic_ident() argument 421 if (ndev->dr_hw == NUBUS_DRHW_ASANTE_LC && in macsonic_ident() 422 ndev->dr_sw == NUBUS_DRSW_SONIC_LC) in macsonic_ident() 424 if (ndev->dr_hw == NUBUS_DRHW_SONIC && in macsonic_ident() 425 ndev->dr_sw == NUBUS_DRSW_APPLE) { in macsonic_ident() 427 if (strstr(ndev->board->name, "DuoDock")) in macsonic_ident() 433 if (ndev->dr_hw == NUBUS_DRHW_SMC9194 && in macsonic_ident() 434 ndev->dr_sw == NUBUS_DRSW_DAYNA) in macsonic_ident() 437 if (ndev->dr_hw == NUBUS_DRHW_APPLE_SONIC_LC && in macsonic_ident() 438 ndev->dr_sw == 0) { /* huh? */ in macsonic_ident() [all …]
|
D | enc28j60.c | 489 static int enc28j60_set_hw_macaddr(struct net_device *ndev) in enc28j60_set_hw_macaddr() argument 492 struct enc28j60_net *priv = netdev_priv(ndev); in enc28j60_set_hw_macaddr() 499 ndev->name, ndev->dev_addr); in enc28j60_set_hw_macaddr() 501 nolock_regb_write(priv, MAADR5, ndev->dev_addr[0]); in enc28j60_set_hw_macaddr() 502 nolock_regb_write(priv, MAADR4, ndev->dev_addr[1]); in enc28j60_set_hw_macaddr() 503 nolock_regb_write(priv, MAADR3, ndev->dev_addr[2]); in enc28j60_set_hw_macaddr() 504 nolock_regb_write(priv, MAADR2, ndev->dev_addr[3]); in enc28j60_set_hw_macaddr() 505 nolock_regb_write(priv, MAADR1, ndev->dev_addr[4]); in enc28j60_set_hw_macaddr() 506 nolock_regb_write(priv, MAADR0, ndev->dev_addr[5]); in enc28j60_set_hw_macaddr() 779 enc28j60_setlink(struct net_device *ndev, u8 autoneg, u16 speed, u8 duplex) in enc28j60_setlink() argument [all …]
|
D | mac8390.c | 121 static int mac8390_initdev(struct net_device * dev, struct nubus_dev * ndev, 292 struct nubus_dev * ndev = NULL; in mac8390_probe() local 314 while ((ndev = nubus_find_type(NUBUS_CAT_NETWORK, NUBUS_TYPE_ETHERNET, ndev))) { in mac8390_probe() 316 if (slots & (1<<ndev->board->slot)) in mac8390_probe() 318 slots |= 1<<ndev->board->slot; in mac8390_probe() 320 if ((cardtype = mac8390_ident(ndev)) == MAC8390_NONE) in mac8390_probe() 328 dev->irq = SLOT2IRQ(ndev->board->slot); in mac8390_probe() 330 dev->base_addr = ndev->board->slot_addr | ((ndev->board->slot&0xf) << 20); in mac8390_probe() 335 if (nubus_get_func_dir(ndev, &dir) == -1) { in mac8390_probe() 338 dev->name, ndev->board->slot); in mac8390_probe() [all …]
|
D | fec_mpc52xx.c | 896 struct net_device *ndev; in mpc52xx_fec_probe() local 908 ndev = alloc_etherdev(sizeof(struct mpc52xx_fec_priv)); in mpc52xx_fec_probe() 909 if (!ndev) in mpc52xx_fec_probe() 912 priv = netdev_priv(ndev); in mpc52xx_fec_probe() 932 ndev->open = mpc52xx_fec_open; in mpc52xx_fec_probe() 933 ndev->stop = mpc52xx_fec_close; in mpc52xx_fec_probe() 934 ndev->hard_start_xmit = mpc52xx_fec_hard_start_xmit; in mpc52xx_fec_probe() 935 ndev->do_ioctl = mpc52xx_fec_ioctl; in mpc52xx_fec_probe() 936 ndev->ethtool_ops = &mpc52xx_fec_ethtool_ops; in mpc52xx_fec_probe() 937 ndev->get_stats = mpc52xx_fec_get_stats; in mpc52xx_fec_probe() [all …]
|
D | bfin_mac.c | 1010 struct net_device *ndev; in bfin_mac_probe() local 1014 ndev = alloc_etherdev(sizeof(struct bfin_mac_local)); in bfin_mac_probe() 1015 if (!ndev) { in bfin_mac_probe() 1020 SET_NETDEV_DEV(ndev, &pdev->dev); in bfin_mac_probe() 1021 platform_set_drvdata(pdev, ndev); in bfin_mac_probe() 1022 lp = netdev_priv(ndev); in bfin_mac_probe() 1025 *(__le32 *) (&(ndev->dev_addr[0])) = cpu_to_le32(bfin_read_EMAC_ADDRLO()); in bfin_mac_probe() 1026 *(__le16 *) (&(ndev->dev_addr[4])) = cpu_to_le16((u16) bfin_read_EMAC_ADDRHI()); in bfin_mac_probe() 1050 if (!is_valid_ether_addr(ndev->dev_addr)) in bfin_mac_probe() 1051 bfin_get_ether_addr(ndev->dev_addr); in bfin_mac_probe() [all …]
|
D | smc91x.c | 1969 struct net_device *ndev = platform_get_drvdata(pdev); in smc_enable_device() local 1970 struct smc_local *lp = netdev_priv(ndev); in smc_enable_device() 2031 struct net_device *ndev) in smc_request_attrib() argument 2034 struct smc_local *lp __maybe_unused = netdev_priv(ndev); in smc_request_attrib() 2046 struct net_device *ndev) in smc_release_attrib() argument 2049 struct smc_local *lp __maybe_unused = netdev_priv(ndev); in smc_release_attrib() 2055 static inline void smc_request_datacs(struct platform_device *pdev, struct net_device *ndev) in smc_request_datacs() argument 2059 struct smc_local *lp = netdev_priv(ndev); in smc_request_datacs() 2073 static void smc_release_datacs(struct platform_device *pdev, struct net_device *ndev) in smc_release_datacs() argument 2076 struct smc_local *lp = netdev_priv(ndev); in smc_release_datacs() [all …]
|
/drivers/net/arm/ |
D | ks8695net.c | 150 struct net_device *ndev; member 239 struct net_device *ndev = ksp->ndev; in ks8695_update_mac() local 242 maclow = ((ndev->dev_addr[2] << 24) | (ndev->dev_addr[3] << 16) | in ks8695_update_mac() 243 (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5] << 0)); in ks8695_update_mac() 244 machigh = ((ndev->dev_addr[0] << 8) | (ndev->dev_addr[1] << 0)); in ks8695_update_mac() 289 skb->dev = ksp->ndev; in ks8695_refill_rxbuffers() 362 struct net_device *ndev = (struct net_device *)dev_id; in ks8695_tx_irq() local 363 struct ks8695_priv *ksp = netdev_priv(ndev); in ks8695_tx_irq() 372 ndev->stats.tx_packets++; in ks8695_tx_irq() 373 ndev->stats.tx_bytes += ksp->tx_buffers[buff_n].length; in ks8695_tx_irq() [all …]
|
/drivers/net/irda/ |
D | vlsi_ir.c | 179 static void vlsi_proc_ndev(struct seq_file *seq, struct net_device *ndev) in vlsi_proc_ndev() argument 181 vlsi_irda_dev_t *idev = netdev_priv(ndev); in vlsi_proc_ndev() 186 unsigned iobase = ndev->base_addr; in vlsi_proc_ndev() 188 seq_printf(seq, "\n%s link state: %s / %s / %s / %s\n", ndev->name, in vlsi_proc_ndev() 189 netif_device_present(ndev) ? "attached" : "detached", in vlsi_proc_ndev() 190 netif_running(ndev) ? "running" : "not running", in vlsi_proc_ndev() 191 netif_carrier_ok(ndev) ? "carrier ok" : "no carrier", in vlsi_proc_ndev() 192 netif_queue_stopped(ndev) ? "queue stopped" : "queue running"); in vlsi_proc_ndev() 194 if (!netif_running(ndev)) in vlsi_proc_ndev() 294 ndev->stats.rx_packets, ndev->stats.rx_bytes, ndev->stats.rx_errors, in vlsi_proc_ndev() [all …]
|
D | sir_dev.c | 585 static int sirdev_hard_xmit(struct sk_buff *skb, struct net_device *ndev) in sirdev_hard_xmit() argument 587 struct sir_dev *dev = netdev_priv(ndev); in sirdev_hard_xmit() 595 netif_stop_queue(ndev); in sirdev_hard_xmit() 616 netif_start_queue(ndev); in sirdev_hard_xmit() 656 ndev->trans_start = jiffies; in sirdev_hard_xmit() 667 netif_wake_queue(ndev); in sirdev_hard_xmit() 676 static int sirdev_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) in sirdev_ioctl() argument 679 struct sir_dev *dev = netdev_priv(ndev); in sirdev_ioctl() 684 IRDA_DEBUG(3, "%s(), %s, (cmd=0x%X)\n", __func__, ndev->name, cmd); in sirdev_ioctl() 789 static int sirdev_open(struct net_device *ndev) in sirdev_open() argument [all …]
|
/drivers/net/wireless/prism54/ |
D | islpci_hotplug.c | 99 struct net_device *ndev; in prism54_probe() local 172 if (!(ndev = islpci_setup(pdev))) { in prism54_probe() 179 priv = netdev_priv(ndev); in prism54_probe() 187 IRQF_SHARED, ndev->name, priv); in prism54_probe() 192 ndev->name); in prism54_probe() 201 unregister_netdev(ndev); in prism54_probe() 204 free_netdev(ndev); in prism54_probe() 222 struct net_device *ndev = pci_get_drvdata(pdev); in prism54_remove() local 223 islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; in prism54_remove() 227 printk(KERN_DEBUG "%s: hot unplug detected\n", ndev->name); in prism54_remove() [all …]
|
D | islpci_dev.c | 147 priv->ndev->name, fw_entry->data + 40); in isl_upload_firmware() 189 struct net_device *ndev = priv->ndev; in islpci_interrupt() local 285 islpci_mgt_receive(ndev); in islpci_interrupt() 287 islpci_mgt_cleanup_transmit(ndev); in islpci_interrupt() 290 islpci_mgmt_rx_fill(ndev); in islpci_interrupt() 313 netif_wake_queue(priv->ndev); in islpci_interrupt() 377 islpci_open(struct net_device *ndev) in islpci_open() argument 380 islpci_private *priv = netdev_priv(ndev); in islpci_open() 389 netif_start_queue(ndev); in islpci_open() 397 netif_carrier_off(ndev); in islpci_open() [all …]
|
D | isl_ioctl.c | 216 prism54_get_wireless_stats(struct net_device *ndev) in prism54_get_wireless_stats() argument 218 islpci_private *priv = netdev_priv(ndev); in prism54_get_wireless_stats() 242 prism54_commit(struct net_device *ndev, struct iw_request_info *info, in prism54_commit() argument 245 islpci_private *priv = netdev_priv(ndev); in prism54_commit() 258 prism54_get_name(struct net_device *ndev, struct iw_request_info *info, in prism54_get_name() argument 261 islpci_private *priv = netdev_priv(ndev); in prism54_get_name() 289 prism54_set_freq(struct net_device *ndev, struct iw_request_info *info, in prism54_set_freq() argument 292 islpci_private *priv = netdev_priv(ndev); in prism54_set_freq() 309 prism54_get_freq(struct net_device *ndev, struct iw_request_info *info, in prism54_get_freq() argument 312 islpci_private *priv = netdev_priv(ndev); in prism54_get_freq() [all …]
|
D | islpci_mgt.c | 107 islpci_mgmt_rx_fill(struct net_device *ndev) in islpci_mgmt_rx_fill() argument 109 islpci_private *priv = netdev_priv(ndev); in islpci_mgmt_rx_fill() 166 islpci_mgt_transmit(struct net_device *ndev, int operation, unsigned long oid, in islpci_mgt_transmit() argument 169 islpci_private *priv = netdev_priv(ndev); in islpci_mgt_transmit() 187 ndev->name, frag_len); in islpci_mgt_transmit() 195 ndev->name); in islpci_mgt_transmit() 227 ndev->name); in islpci_mgt_transmit() 236 ndev->name); in islpci_mgt_transmit() 273 islpci_mgt_receive(struct net_device *ndev) in islpci_mgt_receive() argument 275 islpci_private *priv = netdev_priv(ndev); in islpci_mgt_receive() [all …]
|
D | islpci_eth.c | 75 islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev) in islpci_eth_transmit() argument 77 islpci_private *priv = netdev_priv(ndev); in islpci_eth_transmit() 102 ndev->name); in islpci_eth_transmit() 103 netif_stop_queue(ndev); in islpci_eth_transmit() 153 ndev->name); in islpci_eth_transmit() 198 ndev->name); in islpci_eth_transmit() 225 netif_stop_queue(ndev); in islpci_eth_transmit() 232 ndev->trans_start = jiffies; in islpci_eth_transmit() 262 if (priv->ndev->type == ARPHRD_IEEE80211_PRISM) { in islpci_monitor_rx() 318 struct net_device *ndev = priv->ndev; in islpci_eth_receive() local [all …]
|
/drivers/net/ibm_newemac/ |
D | core.c | 137 printk(KERN_ERR "%s: %s\n", dev->ndev->name, error); in emac_report_timeout_error() 300 netif_tx_lock_bh(dev->ndev); in emac_netif_stop() 301 netif_addr_lock(dev->ndev); in emac_netif_stop() 303 netif_addr_unlock(dev->ndev); in emac_netif_stop() 304 netif_tx_unlock_bh(dev->ndev); in emac_netif_stop() 305 dev->ndev->trans_start = jiffies; /* prevent tx timeout */ in emac_netif_stop() 307 netif_tx_disable(dev->ndev); in emac_netif_stop() 312 netif_tx_lock_bh(dev->ndev); in emac_netif_start() 313 netif_addr_lock(dev->ndev); in emac_netif_start() 315 if (dev->mcast_pending && netif_running(dev->ndev)) in emac_netif_start() [all …]
|
/drivers/net/qlge/ |
D | qlge_ethtool.c | 46 if (!netif_running(qdev->ndev)) in ql_update_ring_coalescing() 213 ql_get_ethtool_stats(struct net_device *ndev, in ql_get_ethtool_stats() argument 216 struct ql_adapter *qdev = netdev_priv(ndev); in ql_get_ethtool_stats() 265 static int ql_get_settings(struct net_device *ndev, in ql_get_settings() argument 268 struct ql_adapter *qdev = netdev_priv(ndev); in ql_get_settings() 290 static void ql_get_drvinfo(struct net_device *ndev, in ql_get_drvinfo() argument 293 struct ql_adapter *qdev = netdev_priv(ndev); in ql_get_drvinfo() 327 static int ql_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *c) in ql_set_coalesce() argument 329 struct ql_adapter *qdev = netdev_priv(ndev); in ql_set_coalesce() 370 static int ql_set_tso(struct net_device *ndev, uint32_t data) in ql_set_tso() argument [all …]
|
D | qlge_main.c | 959 netdev_alloc_skb(qdev->ndev, in ql_update_sbq() 1312 skb = netdev_alloc_skb(qdev->ndev, length); in ql_build_rx_skb() 1413 struct net_device *ndev = qdev->ndev; in ql_process_mac_rx_intr() local 1426 skb->dev = ndev; in ql_process_mac_rx_intr() 1440 skb->protocol = eth_type_trans(skb, ndev); in ql_process_mac_rx_intr() 1468 skb->protocol = eth_type_trans(skb, ndev); in ql_process_mac_rx_intr() 1524 netif_stop_queue(qdev->ndev); in ql_queue_fw_error() 1525 netif_carrier_off(qdev->ndev); in ql_queue_fw_error() 1531 netif_stop_queue(qdev->ndev); in ql_queue_asic_error() 1532 netif_carrier_off(qdev->ndev); in ql_queue_asic_error() [all …]
|
/drivers/net/fs_enet/ |
D | fs_enet-main.c | 84 struct net_device *dev = fep->ndev; in fs_enet_rx_napi() 780 fs_init_bds(fep->ndev); in fs_enet_open() 1025 struct net_device *ndev; in fs_enet_probe() local 1058 ndev = alloc_etherdev(privsize); in fs_enet_probe() 1059 if (!ndev) { in fs_enet_probe() 1064 dev_set_drvdata(&ofdev->dev, ndev); in fs_enet_probe() 1066 fep = netdev_priv(ndev); in fs_enet_probe() 1068 fep->ndev = ndev; in fs_enet_probe() 1072 ret = fep->ops->setup_data(ndev); in fs_enet_probe() 1084 memcpy(ndev->dev_addr, mac_addr, 6); in fs_enet_probe() [all …]
|