Searched refs:num_pbls (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 700 u32 pdid, int acc, u32 num_pbls, u32 addr_check) in ocrdma_alloc_lkey() argument 711 mr->hwmr.num_pbls = num_pbls; in ocrdma_alloc_lkey() 756 for (i = 0; i < mr->num_pbls; i++) { in ocrdma_free_mr_pbl_tbl() 771 u32 num_pbls = 0; in ocrdma_get_pbl_info() local 782 num_pbls = roundup(num_pbes, (pbl_size / sizeof(u64))); in ocrdma_get_pbl_info() 783 num_pbls = num_pbls / (pbl_size / sizeof(u64)); in ocrdma_get_pbl_info() 785 } while (num_pbls >= dev->attr.max_num_mr_pbl); in ocrdma_get_pbl_info() 788 mr->hwmr.num_pbls = num_pbls; in ocrdma_get_pbl_info() 802 mr->pbl_table = kcalloc(mr->num_pbls, sizeof(struct ocrdma_pbl), in ocrdma_build_pbl_tbl() 808 for (i = 0; i < mr->num_pbls; i++) { in ocrdma_build_pbl_tbl()
|
D | ocrdma.h | 185 u32 num_pbls; member
|
D | ocrdma_hw.c | 1931 (hwmr->num_pbls << OCRDMA_ALLOC_LKEY_PBL_SIZE_SHIFT); in ocrdma_mbx_alloc_lkey() 1971 pdid | (hwmr->num_pbls << OCRDMA_REG_NSMR_NUM_PBL_SHIFT); in ocrdma_mbx_reg_mr() 2044 u32 pending_pbl_cnt = hwmr->num_pbls; in ocrdma_reg_mr()
|
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/ |
D | qplib_sp.c | 656 u64 *pbl_tbl, int num_pbls, bool block, u32 buf_pg_size) in bnxt_qplib_reg_mr() argument 666 if (num_pbls) { in bnxt_qplib_reg_mr() 670 pg_ptrs = roundup_pow_of_two(num_pbls); in bnxt_qplib_reg_mr() 698 for (i = 0; i < num_pbls; i++) in bnxt_qplib_reg_mr()
|
D | qplib_sp.h | 258 u64 *pbl_tbl, int num_pbls, bool block, u32 buf_pg_size);
|
/Linux-v5.4/drivers/infiniband/hw/qedr/ |
D | verbs.c | 491 for (i = 0; i < pbl_info->num_pbls; i++) { in qedr_free_pbl() 519 pbl_table = kcalloc(pbl_info->num_pbls, sizeof(*pbl_table), flags); in qedr_alloc_pbl_tbl() 523 for (i = 0; i < pbl_info->num_pbls; i++) { in qedr_alloc_pbl_tbl() 537 for (i = 0; i < pbl_info->num_pbls - 1; i++) in qedr_alloc_pbl_tbl() 558 u32 num_pbls; in qedr_prepare_pbl_tbl() local 578 num_pbls = DIV_ROUND_UP(num_pbes, NUM_PBES_ON_PAGE(pbl_size)); in qedr_prepare_pbl_tbl() 579 num_pbls++; /* One for the layer0 ( points to the pbls) */ in qedr_prepare_pbl_tbl() 583 num_pbls = 1; in qedr_prepare_pbl_tbl() 589 pbl_info->num_pbls = num_pbls; in qedr_prepare_pbl_tbl() 595 pbl_info->num_pbes, pbl_info->num_pbls, pbl_info->pbl_size); in qedr_prepare_pbl_tbl()
|
D | qedr.h | 255 u32 num_pbls; member
|