Lines Matching refs:num_pbes
783 u32 num_pbes) in ocrdma_get_pbl_info() argument
796 num_pbls = roundup(num_pbes, (pbl_size / sizeof(u64))); in ocrdma_get_pbl_info()
801 mr->hwmr.num_pbes = num_pbes; in ocrdma_get_pbl_info()
837 u32 num_pbes) in build_user_pbes() argument
845 if (!mr->hwmr.num_pbes) in build_user_pbes()
871 if (total_num_pbes == num_pbes) in build_user_pbes()
895 u32 num_pbes; in ocrdma_reg_user_mr() local
910 num_pbes = ib_umem_page_count(mr->umem); in ocrdma_reg_user_mr()
911 status = ocrdma_get_pbl_info(dev, mr, num_pbes); in ocrdma_reg_user_mr()
927 build_user_pbes(dev, mr, num_pbes); in ocrdma_reg_user_mr()
2070 int num_pbes; in build_frmr_pbes() local
2074 num_pbes = 0; in build_frmr_pbes()
2085 num_pbes += 1; in build_frmr_pbes()
2091 if (num_pbes == (hwmr->pbl_size/sizeof(u64))) { in build_frmr_pbes()
3078 int num_pbes; in build_kernel_pbes() local
3082 if (!hwmr->num_pbes) in build_kernel_pbes()
3086 num_pbes = 0; in build_kernel_pbes()
3118 num_pbes += 1; in build_kernel_pbes()
3122 if (total_num_pbes == hwmr->num_pbes) in build_kernel_pbes()
3127 if (num_pbes == (hwmr->pbl_size/sizeof(u64))) { in build_kernel_pbes()
3130 num_pbes = 0; in build_kernel_pbes()
3146 u32 num_pbes; in ocrdma_reg_kernel_mr() local
3156 num_pbes = count_kernel_pbes(buf_list, buf_cnt, &pbe_size); in ocrdma_reg_kernel_mr()
3157 if (num_pbes == 0) { in ocrdma_reg_kernel_mr()
3161 status = ocrdma_get_pbl_info(dev, mr, num_pbes); in ocrdma_reg_kernel_mr()