Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cxio_hal.c File Reference
#include <asm/delay.h>
#include <linux/mutex.h>
#include <linux/netdevice.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <net/net_namespace.h>
#include "cxio_resource.h"
#include "cxio_hal.h"
#include "cxgb3_offload.h"
#include "sge_defs.h"

Go to the source code of this file.

Functions

int cxio_hal_cq_op (struct cxio_rdev *rdev_p, struct t3_cq *cq, enum t3_cq_opcode op, u32 credit)
 
int cxio_create_cq (struct cxio_rdev *rdev_p, struct t3_cq *cq, int kernel)
 
void cxio_release_ucontext (struct cxio_rdev *rdev_p, struct cxio_ucontext *uctx)
 
void cxio_init_ucontext (struct cxio_rdev *rdev_p, struct cxio_ucontext *uctx)
 
int cxio_create_qp (struct cxio_rdev *rdev_p, u32 kernel_domain, struct t3_wq *wq, struct cxio_ucontext *uctx)
 
int cxio_destroy_cq (struct cxio_rdev *rdev_p, struct t3_cq *cq)
 
int cxio_destroy_qp (struct cxio_rdev *rdev_p, struct t3_wq *wq, struct cxio_ucontext *uctx)
 
int cxio_flush_rq (struct t3_wq *wq, struct t3_cq *cq, int count)
 
int cxio_flush_sq (struct t3_wq *wq, struct t3_cq *cq, int count)
 
void cxio_flush_hw_cq (struct t3_cq *cq)
 
void cxio_count_scqes (struct t3_cq *cq, struct t3_wq *wq, int *count)
 
void cxio_count_rcqes (struct t3_cq *cq, struct t3_wq *wq, int *count)
 
int cxio_write_pbl (struct cxio_rdev *rdev_p, __be64 *pbl, u32 pbl_addr, u32 pbl_size)
 
int cxio_register_phys_mem (struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, enum tpt_mem_perm perm, u32 zbva, u64 to, u32 len, u8 page_size, u32 pbl_size, u32 pbl_addr)
 
int cxio_reregister_phys_mem (struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, enum tpt_mem_perm perm, u32 zbva, u64 to, u32 len, u8 page_size, u32 pbl_size, u32 pbl_addr)
 
int cxio_dereg_mem (struct cxio_rdev *rdev_p, u32 stag, u32 pbl_size, u32 pbl_addr)
 
int cxio_allocate_window (struct cxio_rdev *rdev_p, u32 *stag, u32 pdid)
 
int cxio_deallocate_window (struct cxio_rdev *rdev_p, u32 stag)
 
int cxio_allocate_stag (struct cxio_rdev *rdev_p, u32 *stag, u32 pdid, u32 pbl_size, u32 pbl_addr)
 
int cxio_rdma_init (struct cxio_rdev *rdev_p, struct t3_rdma_init_attr *attr)
 
void cxio_register_ev_cb (cxio_hal_ev_callback_func_t ev_cb)
 
void cxio_unregister_ev_cb (cxio_hal_ev_callback_func_t ev_cb)
 
int cxio_rdev_open (struct cxio_rdev *rdev_p)
 
void cxio_rdev_close (struct cxio_rdev *rdev_p)
 
int __init cxio_hal_init (void)
 
void __exit cxio_hal_exit (void)
 
int cxio_poll_cq (struct t3_wq *wq, struct t3_cq *cq, struct t3_cqe *cqe, u8 *cqe_flushed, u64 *cookie, u32 *credit)
 

Function Documentation

int cxio_allocate_stag ( struct cxio_rdev rdev_p,
u32 stag,
u32  pdid,
u32  pbl_size,
u32  pbl_addr 
)

Definition at line 829 of file cxio_hal.c.

int cxio_allocate_window ( struct cxio_rdev rdev_p,
u32 stag,
u32  pdid 
)

Definition at line 816 of file cxio_hal.c.

void cxio_count_rcqes ( struct t3_cq cq,
struct t3_wq wq,
int count 
)

Definition at line 482 of file cxio_hal.c.

void cxio_count_scqes ( struct t3_cq cq,
struct t3_wq wq,
int count 
)

