Home
last modified time | relevance | path

Searched refs:cur_order (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dicm.c137 int cur_order; in mlx4_alloc_icm() local
157 cur_order = get_order(MLX4_ICM_ALLOC_SIZE); in mlx4_alloc_icm()
178 while (1 << cur_order > npages) in mlx4_alloc_icm()
179 --cur_order; in mlx4_alloc_icm()
182 if (cur_order) in mlx4_alloc_icm()
188 cur_order, mask); in mlx4_alloc_icm()
191 cur_order, mask, in mlx4_alloc_icm()
195 if (--cur_order < 0) in mlx4_alloc_icm()
217 npages -= 1 << cur_order; in mlx4_alloc_icm()
/linux/tools/testing/selftests/mm/
H A Dvm_util.c238 int cur_order = -1; in gather_folio_orders() local
278 cur_order = 1; in gather_folio_orders()
284 next_folio_vaddr = vaddr + (1UL << (cur_order + pshift())); in gather_folio_orders()
299 if (cur_order < nr_orders) { in gather_folio_orders()
300 orders[cur_order]++; in gather_folio_orders()
301 cur_order = -1; in gather_folio_orders()
307 cur_order++; in gather_folio_orders()
308 next_folio_vaddr = vaddr + (1UL << (cur_order + pshift())); in gather_folio_orders()
314 if (cur_order > 0 && cur_order < nr_orders) in gather_folio_orders()
315 orders[cur_order]++; in gather_folio_orders()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c142 int cur_order; in mthca_alloc_icm() local
155 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()
/linux/mm/
H A Dshmem.c2192 int cur_order; in shmem_split_large_entry()
2202 cur_order = xas_get_order(&xas); in shmem_split_large_entry()
2203 if (!cur_order) in shmem_split_large_entry()
2207 swap_index = round_down(index, 1 << cur_order); in shmem_split_large_entry()
2208 split_order = xas_try_split_min_order(cur_order); in shmem_split_large_entry()
2210 while (cur_order > 0) { in shmem_split_large_entry()
2212 round_down(index, 1 << cur_order); in shmem_split_large_entry()
2216 xas_try_split(&xas, old, cur_order); in shmem_split_large_entry()
2224 for (i = 0; i < 1 << cur_order; in shmem_split_large_entry()
2234 cur_order in shmem_split_large_entry()
2189 int cur_order; shmem_split_large_entry() local
[all...]