/trusty/user/app/storage/test/storage_host_test/ |
D | storageproxy_shim.h | 34 void fail_next_rpmb_writes(int count, bool commit_writes); 42 void fail_next_rpmb_reads(int count); 50 void fail_next_rpmb_get_counters(int count); 60 void ignore_next_ns_writes(int count);
|
D | storageproxy_shim.c | 51 void ignore_next_ns_writes(int count) { in ignore_next_ns_writes() argument 52 ignore_next_ns_write_count = count; in ignore_next_ns_writes() 142 void fail_next_rpmb_writes(int count, bool commit_writes) { in fail_next_rpmb_writes() argument 143 rpmb_state.fail_next_writes = count; in fail_next_rpmb_writes() 147 void fail_next_rpmb_reads(int count) { in fail_next_rpmb_reads() argument 148 rpmb_state.fail_next_reads = count; in fail_next_rpmb_reads() 151 void fail_next_rpmb_get_counters(int count) { in fail_next_rpmb_get_counters() argument 152 rpmb_state.fail_next_get_counters = count; in fail_next_rpmb_get_counters()
|
/trusty/user/base/lib/libc-trusty/ |
D | trusty_uio.c | 31 ssize_t read(int fd, void* buf, size_t count) { in read() argument 32 struct iovec iov = {.iov_base = buf, .iov_len = count}; in read() 45 ssize_t write(int fd, const void* buf, size_t count) { in write() argument 46 struct iovec iov = {.iov_base = buf, .iov_len = count}; in write() 54 ssize_t trusty_read(int fd, void* buf, size_t count) { in trusty_read() argument 55 struct iovec iov = {.iov_base = buf, .iov_len = count}; in trusty_read() 63 ssize_t trusty_write(int fd, const void* buf, size_t count) { in trusty_write() argument 64 struct iovec iov = {.iov_base = buf, .iov_len = count}; in trusty_write()
|
/trusty/kernel/app/dpctest/ |
D | dpctest.c | 34 uint32_t count; member 54 if (ctx->count > TEST_REQUEUE_CNT / 2) { in dpc_test_callback() 56 ctx->count--; in dpc_test_callback() 59 } else if (ctx->count) { in dpc_test_callback() 61 ctx->count--; in dpc_test_callback() 75 test_ctx.count = TEST_REQUEUE_CNT; in TEST() 90 EXPECT_EQ(0, test_ctx.count); in TEST()
|
/trusty/kernel/lib/arm_trng/ |
D | arm_trng.c | 78 size_t count = MIN(*len_ptr, sizeof(*reg)); in arm_trng_copy_register() local 79 if (!count) { in arm_trng_copy_register() 83 memcpy(*buf_ptr, reg, count); in arm_trng_copy_register() 84 *buf_ptr += count; in arm_trng_copy_register() 85 *len_ptr -= count; in arm_trng_copy_register() 95 size_t count = MIN(len, 3 * sizeof(ulong)); in platform_random_get_bytes() local 99 LTRACEF("asking for %zu bytes\n", count); in platform_random_get_bytes() 100 smc_ret = smc8(ARM_TRNG_RND_SMC, count * 8, 0, 0, 0, 0, 0, 0); in platform_random_get_bytes()
|
/trusty/user/app/storage/ |
D | rpmb.c | 297 uint16_t count, in rpmb_read_data() argument 306 .block_count = rpmb_u16(count), in rpmb_read_data() 314 assert(count <= MAX_PACKET_COUNT); in rpmb_read_data() 322 sizeof(res[0]) * count, false, false); in rpmb_read_data() 327 ret = rpmb_mac(state->key, res, count, mac); in rpmb_read_data() 333 count); in rpmb_read_data() 334 for (i = 0; i < count; i++) { in rpmb_read_data() 336 if (i == count - 1 && mac) in rpmb_read_data() 348 ret = rpmb_check_response("read data", RPMB_RESP_DATA_READ, res, count, mac, in rpmb_read_data() 354 for (cmp_bufp = cmp_buf, i = 0; i < count; in rpmb_read_data() [all …]
|
D | rpmb.h | 39 uint16_t count); 43 uint16_t count); 47 uint16_t count); 53 uint16_t count,
|
D | block_tree.c | 365 unsigned int count, in block_tree_node_merge_entries() argument 378 block_tree_node_shift(tree, node_rw, dest_index + count, dest_index, in block_tree_node_merge_entries() 1314 path->count = 0; in block_tree_walk() 1324 assert(path->count < countof(path->entry)); in block_tree_walk() 1330 path->count = 0; in block_tree_walk() 1335 path->entry[path->count].block_mac = *block_mac; in block_tree_walk() 1340 if (path->count) { in block_tree_walk() 1341 assert(!path->entry[path->count - 1].next_key || next_key); in block_tree_walk() 1342 assert(!path->entry[path->count - 1].next_key || in block_tree_walk() 1343 next_key <= path->entry[path->count - 1].next_key); in block_tree_walk() [all …]
|
D | array.h | 21 #define array_copy(dest, src, count) \ argument 24 memcpy((dest), (src), sizeof((dest)[0]) * (count)); \
|
D | block_tree.h | 121 unsigned int count; member 141 return (path->count > 0) ? path->entry[path->count - 1].next_key : 0; in block_tree_path_get_key()
|
/trusty/user/app/confirmationui/test/ |
D | main.cpp | 48 uint32_t count; member 84 params->getParam<teeui::RightEdgeOfScreen>()->count() + 1; in TEST_P() 86 params->getParam<teeui::BottomOfScreen>()->count() + 1; in TEST_P() 116 stats.count++; in TEST_P() 125 EXPECT_GT(stats.count, MIN_EXPECTED_DRAW_COUNT, in TEST_P() 130 (float)stats.count / (float)area * 1000.0f; in TEST_P() 140 screen_width, screen_height, stats.count, in TEST_P()
|
/trusty/user/base/include/user/ |
D | trusty_uio.h | 29 ssize_t trusty_read(int fd, void* buf, size_t count); 31 ssize_t trusty_write(int fd, const void* buf, size_t count);
|
/trusty/kernel/include/shared/lk/ |
D | trusty_unittest.h | 310 int count; member 316 if (i >= param->count) { in test_gen_array_param() 412 .count = countof(array), \ 430 #define test_set_combine_params(generator, i, count) \ argument 433 if (i < count) { \ 441 da5, da6, da7, da8, da9, count, args...) \ argument 442 (static struct test_param_gen param_gens[count]; static int idxs[count]; \ 443 static const void* current_params[count]; \ 447 count, \ 452 test_set_combine_params(arg0, 0, count); \ [all …]
|
/trusty/kernel/app/memorytest/ |
D | memorytest.c | 45 int count; member 57 ptrs = calloc(arg->count, sizeof(*ptrs)); in memorytest_alloc_thread() 66 for (i = 0; i < arg->count; i++) { in memorytest_alloc_thread() 99 .count = 8, in TEST()
|
/trusty/user/app/sample/hwrng-unittest/ |
D | main.c | 40 size_t count; in hwrng_show_data() local 43 for (count = 0; count < len; count += 16) { in hwrng_show_data() 44 for (i = 0; i < MIN(len - count, 16); i++) { in hwrng_show_data()
|
/trusty/hardware/nxp/app/hwcrypto/ |
D | main.c | 39 size_t count; in _hexdump8() local 42 for (count = 0; count < len; count += 16) { in _hexdump8() 44 for (i = 0; i < MIN(len - count, 16); i++) { in _hexdump8()
|
D | hwrng_srv.c | 66 size_t count; in _hexdump8() local 69 for (count = 0; count < len; count += 16) { in _hexdump8() 71 for (i = 0; i < MIN(len - count, 16); i++) { in _hexdump8()
|
/trusty/user/app/sample/hwcrypto/ |
D | hwrng_srv.c | 63 size_t count; in _hexdump8() local 66 for (count = 0; count < len; count += 16) { in _hexdump8() 68 for (i = 0; i < MIN(len - count, 16); i++) { in _hexdump8()
|
/trusty/user/app/storage/test/common/ |
D | error_reporting_mock.c | 43 void expect_errors(enum trusty_storage_error_type type, int count) { in expect_errors() argument 47 for (i = 0; i < count; i++) { in expect_errors()
|
D | error_reporting_mock.h | 34 void expect_errors(enum trusty_storage_error_type type, int count);
|
/trusty/kernel/lib/arm_ffa/ |
D | arm_ffa.c | 534 index >= frag_info->start_index + frag_info->count) { in arm_ffa_mem_address_range_get() 628 frag_info->count = in arm_ffa_mem_retrieve_start() 630 LTRACEF("Descriptors in fragment %u\n", frag_info->count); in arm_ffa_mem_retrieve_start() 632 if (frag_info->count * sizeof(struct ffa_cons_mrd) + header_size != in arm_ffa_mem_retrieve_start() 728 frag_info->start_index += frag_info->count; in arm_ffa_mem_retrieve_next_frag() 730 frag_info->count = fragment_len / sizeof(struct ffa_cons_mrd); in arm_ffa_mem_retrieve_next_frag() 731 if (frag_info->count * sizeof(struct ffa_cons_mrd) != fragment_len) { in arm_ffa_mem_retrieve_next_frag() 784 size_t count; in arm_ffa_setup() local 861 count = pmm_alloc_contiguous(arch_page_count, buf_size_log2, &tx_paddr, in arm_ffa_setup() 863 if (count != arch_page_count) { in arm_ffa_setup() [all …]
|
/trusty/kernel/lib/ktipc/include/lib/ktipc/ |
D | ktipc.h | 217 db7, ds7, count, rest...) \ argument 236 .num_iov = count, \ 304 db7, ds7, count, rest...) \ argument 321 ktipc_recv_iov((chan), (min_sz), iov, count, (handles), \
|
/trusty/user/base/lib/line-coverage/ |
D | shm.c | 63 uint64_t count = control->write_buffer_start_count + 1; in dump_shm() local 64 WRITE_ONCE(control->write_buffer_start_count, count); in dump_shm() 67 WRITE_ONCE(control->write_buffer_complete_count, count); in dump_shm()
|
/trusty/kernel/lib/arm_ffa/include/lib/arm_ffa/ |
D | arm_ffa.h | 60 uint32_t count; member
|
/trusty/user/base/lib/apploader_package/include/apploader/ |
D | cbor.h | 259 void resize(size_t count) { in resize() argument 262 uint8_t[count]); in resize() 263 mSize = mArr ? /* success */ count : /* fail */ 0; in resize() 264 } else if (count <= mSize) { in resize() 265 mSize = count; in resize() 274 assert(count <= mSize); in resize() 275 mSize = count; in resize() 467 void countBytes(size_t count) { in countBytes() argument 468 mOverflowed |= __builtin_add_overflow(count, mBytes, &mBytes); in countBytes()
|