Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
bfa_msgq.c File Reference
#include "bfi.h"
#include "bfa_msgq.h"
#include "bfa_ioc.h"

Go to the source code of this file.

Macros

#define call_cmdq_ent_cbfn(_cmdq_ent, _status)
 

Enumerations

enum  cmdq_event {
  CMDQ_E_START = 1, CMDQ_E_STOP = 2, CMDQ_E_FAIL = 3, CMDQ_E_POST = 4,
  CMDQ_E_INIT_RESP = 5, CMDQ_E_DB_READY = 6
}
 
enum  rspq_event {
  RSPQ_E_START = 1, RSPQ_E_STOP = 2, RSPQ_E_FAIL = 3, RSPQ_E_RESP = 4,
  RSPQ_E_INIT_RESP = 5, RSPQ_E_DB_READY = 6
}
 

Functions

 bfa_fsm_state_decl (cmdq, stopped, struct bfa_msgq_cmdq, enum cmdq_event)
 
 bfa_fsm_state_decl (cmdq, init_wait, struct bfa_msgq_cmdq, enum cmdq_event)
 
 bfa_fsm_state_decl (cmdq, ready, struct bfa_msgq_cmdq, enum cmdq_event)
 
 bfa_fsm_state_decl (cmdq, dbell_wait, struct bfa_msgq_cmdq, enum cmdq_event)
 
 bfa_fsm_state_decl (rspq, stopped, struct bfa_msgq_rspq, enum rspq_event)
 
 bfa_fsm_state_decl (rspq, init_wait, struct bfa_msgq_rspq, enum rspq_event)
 
 bfa_fsm_state_decl (rspq, ready, struct bfa_msgq_rspq, enum rspq_event)
 
 bfa_fsm_state_decl (rspq, dbell_wait, struct bfa_msgq_rspq, enum rspq_event)
 
u32 bfa_msgq_meminfo (void)
 
void bfa_msgq_memclaim (struct bfa_msgq *msgq, u8 *kva, u64 pa)
 
void bfa_msgq_attach (struct bfa_msgq *msgq, struct bfa_ioc *ioc)
 
void bfa_msgq_regisr (struct bfa_msgq *msgq, enum bfi_mclass mc, bfa_msgq_mcfunc_t cbfn, void *cbarg)
 
void bfa_msgq_cmd_post (struct bfa_msgq *msgq, struct bfa_msgq_cmd_entry *cmd)
 
void bfa_msgq_rsp_copy (struct bfa_msgq *msgq, u8 *buf, size_t buf_len)
 

Macro Definition Documentation

#define call_cmdq_ent_cbfn (   _cmdq_ent,
  _status 
)
Value:
{ \
bfa_msgq_cmdcbfn_t cbfn; \
void *cbarg; \
cbfn = (_cmdq_ent)->cbfn; \
cbarg = (_cmdq_ent)->cbarg; \
(_cmdq_ent)->cbfn = NULL; \
(_cmdq_ent)->cbarg = NULL; \
if (cbfn) { \
cbfn(cbarg, (_status)); \
} \
}

Definition at line 25 of file bfa_msgq.c.

Enumeration Type Documentation

enum cmdq_event
Enumerator:
CMDQ_E_START 
CMDQ_E_STOP 
CMDQ_E_FAIL 
CMDQ_E_POST 
CMDQ_E_INIT_RESP 
CMDQ_E_DB_READY 

Definition at line 41 of file bfa_msgq.c.

enum rspq_event
Enumerator:
RSPQ_E_START 
RSPQ_E_STOP 
RSPQ_E_FAIL 
RSPQ_E_RESP 
RSPQ_E_INIT_RESP 
RSPQ_E_DB_READY 

Definition at line 319 of file bfa_msgq.c.

Function Documentation

bfa_fsm_state_decl ( cmdq  ,
stopped  ,
struct bfa_msgq_cmdq  ,
enum  cmdq_event 
)
bfa_fsm_state_decl ( cmdq  ,
init_wait  ,
struct bfa_msgq_cmdq  ,
enum  cmdq_event 
)
bfa_fsm_state_decl ( cmdq  ,
ready  ,
struct bfa_msgq_cmdq  ,
enum  cmdq_event 
)
bfa_fsm_state_decl ( cmdq  ,
dbell_wait  ,
struct bfa_msgq_cmdq  ,
enum  cmdq_event 
)
bfa_fsm_state_decl ( rspq  ,
stopped  ,
struct bfa_msgq_rspq  ,
enum  rspq_event 
)
bfa_fsm_state_decl ( rspq  ,
init_wait  ,
struct bfa_msgq_rspq  ,
enum  rspq_event 
)
bfa_fsm_state_decl ( rspq  ,
ready  ,
struct bfa_msgq_rspq  ,
enum  rspq_event 
)
bfa_fsm_state_decl ( rspq  ,
dbell_wait  ,
struct bfa_msgq_rspq  ,
enum  rspq_event 
)
void bfa_msgq_attach ( struct bfa_msgq msgq,
struct bfa_ioc ioc 
)

Definition at line 609 of file bfa_msgq.c.

void bfa_msgq_cmd_post ( struct bfa_msgq msgq,
struct bfa_msgq_cmd_entry cmd 
)

Definition at line 631 of file bfa_msgq.c.

void bfa_msgq_memclaim ( struct bfa_msgq msgq,
u8 kva,
u64  pa 
)

Definition at line 596 of file bfa_msgq.c.

u32 bfa_msgq_meminfo ( void  )

Definition at line 589 of file bfa_msgq.c.

void bfa_msgq_regisr ( struct bfa_msgq msgq,
enum bfi_mclass  mc,
bfa_msgq_mcfunc_t  cbfn,
void cbarg 
)

Definition at line 623 of file bfa_msgq.c.

void bfa_msgq_rsp_copy ( struct bfa_msgq msgq,
u8 buf,
size_t  buf_len 
)

Definition at line 644 of file bfa_msgq.c.