Lines Matching refs:rgn

144 #define for_each_memblock_type(i, memblock_type, rgn)			\  argument
145 for (i = 0, rgn = &memblock_type->regions[0]; \
147 i++, rgn = &memblock_type->regions[i])
556 struct memblock_region *rgn = &type->regions[idx]; in memblock_insert_region() local
559 memmove(rgn + 1, rgn, (type->cnt - idx) * sizeof(*rgn)); in memblock_insert_region()
560 rgn->base = base; in memblock_insert_region()
561 rgn->size = size; in memblock_insert_region()
562 rgn->flags = flags; in memblock_insert_region()
563 memblock_set_region_node(rgn, nid); in memblock_insert_region()
592 struct memblock_region *rgn; in memblock_add_range() local
628 for_each_memblock_type(idx, type, rgn) { in memblock_add_range()
629 phys_addr_t rbase = rgn->base; in memblock_add_range()
630 phys_addr_t rend = rbase + rgn->size; in memblock_add_range()
642 WARN_ON(nid != memblock_get_region_node(rgn)); in memblock_add_range()
644 WARN_ON(flags != rgn->flags); in memblock_add_range()
792 struct memblock_region *rgn; in memblock_isolate_range() local
804 for_each_memblock_type(idx, type, rgn) { in memblock_isolate_range()
805 phys_addr_t rbase = rgn->base; in memblock_isolate_range()
806 phys_addr_t rend = rbase + rgn->size; in memblock_isolate_range()
818 rgn->base = base; in memblock_isolate_range()
819 rgn->size -= base - rbase; in memblock_isolate_range()
822 memblock_get_region_node(rgn), in memblock_isolate_range()
823 rgn->flags); in memblock_isolate_range()
829 rgn->base = end; in memblock_isolate_range()
830 rgn->size -= end - rbase; in memblock_isolate_range()
833 memblock_get_region_node(rgn), in memblock_isolate_range()
834 rgn->flags); in memblock_isolate_range()
1983 struct memblock_region *rgn; in memblock_dump() local
1987 for_each_memblock_type(idx, type, rgn) { in memblock_dump()
1990 base = rgn->base; in memblock_dump()
1991 size = rgn->size; in memblock_dump()
1993 flags = rgn->flags; in memblock_dump()
1995 if (numa_valid_node(memblock_get_region_node(rgn))) in memblock_dump()
1997 memblock_get_region_node(rgn)); in memblock_dump()