Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
bnx2x_credit_pool_obj Struct Reference

#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)
 

Detailed Description

Definition at line 628 of file bnx2x_sp.h.

Field Documentation

int base_pool_offset

Definition at line 647 of file bnx2x_sp.h.

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.

Get the requested amount of credit from the pool.

Parameters
cntAmount of requested credit
Returns
true if the operation is successful

Definition at line 670 of file bnx2x_sp.h.

Get the next free pool entry.

Returns
true if there was a free entry in the pool

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.

Returns the credit to the pool.

Parameters
cntAmount of credit to return
Returns
true if the operation is successful

Definition at line 678 of file bnx2x_sp.h.

Return the entry back to the pool.

Returns
true if entry is legal and has been successfully returned to the pool.

Definition at line 662 of file bnx2x_sp.h.


The documentation for this struct was generated from the following file: