#include <linux/types.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include <linux/vmalloc.h>
#include <linux/if_vlan.h>
#include <linux/uaccess.h>
#include "ixgbevf.h"
Go to the source code of this file.
#define IXGBE_ALL_RAR_ENTRIES 16 |
#define IXGBE_GET_STAT |
( |
|
_A_, |
|
|
|
_R_ |
|
) |
| (_A_->stats._R_) |
#define IXGBE_GLOBAL_STATS_LEN ARRAY_SIZE(ixgbe_gstrings_stats) |
#define IXGBE_QUEUE_STATS_LEN 0 |
#define IXGBEVF_STAT |
( |
|
m, |
|
|
|
b, |
|
|
|
r |
|
) |
| |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define REG_PATTERN_TEST |
( |
|
R, |
|
|
|
M, |
|
|
|
W |
|
) |
| |
Value:
for (pat = 0; pat <
ARRAY_SIZE(register_test_patterns); pat++) { \
writel((register_test_patterns[pat] &
W), \
if (val != (register_test_patterns[pat] & W &
M)) { \
"pattern test reg %04X failed: got " \
"0x%08X expected 0x%08X\n", \
R, val, (register_test_patterns[pat] & W & M)); \
writel(before,
adapter->hw.hw_addr +
R); \
return 1; \
} \
writel(before,
adapter->hw.hw_addr +
R); \
} \
}
Definition at line 541 of file ethtool.c.
#define REG_SET_AND_CHECK |
( |
|
R, |
|
|
|
M, |
|
|
|
W |
|
) |
| |
Value:
if ((
W & M) != (val & M)) { \
pr_err("set/check reg %04X test failed: got 0x%08X expected " \
"0x%08X\n",
R, (val & M), (
W & M)); \
writel(before, (
adapter->hw.hw_addr +
R)); \
return 1; \
} \
writel(before, (
adapter->hw.hw_addr +
R)); \
}
Definition at line 562 of file ethtool.c.
#define TABLE64_TEST_HI 6 |
#define TABLE64_TEST_LO 5 |