Searched refs:cur_order (Results 1 – 3 of 3) sorted by relevance
137 int cur_order; in mlx4_alloc_icm() local157 cur_order = get_order(MLX4_ICM_ALLOC_SIZE); in mlx4_alloc_icm()179 while (1 << cur_order > npages) in mlx4_alloc_icm()180 --cur_order; in mlx4_alloc_icm()183 if (cur_order) in mlx4_alloc_icm()189 cur_order, mask); in mlx4_alloc_icm()192 cur_order, mask, in mlx4_alloc_icm()196 if (--cur_order < 0) in mlx4_alloc_icm()218 npages -= 1 << cur_order; in mlx4_alloc_icm()
142 int cur_order; in mthca_alloc_icm() local155 cur_order = get_order(MTHCA_ICM_ALLOC_SIZE); in mthca_alloc_icm()170 while (1 << cur_order > npages) in mthca_alloc_icm()171 --cur_order; in mthca_alloc_icm()176 cur_order, gfp_mask); in mthca_alloc_icm()179 cur_order, gfp_mask); in mthca_alloc_icm()199 npages -= 1 << cur_order; in mthca_alloc_icm()201 --cur_order; in mthca_alloc_icm()202 if (cur_order < 0) in mthca_alloc_icm()
2164 int cur_order; in shmem_split_large_entry() local2180 cur_order = entry_order; in shmem_split_large_entry()2183 split_order = xas_try_split_min_order(cur_order); in shmem_split_large_entry()2185 while (cur_order > 0) { in shmem_split_large_entry()2187 round_down(index, 1 << cur_order); in shmem_split_large_entry()2191 xas_try_split(&xas, old, cur_order); in shmem_split_large_entry()2199 for (i = 0; i < 1 << cur_order; in shmem_split_large_entry()2209 cur_order = split_order; in shmem_split_large_entry()