#ifndef _HWBM_H #define _HWBM_H struct hwbm_pool { /* Capacity of the pool */ int size; /* Size of the buffers managed */ int frag_size; /* Number of buffers currently used by this pool */ int buf_num; /* constructor called during alocation */ int (*construct)(struct hwbm_pool *bm_pool, void *buf); /* protect acces to the buffer counter*/ spinlock_t lock; /* private data */ void *priv; }; #ifdef CONFIG_HWBM void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf); int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp); int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp); #else void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) {} int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) { return 0; } int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num, gfp_t gfp) { return 0; } #endif /* CONFIG_HWBM */ #endif /* _HWBM_H */ den' name='id' value='04d8a0a5f3b6887543850d991a5e37c4ec90e250'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/rdma
ModeNameSize
-rw-r--r--ib.h3386logplain
-rw-r--r--ib_addr.h10042logplain
-rw-r--r--ib_cache.h6375logplain
-rw-r--r--ib_cm.h19359logplain
-rw-r--r--ib_fmr_pool.h3439logplain
-rw-r--r--ib_hdrs.h4989logplain
-rw-r--r--ib_mad.h27924logplain
-rw-r--r--ib_marshall.h2025logplain
-rw-r--r--ib_pack.h9047logplain
-rw-r--r--ib_pma.h5579logplain
-rw-r--r--ib_sa.h16914logplain
-rw-r--r--ib_smi.h5633logplain
-rw-r--r--ib_umem.h3577logplain
-rw-r--r--ib_umem_odp.h5300logplain
-rw-r--r--ib_verbs.h100225logplain
-rw-r--r--iw_cm.h8793logplain
-rw-r--r--iw_portmap.h7688logplain
-rw-r--r--mr_pool.h954logplain
-rw-r--r--opa_port_info.h15063logplain
-rw-r--r--opa_smi.h4417logplain