Go to the source code of this file.
◆ _IGBVF_H_
◆ IGBVF_START_ITR
#define IGBVF_START_ITR 648 /* ~6000 ints/sec */ |
◆ IGBVF_DEFAULT_TXD
#define IGBVF_DEFAULT_TXD 256 |
◆ IGBVF_MAX_TXD
#define IGBVF_MAX_TXD 4096 |
◆ IGBVF_MIN_TXD
◆ IGBVF_DEFAULT_RXD
#define IGBVF_DEFAULT_RXD 256 |
◆ IGBVF_MAX_RXD
#define IGBVF_MAX_RXD 4096 |
◆ IGBVF_MIN_RXD
◆ IGBVF_MIN_ITR_USECS
#define IGBVF_MIN_ITR_USECS 10 /* 100000 irq/sec */ |
◆ IGBVF_MAX_ITR_USECS
#define IGBVF_MAX_ITR_USECS 10000 /* 100 irq/sec */ |
◆ IGBVF_RX_PTHRESH
#define IGBVF_RX_PTHRESH 16 |
◆ IGBVF_RX_HTHRESH
#define IGBVF_RX_HTHRESH 8 |
◆ IGBVF_RX_WTHRESH
#define IGBVF_RX_WTHRESH 1 |
◆ IGBVF_TX_PTHRESH
#define IGBVF_TX_PTHRESH 8 |
◆ IGBVF_TX_HTHRESH
#define IGBVF_TX_HTHRESH 1 |
◆ IGBVF_TX_WTHRESH
#define IGBVF_TX_WTHRESH 1 |
◆ MAXIMUM_ETHERNET_VLAN_SIZE
#define MAXIMUM_ETHERNET_VLAN_SIZE 1522 |
◆ IGBVF_FC_PAUSE_TIME
#define IGBVF_FC_PAUSE_TIME 0x0680 /* 858 usec */ |
◆ IGBVF_TX_QUEUE_WAKE
#define IGBVF_TX_QUEUE_WAKE 32 |
◆ IGBVF_RX_BUFFER_WRITE
#define IGBVF_RX_BUFFER_WRITE 16 /* Must be power of 2 */ |
◆ AUTO_ALL_MODES
◆ IGBVF_EEPROM_APME
#define IGBVF_EEPROM_APME 0x0400 |
◆ IGBVF_MNG_VLAN_NONE
#define IGBVF_MNG_VLAN_NONE (-1) |
◆ NUM_TX_DESC
◆ NUM_RX_DESC
◆ IGBVF_FLAG_RX_CSUM_DISABLED
#define IGBVF_FLAG_RX_CSUM_DISABLED (1 << 0) |
◆ IGBVF_DESC_UNUSED
#define IGBVF_DESC_UNUSED |
( |
|
R | ) |
|
Value:((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
(R)->next_to_clean - (R)->next_to_use - 1)
Definition at line 317 of file igbvf.h.
◆ IGBVF_RX_DESC_ADV
◆ IGBVF_TX_DESC_ADV
◆ IGBVF_TX_CTXTDESC_ADV
◆ er32
◆ ew32
◆ e1e_flush
#define e1e_flush |
( |
| ) |
er32(STATUS) |
◆ igbvf_boards
◆ igbvf_state_t
Enumerator |
---|
__IGBVF_TESTING | |
__IGBVF_RESETTING | |
__IGBVF_DOWN | |
Definition at line 328 of file igbvf.h.
◆ latency_range
Enumerator |
---|
lowest_latency | |
low_latency | |
bulk_latency | |
latency_invalid | |
Definition at line 334 of file igbvf.h.
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_ONLY |
| ) |
|
◆ igbvf_check_options()
◆ igbvf_set_ethtool_ops()
void igbvf_set_ethtool_ops |
( |
struct net_device * |
netdev | ) |
|
◆ igbvf_up()
◆ igbvf_down()
◆ igbvf_reinit_locked()
◆ igbvf_reset()
Definition at line 426 of file igbvf_main.c.
433 if (
mac->ops.reset_hw(
hw) )
434 DBG (
"PF still resetting\n");
436 mac->ops.init_hw (
hw );
uint8_t mac[ETH_ALEN]
MAC address.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
struct e1000_mac_info mac
static struct net_device * netdev
struct net_device * netdev
static int is_valid_ether_addr(const void *addr)
Check if Ethernet address is valid.
#define DBG(...)
Print a debugging message.
uint8_t hw_addr[MAX_HW_ADDR_LEN]
Hardware address.
References e1000_mac_info::addr, DBG, ETH_ALEN, igbvf_adapter::hw, net_device::hw_addr, is_valid_ether_addr(), mac, e1000_hw::mac, memcpy(), netdev, and igbvf_adapter::netdev.
Referenced by igbvf_close(), igbvf_open(), igbvf_probe(), and igbvf_remove().
◆ igbvf_setup_rx_resources()
igbvf_setup_rx_resources - allocate Rx resources (Descriptors)
- Parameters
-
adapter | e1000 private structure |
Definition at line 564 of file igbvf_main.c.
570 DBG (
"igbvf_setup_rx_resources\n" );
585 rx_curr_desc = adapter->
rx_base + i;
588 rx_curr_desc->
wb.
upper.status_error = 0;
590 DBG (
"alloc_iob failed\n" );
static void *__malloc malloc_phys(size_t size, size_t phys_align)
Allocate memory with specified physical alignment.
struct e1000_adv_rx_desc::@55::@57 upper
#define MAXIMUM_ETHERNET_VLAN_SIZE
struct io_buffer * alloc_iob(size_t len)
Allocate I/O buffer.
struct e1000_adv_rx_desc::@54 read
#define ENOMEM
Not enough space.
static __always_inline unsigned long virt_to_bus(volatile const void *addr)
Convert virtual address to a bus address.
struct e1000_adv_rx_desc::@55 wb
void * data
Start of data.
#define DBG(...)
Print a debugging message.
union e1000_adv_rx_desc * rx_base
struct io_buffer * rx_iobuf[NUM_RX_DESC]
void * memset(void *dest, int character, size_t len) __nonnull
References alloc_iob(), io_buffer::data, DBG, ENOMEM, e1000_adv_rx_desc::hdr_addr, malloc_phys(), MAXIMUM_ETHERNET_VLAN_SIZE, memset(), NUM_RX_DESC, e1000_adv_rx_desc::pkt_addr, e1000_adv_rx_desc::read, igbvf_adapter::rx_base, igbvf_adapter::rx_iobuf, igbvf_adapter::rx_ring_size, e1000_adv_rx_desc::upper, virt_to_bus(), and e1000_adv_rx_desc::wb.
Referenced by igbvf_open().
◆ igbvf_setup_tx_resources()
igbvf_setup_tx_resources - allocate Tx resources (Descriptors)
- Parameters
-
adapter | e1000 private structure |
- Return values
-
rc | Returns 0 on success, negative on failure |
Definition at line 43 of file igbvf_main.c.
45 DBG (
"igbvf_setup_tx_resources\n" );
union e1000_adv_tx_desc * tx_base
static void *__malloc malloc_phys(size_t size, size_t phys_align)
Allocate memory with specified physical alignment.
#define ENOMEM
Not enough space.
static __always_inline unsigned long virt_to_bus(volatile const void *addr)
Convert virtual address to a bus address.
#define DBG(...)
Print a debugging message.
void * memset(void *dest, int character, size_t len) __nonnull
References DBG, ENOMEM, malloc_phys(), memset(), igbvf_adapter::tx_base, igbvf_adapter::tx_ring_size, and virt_to_bus().
Referenced by igbvf_open().
◆ igbvf_free_rx_resources()
◆ igbvf_free_tx_resources()
◆ igbvf_update_stats()
◆ igbvf_set_interrupt_capability()
void igbvf_set_interrupt_capability |
( |
struct igbvf_adapter * |
adapter | ) |
|
◆ igbvf_reset_interrupt_capability()
void igbvf_reset_interrupt_capability |
( |
struct igbvf_adapter * |
adapter | ) |
|
◆ __er32()
static u32 __er32 |
( |
struct e1000_hw * |
hw, |
|
|
unsigned long |
reg |
|
) |
| |
|
inlinestatic |
Definition at line 364 of file igbvf.h.
static unsigned int unsigned int reg
uint32_t readl(volatile uint32_t *io_addr)
Read 32-bit dword from memory-mapped device.
References readl(), and reg.
◆ __ew32()
static void __ew32 |
( |
struct e1000_hw * |
hw, |
|
|
unsigned long |
reg, |
|
|
u32 |
val |
|
) |
| |
|
inlinestatic |
Definition at line 369 of file igbvf.h.
static unsigned int unsigned int reg
void writel(uint32_t data, volatile uint32_t *io_addr)
Write 32-bit dword to memory-mapped device.
References reg, val, and writel().
◆ igbvf_driver_name
◆ igbvf_driver_version
const char igbvf_driver_version[] |
◆ copybreak