Lines Matching refs:sidx

323 			unsigned long sidx, unsigned long eidx)  in __free()  argument
328 sidx + bdata->node_min_pfn, in __free()
334 if (bdata->hint_idx > sidx) in __free()
335 bdata->hint_idx = sidx; in __free()
337 for (idx = sidx; idx < eidx; idx++) in __free()
342 static int __init __reserve(bootmem_data_t *bdata, unsigned long sidx, in __reserve() argument
350 sidx + bdata->node_min_pfn, in __reserve()
357 for (idx = sidx; idx < eidx; idx++) in __reserve()
360 __free(bdata, sidx, idx); in __reserve()
373 unsigned long sidx, eidx; in mark_bootmem_node() local
381 sidx = start - bdata->node_min_pfn; in mark_bootmem_node()
385 return __reserve(bdata, sidx, eidx, flags); in mark_bootmem_node()
387 __free(bdata, sidx, eidx); in mark_bootmem_node()
523 unsigned long min, max, start, sidx, midx, step; in alloc_bootmem_bdata() local
554 sidx = start - bdata->node_min_pfn; in alloc_bootmem_bdata()
557 if (bdata->hint_idx > sidx) { in alloc_bootmem_bdata()
562 fallback = sidx + 1; in alloc_bootmem_bdata()
563 sidx = align_idx(bdata, bdata->hint_idx, step); in alloc_bootmem_bdata()
571 sidx = find_next_zero_bit(bdata->node_bootmem_map, midx, sidx); in alloc_bootmem_bdata()
572 sidx = align_idx(bdata, sidx, step); in alloc_bootmem_bdata()
573 eidx = sidx + PFN_UP(size); in alloc_bootmem_bdata()
575 if (sidx >= midx || eidx > midx) in alloc_bootmem_bdata()
578 for (i = sidx; i < eidx; i++) in alloc_bootmem_bdata()
580 sidx = align_idx(bdata, i, step); in alloc_bootmem_bdata()
581 if (sidx == i) in alloc_bootmem_bdata()
582 sidx += step; in alloc_bootmem_bdata()
587 PFN_DOWN(bdata->last_end_off) + 1 == sidx) in alloc_bootmem_bdata()
590 start_off = PFN_PHYS(sidx); in alloc_bootmem_bdata()
592 merge = PFN_DOWN(start_off) < sidx; in alloc_bootmem_bdata()
617 sidx = align_idx(bdata, fallback - 1, step); in alloc_bootmem_bdata()