Definition at line 464 of file cxio_hal.c.

int cxio_create_cq ( struct cxio_rdev rdev_p,
struct t3_cq cq,
int  kernel 
)

Definition at line 158 of file cxio_hal.c.

int cxio_create_qp ( struct cxio_rdev rdev_p,
u32  kernel_domain,
struct t3_wq wq,
struct cxio_ucontext uctx 
)

Definition at line 274 of file cxio_hal.c.

int cxio_deallocate_window ( struct cxio_rdev rdev_p,
u32  stag 
)

Definition at line 823 of file cxio_hal.c.

int cxio_dereg_mem ( struct cxio_rdev rdev_p,
u32  stag,
u32  pbl_size,
u32  pbl_addr 
)

Definition at line 809 of file cxio_hal.c.

int cxio_destroy_cq ( struct cxio_rdev rdev_p,
struct t3_cq cq 
)

Definition at line 323 of file cxio_hal.c.

int cxio_destroy_qp ( struct cxio_rdev rdev_p,
struct t3_wq wq,
struct cxio_ucontext uctx 
)

Definition at line 336 of file cxio_hal.c.

void cxio_flush_hw_cq ( struct t3_cq cq)

Definition at line 428 of file cxio_hal.c.

int cxio_flush_rq ( struct t3_wq wq,
struct t3_cq cq,
int  count 
)

Definition at line 368 of file cxio_hal.c.

int cxio_flush_sq ( struct t3_wq wq,
struct t3_cq cq,
int  count 
)

Definition at line 407 of file cxio_hal.c.

int cxio_hal_cq_op ( struct cxio_rdev rdev_p,
struct t3_cq cq,
enum t3_cq_opcode  op,
u32  credit 
)

Definition at line 71 of file cxio_hal.c.

void __exit cxio_hal_exit ( void  )

Definition at line 1065 of file cxio_hal.c.

int __init cxio_hal_init ( void  )

Definition at line 1057 of file cxio_hal.c.

void cxio_init_ucontext ( struct cxio_rdev rdev_p,
struct cxio_ucontext uctx 
)

Definition at line 268 of file cxio_hal.c.

int cxio_poll_cq ( struct t3_wq wq,
struct t3_cq cq,
struct t3_cqe cqe,
u8 cqe_flushed,
u64 cookie,
u32 credit 
)

Definition at line 1149 of file cxio_hal.c.

void cxio_rdev_close ( struct cxio_rdev rdev_p)

Definition at line 1045 of file cxio_hal.c.

int cxio_rdev_open ( struct cxio_rdev rdev_p)

Definition at line 918 of file cxio_hal.c.

int cxio_rdma_init ( struct cxio_rdev rdev_p,
struct t3_rdma_init_attr attr 
)

Definition at line 836 of file cxio_hal.c.

void cxio_register_ev_cb ( cxio_hal_ev_callback_func_t  ev_cb)

Definition at line 870 of file cxio_hal.c.

int cxio_register_phys_mem ( struct cxio_rdev rdev_p,
u32 stag,
u32  pdid,
enum tpt_mem_perm  perm,
u32  zbva,
u64  to,
u32  len,
u8  page_size,
u32  pbl_size,
u32  pbl_addr 
)

Definition at line 792 of file cxio_hal.c.

void cxio_release_ucontext ( struct cxio_rdev rdev_p,
struct cxio_ucontext uctx 
)

Definition at line 252 of file cxio_hal.c.

int cxio_reregister_phys_mem ( struct cxio_rdev rdev_p,
u32 stag,
u32  pdid,
enum tpt_mem_perm  perm,
u32  zbva,
u64  to,
u32  len,
u8  page_size,
u32  pbl_size,
u32  pbl_addr 
)

Definition at line 801 of file cxio_hal.c.

void cxio_unregister_ev_cb ( cxio_hal_ev_callback_func_t  ev_cb)

Definition at line 875 of file cxio_hal.c.

int cxio_write_pbl ( struct cxio_rdev rdev_p,
__be64 pbl,
u32  pbl_addr,
u32  pbl_size 
)

Definition at line 766 of file cxio_hal.c.