Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
e1000_ethtool.c File Reference
#include "e1000.h"
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  e1000_stats
 

Macros

#define E1000_STAT(m)
 
#define E1000_NETDEV_STAT(m)
 
#define E1000_QUEUE_STATS_LEN   0
 
#define E1000_GLOBAL_STATS_LEN   ARRAY_SIZE(e1000_gstrings_stats)
 
#define E1000_STATS_LEN   (E1000_GLOBAL_STATS_LEN + E1000_QUEUE_STATS_LEN)
 
#define E1000_TEST_LEN   ARRAY_SIZE(e1000_gstrings_test)
 
#define E1000_REGS_LEN   32
 
#define REG_PATTERN_TEST(reg, mask, write)
 
#define REG_SET_AND_CHECK(reg, mask, write)
 

Enumerations

enum  { NETDEV_STATS, E1000_STATS }
 

Functions

void e1000_set_ethtool_ops (struct net_device *netdev)
 

Macro Definition Documentation

#define E1000_GLOBAL_STATS_LEN   ARRAY_SIZE(e1000_gstrings_stats)

Definition at line 100 of file e1000_ethtool.c.

#define E1000_NETDEV_STAT (   m)
Value:
sizeof(((struct net_device *)0)->m), \
offsetof(struct net_device, m)

Definition at line 46 of file e1000_ethtool.c.

#define E1000_QUEUE_STATS_LEN   0

Definition at line 99 of file e1000_ethtool.c.

#define E1000_REGS_LEN   32
#define E1000_STAT (   m)
Value:
sizeof(((struct e1000_adapter *)0)->m), \
offsetof(struct e1000_adapter, m)

Definition at line 43 of file e1000_ethtool.c.

#define E1000_STATS_LEN   (E1000_GLOBAL_STATS_LEN + E1000_QUEUE_STATS_LEN)

Definition at line 101 of file e1000_ethtool.c.

#define E1000_TEST_LEN   ARRAY_SIZE(e1000_gstrings_test)

Definition at line 107 of file e1000_ethtool.c.

#define REG_PATTERN_TEST (   reg,
  mask,
  write 
)
Value:
do { \
if (reg_pattern_test(adapter, data, \
(hw->mac_type >= e1000_82543) \
? E1000_##reg : E1000_82542_##reg, \
mask, write)) \
return 1; \
} while (0)

Definition at line 720 of file e1000_ethtool.c.

#define REG_SET_AND_CHECK (   reg,
  mask,
  write 
)
Value:
do { \
if (reg_set_and_check(adapter, data, \
(hw->mac_type >= e1000_82543) \
? E1000_##reg : E1000_82542_##reg, \
mask, write)) \
return 1; \
} while (0)

Definition at line 729 of file e1000_ethtool.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
NETDEV_STATS 
E1000_STATS 

Definition at line 34 of file e1000_ethtool.c.

Function Documentation

void e1000_set_ethtool_ops ( struct net_device netdev)

Definition at line 1896 of file e1000_ethtool.c.