Searched refs:cattr (Results 1 – 4 of 4) sorted by relevance
/hal_xtensa-3.6.0/src/hal/ |
D | attribute.c | 168 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()
|
D | set_region_translate.c | 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() [all …]
|
D | mpu.c | 519 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.6.0/include/xtensa/ |
D | hal.h | 854 unsigned cattr, unsigned flags ); 996 extern int xthal_set_region_translation_raw(void *vaddr, void *paddr, unsigned cattr);
|