Home
last modified time | relevance | path

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

/linux-3.4.99/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()
/linux-3.4.99/drivers/infiniband/hw/cxgb4/
Dresource.c329 unsigned pbl_start, pbl_chunk, pbl_top; in c4iw_pblpool_create() local
336 pbl_chunk = rdev->lldi.vr->pbl.size; in c4iw_pblpool_create()
337 pbl_top = pbl_start + pbl_chunk; in c4iw_pblpool_create()
340 pbl_chunk = min(pbl_top - pbl_start + 1, pbl_chunk); in c4iw_pblpool_create()
341 if (gen_pool_add(rdev->pbl_pool, pbl_start, pbl_chunk, -1)) { in c4iw_pblpool_create()
343 __func__, pbl_start, pbl_chunk); in c4iw_pblpool_create()
344 if (pbl_chunk <= 1024 << MIN_PBL_SHIFT) { in c4iw_pblpool_create()
351 pbl_chunk >>= 1; in c4iw_pblpool_create()
354 __func__, pbl_start, pbl_chunk); in c4iw_pblpool_create()
355 pbl_start += pbl_chunk; in c4iw_pblpool_create()