Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
ocrdma_hw.h File Reference
#include "ocrdma_sli.h"

Go to the source code of this file.

Functions

int ocrdma_init_hw (struct ocrdma_dev *)
 
void ocrdma_cleanup_hw (struct ocrdma_dev *)
 
enum ib_qp_state get_ibqp_state (enum ocrdma_qp_state qps)
 
void ocrdma_ring_cq_db (struct ocrdma_dev *, u16 cq_id, bool armed, bool solicited, u16 cqe_popped)
 
int ocrdma_query_config (struct ocrdma_dev *, struct ocrdma_mbx_query_config *config)
 
int ocrdma_resolve_dgid (struct ocrdma_dev *, union ib_gid *dgid, u8 *mac_addr)
 
int ocrdma_mbx_alloc_pd (struct ocrdma_dev *, struct ocrdma_pd *)
 
int ocrdma_mbx_dealloc_pd (struct ocrdma_dev *, struct ocrdma_pd *)
 
int ocrdma_mbx_alloc_lkey (struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr, u32 pd_id, int addr_check)
 
int ocrdma_mbx_dealloc_lkey (struct ocrdma_dev *, int fmr, u32 lkey)
 
int ocrdma_reg_mr (struct ocrdma_dev *, struct ocrdma_hw_mr *hwmr, u32 pd_id, int acc)
 
int ocrdma_mbx_create_cq (struct ocrdma_dev *, struct ocrdma_cq *, int entries, int dpp_cq)
 
int ocrdma_mbx_destroy_cq (struct ocrdma_dev *, struct ocrdma_cq *)
 
int ocrdma_mbx_create_qp (struct ocrdma_qp *, struct ib_qp_init_attr *attrs, u8 enable_dpp_cq, u16 dpp_cq_id, u16 *dpp_offset, u16 *dpp_credit_lmt)
 
int ocrdma_mbx_modify_qp (struct ocrdma_dev *, struct ocrdma_qp *, struct ib_qp_attr *attrs, int attr_mask, enum ib_qp_state old_qps)
 
int ocrdma_mbx_query_qp (struct ocrdma_dev *, struct ocrdma_qp *, struct ocrdma_qp_params *param)
 
int ocrdma_mbx_destroy_qp (struct ocrdma_dev *, struct ocrdma_qp *)
 
int ocrdma_mbx_create_srq (struct ocrdma_srq *, struct ib_srq_init_attr *, struct ocrdma_pd *)
 
int ocrdma_mbx_modify_srq (struct ocrdma_srq *, struct ib_srq_attr *)
 
int ocrdma_mbx_query_srq (struct ocrdma_srq *, struct ib_srq_attr *)
 
int ocrdma_mbx_destroy_srq (struct ocrdma_dev *, struct ocrdma_srq *)
 
int ocrdma_alloc_av (struct ocrdma_dev *, struct ocrdma_ah *)
 
int ocrdma_free_av (struct ocrdma_dev *, struct ocrdma_ah *)
 
int ocrdma_qp_state_machine (struct ocrdma_qp *, enum ib_qp_state new_state, enum ib_qp_state *old_ib_state)
 
bool ocrdma_is_qp_in_sq_flushlist (struct ocrdma_cq *, struct ocrdma_qp *)
 
bool ocrdma_is_qp_in_rq_flushlist (struct ocrdma_cq *, struct ocrdma_qp *)
 
void ocrdma_flush_qp (struct ocrdma_qp *)
 

Function Documentation

enum ib_qp_state get_ibqp_state ( enum ocrdma_qp_state  qps)

Definition at line 140 of file ocrdma_hw.c.

int ocrdma_alloc_av ( struct ocrdma_dev ,
struct ocrdma_ah  
)

Definition at line 2473 of file ocrdma_hw.c.

void ocrdma_cleanup_hw ( struct ocrdma_dev )

Definition at line 2621 of file ocrdma_hw.c.

void ocrdma_flush_qp ( struct ocrdma_qp )

Definition at line 1678 of file ocrdma_hw.c.

int ocrdma_free_av ( struct ocrdma_dev ,
struct ocrdma_ah  
)

Definition at line 2498 of file ocrdma_hw.c.

int ocrdma_init_hw ( struct ocrdma_dev )

