Lines Matching refs:lar
141 static int __init __pmsav8_setup_region(unsigned int number, u32 bar, u32 lar) in __pmsav8_setup_region() argument
151 prlar_write(lar); in __pmsav8_setup_region()
154 mpu_rgn_info.rgns[number].prlar = lar; in __pmsav8_setup_region()
163 u32 bar, lar; in pmsav8_setup_ram() local
169 lar = (end - 1) & ~(PMSAv8_MINALIGN - 1); in pmsav8_setup_ram()
172 lar |= PMSAv8_LAR_IDX(PMSAv8_RGN_NORMAL) | PMSAv8_LAR_EN; in pmsav8_setup_ram()
174 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_ram()
179 u32 bar, lar; in pmsav8_setup_io() local
185 lar = (end - 1) & ~(PMSAv8_MINALIGN - 1); in pmsav8_setup_io()
188 lar |= PMSAv8_LAR_IDX(PMSAv8_RGN_DEVICE_nGnRnE) | PMSAv8_LAR_EN; in pmsav8_setup_io()
190 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_io()
195 u32 bar, lar; in pmsav8_setup_fixed() local
201 lar = (end - 1) & ~(PMSAv8_MINALIGN - 1); in pmsav8_setup_fixed()
204 lar |= PMSAv8_LAR_IDX(PMSAv8_RGN_NORMAL) | PMSAv8_LAR_EN; in pmsav8_setup_fixed()
209 if (prbar_read() != bar || prlar_read() != lar) in pmsav8_setup_fixed()
214 mpu_rgn_info.rgns[number].prlar = lar; in pmsav8_setup_fixed()
224 u32 bar, lar; in pmsav8_setup_vector() local
230 lar = (end - 1) & ~(PMSAv8_MINALIGN - 1); in pmsav8_setup_vector()
233 lar |= PMSAv8_LAR_IDX(PMSAv8_RGN_NORMAL) | PMSAv8_LAR_EN; in pmsav8_setup_vector()
235 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_vector()