Home
last modified time | relevance | path

Searched refs:RXE_BUF_PER_MAP (Results 1 – 3 of 3) sorted by relevance

/drivers/infiniband/sw/rxe/
Drxe_mr.c91 mem->map_shift = ilog2(RXE_BUF_PER_MAP); in rxe_mem_init()
116 num_map = (num_buf + RXE_BUF_PER_MAP - 1) / RXE_BUF_PER_MAP; in rxe_mem_alloc()
128 WARN_ON(!is_power_of_2(RXE_BUF_PER_MAP)); in rxe_mem_alloc()
130 mem->map_shift = ilog2(RXE_BUF_PER_MAP); in rxe_mem_alloc()
131 mem->map_mask = RXE_BUF_PER_MAP - 1; in rxe_mem_alloc()
135 mem->max_buf = num_map * RXE_BUF_PER_MAP; in rxe_mem_alloc()
217 if (num_buf >= RXE_BUF_PER_MAP) { in rxe_mem_init_user()
293 if (buf_index == RXE_BUF_PER_MAP) { in lookup_iova()
414 if (i == RXE_BUF_PER_MAP) { in rxe_mem_copy()
629 if (num_buf == RXE_BUF_PER_MAP) { in rxe_mem_map_pages()
Drxe_verbs.h298 #define RXE_BUF_PER_MAP (PAGE_SIZE / sizeof(struct rxe_phys_buf)) macro
306 struct rxe_phys_buf buf[RXE_BUF_PER_MAP];
Drxe_verbs.c1141 map = mr->map[mr->nbuf / RXE_BUF_PER_MAP]; in rxe_set_page()
1142 buf = &map->buf[mr->nbuf % RXE_BUF_PER_MAP]; in rxe_set_page()