Home
last modified time | relevance | path

Searched refs:pbl_chunk (Results 1 – 2 of 2) sorted by relevance

/drivers/infiniband/hw/cxgb3/
Dcxio_resource.c272 unsigned pbl_start, pbl_chunk; in cxio_hal_pblpool_create() local
279 pbl_chunk = rdev_p->rnic_info.pbl_top - pbl_start + 1; in cxio_hal_pblpool_create()
282 pbl_chunk = min(rdev_p->rnic_info.pbl_top - pbl_start + 1, in cxio_hal_pblpool_create()
283 pbl_chunk); in cxio_hal_pblpool_create()
284 if (gen_pool_add(rdev_p->pbl_pool, pbl_start, pbl_chunk, -1)) { in cxio_hal_pblpool_create()
286 __func__, pbl_start, pbl_chunk); in cxio_hal_pblpool_create()
287 if (pbl_chunk <= 1024 << MIN_PBL_SHIFT) { in cxio_hal_pblpool_create()
292 pbl_chunk >>= 1; in cxio_hal_pblpool_create()
295 __func__, pbl_start, pbl_chunk); in cxio_hal_pblpool_create()
296 pbl_start += pbl_chunk; in cxio_hal_pblpool_create()
/drivers/infiniband/hw/cxgb4/
Dresource.c280 unsigned pbl_start, pbl_chunk, pbl_top; in c4iw_pblpool_create() local
287 pbl_chunk = rdev->lldi.vr->pbl.size; in c4iw_pblpool_create()
288 pbl_top = pbl_start + pbl_chunk; in c4iw_pblpool_create()
291 pbl_chunk = min(pbl_top - pbl_start + 1, pbl_chunk); in c4iw_pblpool_create()
292 if (gen_pool_add(rdev->pbl_pool, pbl_start, pbl_chunk, -1)) { in c4iw_pblpool_create()
294 __func__, pbl_start, pbl_chunk); in c4iw_pblpool_create()
295 if (pbl_chunk <= 1024 << MIN_PBL_SHIFT) { in c4iw_pblpool_create()
302 pbl_chunk >>= 1; in c4iw_pblpool_create()
305 __func__, pbl_start, pbl_chunk); in c4iw_pblpool_create()
306 pbl_start += pbl_chunk; in c4iw_pblpool_create()