Lines Matching refs:idx
466 int idx, phys_addr_t base, in memblock_insert_region() argument
470 struct memblock_region *rgn = &type->regions[idx]; in memblock_insert_region()
473 memmove(rgn + 1, rgn, (type->cnt - idx) * sizeof(*rgn)); in memblock_insert_region()
795 void __init_memblock __next_mem_range(u64 *idx, int nid, in __next_mem_range() argument
801 int idx_a = *idx & 0xffffffff; in __next_mem_range()
802 int idx_b = *idx >> 32; in __next_mem_range()
831 *idx = (u32)idx_a | (u64)idx_b << 32; in __next_mem_range()
869 *idx = (u32)idx_a | (u64)idx_b << 32; in __next_mem_range()
876 *idx = ULLONG_MAX; in __next_mem_range()
895 void __init_memblock __next_mem_range_rev(u64 *idx, int nid, in __next_mem_range_rev() argument
901 int idx_a = *idx & 0xffffffff; in __next_mem_range_rev()
902 int idx_b = *idx >> 32; in __next_mem_range_rev()
907 if (*idx == (u64)ULLONG_MAX) { in __next_mem_range_rev()
935 *idx = (u32)idx_a | (u64)idx_b << 32; in __next_mem_range_rev()
968 *idx = (u32)idx_a | (u64)idx_b << 32; in __next_mem_range_rev()
974 *idx = ULLONG_MAX; in __next_mem_range_rev()
981 void __init_memblock __next_mem_pfn_range(int *idx, int nid, in __next_mem_pfn_range() argument
988 while (++*idx < type->cnt) { in __next_mem_pfn_range()
989 r = &type->regions[*idx]; in __next_mem_pfn_range()
996 if (*idx >= type->cnt) { in __next_mem_pfn_range()
997 *idx = -1; in __next_mem_pfn_range()
1347 int idx = memblock.memory.cnt - 1; in memblock_end_of_DRAM() local
1349 return (memblock.memory.regions[idx].base + memblock.memory.regions[idx].size); in memblock_end_of_DRAM()
1433 int idx = memblock_search(&memblock.memory, base); in memblock_is_region_memory() local
1436 if (idx == -1) in memblock_is_region_memory()
1438 return memblock.memory.regions[idx].base <= base && in memblock_is_region_memory()
1439 (memblock.memory.regions[idx].base + in memblock_is_region_memory()
1440 memblock.memory.regions[idx].size) >= end; in memblock_is_region_memory()