/sof-3.4.0/src/arch/xtensa/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 …]
|
/sof-3.4.0/smex/ |
D | elf.c | 114 module->elf_file, i, section[i].vaddr); in elf_read_sections() 170 module->elf_file, i, prg[i].vaddr); in elf_read_programs() 228 if (module->text_start > section->vaddr) in elf_module_size() 229 module->text_start = section->vaddr; in elf_module_size() 230 if (module->text_end < section->vaddr + section->size) in elf_module_size() 231 module->text_end = section->vaddr + in elf_module_size() 237 if (module->data_start > section->vaddr) in elf_module_size() 238 module->data_start = section->vaddr; in elf_module_size() 239 if (module->data_end < section->vaddr + section->size) in elf_module_size() 240 module->data_end = section->vaddr + in elf_module_size() [all …]
|
D | ldc.c | 98 header.base_address = section->vaddr; in write_logs_dictionary() 140 header.base_address = section->vaddr; in write_uids_dictionary()
|
D | elf_defs.h | 401 Elf32_Addr vaddr; /* Address in memory image. */ member 417 Elf32_Addr vaddr; /* Virtual address in memory image. */ member 847 Elf64_Addr vaddr; /* Virtual address in memory image. */ member
|
/sof-3.4.0/src/arch/xtensa/include/xtensa/ |
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…
|
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,
|