Home
last modified time | relevance | path

Searched refs:cattr (Results 1 – 4 of 4) sorted by relevance

/hal_xtensa-3.7.0/src/hal/
Dattribute.c168 int xthal_set_region_attribute( void *vaddr, unsigned size, unsigned cattr, unsigned flags ) in xthal_set_region_attribute() argument
171 if (cattr & 0xffffe000) // check if XTHAL mem flags were supplied in xthal_set_region_attribute()
173 return xthal_mpu_set_region_attribute(vaddr, size, cattr, cattr, flags); in xthal_set_region_attribute()
176 … return xthal_mpu_set_region_attribute(vaddr, size, cattr & 0xf, (cattr & 0x1ff0) >> 4, flags); in xthal_set_region_attribute()
230 cattr &= CA_MASK; in xthal_set_region_attribute()
232 if (cattr == CA_WRITETHRU || cattr == CA_WRITEBACK || cattr == CA_WRITEBACK_NOALLOC) in xthal_set_region_attribute()
233 cattr = CA_BYPASS; /* no caches configured, only do protection */ in xthal_set_region_attribute()
235 if (cattr == CA_WRITEBACK || cattr == CA_WRITEBACK_NOALLOC) in xthal_set_region_attribute()
236 cattr = CA_WRITETHRU; /* no writeback configured for data cache */ in xthal_set_region_attribute()
241 unsigned newattr = cattr; in xthal_set_region_attribute()
Dset_region_translate.c121 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()
[all …]
Dmpu.c519 static int encode_access_rights(int cattr) in encode_access_rights() argument
521 cattr = cattr & 0xF; in encode_access_rights()
522 if ((cattr) > 0 && (cattr < 4)) in encode_access_rights()
525 return cattr; in encode_access_rights()
/hal_xtensa-3.7.0/include/xtensa/
Dhal.h854 unsigned cattr, unsigned flags );
996 extern int xthal_set_region_translation_raw(void *vaddr, void *paddr, unsigned cattr);