Linux Kernel
3.7.1
|
#include <bnx2x_sp.h>
Data Fields | |
atomic_t | credit |
int | pool_sz |
u64 | pool_mirror [BNX2X_POOL_VEC_SIZE] |
int | base_pool_offset |
bool(* | get_entry )(struct bnx2x_credit_pool_obj *o, int *entry) |
bool(* | put_entry )(struct bnx2x_credit_pool_obj *o, int entry) |
bool(* | get )(struct bnx2x_credit_pool_obj *o, int cnt) |
bool(* | put )(struct bnx2x_credit_pool_obj *o, int cnt) |
int(* | check )(struct bnx2x_credit_pool_obj *o) |
Definition at line 628 of file bnx2x_sp.h.
int base_pool_offset |
Definition at line 647 of file bnx2x_sp.h.
int(* check)(struct bnx2x_credit_pool_obj *o) |
Reads the current amount of credit.
Definition at line 683 of file bnx2x_sp.h.
atomic_t credit |
Definition at line 631 of file bnx2x_sp.h.
bool(* get)(struct bnx2x_credit_pool_obj *o, int cnt) |
Get the requested amount of credit from the pool.
cnt | Amount of requested credit |
Definition at line 670 of file bnx2x_sp.h.
bool(* get_entry)(struct bnx2x_credit_pool_obj *o, int *entry) |
Get the next free pool entry.
Definition at line 654 of file bnx2x_sp.h.
u64 pool_mirror[BNX2X_POOL_VEC_SIZE] |
Definition at line 644 of file bnx2x_sp.h.
int pool_sz |
Definition at line 634 of file bnx2x_sp.h.
bool(* put)(struct bnx2x_credit_pool_obj *o, int cnt) |
Returns the credit to the pool.
cnt | Amount of credit to return |
Definition at line 678 of file bnx2x_sp.h.
bool(* put_entry)(struct bnx2x_credit_pool_obj *o, int entry) |
Return the entry back to the pool.
Definition at line 662 of file bnx2x_sp.h.