Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 31) sorted by relevance

12

/trusty/kernel/app/memorylatencybench/
Dmain.c98 for (size_t idx = 0; idx < nb_blocks - 1; ++idx) { in BENCH_SETUP() local
99 memlatency_state_start[idx].next = &memlatency_state_start[idx + 1]; in BENCH_SETUP()
123 for (size_t idx = 0; idx < nb_blocks; idx++) { variable
146 for (size_t idx = 0; idx < nb_blocks; idx++) { variable
149 (block + idx)->pad[1] = idx + sz;
/trusty/user/app/confirmationui/src/
Dtrusty_confirmation_ui.cpp198 ResponseCode TrustyConfirmationUI::renderAndSwap(uint32_t idx) { in renderAndSwap() argument
208 switch (fb_info_[idx].rotation) { in renderAndSwap()
215 x = (fb_info_[idx].width - temp) - 1; in renderAndSwap()
219 x = (fb_info_[idx].width - x) - 1; in renderAndSwap()
220 y = (fb_info_[idx].height - y) - 1; in renderAndSwap()
226 y = (fb_info_[idx].height - temp) - 1; in renderAndSwap()
234 y * fb_info_[idx].line_stride + x * fb_info_[idx].pixel_stride; in renderAndSwap()
235 TLOGD("pos: %zu, bufferSize: %" PRIu32 "\n", pos, fb_info_[idx].size); in renderAndSwap()
236 if (pos >= fb_info_[idx].size) { in renderAndSwap()
242 *reinterpret_cast<teeui::Color*>(fb_info_[idx].buffer + pos); in renderAndSwap()
[all …]
Dtrusty_confirmation_ui.h82 teeui::Error updateTranslations(uint32_t idx);
83 teeui::ResponseCode renderAndSwap(uint32_t idx);
/trusty/user/app/gatekeeper/
Dtrusty_gatekeeper.cpp362 int idx = 0; in WriteMemoryRecord() local
365 for (idx = 0; idx < num_mem_records_; idx++) { in WriteMemoryRecord()
366 if (mem_records_[idx].uid == uid) { in WriteMemoryRecord()
370 if (mem_records_[idx].failure_record.last_checked_timestamp <= min_timestamp) { in WriteMemoryRecord()
371 min_timestamp = mem_records_[idx].failure_record.last_checked_timestamp; in WriteMemoryRecord()
372 min_idx = idx; in WriteMemoryRecord()
376 if (idx >= MAX_FAILURE_RECORDS) { in WriteMemoryRecord()
378 idx = min_idx; in WriteMemoryRecord()
379 } else if (idx == num_mem_records_) { in WriteMemoryRecord()
383 mem_records_[idx].uid = uid; in WriteMemoryRecord()
[all …]
/trusty/kernel/lib/trusty/
Ductx.c141 uint32_t idx; in _check_handle_id() local
157 idx = handle_id - ctx->handle_id_base; in _check_handle_id()
158 if (unlikely(idx >= IPC_MAX_HANDLES)) { in _check_handle_id()
163 if (!bitmap_test(ctx->inuse, idx)) { in _check_handle_id()
169 ASSERT(&ctx->htbl[idx].handle); in _check_handle_id()
171 return idx; in _check_handle_id()
174 static struct handle* remove_handle(struct uctx* ctx, int idx) { in remove_handle() argument
179 h = ctx->htbl[idx].handle; in remove_handle()
184 list_for_every_entry_safe(&ctx->htbl[idx].ref_list, ref, tmp, in remove_handle()
193 ctx->htbl[idx].handle = NULL; in remove_handle()
[all …]
Dvqueue.c143 __builtin_sub_overflow(vq->vring.avail->idx, vq->last_avail_idx, in _vqueue_get_avail_buf_locked()
148 vq->last_avail_idx, vq->vring.avail->idx); in _vqueue_get_avail_buf_locked()
151 if (vq->last_avail_idx == vq->vring.avail->idx) { in _vqueue_get_avail_buf_locked()
155 if (vq->last_avail_idx == vq->vring.avail->idx) { in _vqueue_get_avail_buf_locked()
457 used = &vq->vring.used->ring[vq->vring.used->idx % vq->vring.num]; in _vqueue_add_buf_locked()
461 __builtin_add_overflow(vq->vring.used->idx, 1, &vq->vring.used->idx); in _vqueue_add_buf_locked()
/trusty/user/base/lib/sancov/
Dsancov.c39 size_t idx; member
127 ctx->idx = resp.register_args.idx; in init()
187 static void update_record(struct sancov_ctx* ctx, size_t idx, uintptr_t pc) { in update_record() argument
188 assert(idx < ctx->num_counters); in update_record()
193 if (ctx->counters[idx] < (counter_t)(-1)) { in update_record()
194 ctx->counters[idx]++; in update_record()
196 if (!ctx->pcs[idx]) { in update_record()
197 ctx->pcs[idx] = pc - getauxval(AT_BASE); in update_record()
202 int* app_mailbox = (int*)(ctx->mailbox.base) + ctx->idx; in get_event()
244 size_t idx = *guard - 1; in __sanitizer_cov_trace_pc_guard() local
[all …]
/trusty/user/app/sample/app-mgmt-test/client/
Dmain.c142 static void send_cmd(AppMgrPortStart_t* state, chan_idx_t idx, uint8_t cmd) { in send_cmd() argument
143 assert(idx < CHAN_COUNT); in send_cmd()
148 chan_send_cmd(state->chans[idx], cmd); in send_cmd()
155 chan_idx_t idx) { in establish_unhandled_channel() argument
160 assert(idx < CHAN_COUNT); in establish_unhandled_channel()
172 state->chans[idx] = chan; in establish_unhandled_channel()
178 static void close_channel(AppMgrPortStart_t* state, chan_idx_t idx) { in close_channel() argument
179 assert(idx < CHAN_COUNT); in close_channel()
184 close(state->chans[idx]); in close_channel()
185 state->chans[idx] = INVALID_IPC_HANDLE; in close_channel()
[all …]
/trusty/kernel/app/stdcalltest/
Dstdcalltest.c160 for (size_t idx = 0; idx < countof(sve_regs[cpuid]); ++idx) { in stdcalltest_clobber_sve() local
161 uint8_t val = sve_regs[cpuid][idx]; in stdcalltest_clobber_sve()
/trusty/user/app/keymint/secure_storage_manager/
Dsoftware.rs418 for (idx, c) in hex.chars().enumerate() { in hex_decode()
436 _ => return Err(format!("char {} '{}' not a hex digit", idx, c)), in hex_decode()
438 if idx % 2 == 0 { in hex_decode()
/trusty/user/base/lib/secure_fb/
Dsecure_fb.c60 static struct secure_fb_session* new_connected_session(uint32_t idx) { in new_connected_session() argument
65 if (idx >= SECURE_FB_MAX_INST) { in new_connected_session()
66 TLOGE("Invalid index %" PRIu32 "\n", idx); in new_connected_session()
71 idx); in new_connected_session()
85 TLOGE("Failed to connect to \"%s_%d\" (%d)\n", SECURE_FB_PORT_NAME, idx, in new_connected_session()
294 uint32_t idx) { in secure_fb_open() argument
302 s = new_connected_session(idx); in secure_fb_open()
/trusty/user/base/app/coverage/
Daggregator.c39 resp.register_args.idx = record->idx; in handle_register()
98 record->idx = ta_idx++; in on_connect()
Dclient.c35 static void broadcast_event(struct cov_shm* mailbox, size_t idx, int event) { in broadcast_event() argument
36 int* app_mailbox = (int*)(mailbox->base) + idx; in broadcast_event()
90 broadcast_event(mailbox, record->idx, COVERAGE_MAILBOX_RECORD_READY); in handle_share_record()
Dcoverage.h66 size_t idx; member
/trusty/kernel/include/shared/lk/
Dtrusty_benchmark.h462 size_t idx = 0; in set_param_metric() local
476 list_pool[idx].metric = tmp_metric; in set_param_metric()
477 list_pool[idx].name = entry->name; in set_param_metric()
478 list_pool[idx].param_idx = idx_param; in set_param_metric()
479 list_pool[idx].nb_params = nb_params; in set_param_metric()
480 list_pool[idx].bench_result = entry->bench_result; in set_param_metric()
481 list_pool[idx].formatted_value_cb = entry->formatted_value_cb; in set_param_metric()
482 list_pool[idx].param_name_cb = entry->param_name_cb; in set_param_metric()
483 list_add_tail(parameterized_list, &(list_pool[idx].node)); in set_param_metric()
484 ++idx; in set_param_metric()
Dtrusty_bench_print_tables.h309 enum bench_aggregate_idx idx, in trusty_bench_print_stat() argument
321 } else if (idx == BENCH_AGGREGATE_COLD) { in trusty_bench_print_stat()
326 entry->metric.aggregates[idx], in trusty_bench_print_stat()
/trusty/host/common/scripts/metrics_atoms_protoc_plugin/
Dmetrics_atoms_protoc_plugin.py169 idx: int
270 idx
271 for idx, ff in enumerate(msg_dict[f.type_name].field)
302 idx=idx - 1)
303 for idx, ff in enumerate(msg_dict[field.type_name].field)
/trusty/user/base/lib/secure_fb/include/lib/secure_fb/
Dsecure_fb.h69 uint32_t idx);
/trusty/user/base/lib/line-coverage/
Dshm.c87 int* app_mailbox = (int*)(ctx.mailbox.base) + ctx.idx; in setup_shm()
173 ctx.idx = resp.register_args.idx; in setup_mailbox()
/trusty/user/app/sample/stats-test/consumer/
Dconsumer.cpp245 int idx = 0; in reportVendorAtom() local
248 TLOGD("vendorAtom.values[%d].getTag = %d.\n", idx, tag); in reportVendorAtom()
251 content->vendor_atom_values[idx]; in reportVendorAtom()
272 idx, tag); in reportVendorAtom()
276 if (++idx >= SHM_CONTENT_VENDOR_ATOM_VALUES) { in reportVendorAtom()
/trusty/user/base/lib/line-coverage/include/lib/line-coverage/
Dshm.h44 size_t idx; member
/trusty/user/app/sample/spi/swspi-test/
Dswspi-test.c71 static int spi_dev_init_once(int idx) { in spi_dev_init_once() argument
75 test_dev = &devs[idx]; in spi_dev_init_once()
159 int idx = *((const int*)GetParam()); in TEST_F_SETUP() local
160 assert(0 <= idx && idx < SPI_DEV_COUNT); in TEST_F_SETUP()
162 rc = spi_dev_init_once(idx); in TEST_F_SETUP()
165 _state->test_dev = &devs[idx]; in TEST_F_SETUP()
/trusty/user/base/interface/line-coverage/include/interface/line-coverage/
Daggregator.h81 uint32_t idx; member
/trusty/user/base/interface/coverage/include/interface/coverage/
Daggregator.h75 uint32_t idx; member
/trusty/user/base/lib/sancov/test/srv/
Dmain.c44 #define NOP(idx) \ argument
45 __attribute__((noinline)) static void nop##idx(void) { return; }

12