Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cxio_resource.h File Reference
#include <linux/kernel.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/kfifo.h>
#include <linux/spinlock.h>
#include <linux/errno.h>
#include <linux/genalloc.h>
#include "cxio_hal.h"

Go to the source code of this file.

Macros

#define PBL_OFF(rdev_p, a)   ( (a) - (rdev_p)->rnic_info.pbl_base )
 
#define RQT_OFF(rdev_p, a)   ( (a) - (rdev_p)->rnic_info.rqt_base )
 

Functions

int cxio_hal_init_rhdl_resource (u32 nr_rhdl)
 
void cxio_hal_destroy_rhdl_resource (void)
 
int cxio_hal_init_resource (struct cxio_rdev *rdev_p, u32 nr_tpt, u32 nr_pbl, u32 nr_rqt, u32 nr_qpid, u32 nr_cqid, u32 nr_pdid)
 
u32 cxio_hal_get_stag (struct cxio_hal_resource *rscp)
 
void cxio_hal_put_stag (struct cxio_hal_resource *rscp, u32 stag)
 
u32 cxio_hal_get_qpid (struct cxio_hal_resource *rscp)
 
void cxio_hal_put_qpid (struct cxio_hal_resource *rscp, u32 qpid)
 
u32 cxio_hal_get_cqid (struct cxio_hal_resource *rscp)
 
void cxio_hal_put_cqid (struct cxio_hal_resource *rscp, u32 cqid)
 
void cxio_hal_destroy_resource (struct cxio_hal_resource *rscp)
 
int cxio_hal_pblpool_create (struct cxio_rdev *rdev_p)
 
void cxio_hal_pblpool_destroy (struct cxio_rdev *rdev_p)
 
u32 cxio_hal_pblpool_alloc (struct cxio_rdev *rdev_p, int size)
 
void cxio_hal_pblpool_free (struct cxio_rdev *rdev_p, u32 addr, int size)
 
int cxio_hal_rqtpool_create (struct cxio_rdev *rdev_p)
 
void cxio_hal_rqtpool_destroy (struct cxio_rdev *rdev_p)
 
u32 cxio_hal_rqtpool_alloc (struct cxio_rdev *rdev_p, int size)
 
void cxio_hal_rqtpool_free (struct cxio_rdev *rdev_p, u32 addr, int size)
 

Macro Definition Documentation

#define PBL_OFF (   rdev_p,
  a 
)    ( (a) - (rdev_p)->rnic_info.pbl_base )

Definition at line 58 of file cxio_resource.h.

#define RQT_OFF (   rdev_p,
  a 
)    ( (a) - (rdev_p)->rnic_info.rqt_base )

Definition at line 64 of file cxio_resource.h.

Function Documentation

void cxio_hal_destroy_resource ( struct cxio_hal_resource rscp)

Definition at line 242 of file cxio_resource.c.

void cxio_hal_destroy_rhdl_resource ( void  )

Definition at line 134 of file cxio_resource.c.

u32 cxio_hal_get_cqid ( struct cxio_hal_resource rscp)

Definition at line 222 of file cxio_resource.c.

u32 cxio_hal_get_qpid ( struct cxio_hal_resource rscp)

Definition at line 208 of file cxio_resource.c.

u32 cxio_hal_get_stag ( struct cxio_hal_resource rscp)

Definition at line 198 of file cxio_resource.c.

int cxio_hal_init_resource ( struct cxio_rdev rdev_p,
u32  nr_tpt,
u32  nr_pbl,
u32  nr_rqt,
u32  nr_qpid,
u32  nr_cqid,
u32  nr_pdid 
)

Definition at line 140 of file cxio_resource.c.

int cxio_hal_init_rhdl_resource ( u32  nr_rhdl)

Definition at line 128 of file cxio_resource.c.

u32 cxio_hal_pblpool_alloc ( struct cxio_rdev rdev_p,
int  size 
)

Definition at line 257 of file cxio_resource.c.

int cxio_hal_pblpool_create ( struct cxio_rdev rdev_p)

Definition at line 270 of file cxio_resource.c.

void cxio_hal_pblpool_destroy ( struct cxio_rdev rdev_p)

Definition at line 303 of file cxio_resource.c.

void cxio_hal_pblpool_free ( struct cxio_rdev rdev_p,
u32  addr,
int  size 
)

Definition at line 264 of file cxio_resource.c.

void cxio_hal_put_cqid ( struct cxio_hal_resource rscp,
u32  cqid 
)

Definition at line 227 of file cxio_resource.c.

void cxio_hal_put_qpid ( struct cxio_hal_resource rscp,
u32  qpid 
)

Definition at line 216 of file cxio_resource.c.

void cxio_hal_put_stag ( struct cxio_hal_resource rscp,
u32  stag 
)

Definition at line 203 of file cxio_resource.c.

u32 cxio_hal_rqtpool_alloc ( struct cxio_rdev rdev_p,
int  size 
)

Definition at line 315 of file cxio_resource.c.

int cxio_hal_rqtpool_create ( struct cxio_rdev rdev_p)

Definition at line 328 of file cxio_resource.c.

void cxio_hal_rqtpool_destroy ( struct cxio_rdev rdev_p)

Definition at line 340 of file cxio_resource.c.

void cxio_hal_rqtpool_free ( struct cxio_rdev rdev_p,
u32  addr,
int  size 
)

Definition at line 322 of file cxio_resource.c.