Home
last modified time | relevance | path

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

12

/trusty/user/app/storage/
Dblock_cache.c57 const struct block_cache_entry* entry) { in block_cache_entry_data_is_valid() argument
58 return entry->state == BLOCK_ENTRY_DATA_CLEAN_DECRYPTED || in block_cache_entry_data_is_valid()
59 entry->state == BLOCK_ENTRY_DATA_CLEAN_ENCRYPTED || in block_cache_entry_data_is_valid()
60 entry->state == BLOCK_ENTRY_DATA_DIRTY_DECRYPTED || in block_cache_entry_data_is_valid()
61 entry->state == BLOCK_ENTRY_DATA_DIRTY_ENCRYPTED; in block_cache_entry_data_is_valid()
65 const struct block_cache_entry* entry) { in block_cache_entry_data_is_dirty() argument
66 return entry->state == BLOCK_ENTRY_DATA_DIRTY_DECRYPTED || in block_cache_entry_data_is_dirty()
67 entry->state == BLOCK_ENTRY_DATA_DIRTY_ENCRYPTED; in block_cache_entry_data_is_dirty()
71 const struct block_cache_entry* entry) { in block_cache_entry_data_is_encrypted() argument
72 return entry->state == BLOCK_ENTRY_DATA_CLEAN_ENCRYPTED || in block_cache_entry_data_is_encrypted()
[all …]
Dblock_allocator.c58 struct block_allocator_queue_entry entry[BLOCK_ALLOCATOR_QUEUE_LEN]; member
71 assert(q->head < countof(q->entry)); in block_allocator_queue_empty()
72 assert(q->tail < countof(q->entry)); in block_allocator_queue_empty()
85 return (q->tail + countof(q->entry) - q->head) % countof(q->entry); in block_allocator_queue_count()
100 assert(q->head < countof(q->entry)); in block_allocator_queue_find()
101 assert(q->tail < countof(q->entry)); in block_allocator_queue_find()
103 for (i = q->head; i != q->tail; i = (i + 1) % countof(q->entry)) { in block_allocator_queue_find()
104 if (q->entry[i].removed) { in block_allocator_queue_find()
107 if (block == q->entry[i].block) { in block_allocator_queue_find()
123 unsigned int new_tail = (q->tail + 1) % countof(q->entry); in block_allocator_queue_add_removed()
[all …]
Dblock_tree.c1324 assert(path->count < countof(path->entry)); in block_tree_walk()
1335 path->entry[path->count].block_mac = *block_mac; 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()
1344 assert(!path->entry[path->count - 1].prev_key || prev_key); in block_tree_walk()
1345 assert(!path->entry[path->count - 1].prev_key || in block_tree_walk()
1346 prev_key >= path->entry[path->count - 1].prev_key); in block_tree_walk()
1348 path->entry[path->count].index = child_index; in block_tree_walk()
1349 path->entry[path->count].prev_key = prev_key; in block_tree_walk()
[all …]
Dblock_tree.h120 struct block_tree_path_entry entry[BLOCK_TREE_MAX_DEPTH]; member
141 return (path->count > 0) ? path->entry[path->count - 1].next_key : 0; in block_tree_path_get_key()
Dfile.c327 file->block_mac = tree_path.entry[tree_path.count].block_mac; in file_block_map_update()
565 const struct file_entry* entry = containerof(data, struct file_entry, info); in file_info_put() local
566 assert(entry->magic == FILE_ENTRY_MAGIC); in file_info_put()
567 block_put(entry, data_ref); in file_info_put()
1671 for (i = path.count - 1; i >= 0 && path.entry[i].index == 0; i--) { in file_rebuild_free_set()
1672 block = block_mac_to_block(tr, &path.entry[i].block_mac); in file_rebuild_free_set()
1718 for (i = path.count - 1; i >= 0 && path.entry[i].index == 0; i--) { in files_rebuild_free_set()
1719 block = block_mac_to_block(tr, &path.entry[i].block_mac); in files_rebuild_free_set()
/trusty/kernel/include/shared/lk/
Dtrusty_bench_print_tables.h136 struct bench_metric_list_node* entry; in trusty_bench_print_header() local
143 list_for_every_entry(metric_list, entry, struct bench_metric_list_node, in trusty_bench_print_header()
146 prev_metric = entry->name; in trusty_bench_print_header()
149 if (strcmp(prev_metric, entry->name) != 0) { in trusty_bench_print_header()
153 prev_metric = entry->name; in trusty_bench_print_header()
156 sz += entry->col_sz + 1; in trusty_bench_print_header()
171 struct bench_metric_list_node* entry; in trusty_bench_compute_widths() local
174 list_for_every_entry(metric_list, entry, struct bench_metric_list_node, in trusty_bench_compute_widths()
183 if (entry->param_name_cb) { in trusty_bench_compute_widths()
184 entry->param_name_cb(buf, sizeof(buf), in trusty_bench_compute_widths()
[all …]
Dtrusty_bench_json_print.h56 struct bench_metric_list_node* entry; in trusty_bench_print_json_metric_list() local
60 list_for_every_entry(metric_list, entry, struct bench_metric_list_node, in trusty_bench_print_json_metric_list()
67 trusty_unittest_printf("\"metric_name\": \"%s\", ", entry->name); in trusty_bench_print_json_metric_list()
70 entry->param_idx % entry->nb_params); in trusty_bench_print_json_metric_list()
71 if (entry->param_name_cb) { in trusty_bench_print_json_metric_list()
72 entry->param_name_cb(buf, sizeof(buf), in trusty_bench_print_json_metric_list()
73 entry->param_idx % entry->nb_params); in trusty_bench_print_json_metric_list()
77 buf, sizeof(buf), entry->param_idx % entry->nb_params); in trusty_bench_print_json_metric_list()
83 buf, sizeof(buf), entry->metric.aggregates[BENCH_AGGREGATE_MIN], in trusty_bench_print_json_metric_list()
84 entry->name); in trusty_bench_print_json_metric_list()
[all …]
Dtrusty_benchmark.h287 struct bench_metric_list_node* entry; in trusty_bench_run_metrics() local
289 list_for_every_entry(metric_list, entry, struct bench_metric_list_node, in trusty_bench_run_metrics()
291 if (param_idx == entry->param_idx) { in trusty_bench_run_metrics()
293 entry->metric.cold = entry->bench_result(); in trusty_bench_run_metrics()
295 trusty_bench_update_metric(&entry->metric, in trusty_bench_run_metrics()
296 entry->bench_result()); in trusty_bench_run_metrics()
311 struct bench_metric_list_node* entry; in trusty_bench_reset_metrics() local
313 list_for_every_entry(metric_list, entry, struct bench_metric_list_node, in trusty_bench_reset_metrics()
315 if (param_idx == entry->param_idx) { in trusty_bench_reset_metrics()
316 trusty_bench_update_metric(&entry->metric, entry->bench_result()); in trusty_bench_reset_metrics()
[all …]
Dtrusty_unittest.h491 static inline bool test_is_disabled(struct test_list_node* entry) { in test_is_disabled() argument
492 return has_disabled_prefix(entry->suite) || in test_is_disabled()
493 has_disabled_prefix(entry->name); in test_is_disabled()
508 struct test_list_node* entry; in run_test_suite() local
511 list_for_every_entry(&_test_list, entry, struct test_list_node, node) { in run_test_suite()
512 if ((!suite || !strcmp(suite, entry->suite)) && in run_test_suite()
513 (entry->needs_param == needs_param)) { in run_test_suite()
515 if (test_is_disabled(entry)) { in run_test_suite()
516 trusty_unittest_print_status_name(entry->suite, entry->name, in run_test_suite()
520 entry->func(); in run_test_suite()
[all …]
/trusty/kernel/lib/app_manifest/
Dapp_manifest.c80 uint32_t entry = 0; in app_manifest_read_entry() local
81 app_manifest_read_ptr(iterator, &entry, sizeof(entry)); in app_manifest_read_entry()
82 return entry; in app_manifest_read_entry()
125 struct app_manifest_config_entry* entry, in app_manifest_iterator_next() argument
127 assert(entry); in app_manifest_iterator_next()
153 entry->value.min_stack_size = app_manifest_read_entry(iterator); in app_manifest_iterator_next()
161 entry->value.min_shadow_stack_size = app_manifest_read_entry(iterator); in app_manifest_iterator_next()
170 entry->value.min_heap_size = app_manifest_read_entry(iterator); in app_manifest_iterator_next()
179 entry->value.mem_map.id = app_manifest_read_entry(iterator); in app_manifest_iterator_next()
186 entry->value.mem_map.offset = app_manifest_read_entry(iterator); in app_manifest_iterator_next()
[all …]
/trusty/user/base/app/apploader/
Dapp_manifest_parser.cpp47 struct app_manifest_config_entry entry; in apploader_parse_manifest() local
55 while (app_manifest_iterator_next(&iter, &entry, &out_error)) { in apploader_parse_manifest()
60 switch (entry.key) { in apploader_parse_manifest()
66 out_ext.uuid = entry.value.uuid; in apploader_parse_manifest()
74 if (entry.value.mgmt_flags & in apploader_parse_manifest()
85 out_ext.version = entry.value.version; in apploader_parse_manifest()
93 out_ext.min_version = entry.value.min_version; in apploader_parse_manifest()
101 if (entry.value.apploader_flags & in apploader_parse_manifest()
/trusty/user/app/sample/hwcrypto/
Dhwkey_srv.c100 struct opaque_handle_node* entry; in hwkey_ctx_close() local
102 list_for_every_entry_safe(&opaque_handles, entry, temp, in hwkey_ctx_close()
104 if (entry->owner == ctx) { in hwkey_ctx_close()
105 delete_opaque_handle(entry); in hwkey_ctx_close()
140 struct opaque_handle_node* entry; in find_opaque_handle_for_slot() local
141 list_for_every_entry(&opaque_handles, entry, struct opaque_handle_node, in find_opaque_handle_for_slot()
143 if (entry->key_slot == slot) { in find_opaque_handle_for_slot()
144 return entry; in find_opaque_handle_for_slot()
157 struct opaque_handle_node* entry = find_opaque_handle_for_slot(slot); in insert_handle_node() local
159 if (!entry) { in insert_handle_node()
[all …]
/trusty/user/app/keymaster/
Dtrusty_keymaster_context.cpp184 for (auto& entry : key_description) { in SetAuthorizations() local
185 switch (entry.tag) { in SetAuthorizations()
269 hw_enforced->push_back(entry); in SetAuthorizations()
275 hw_enforced->push_back(entry); in SetAuthorizations()
282 keymaster_key_param_t elem = entry; in SetAuthorizations()
285 elem.enumerated = entry.enumerated & HW_AUTH_PASSWORD; in SetAuthorizations()
289 elem.enumerated |= entry.enumerated & HW_AUTH_FINGERPRINT; in SetAuthorizations()
295 LOG_D("Found usage count limit tag: %u", entry.integer); in SetAuthorizations()
296 if (entry.integer == 1 && has_secure_deletion) { in SetAuthorizations()
298 hw_enforced->push_back(entry); in SetAuthorizations()
[all …]
/trusty/kernel/platform/generic-x86_64/rust/src/
Dlib.rs108 let entry = mcfg_entries[0]; in platform_acpi_init_func() localVariable
110 let entry_size = (1 + entry.bus_number_end as usize - entry.bus_number_start as usize) << 20; in platform_acpi_init_func()
114 entry.base_address as usize in platform_acpi_init_func()
/trusty/kernel/lib/sm/arch/arm64/
Drules.mk29 $(CUR_DIR)/entry.S \
/trusty/kernel/lib/trusty/
Dtrusty_app.c521 arch_enter_uspace(trusty_thread->entry, stack_ptr, shadow_stack_base, in trusty_thread_startup()
563 vaddr_t entry, in trusty_thread_create() argument
611 trusty_thread->entry = entry; in trusty_thread_create()
656 struct manifest_port_entry* entry; in find_manifest_port_entry_locked() local
661 list_for_every_entry(&app->props.port_entry_list, entry, in find_manifest_port_entry_locked()
663 if (!strncmp(port_path, entry->path, entry->path_len)) { in find_manifest_port_entry_locked()
667 return entry; in find_manifest_port_entry_locked()
849 struct manifest_port_entry* entry; in load_app_config_options() local
998 entry = find_manifest_port_entry_locked( in load_app_config_options()
1000 if (entry) { in load_app_config_options()
[all …]
/trusty/kernel/lib/sm/arch/arm/
Drules.mk31 $(CUR_DIR)/entry.S \
/trusty/kernel/lib/memlog/
Dmemlog.c54 struct list_node entry; member
63 list_for_every_entry(&log_list, log, struct memlog, entry) { in memlog_get_by_id()
195 list_add_head(&log_list, &log->entry); in memlog_add()
216 list_delete(&log->entry); in memlog_rm()
/trusty/user/base/lib/storage/rust/src/
Dtest.rs380 for entry in session.list_files().unwrap() { in list_empty_dir()
381 let entry = entry.unwrap(); in list_empty_dir() localVariable
382 panic!("Unexpected file: {:?}", entry); in list_empty_dir()
441 for entry in session.list_files().unwrap() { in remove_all()
442 let (name, _state) = entry.unwrap(); in remove_all()
/trusty/kernel/lib/app_manifest/include/lib/app_manifest/
Dapp_manifest.h195 struct app_manifest_config_entry* entry,
/trusty/vendor/google/aosp/scripts/
Dbuild-config22 # # List of projects that this build entry applies to. Required.
35 # # List of projects that this testmap entry applies to. Required.
/trusty/user/app/secretkeeper/
Dstore.rs112 for entry in session.list_files().map_err(|e| ss_err!(e, "Failed to list files"))? { in delete_all()
113 match entry { in delete_all()
/trusty/device/arm/generic-arm64/project/hafnium/
Dtos_fw_config.dts13 the docs say that it's only used to verify that the entry
/trusty/user/base/app/cfi-test/
Dcfi-test.c129 TEST_F(cfi_crash, entry) { in TEST_F() argument
/trusty/kernel/lib/trusty/include/lib/trusty/
Dtrusty_app.h144 vaddr_t entry; member

12