Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 22 of 22) sorted by relevance

/trusty/kernel/lib/backtrace/
Dbacktrace.c84 static bool is_on_user_stack(struct thread* _thread, uintptr_t addr);
85 static bool is_on_kernel_stack(struct thread* thread, uintptr_t addr);
87 static void print_stack_address(struct thread* thread, uintptr_t addr) { in print_stack_address() argument
92 printf("0x%" PRI0xPTR " ", addr); in print_stack_address()
95 if (is_on_user_stack(thread, addr)) { in print_stack_address()
99 printf("uSP+0x%" PRI0xSTKOFF "x", addr - stack_low_addr); in print_stack_address()
103 if (is_on_kernel_stack(thread, addr)) { in print_stack_address()
104 printf("kSP+0x%" PRI0xSTKOFF "x", addr - (uintptr_t)thread->stack); in print_stack_address()
112 if (addr) { in print_stack_address()
190 static bool is_on_user_stack(struct thread* _thread, uintptr_t addr) { in is_on_user_stack() argument
[all …]
/trusty/user/base/lib/libc-trusty/
Dmemref.c9 int memref_create(void* addr, size_t size, uint32_t mmap_prot) { in memref_create() argument
12 addr = hwasan_remove_ptr_tag(addr); in memref_create()
18 return _trusty_memref_create(addr, size, mmap_prot); in memref_create()
/trusty/kernel/app/usercopytest/
Dusercopytest.c66 const user_addr_t* addr = param_arr[0]; in get_addr_param() local
67 return *addr; in get_addr_param()
116 void* addr = START_PAGE_ADDR; in TEST_F_SETUP() local
126 ret = vmm_alloc(_state->aspace, "start-page", PAGE_SIZE, &addr, 0, in TEST_F_SETUP()
130 ASSERT_EQ(START_PAGE_ADDR, addr); in TEST_F_SETUP()
133 addr += PAGE_SIZE; in TEST_F_SETUP()
136 ret = vmm_alloc(_state->aspace, "end-page", PAGE_SIZE, &addr, 0, in TEST_F_SETUP()
140 ASSERT_EQ(START_PAGE_ADDR + PAGE_SIZE, addr); in TEST_F_SETUP()
158 user_addr_t addr = get_addr_param(); in TEST_P() local
168 dest_kbuf1 = paddr_to_kvaddr(vaddr_to_paddr((void*)(uintptr_t)addr)); in TEST_P()
[all …]
/trusty/user/app/storage/
Drpmb.h38 uint16_t addr,
42 uint16_t addr,
46 uint16_t addr,
52 uint16_t addr,
Drpmb.c296 uint16_t addr, in rpmb_read_data() argument
304 .address = rpmb_u16(addr), in rpmb_read_data()
332 rpmb_dprintf("rpmb: read data, addr %d, count %d, response:\n", addr, in rpmb_read_data()
349 &nonce, &addr, 0); in rpmb_read_data()
375 uint16_t addr, in rpmb_read() argument
378 return rpmb_read_data(state, NULL, buf, addr, count, &mac); in rpmb_read()
383 uint16_t addr, in rpmb_read_no_mac() argument
385 return rpmb_read_data(state, NULL, buf, addr, count, NULL); in rpmb_read_no_mac()
390 uint16_t addr, in rpmb_verify() argument
393 return rpmb_read_data(state, buf, NULL, addr, count, &mac); in rpmb_verify()
[all …]
/trusty/hardware/nxp/platform/imx/drivers/
Dimx_uart.c33 #define READ32(addr) (*REG32(addr)) argument
34 #define WRITE32(val, addr) (READ32(addr) = val) argument
/trusty/user/app/storage/rpmb_dev/
Drpmb_dev.c89 static int rpmb_file_seek(struct rpmb_dev_state* s, uint16_t addr) { in rpmb_file_seek() argument
91 int pos = addr * RPMB_PACKET_DATA_SIZE + sizeof(s->header); in rpmb_file_seek()
143 uint16_t addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_data_write() local
174 ret = rpmb_file_seek(s, addr); in rpmb_dev_data_write()
222 uint16_t addr; in rpmb_dev_data_read() local
235 addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_data_read()
238 rpmb_file_seek(s, addr); in rpmb_dev_data_read()
306 uint16_t addr = rpmb_get_u16(s->cmd[0].address); in rpmb_dev_process_cmd() local
357 if (cmd->check_addr && (addr + block_count > s->header.max_block + 1)) { in rpmb_dev_process_cmd()
361 req_resp, addr, block_count, s->header.max_block + 1); in rpmb_dev_process_cmd()
[all …]
/trusty/user/base/lib/libc-trusty/include/trusty/
Dmemref.h38 int memref_create(void* addr, size_t size, uint32_t mmap_prot);
/trusty/kernel/lib/trusty/
Dmemref.c71 user_addr_t* addr) { in memref_mmap() argument
73 DEBUG_ASSERT(addr); in memref_mmap()
110 void* vaddr = (void*)(vaddr_t)*addr; in memref_mmap()
120 *addr = (user_addr_t)((uintptr_t)vaddr); in memref_mmap()
Dsyscall.c96 static bool valid_address(vaddr_t addr, const u_int size) { in valid_address() argument
97 u_int rsize = round_up(size + (addr & (PAGE_SIZE - 1)), PAGE_SIZE); in valid_address()
98 addr = round_down(addr, PAGE_SIZE); in valid_address()
106 if (!is_user_address(addr) || !vaddr_to_paddr((void*)addr)) { in valid_address()
109 addr += PAGE_SIZE; in valid_address()
Dhandle.c384 user_addr_t* addr) { in handle_mmap() argument
387 return handle->ops->mmap(handle, offset, size, mmap_prot, addr); in handle_mmap()
Dvqueue.c204 (ext_mem_obj_id_t)desc->addr; in _vqueue_get_avail_buf_locked()
205 assert(iovlist->shared_mem_id[iovlist->used] == desc->addr); in _vqueue_get_avail_buf_locked()
Dtipc_virtio_dev.c279 static inline uint addr_to_slot(uint32_t addr) { in addr_to_slot() argument
280 if (addr < TIPC_ADDR_BASE) { in addr_to_slot()
281 TRACEF("bad addr %u\n", addr); in addr_to_slot()
284 return (uint)(addr - TIPC_ADDR_BASE); in addr_to_slot()
Dtipc_dev_ql.c127 static inline uint addr_to_slot(uint32_t addr) { in addr_to_slot() argument
128 return (uint)(addr - QL_TIPC_ADDR_BASE); in addr_to_slot()
/trusty/kernel/lib/arm_ffa/include/lib/arm_ffa/
Darm_ffa.h75 paddr_t* addr,
/trusty/kernel/lib/trusty/include/lib/trusty/
Dhandle.h135 user_addr_t* addr);
200 user_addr_t* addr);
/trusty/kernel/lib/syscall/
DREADME28 DEF_SYSCALL(0x5b, munmap, long, 2, addr_t addr, uint32_t size)
31 DEF_SYSCALL(0xc0, mmap2, long, 4, addr_t addr, uint32_t length, uint32_t prot, uint32_t flags)
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/android-base/
Dunique_fd.h175 static void Close(int fd, void* addr) { in Close()
179 reinterpret_cast<uint64_t>(addr)); in Close()
/trusty/user/base/tools/
Dmanifest_compiler.py241 def __init__(self, id_, addr, size, type_, non_secure): argument
243 self.addr = addr
873 memio_map.addr,
984 (addr,), packed_data = struct.unpack(
991 mem_map_entry[MEM_MAP_ADDR] = hex(addr)
Dtest_manifest_compiler.py439 self.assertEqual(memio_map.addr, memio_ref_data["addr"])
461 self.assertEqual(memio_map.addr, memio_ref_data["addr"])
828 addr = "0x70000000"
831 mem_map_data = [{"id": id_, "addr": addr, "size": size}]
852 self.assertEqual(memio_map.addr, int(addr, 0))
/trusty/kernel/lib/arm_ffa/
Darm_ffa.c526 paddr_t* addr, in arm_ffa_mem_address_range_get() argument
549 if (addr) { in arm_ffa_mem_address_range_get()
550 *addr = (paddr_t)frag_info->address_ranges[frag_idx].address; in arm_ffa_mem_address_range_get()
/trusty/user/base/lib/dlmalloc/
Ddlmalloc.c1712 #define MREMAP_DEFAULT(addr, osz, nsz, mv) mremap((addr), (osz), (nsz), (mv)) argument
1766 #define CALL_MREMAP(addr, osz, nsz, mv) MREMAP((addr), (osz), (nsz), (mv)) argument
1768 #define CALL_MREMAP(addr, osz, nsz, mv) MREMAP_DEFAULT((addr), (osz), (nsz), (mv)) argument
1771 #define CALL_MREMAP(addr, osz, nsz, mv) MFAIL argument
2713 static msegmentptr segment_holding(mstate m, char* addr) { in segment_holding() argument
2716 if (addr >= sp->base && addr < sp->base + sp->size) in segment_holding()