Lines Matching refs:cattr
121 int xthal_set_region_translation_raw(void *vaddr, void *paddr, unsigned cattr) { in xthal_set_region_translation_raw() argument
132 unsigned ppn_ca = ((unsigned) paddr & 0xFFFFFFF0) + (cattr & 0xF); in xthal_set_region_translation_raw()
167 int xthal_v2p(void* vaddr, void** paddr, unsigned *way, unsigned* cattr) { in xthal_v2p() argument
174 if (cattr) in xthal_v2p()
177 *cattr = XTHAL_MPU_ENTRY_GET_ACCESS(x) | XTHAL_MPU_ENTRY_GET_MEMORY_TYPE(x) << XTHAL_AR_WIDTH; in xthal_v2p()
187 if (paddr || cattr) { in xthal_v2p()
194 if (cattr) in xthal_v2p()
195 *cattr = att; in xthal_v2p()
205 if (paddr || cattr) { in xthal_v2p()
212 if (cattr) in xthal_v2p()
213 *cattr = att; in xthal_v2p()
398 unsigned cattr, unsigned flags) { in xthal_set_region_translation() argument
418 icache_attr = cattr & CA_MASK; in xthal_set_region_translation()
421 if ((cattr & 0x40000000) && (icache_attr < 12)) in xthal_set_region_translation()
422 icache_attr = icache_attr & ((cattr & 0xF0) >> 4); in xthal_set_region_translation()