Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 61) sorted by relevance

123

/trusty/kernel/lib/dtb_embedded/
Ddtb_embedded.c39 uintptr_t offset; member
44 iter->offset = 0; in dtb_embedded_iterator_reset()
93 if (iter->offset >= total_size) { in dtb_embedded_iterator_next()
95 iter->offset); in dtb_embedded_iterator_next()
100 const void* dtb_start = (const void*)(start + iter->offset); in dtb_embedded_iterator_next()
105 iter->offset, rc); in dtb_embedded_iterator_next()
119 if (next_dtb_size + iter->offset > total_size) { in dtb_embedded_iterator_next()
121 iter->offset, next_dtb_size); in dtb_embedded_iterator_next()
124 iter->offset += next_dtb_size; in dtb_embedded_iterator_next()
127 LTRACEF("Found embedded dtb at offset %" PRIuPTR "\n", iter->offset); in dtb_embedded_iterator_next()
/trusty/kernel/lib/trusty/
Dmemref.c68 size_t offset, in memref_mmap() argument
81 if (!IS_PAGE_ALIGNED(offset)) { in memref_mmap()
91 if (offset > memref->slice.size) { in memref_mmap()
96 if (size > memref->slice.size - offset) { in memref_mmap()
113 memref->slice.offset + offset, size, &vaddr, 0, 0, in memref_mmap()
145 if (!IS_PAGE_ALIGNED(slice->size) || !IS_PAGE_ALIGNED(slice->offset)) { in check_slice()
166 size_t offset, in memref_create_from_vmm_obj() argument
177 vmm_obj_slice_bind(&memref->slice, obj, offset, size); in memref_create_from_vmm_obj()
Dipc_msg.c366 uint32_t offset) { in msg_check_read_item() argument
381 if (offset > item->len) { in msg_check_read_item()
382 LTRACEF("invalid offset %d\n", offset); in msg_check_read_item()
397 uint32_t offset, in kern_msg_read_locked() argument
402 item = msg_check_read_item(mq, msg_id, offset); in kern_msg_read_locked()
406 const uint8_t* buf = msg_queue_get_buf(mq, item) + offset; in kern_msg_read_locked()
407 size_t bytes_left = item->len - offset; in kern_msg_read_locked()
433 uint32_t offset, in user_msg_read_locked() argument
440 item = msg_check_read_item(mq, msg_id, offset); in user_msg_read_locked()
444 const uint8_t* buf = msg_queue_get_buf(mq, item) + offset; in user_msg_read_locked()
[all …]
/trusty/user/app/storage/test/storage-unittest-aidl/unittests/
Dhelpers.rs58 fn check_pattern32(offset: usize, buf: &[u8]) -> Result<(), String> { in check_pattern32()
60 let mut pattern: u32 = (offset / U32_SIZE).try_into().unwrap(); in check_pattern32()
83 fn fill_pattern32(offset: usize, buf: &mut [u8]) { in fill_pattern32()
85 let mut pattern: u32 = (offset / U32_SIZE).try_into().unwrap(); in fill_pattern32()
105 offset: usize, in write_pattern()
113 let chunk_offset = offset + i * chunk_len; in write_pattern()
131 offset: usize, in read_pattern()
138 let chunk_offset = offset + i * chunk_len; in read_pattern()
/trusty/user/base/lib/hwaes/srv/
Dhwaes_server.c181 size_t offset = *offset_ptr; in hwaes_set_arg_out() local
199 if (__builtin_add_overflow(data_desc_ptr->offset, in hwaes_set_arg_out()
209 shms[data_desc_ptr->shm_idx].base + data_desc_ptr->offset; in hwaes_set_arg_out()
211 if (offset != data_desc_ptr->offset) { in hwaes_set_arg_out()
219 if (data_desc_ptr->offset < offset) { in hwaes_set_arg_out()
221 data_desc_ptr->offset, offset); in hwaes_set_arg_out()
224 offset = data_desc_ptr->offset; in hwaes_set_arg_out()
227 if (__builtin_add_overflow(offset, data_desc_ptr->len, &offset)) { in hwaes_set_arg_out()
231 if (offset > max_buf_sz) { in hwaes_set_arg_out()
233 offset); in hwaes_set_arg_out()
[all …]
/trusty/user/base/lib/sancov/
Dsancov.c81 uint32_t offset = header_len(); in initialize_header() local
83 headers[1].offset = offset; in initialize_header()
84 offset += sizeof(counter_t) * num_counters; in initialize_header()
86 headers[2].offset = offset; in initialize_header()
87 offset += sizeof(uintptr_t) * num_counters; in initialize_header()
89 headers[3].offset = offset; in initialize_header()
92 headers[0].offset = 0; in initialize_header()
/trusty/kernel/lib/extmem/
Dexternal_memory.c128 size_t offset, in ext_mem_obj_get_page() argument
135 LTRACEF("offset %zd page_run_count %zd\n", offset, ext_obj->page_run_count); in ext_mem_obj_get_page()
137 page_offset = offset; in ext_mem_obj_get_page()
146 TRACEF("offset %zd out of range index %zd >= %zd\n", offset, index, in ext_mem_obj_get_page()
154 offset, index, ext_obj->page_run_count, *paddr, *paddr_size); in ext_mem_obj_get_page()
164 size_t offset, in ext_mem_map_obj_id() argument
176 err = ext_mem_get_vmm_obj(client_id, mem_obj_id, tag, size + offset, in ext_mem_map_obj_id()
188 err = vmm_alloc_obj(aspace, name, vmm_obj, offset, size, ptr, align_log2, in ext_mem_map_obj_id()
/trusty/user/base/lib/storage/rust/src/
Dtransaction.rs107 offset: usize, in read_at()
110 self.session.read_at(file, offset, buf) in read_at()
130 offset: usize, in write_at()
133 self.session.write_at_impl(file, offset, buf, false) in write_at()
/trusty/kernel/platform/generic-x86_64/rust/src/
Dlib.rs57 let offset = physical_address - page_paddr; in map_physical_region() localVariable
58 let aligned_size = (size + offset + PAGE_MASK) & !PAGE_MASK; in map_physical_region()
78 let nonnullptr = NonNull::new(ptr.wrapping_add(offset) as _).unwrap(); in map_physical_region()
80 PhysicalMapping::new(physical_address, nonnullptr, size, aligned_size - offset, Self) in map_physical_region()
/trusty/user/base/lib/libc-trusty/
Dtime_stubs.c50 long* offset, in __secs_to_zone() argument
55 *offset = 0; in __secs_to_zone()
Dipc.c66 uint32_t offset, in read_msg() argument
68 return _trusty_read_msg(handle, msg_id, offset, msg); in read_msg()
/trusty/kernel/lib/backtrace/
Dsymbolize.c130 info->offset = ULONG_MAX; in trusty_app_symbolize()
148 if (func_start <= pc && info->offset > pc - func_start) { in trusty_app_symbolize()
156 info->offset = pc - func_start; in trusty_app_symbolize()
161 if (info->offset == ULONG_MAX) { in trusty_app_symbolize()
168 info->offset = 0; in trusty_app_symbolize()
/trusty/kernel/lib/vmm_obj_service/
Dvmm_obj_service.c42 size_t offset, in vmm_obj_service_create_ro() argument
53 if (!IS_PAGE_ALIGNED(offset)) { in vmm_obj_service_create_ro()
54 TRACEF("unaligned offset: %zx\n", offset); in vmm_obj_service_create_ro()
76 rc = memref_create_from_vmm_obj(obj, offset, size, MMAP_FLAG_PROT_READ, in vmm_obj_service_create_ro()
/trusty/user/app/sample/memref-test/rust/
Dmemref_test.rs92 region: lender_region { offset: 0, size: 1 }, in test_read_write()
109 region: lender_region { offset: 1, size: 1 }, in test_read_write()
123 assert_eq!(123, unsafe { remote_buf.ptr().offset(1).read() }); in test_read_write()
130 remote_buf.ptr().offset(1).write(0); in test_read_write()
149 lender_region { offset: 0, size: 0 } in default()
/trusty/user/app/storage/test/storage_host_test/
Dstorageproxy_shim.c227 off_t offset) { in write_with_retry() argument
232 rc = pwrite(fd, buf, size, offset); in write_with_retry()
237 offset += rc; in write_with_retry()
242 static ssize_t read_with_retry(int fd, void* buf_, size_t size, off_t offset) { in read_with_retry() argument
248 rc = pread(fd, buf, size, offset); in read_with_retry()
255 offset += rc; in read_with_retry()
/trusty/user/app/sample/memref-test/
Dmemref-test.c94 int lender_read_bss(handle_t chan, size_t offset, size_t size, char* buf) { in lender_read_bss() argument
97 .offset = offset, in lender_read_bss()
121 size_t offset, in lender_write_bss() argument
128 .offset = offset, in lender_write_bss()
/trusty/user/base/lib/coverage/common/include/lib/coverage/common/
Drecord.h72 uint32_t offset; member
/trusty/kernel/lib/backtrace/include/lib/backtrace/
Dsymbolize.h37 uintptr_t offset; member
/trusty/user/app/sample/memref-test/include/
Dlender.h31 size_t offset; member
/trusty/user/app/storage/
Dclient.c653 uint64_t offset, in storage_file_read() argument
690 if (offset > file->size) { in storage_file_read()
692 offset, file->size); in storage_file_read()
697 if ((offset + buflen) > file->size) { in storage_file_read()
698 bytes_left = (size_t)(file->size - offset); in storage_file_read()
704 SS_INFO("%s: start 0x%" PRIx64 " cnt %zu\n", __func__, offset, bytes_left); in storage_file_read()
707 block_num = offset / block_size; in storage_file_read()
710 block_offset = offset % block_size; in storage_file_read()
726 offset += len; in storage_file_read()
775 uint64_t offset, in storage_file_write() argument
[all …]
Dclient.h161 uint64_t offset,
179 uint64_t offset,
/trusty/kernel/lib/extmem/include/lib/extmem/
Dextmem.h198 size_t offset,
223 size_t offset,
/trusty/kernel/lib/vmm_obj_service/include/lib/vmm_obj_service/
Dvmm_obj_service.h62 size_t offset,
/trusty/user/app/sample/memref-test/lender/
Dlender.c120 if (__builtin_add_overflow(region->offset, region->size, &end)) { in lender_check_region()
136 int rc = tipc_send1(chan, &bss_page[region->offset], region->size); in lender_read_bss()
151 memcpy(&bss_page[region->offset], data, region->size); in lender_write_bss()
/trusty/kernel/lib/trusty/include/lib/trusty/
Dmemref.h49 size_t offset,

123