Searched refs:buf_pg_sz (Results 1 – 1 of 1) sorted by relevance
956 size_t buf_pg_sz = 1 << buf_attr->page_shift; in get_best_hop_num() local969 ba_cnt = ib_umem_num_dma_blocks(mtr->umem, buf_pg_sz); in get_best_hop_num()971 ba_cnt = DIV_ROUND_UP(buf_attr->region[0].size, buf_pg_sz); in get_best_hop_num()1015 size_t buf_pg_sz; in mtr_init_buf_cfg() local1028 buf_pg_sz = HNS_HW_PAGE_SIZE; in mtr_init_buf_cfg()1034 buf_pg_sz = 1 << attr->page_shift; in mtr_init_buf_cfg()1036 ib_umem_num_dma_blocks(mtr->umem, buf_pg_sz) : in mtr_init_buf_cfg()1037 DIV_ROUND_UP(buf_size, buf_pg_sz); in mtr_init_buf_cfg()1050 r->count = ib_umem_num_dma_blocks(mtr->umem, buf_pg_sz); in mtr_init_buf_cfg()1052 r->count = DIV_ROUND_UP(buf_size, buf_pg_sz); in mtr_init_buf_cfg()