Searched refs:RXE_BUF_PER_MAP (Results 1 – 3 of 3) sorted by relevance
65 mr->map_shift = ilog2(RXE_BUF_PER_MAP); in rxe_mr_init()74 num_map = (num_buf + RXE_BUF_PER_MAP - 1) / RXE_BUF_PER_MAP; in rxe_mr_alloc()86 BUILD_BUG_ON(!is_power_of_2(RXE_BUF_PER_MAP)); in rxe_mr_alloc()88 mr->map_shift = ilog2(RXE_BUF_PER_MAP); in rxe_mr_alloc()89 mr->map_mask = RXE_BUF_PER_MAP - 1; in rxe_mr_alloc()93 mr->max_buf = num_map * RXE_BUF_PER_MAP; in rxe_mr_alloc()155 if (num_buf >= RXE_BUF_PER_MAP) { in rxe_mr_init_user()234 if (buf_index == RXE_BUF_PER_MAP) { in lookup_iova()348 if (i == RXE_BUF_PER_MAP) { in rxe_mr_copy()
280 #define RXE_BUF_PER_MAP (PAGE_SIZE / sizeof(struct rxe_phys_buf)) macro288 struct rxe_phys_buf buf[RXE_BUF_PER_MAP];
990 map = mr->map[mr->nbuf / RXE_BUF_PER_MAP]; in rxe_set_page()991 buf = &map->buf[mr->nbuf % RXE_BUF_PER_MAP]; in rxe_set_page()