Searched refs:vaddr (Results 1 – 6 of 6) sorted by relevance
/hal_xtensa-2.7.6/src/hal/ |
D | mmu.c | 34 int xthal_static_v2p( unsigned vaddr, unsigned *paddrp /*, unsigned len, unsigned rasid*/ ) in xthal_static_v2p() argument 37 if( vaddr >= XCHAL_KSEG_CACHED_VADDR in xthal_static_v2p() 38 && vaddr <= XCHAL_KSEG_CACHED_VADDR + XCHAL_KSEG_CACHED_SIZE ) in xthal_static_v2p() 39 vaddr += XCHAL_KSEG_CACHED_PADDR - XCHAL_KSEG_CACHED_VADDR; in xthal_static_v2p() 40 else if( vaddr >= XCHAL_KSEG_BYPASS_VADDR in xthal_static_v2p() 41 && vaddr <= XCHAL_KSEG_BYPASS_VADDR + XCHAL_KSEG_BYPASS_SIZE ) in xthal_static_v2p() 42 vaddr += XCHAL_KSEG_BYPASS_PADDR - XCHAL_KSEG_BYPASS_VADDR; in xthal_static_v2p() 43 else if( vaddr >= XCHAL_KIO_CACHED_VADDR in xthal_static_v2p() 44 && vaddr <= XCHAL_KIO_CACHED_VADDR + XCHAL_KIO_CACHED_SIZE ) in xthal_static_v2p() 45 vaddr += XCHAL_KIO_CACHED_PADDR - XCHAL_KIO_CACHED_VADDR; in xthal_static_v2p() [all …]
|
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 128 unsigned vpn_way = (unsigned)vaddr; in xthal_set_region_translation_raw() 130 unsigned vpn_way = ((unsigned) vaddr & 0xFFFFFFF0) + XCHAL_SPANNING_WAY; in xthal_set_region_translation_raw() 167 int xthal_v2p(void* vaddr, void** paddr, unsigned *way, unsigned* cattr) { in xthal_v2p() argument 171 *paddr = vaddr; in xthal_v2p() 176 struct xthal_MPU_entry x = xthal_get_entry_for_address(vaddr, 0); in xthal_v2p() 181 unsigned long probe = probe_dtlb((unsigned) vaddr); in xthal_v2p() 193 *paddr = ((void*) (ppn + (((unsigned) vaddr) & 0x1fffffff))); in xthal_v2p() 263 *paddr = ((void*) (ppn1 + (((unsigned) vaddr) & (~ppn)))); in xthal_v2p() 397 int xthal_set_region_translation(void* vaddr, void* paddr, unsigned size, in xthal_set_region_translation() argument [all …]
|
D | attribute.c | 168 int xthal_set_region_attribute( void *vaddr, unsigned size, unsigned cattr, unsigned flags ) in xthal_set_region_attribute() argument 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() 209 end_vaddr = (unsigned)vaddr + size - 1; in xthal_set_region_attribute() 210 if (end_vaddr < (unsigned)vaddr) in xthal_set_region_attribute() 214 start_region = ((unsigned)vaddr >> 29); in xthal_set_region_attribute() 215 start_offset = ((unsigned)vaddr & 0x1FFFFFFF); in xthal_set_region_attribute()
|
D | mpu.c | 1638 int xthal_mpu_set_region_attribute(void* vaddr, unsigned size, int accessRights, int memoryType, un… in xthal_mpu_set_region_attribute() argument 1649 first = (unsigned) vaddr; in xthal_mpu_set_region_attribute() 1658 accessRights = XTHAL_MPU_ENTRY_GET_ACCESS(xthal_get_entry_for_address(vaddr, 0)); in xthal_mpu_set_region_attribute() 1668 memoryType = XTHAL_MPU_ENTRY_GET_MEMORY_TYPE(xthal_get_entry_for_address(vaddr, 0)); in xthal_mpu_set_region_attribute() 1741 unsigned int vaddr = 0xffffffff; in xthal_calc_cacheadrdis() local 1746 vaddr = XTHAL_MPU_ENTRY_GET_VSTARTADDR(fg[fg_index]); in xthal_calc_cacheadrdis() 1747 ending_region = vaddr >> 29; in xthal_calc_cacheadrdis() 1762 if (vaddr & 0x1fffffff) // If vaddr is on a 512MB region we want to move to the next region in xthal_calc_cacheadrdis() 1770 || XTHAL_MPU_ENTRY_GET_VALID(fg[fg_index-1]))&& vaddr) in xthal_calc_cacheadrdis() 1778 while ((caddr = XTHAL_MPU_ENTRY_GET_VSTARTADDR(Xthal_mpu_bgmap[bg_index])) >= vaddr) in xthal_calc_cacheadrdis() [all …]
|
/hal_xtensa-2.7.6/include/xtensa/ |
D | hal.h | 989 extern int xthal_static_v2p( unsigned vaddr, unsigned *paddrp ); 992 extern int xthal_set_region_translation(void* vaddr, void* paddr, 996 extern int xthal_set_region_translation_raw(void *vaddr, void *paddr, unsigned cattr); 1170 #define XTHAL_MPU_ENTRY(vaddr, valid, access, memtype) \ argument 1171 { (((vaddr) & 0xffffffe0) | ((valid & 0x1))), \ 1179 #define XTHAL_MPU_ENTRY_SET_VSTARTADDR(x, vaddr) (x).as = \ argument 1180 (((x).as) & 0x1) | ((vaddr) & 0xffffffe0) 1296 extern struct xthal_MPU_entry xthal_get_entry_for_address(void* vaddr, 1358 extern int xthal_mpu_set_region_attribute(void* vaddr, unsigned size,
|
D | trax-core-config.h | 103 unsigned vaddr; member 141 extern int trax_vector_from_address(trax_core_config_t *config, unsigned long vaddr, unsigned long…
|