Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | vnic_wq_ctrl |
struct | vnic_wq_buf |
struct | vnic_wq |
Macros | |
#define | VNIC_WQ_BUF_MIN_BLK_ENTRIES 32 |
#define | VNIC_WQ_BUF_DFLT_BLK_ENTRIES 64 |
#define | VNIC_WQ_BUF_BLK_ENTRIES(entries) |
#define | VNIC_WQ_BUF_BLK_SZ(entries) (VNIC_WQ_BUF_BLK_ENTRIES(entries) * sizeof(struct vnic_wq_buf)) |
#define | VNIC_WQ_BUF_BLKS_NEEDED(entries) DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries)) |
#define | VNIC_WQ_BUF_BLKS_MAX VNIC_WQ_BUF_BLKS_NEEDED(4096) |
Functions | |
void | vnic_wq_free (struct vnic_wq *wq) |
int | vnic_wq_alloc (struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, unsigned int desc_count, unsigned int desc_size) |
void | vnic_wq_init (struct vnic_wq *wq, unsigned int cq_index, unsigned int error_interrupt_enable, unsigned int error_interrupt_offset) |
unsigned int | vnic_wq_error_status (struct vnic_wq *wq) |
void | vnic_wq_enable (struct vnic_wq *wq) |
int | vnic_wq_disable (struct vnic_wq *wq) |
void | vnic_wq_clean (struct vnic_wq *wq, void(*buf_clean)(struct vnic_wq *wq, struct vnic_wq_buf *buf)) |
#define VNIC_WQ_BUF_BLK_ENTRIES | ( | entries | ) |
#define VNIC_WQ_BUF_BLK_SZ | ( | entries | ) | (VNIC_WQ_BUF_BLK_ENTRIES(entries) * sizeof(struct vnic_wq_buf)) |
#define VNIC_WQ_BUF_BLKS_MAX VNIC_WQ_BUF_BLKS_NEEDED(4096) |
#define VNIC_WQ_BUF_BLKS_NEEDED | ( | entries | ) | DIV_ROUND_UP(entries, VNIC_WQ_BUF_BLK_ENTRIES(entries)) |