Lines Matching refs:region
19 struct region { struct
25 static struct region __initdata mem[MPU_MAX_REGIONS]; argument
27 static struct region __initdata xip[MPU_MAX_REGIONS];
146 static bool __init try_split_region(phys_addr_t base, phys_addr_t size, struct region *region) in try_split_region() argument
177 _set_bit(i, ®ion->subreg); in try_split_region()
180 _set_bit(PMSAv7_NR_SUBREGS - i, ®ion->subreg); in try_split_region()
183 region->base = abase; in try_split_region()
184 region->size = p2size; in try_split_region()
190 unsigned int limit, struct region *regions) in allocate_region()
422 int i, region = 0, err = 0; in pmsav7_setup() local
427 err |= mpu_setup_region(region++, 0, 32, in pmsav7_setup()
441 bool need_flush = region == PMSAv7_RAM_REGION; in pmsav7_setup()
446 err |= mpu_setup_region(region++, xip[i].base, ilog2(xip[i].size), in pmsav7_setup()
457 err |= mpu_setup_region(region++, mem[i].base, ilog2(mem[i].size), in pmsav7_setup()
464 err |= mpu_setup_region(region++, vectors_base, ilog2(2 * PAGE_SIZE), in pmsav7_setup()