Lines Matching defs:pool
58 struct rdsv3_fmr_pool *m_pool; /* hca fmr pool */
81 kmutex_t f_lock; /* lock of fmr pool */
254 struct rdsv3_fmr_pool *pool = rds_ibdev->fmr_pool;
262 if (pool) {
263 list_destroy(&pool->f_list);
264 kmem_free((void *) pool, sizeof (*pool));
279 struct rdsv3_fmr_pool *pool;
284 pool = (struct rdsv3_fmr_pool *)kmem_zalloc(sizeof (*pool), KM_NOSLEEP);
285 if (pool == NULL) {
289 /* setup FMR pool attributes */
302 /* create the FMR pool */
306 kmem_free((void *) pool, sizeof (*pool));
311 list_create(&pool->f_list, sizeof (struct rdsv3_ib_mr),
313 mutex_init(&pool->f_lock, NULL, MUTEX_DRIVER, NULL);
314 rds_ibdev->fmr_pool = pool;
319 "Exit: ibdev: %p fmr_pool: %p", rds_ibdev, pool);
437 /* use a free entry from FMR pool to register the specified memory */
487 /* return the fmr to the IBTF pool */
497 struct rdsv3_fmr_pool *pool = (struct rdsv3_fmr_pool *)data;
502 list_t *listp = &pool->f_list;
503 kmutex_t *lockp = &pool->f_lock;
512 pool->f_listcnt--;
555 RDSV3_DPRINTF4("rdsv3_ib_flush_mr_pool", "Enter: pool: %p", pool_hdl);