Lines Matching refs:number

83 static __init bool is_region_fixed(int number)  in is_region_fixed()  argument
85 switch (number) { in is_region_fixed()
140 static int __init __pmsav8_setup_region(unsigned int number, u32 bar, u32 lar) in __pmsav8_setup_region() argument
142 if (number > mpu_max_regions in __pmsav8_setup_region()
143 || number >= MPU_MAX_REGIONS) in __pmsav8_setup_region()
147 prsel_write(number); in __pmsav8_setup_region()
152 mpu_rgn_info.rgns[number].prbar = bar; in __pmsav8_setup_region()
153 mpu_rgn_info.rgns[number].prlar = lar; in __pmsav8_setup_region()
160 static int __init pmsav8_setup_ram(unsigned int number, phys_addr_t start,phys_addr_t end) in pmsav8_setup_ram() argument
164 if (is_region_fixed(number)) in pmsav8_setup_ram()
173 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_ram()
176 static int __init pmsav8_setup_io(unsigned int number, phys_addr_t start,phys_addr_t end) in pmsav8_setup_io() argument
180 if (is_region_fixed(number)) in pmsav8_setup_io()
189 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_io()
192 static int __init pmsav8_setup_fixed(unsigned int number, phys_addr_t start,phys_addr_t end) in pmsav8_setup_fixed() argument
196 if (!is_region_fixed(number)) in pmsav8_setup_fixed()
205 prsel_write(number); in pmsav8_setup_fixed()
212 mpu_rgn_info.rgns[number].prbar = bar; in pmsav8_setup_fixed()
213 mpu_rgn_info.rgns[number].prlar = lar; in pmsav8_setup_fixed()
221 static int __init pmsav8_setup_vector(unsigned int number, phys_addr_t start,phys_addr_t end) in pmsav8_setup_vector() argument
225 if (number == PMSAv8_KERNEL_REGION) in pmsav8_setup_vector()
234 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_vector()