#include <linux/spinlock.h>
#include <linux/genalloc.h>
#include <linux/ratelimit.h>
#include "iw_cxgb4.h"
static int c4iw_init_qid_table(struct c4iw_rdev *rdev)
{ … }
int c4iw_init_resource(struct c4iw_rdev *rdev, u32 nr_tpt,
u32 nr_pdid, u32 nr_srqt)
{ … }
u32 c4iw_get_resource(struct c4iw_id_table *id_table)
{ … }
void c4iw_put_resource(struct c4iw_id_table *id_table, u32 entry)
{ … }
u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx)
{ … }
void c4iw_put_cqid(struct c4iw_rdev *rdev, u32 qid,
struct c4iw_dev_ucontext *uctx)
{ … }
u32 c4iw_get_qpid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx)
{ … }
void c4iw_put_qpid(struct c4iw_rdev *rdev, u32 qid,
struct c4iw_dev_ucontext *uctx)
{ … }
void c4iw_destroy_resource(struct c4iw_resource *rscp)
{ … }
#define MIN_PBL_SHIFT …
u32 c4iw_pblpool_alloc(struct c4iw_rdev *rdev, int size)
{ … }
static void destroy_pblpool(struct kref *kref)
{ … }
void c4iw_pblpool_free(struct c4iw_rdev *rdev, u32 addr, int size)
{ … }
int c4iw_pblpool_create(struct c4iw_rdev *rdev)
{ … }
void c4iw_pblpool_destroy(struct c4iw_rdev *rdev)
{ … }
#define MIN_RQT_SHIFT …
u32 c4iw_rqtpool_alloc(struct c4iw_rdev *rdev, int size)
{ … }
static void destroy_rqtpool(struct kref *kref)
{ … }
void c4iw_rqtpool_free(struct c4iw_rdev *rdev, u32 addr, int size)
{ … }
int c4iw_rqtpool_create(struct c4iw_rdev *rdev)
{ … }
void c4iw_rqtpool_destroy(struct c4iw_rdev *rdev)
{ … }
int c4iw_alloc_srq_idx(struct c4iw_rdev *rdev)
{ … }
void c4iw_free_srq_idx(struct c4iw_rdev *rdev, int idx)
{ … }
#define MIN_OCQP_SHIFT …
u32 c4iw_ocqp_pool_alloc(struct c4iw_rdev *rdev, int size)
{ … }
void c4iw_ocqp_pool_free(struct c4iw_rdev *rdev, u32 addr, int size)
{ … }
int c4iw_ocqp_pool_create(struct c4iw_rdev *rdev)
{ … }
void c4iw_ocqp_pool_destroy(struct c4iw_rdev *rdev)
{ … }