Lines Matching refs:sidx

289 			unsigned long sidx, unsigned long eidx)  in __free()  argument
294 sidx + bdata->node_min_pfn, in __free()
297 if (bdata->hint_idx > sidx) in __free()
298 bdata->hint_idx = sidx; in __free()
300 for (idx = sidx; idx < eidx; idx++) in __free()
305 static int __init __reserve(bootmem_data_t *bdata, unsigned long sidx, in __reserve() argument
313 sidx + bdata->node_min_pfn, in __reserve()
317 for (idx = sidx; idx < eidx; idx++) in __reserve()
320 __free(bdata, sidx, idx); in __reserve()
333 unsigned long sidx, eidx; in mark_bootmem_node() local
341 sidx = start - bdata->node_min_pfn; in mark_bootmem_node()
345 return __reserve(bdata, sidx, eidx, flags); in mark_bootmem_node()
347 __free(bdata, sidx, eidx); in mark_bootmem_node()
498 unsigned long min, max, start, sidx, midx, step; in alloc_bootmem_bdata() local
529 sidx = start - bdata->node_min_pfn; in alloc_bootmem_bdata()
532 if (bdata->hint_idx > sidx) { in alloc_bootmem_bdata()
537 fallback = sidx + 1; in alloc_bootmem_bdata()
538 sidx = align_idx(bdata, bdata->hint_idx, step); in alloc_bootmem_bdata()
546 sidx = find_next_zero_bit(bdata->node_bootmem_map, midx, sidx); in alloc_bootmem_bdata()
547 sidx = align_idx(bdata, sidx, step); in alloc_bootmem_bdata()
548 eidx = sidx + PFN_UP(size); in alloc_bootmem_bdata()
550 if (sidx >= midx || eidx > midx) in alloc_bootmem_bdata()
553 for (i = sidx; i < eidx; i++) in alloc_bootmem_bdata()
555 sidx = align_idx(bdata, i, step); in alloc_bootmem_bdata()
556 if (sidx == i) in alloc_bootmem_bdata()
557 sidx += step; in alloc_bootmem_bdata()
562 PFN_DOWN(bdata->last_end_off) + 1 == sidx) in alloc_bootmem_bdata()
565 start_off = PFN_PHYS(sidx); in alloc_bootmem_bdata()
567 merge = PFN_DOWN(start_off) < sidx; in alloc_bootmem_bdata()
592 sidx = align_idx(bdata, fallback - 1, step); in alloc_bootmem_bdata()