forcedeth.c (a402eae64d0ad12b1c4a411f250d6c161e67f623) | forcedeth.c (bc1f44709cf27fb2a5766cadafe7e2ad5e9cb221) |
---|---|
1/* 2 * forcedeth: Ethernet driver for NVIDIA nForce media access controllers. 3 * 4 * Note: This driver is a cleanroom reimplementation based on reverse 5 * engineered documentation written by Carl-Daniel Hailfinger 6 * and Andrew de Quincey. 7 * 8 * NVIDIA, nForce and other NVIDIA marks are trademarks or registered --- 1719 unchanged lines hidden (view full) --- 1728} 1729 1730/* 1731 * nv_get_stats64: dev->ndo_get_stats64 function 1732 * Get latest stats value from the nic. 1733 * Called with read_lock(&dev_base_lock) held for read - 1734 * only synchronized against unregister_netdevice. 1735 */ | 1/* 2 * forcedeth: Ethernet driver for NVIDIA nForce media access controllers. 3 * 4 * Note: This driver is a cleanroom reimplementation based on reverse 5 * engineered documentation written by Carl-Daniel Hailfinger 6 * and Andrew de Quincey. 7 * 8 * NVIDIA, nForce and other NVIDIA marks are trademarks or registered --- 1719 unchanged lines hidden (view full) --- 1728} 1729 1730/* 1731 * nv_get_stats64: dev->ndo_get_stats64 function 1732 * Get latest stats value from the nic. 1733 * Called with read_lock(&dev_base_lock) held for read - 1734 * only synchronized against unregister_netdevice. 1735 */ |
1736static struct rtnl_link_stats64* | 1736static void |
1737nv_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *storage) 1738 __acquires(&netdev_priv(dev)->hwstats_lock) 1739 __releases(&netdev_priv(dev)->hwstats_lock) 1740{ 1741 struct fe_priv *np = netdev_priv(dev); 1742 unsigned int syncp_start; 1743 1744 /* --- 43 unchanged lines hidden (view full) --- 1788 storage->rx_fifo_errors = np->estats.rx_drop_frame; 1789 1790 /* detailed tx_errors */ 1791 storage->tx_carrier_errors = np->estats.tx_carrier_errors; 1792 storage->tx_fifo_errors = np->estats.tx_fifo_errors; 1793 1794 spin_unlock_bh(&np->hwstats_lock); 1795 } | 1737nv_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *storage) 1738 __acquires(&netdev_priv(dev)->hwstats_lock) 1739 __releases(&netdev_priv(dev)->hwstats_lock) 1740{ 1741 struct fe_priv *np = netdev_priv(dev); 1742 unsigned int syncp_start; 1743 1744 /* --- 43 unchanged lines hidden (view full) --- 1788 storage->rx_fifo_errors = np->estats.rx_drop_frame; 1789 1790 /* detailed tx_errors */ 1791 storage->tx_carrier_errors = np->estats.tx_carrier_errors; 1792 storage->tx_fifo_errors = np->estats.tx_fifo_errors; 1793 1794 spin_unlock_bh(&np->hwstats_lock); 1795 } |
1796 1797 return storage; | |
1798} 1799 1800/* 1801 * nv_alloc_rx: fill rx ring entries. 1802 * Return 1 if the allocations for the skbs failed and the 1803 * rx engine is without Available descriptors 1804 */ 1805static int nv_alloc_rx(struct net_device *dev) --- 4573 unchanged lines hidden --- | 1796} 1797 1798/* 1799 * nv_alloc_rx: fill rx ring entries. 1800 * Return 1 if the allocations for the skbs failed and the 1801 * rx engine is without Available descriptors 1802 */ 1803static int nv_alloc_rx(struct net_device *dev) --- 4573 unchanged lines hidden --- |