FreeBSD kernel BXE device code
|
#include <ecore_sp.h>
Data Fields | |
ecore_atomic_t | credit |
int | pool_sz |
uint64_t | pool_mirror [ECORE_POOL_VEC_SIZE] |
int | base_pool_offset |
bool(* | get_entry )(struct ecore_credit_pool_obj *o, int *entry) |
bool(* | put_entry )(struct ecore_credit_pool_obj *o, int entry) |
bool(* | get )(struct ecore_credit_pool_obj *o, int cnt) |
bool(* | put )(struct ecore_credit_pool_obj *o, int cnt) |
int(* | check )(struct ecore_credit_pool_obj *o) |
Definition at line 1109 of file ecore_sp.h.
int ecore_credit_pool_obj::base_pool_offset |
Definition at line 1127 of file ecore_sp.h.
Referenced by ecore_credit_pool_get_entry(), ecore_credit_pool_put_entry(), and ecore_init_credit_pool().
int(* ecore_credit_pool_obj::check) (struct ecore_credit_pool_obj *o) |
Reads the current amount of credit.
Definition at line 1163 of file ecore_sp.h.
Referenced by ecore_init_credit_pool().
ecore_atomic_t ecore_credit_pool_obj::credit |
Definition at line 1112 of file ecore_sp.h.
Referenced by ecore_credit_pool_check(), ecore_credit_pool_get(), ecore_credit_pool_put(), and ecore_init_credit_pool().
bool(* ecore_credit_pool_obj::get) (struct ecore_credit_pool_obj *o, int cnt) |
Get the requested amount of credit from the pool.
cnt | Amount of requested credit |
Definition at line 1150 of file ecore_sp.h.
Referenced by ecore_get_credit_mac(), ecore_get_credit_vlan(), ecore_get_credit_vlan_mac(), ecore_init_credit_pool(), and ecore_put_credit_vlan_mac().
bool(* ecore_credit_pool_obj::get_entry) (struct ecore_credit_pool_obj *o, int *entry) |
Get the next free pool entry.
Definition at line 1134 of file ecore_sp.h.
Referenced by ecore_get_cam_offset_mac(), ecore_get_cam_offset_vlan(), and ecore_init_credit_pool().
uint64_t ecore_credit_pool_obj::pool_mirror[ECORE_POOL_VEC_SIZE] |
Definition at line 1124 of file ecore_sp.h.
Referenced by ecore_credit_pool_get_entry(), ecore_credit_pool_put_entry(), and ecore_init_credit_pool().
int ecore_credit_pool_obj::pool_sz |
Definition at line 1115 of file ecore_sp.h.
Referenced by ecore_credit_pool_put(), ecore_credit_pool_put_entry(), and ecore_init_credit_pool().
bool(* ecore_credit_pool_obj::put) (struct ecore_credit_pool_obj *o, int cnt) |
Returns the credit to the pool.
cnt | Amount of credit to return |
Definition at line 1158 of file ecore_sp.h.
Referenced by ecore_get_credit_vlan_mac(), ecore_init_credit_pool(), ecore_put_credit_mac(), ecore_put_credit_vlan(), and ecore_put_credit_vlan_mac().
bool(* ecore_credit_pool_obj::put_entry) (struct ecore_credit_pool_obj *o, int entry) |
Return the entry back to the pool.
Definition at line 1142 of file ecore_sp.h.
Referenced by ecore_init_credit_pool(), ecore_put_cam_offset_mac(), and ecore_put_cam_offset_vlan().