Definition at line 2583 of file ocrdma_hw.c.

bool ocrdma_is_qp_in_rq_flushlist ( struct ocrdma_cq ,
struct ocrdma_qp  
)

Definition at line 1665 of file ocrdma_hw.c.

bool ocrdma_is_qp_in_sq_flushlist ( struct ocrdma_cq ,
struct ocrdma_qp  
)

Definition at line 1652 of file ocrdma_hw.c.

int ocrdma_mbx_alloc_lkey ( struct ocrdma_dev ,
struct ocrdma_hw_mr hwmr,
u32  pd_id,
int  addr_check 
)

Definition at line 1476 of file ocrdma_hw.c.

int ocrdma_mbx_alloc_pd ( struct ocrdma_dev ,
struct ocrdma_pd  
)

Definition at line 1135 of file ocrdma_hw.c.

int ocrdma_mbx_create_cq ( struct ocrdma_dev ,
struct ocrdma_cq ,
int  entries,
int  dpp_cq 
)

Definition at line 1344 of file ocrdma_hw.c.

int ocrdma_mbx_create_qp ( struct ocrdma_qp ,
struct ib_qp_init_attr attrs,
u8  enable_dpp_cq,
u16  dpp_cq_id,
u16 dpp_offset,
u16 dpp_credit_lmt 
)

Definition at line 2000 of file ocrdma_hw.c.

int ocrdma_mbx_create_srq ( struct ocrdma_srq ,
struct ib_srq_init_attr ,
struct ocrdma_pd  
)

Definition at line 2341 of file ocrdma_hw.c.

int ocrdma_mbx_dealloc_lkey ( struct ocrdma_dev ,
int  fmr,
u32  lkey 
)

Definition at line 1510 of file ocrdma_hw.c.

int ocrdma_mbx_dealloc_pd ( struct ocrdma_dev ,
struct ocrdma_pd  
)

Definition at line 1164 of file ocrdma_hw.c.

int ocrdma_mbx_destroy_cq ( struct ocrdma_dev ,
struct ocrdma_cq  
)

Definition at line 1451 of file ocrdma_hw.c.

int ocrdma_mbx_destroy_qp ( struct ocrdma_dev ,
struct ocrdma_qp  
)

Definition at line 2316 of file ocrdma_hw.c.

int ocrdma_mbx_destroy_srq ( struct ocrdma_dev ,
struct ocrdma_srq  
)

Definition at line 2456 of file ocrdma_hw.c.

int ocrdma_mbx_modify_qp ( struct ocrdma_dev ,
struct ocrdma_qp ,
struct ib_qp_attr attrs,
int  attr_mask,
enum ib_qp_state  old_qps 
)

Definition at line 2281 of file ocrdma_hw.c.

int ocrdma_mbx_modify_srq ( struct ocrdma_srq ,
struct ib_srq_attr  
)

Definition at line 2417 of file ocrdma_hw.c.

int ocrdma_mbx_query_qp ( struct ocrdma_dev ,
struct ocrdma_qp ,
struct ocrdma_qp_params param 
)

Definition at line 2098 of file ocrdma_hw.c.

int ocrdma_mbx_query_srq ( struct ocrdma_srq ,
struct ib_srq_attr  
)

Definition at line 2432 of file ocrdma_hw.c.

int ocrdma_qp_state_machine ( struct ocrdma_qp ,
enum ib_qp_state  new_state,
enum ib_qp_state old_ib_state 
)

Definition at line 1695 of file ocrdma_hw.c.

int ocrdma_query_config ( struct ocrdma_dev ,
struct ocrdma_mbx_query_config config 
)
int ocrdma_reg_mr ( struct ocrdma_dev ,
struct ocrdma_hw_mr hwmr,
u32  pd_id,
int  acc 
)

Definition at line 1608 of file ocrdma_hw.c.

int ocrdma_resolve_dgid ( struct ocrdma_dev ,
union ib_gid dgid,
u8 mac_addr 
)

Definition at line 2119 of file ocrdma_hw.c.

void ocrdma_ring_cq_db ( struct ocrdma_dev ,
u16  cq_id,
bool  armed,
bool  solicited,
u16  cqe_popped 
)

Definition at line 273 of file ocrdma_hw.c.