Home
last modified time | relevance | path

Searched refs:pa (Results 1 – 25 of 76) sorted by relevance

1234

/optee_os-3.20.0/core/mm/
A Dcore_mmu.c196 return (pa >= map->pa && end_pa <= map->pa + map->size - 1); in pa_is_in_map()
255 if (pa >= map->pa && pa <= (map->pa + map->size - 1)) in find_map_by_pa()
644 pa = memory_map[n].pa; in add_phys_mem()
650 memory_map[n].pa = MIN(pa, mem->addr); in add_phys_mem()
652 (pa - memory_map[n].pa); in add_phys_mem()
1155 rc = CMP_TRILEAN(mm_a->pa, mm_b->pa); in cmp_init_mem_map()
1467 *pa = map->pa + (vaddr_t)va - map->va; in core_va2pa_helper()
1469 *pa = 0; in core_va2pa_helper()
1479 return (void *)(vaddr_t)(map->va + pa - map->pa); in map_pa2va()
1557 pa = region->pa; in set_region()
[all …]
A Dmobj.c40 paddr_t pa; member
61 if (!pa) in mobj_phys_get_pa()
64 p = moph->pa + offs; in mobj_phys_get_pa()
73 *pa = p; in mobj_phys_get_pa()
153 if (pa) { in mobj_phys_init()
160 pa = map->pa; in mobj_phys_init()
177 moph->pa = pa; in mobj_phys_init()
349 paddr_t pa; member
384 *pa = p; in mobj_shm_get_pa()
459 m->pa = pa; in mobj_shm_alloc()
[all …]
/optee_os-3.20.0/core/arch/arm/tee/
A Dcache.c21 paddr_t pa; in cache_operation() local
23 pa = virt_to_phys(va); in cache_operation()
24 if (!pa) in cache_operation()
34 res = cache_op_outer(DCACHE_AREA_CLEAN_INV, pa, len); in cache_operation()
45 return cache_op_outer(DCACHE_AREA_CLEAN, pa, len); in cache_operation()
49 res = cache_op_outer(DCACHE_AREA_INVALIDATE, pa, len); in cache_operation()
A Dentry_fast.c33 paddr_t pa = 0; in tee_entry_fastcall_l2cc_mutex() local
37 ret = tee_get_l2cc_mutex(&pa); in tee_entry_fastcall_l2cc_mutex()
38 reg_pair_from_64(pa, &args->a2, &args->a3); in tee_entry_fastcall_l2cc_mutex()
41 pa = reg_pair_to_64(args->a2, args->a3); in tee_entry_fastcall_l2cc_mutex()
42 ret = tee_set_l2cc_mutex(&pa); in tee_entry_fastcall_l2cc_mutex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/
A Dmem_neq.c32 const unsigned char* pa; in mem_neq() local
38 pa = a; in mem_neq()
42 ret |= *pa ^ *pb; in mem_neq()
43 ++pa; in mem_neq()
/optee_os-3.20.0/core/arch/arm/mm/
A Dcore_mmu.c98 TEE_Result cache_op_outer(enum cache_op op, paddr_t pa, size_t len) in cache_op_outer() argument
110 arm_cl2_invbypa(pl310_base(), pa, pa + len - 1); in cache_op_outer()
117 arm_cl2_cleanbypa(pl310_base(), pa, pa + len - 1); in cache_op_outer()
124 arm_cl2_cleaninvbypa(pl310_base(), pa, pa + len - 1); in cache_op_outer()
171 bool arch_va2pa_helper(void *va, paddr_t *pa) in arch_va2pa_helper() argument
198 *pa = (par & (par_pa_mask << PAR_PA_SHIFT)) | in arch_va2pa_helper()
A Dcore_mmu_v7.c262 if (pa & ~TTB_L1_MASK) in core_mmu_get_main_ttb_pa()
264 return pa; in core_mmu_get_main_ttb_pa()
276 if (pa & ~TTB_UL1_MASK) in core_mmu_get_ul1_ttb_pa()
278 return pa; in core_mmu_get_ul1_ttb_pa()
555 tbl[idx] = desc | pa; in core_mmu_set_entry_primitive()
594 paddr_t pa; in core_mmu_entry_to_finer_grained() local
647 if (pa) in core_mmu_get_entry_primitive()
730 paddr_t pa = 0; in map_memarea_sections() local
740 pa = mm->pa; in map_memarea_sections()
746 ttb[idx] = pa | attr; in map_memarea_sections()
[all …]
A Dtee_pager.c436 pa, attr); in tblidx_get_entry()
443 pa, attr); in tblidx_set_entry()
706 paddr_t pa; in get_pmem_pa() local
712 return pa; in get_pmem_pa()
786 paddr_t pa = 0; in map_pgts() local
804 assert(pa); in map_pgts()
1219 paddr_t pa = 0; in tee_pager_unhide_page() local
1474 paddr_t pa) in make_dirty_page() argument
1508 paddr_t pa = 0; in make_iv_available() local
1662 paddr_t pa = 0; in pager_update_permissions() local
[all …]
A Dsp_mem.c77 paddr_t pa, unsigned int num_pages) in sp_mem_add_pages() argument
89 if (!tee_pbuf_is_sec(pa, num_pages * SMALL_PAGE_SIZE)) in sp_mem_add_pages()
92 if (!tee_pbuf_is_non_sec(pa, in sp_mem_add_pages()
99 ms->pages[n + *idx] = pa + n * SMALL_PAGE_SIZE; in sp_mem_add_pages()
125 size_t granule, paddr_t *pa) in get_pa() argument
130 if (!pa) in get_pa()
147 *pa = p; in get_pa()
A Dcore_mmu_lpae.c540 paddr_t pa = 0; in core_mmu_xlat_table_entry_pa2va() local
547 pa = entry & OUTPUT_ADDRESS_MASK; in core_mmu_xlat_table_entry_pa2va()
1060 paddr_t pa; in core_mmu_entry_to_finer_grained() local
1086 pa = *entry & OUTPUT_ADDRESS_MASK; in core_mmu_entry_to_finer_grained()
1089 new_table[i] = pa | attr | BLOCK_DESC; in core_mmu_entry_to_finer_grained()
1090 pa += block_size_on_next_lvl; in core_mmu_entry_to_finer_grained()
1102 paddr_t pa, uint32_t attr) in core_mmu_set_entry_primitive() argument
1107 tbl[idx] = desc | pa; in core_mmu_set_entry_primitive()
1111 size_t idx, paddr_t *pa, uint32_t *attr) in core_mmu_get_entry_primitive() argument
1115 if (pa) in core_mmu_get_entry_primitive()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/
A Dmain.c91 paddr_t pa; in console_init() member
94 [0] = { .pa = 0 }, in console_init()
95 [1] = { .pa = USART1_BASE, .secure = true, }, in console_init()
96 [2] = { .pa = USART2_BASE, .secure = false, }, in console_init()
97 [3] = { .pa = USART3_BASE, .secure = false, }, in console_init()
98 [4] = { .pa = UART4_BASE, .secure = false, }, in console_init()
99 [5] = { .pa = UART5_BASE, .secure = false, }, in console_init()
100 [6] = { .pa = USART6_BASE, .secure = false, }, in console_init()
101 [7] = { .pa = UART7_BASE, .secure = false, }, in console_init()
102 [8] = { .pa = UART8_BASE, .secure = false, }, in console_init()
[all …]
/optee_os-3.20.0/core/kernel/
A Duser_mode_ctx.c17 paddr_t pa = 0; in user_mode_ctx_print_mappings() local
20 mobj_get_pa(r->mobj, r->offset, 0, &pa); in user_mode_ctx_print_mappings()
25 n, PRIxVA_WIDTH, r->va, PRIxPA_WIDTH, pa, r->size, in user_mode_ctx_print_mappings()
/optee_os-3.20.0/core/include/mm/
A Dcore_memprot.h77 void *phys_to_virt(paddr_t pa, enum teecore_memtypes m, size_t len);
85 void *phys_to_virt_io(paddr_t pa, size_t len);
98 vaddr_t core_mmu_get_va(paddr_t pa, enum teecore_memtypes type, size_t len);
104 paddr_t pa; member
A Dcore_mmu.h406 paddr_t pa, uint32_t attr);
418 paddr_t pa, uint32_t attr);
421 paddr_t *pa, uint32_t *attr);
431 paddr_t *pa, uint32_t *attr);
464 struct core_mmu_table_info *tbl_info, paddr_t pa) in core_mmu_get_block_offset() argument
466 return pa & ((1 << tbl_info->shift) - 1); in core_mmu_get_block_offset()
535 enum teecore_memtypes core_mmu_get_type_by_pa(paddr_t pa);
630 bool arch_va2pa_helper(void *va, paddr_t *pa);
637 static inline bool core_mmu_check_end_pa(paddr_t pa, size_t len) in core_mmu_check_end_pa() argument
641 if (ADD_OVERFLOW(pa, len - 1, &end_pa)) in core_mmu_check_end_pa()
A Dmobj.h30 paddr_t *pa);
64 size_t granule, paddr_t *pa) in mobj_get_pa() argument
67 return mobj->ops->get_pa(mobj, offs, granule, pa); in mobj_get_pa()
232 struct mobj *mobj_phys_alloc(paddr_t pa, size_t size, uint32_t cattr,
253 paddr_t pa, unsigned int num_pages);
309 struct mobj *mobj_shm_alloc(paddr_t pa, size_t size, uint64_t cookie);
/optee_os-3.20.0/core/drivers/
A Dimx_i2c.c58 [0] = { .pa = I2C1_BASE, },
61 [1] = { .pa = I2C2_BASE, },
64 [2] = { .pa = I2C3_BASE, },
67 [3] = { .pa = I2C4_BASE, },
75 [0] = { .pa = I2C1_BASE, },
78 [1] = { .pa = I2C2_BASE, },
81 [2] = { .pa = I2C3_BASE, },
84 [3] = { .pa = I2C4_BASE, },
102 .base.pa = CCM_BASE,
118 .base.pa = IOMUXC_BASE,
[all …]
A Dstm32_uart.c107 pd->base.pa = base; in stm32_uart_init()
116 stm32mp_register_secure_periph_iomem(pd->base.pa); in register_secure_uart()
126 stm32mp_register_non_secure_periph_iomem(pd->base.pa); in register_non_secure_uart()
153 pd->base.pa = info.reg; in stm32_uart_init_from_dt_node()
167 pd->base.va = (vaddr_t)phys_to_virt(pd->base.pa, in stm32_uart_init_from_dt_node()
/optee_os-3.20.0/core/arch/arm/include/mm/
A Dcore_mmu_arch.h188 TEE_Result cache_op_outer(enum cache_op op, paddr_t pa, size_t len);
191 paddr_t pa __unused, in cache_op_outer()
202 static inline bool core_mmu_check_max_pa(paddr_t pa __maybe_unused) in core_mmu_check_max_pa()
205 return pa <= (BIT64(CFG_CORE_ARM64_PA_BITS) - 1); in core_mmu_check_max_pa()
207 return pa <= (BIT64(40) - 1); in core_mmu_check_max_pa()
/optee_os-3.20.0/lib/libutils/isoc/
A Dqsort.c78 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in qsort() local
103 pa = pb = (char *)a + es; in qsort()
110 swap(pa, pb); in qsort()
111 pa += es; in qsort()
138 r = min(pa - (char *)a, pb - pa); in qsort()
142 if ((r = pb - pa) > (int)es) in qsort()
/optee_os-3.20.0/core/lib/scmi-server/
A Dscmi_server.c17 uintptr_t smt_phys_to_virt(uintptr_t pa, size_t sz, bool shmem_is_secure) in smt_phys_to_virt() argument
20 return (uintptr_t)phys_to_virt(pa, MEM_AREA_IO_SEC, sz); in smt_phys_to_virt()
22 return (uintptr_t)phys_to_virt(pa, MEM_AREA_IO_NSEC, sz); in smt_phys_to_virt()
/optee_os-3.20.0/core/drivers/crypto/caam/utils/
A Dutils_mem.c240 paddr_t pa = 0; in caam_mem_get_pa_area() local
273 pa = virt_to_phys((void *)va); in caam_mem_get_pa_area()
274 if (!pa) in caam_mem_get_pa_area()
280 pabufs[nb_pa_area].paddr = pa; in caam_mem_get_pa_area()
284 pa, va); in caam_mem_get_pa_area()
306 if (next_pa != (pa + len_tohandle)) { in caam_mem_get_pa_area()
319 pa = next_pa; in caam_mem_get_pa_area()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dtee_l2cc_mutex.c27 void tee_l2cc_store_mutex_boot_pa(uint32_t pa) in tee_l2cc_store_mutex_boot_pa() argument
29 l2cc_mutex_boot_pa = pa; in tee_l2cc_store_mutex_boot_pa()
A Dthread_optee_smc.c372 if (core_pbuf_is(CORE_MEM_NSEC_SHM, pa, sz)) in rpc_shm_mobj_alloc()
373 return mobj_shm_alloc(pa, sz, cookie); in rpc_shm_mobj_alloc()
376 !(pa & SMALL_PAGE_MASK) && sz <= SMALL_PAGE_SIZE) in rpc_shm_mobj_alloc()
377 return mobj_mapped_shm_alloc(&pa, 1, 0, cookie); in rpc_shm_mobj_alloc()
391 paddr_t pa; in thread_rpc_alloc_arg() local
401 pa = reg_pair_to_64(rpc_args[0], rpc_args[1]); in thread_rpc_alloc_arg()
405 if (!IS_ALIGNED_WITH_TYPE(pa, struct optee_msg_arg)) in thread_rpc_alloc_arg()
408 mobj = rpc_shm_mobj_alloc(pa, size, co); in thread_rpc_alloc_arg()
440 paddr_t pa = 0; in set_tmem() local
450 if (mobj_get_pa(mobj, tpm->u.memref.offs, 0, &pa)) in set_tmem()
[all …]
/optee_os-3.20.0/core/lib/scmi-server/include/
A Doptee_scmi.h19 uintptr_t smt_phys_to_virt(uintptr_t pa, size_t sz, bool shmem_is_secure);
/optee_os-3.20.0/core/include/drivers/
A Dversal_pm.h13 TEE_Result versal_write_fpga(paddr_t pa);

Completed in 34 milliseconds

1234