Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 109) sorted by relevance

12345

/trusty/user/app/storage/
Dblock_cache.c114 assert(io_op == BLOCK_CACHE_IO_OP_READ || io_op == BLOCK_CACHE_IO_OP_WRITE); in block_cache_queue_io_op()
115 assert(entry->io_op == BLOCK_CACHE_IO_OP_NONE); in block_cache_queue_io_op()
116 assert(entry->dev); in block_cache_queue_io_op()
117 assert(!list_in_list(&entry->io_op_node)); in block_cache_queue_io_op()
128 assert(!block_cache_entry_data_is_dirty(entry)); in block_cache_queue_read()
155 assert(dev->wait_for_io); in block_cache_complete_io()
182 assert(entry->dev == dev); in block_cache_pop_io_op()
183 assert(entry->io_op == io_op); in block_cache_pop_io_op()
188 assert(false); /* Out of order completion not expected */ in block_cache_pop_io_op()
190 assert(false); /* No matching entry found */ in block_cache_pop_io_op()
[all …]
Dblock_tree.c91 assert(node_ro); in block_tree_node_is_leaf()
92 assert(node_ro->is_leaf <= 1); in block_tree_node_is_leaf()
114 assert(payload_size < block_size); in block_tree_set_sizes()
115 assert(key_size); in block_tree_set_sizes()
116 assert(key_size <= sizeof(data_block_t)); in block_tree_set_sizes()
117 assert(child_size >= key_size); in block_tree_set_sizes()
118 assert(child_size <= sizeof(struct block_mac)); in block_tree_set_sizes()
119 assert(data_size); in block_tree_set_sizes()
120 assert(data_size <= sizeof(struct block_mac)); in block_tree_set_sizes()
130 assert(tree->key_count[0] >= 2); in block_tree_set_sizes()
[all …]
Dblock_allocator.c71 assert(q->head < countof(q->entry)); in block_allocator_queue_empty()
72 assert(q->tail < countof(q->entry)); in block_allocator_queue_empty()
100 assert(q->head < countof(q->entry)); in block_allocator_queue_find()
101 assert(q->tail < countof(q->entry)); in block_allocator_queue_find()
122 assert(block_allocator_queue_empty(q)); in block_allocator_queue_add_removed()
147 assert(index < countof(q->entry)); in block_allocator_queue_add()
148 assert(q->entry[index].tmp == is_tmp); in block_allocator_queue_add()
149 assert(q->entry[index].free != is_free); in block_allocator_queue_add()
162 assert(q->head < countof(q->entry)); in block_allocator_queue_add()
163 assert(q->tail < countof(q->entry)); in block_allocator_queue_add()
[all …]
Dtransaction.c88 assert(block_set_find_next_block(tr, new_set, 1, true) == 0); in transaction_merge_free_sets()
95 assert(!block_mac_valid(tr, &set_i->block_tree.root) || in transaction_merge_free_sets()
114 assert(!block_range_overlap(delete_range, add_range)); in transaction_merge_free_sets()
116 assert(delete_range.start >= next_block); in transaction_merge_free_sets()
123 assert(add_range.start >= next_block); in transaction_merge_free_sets()
130 assert(block_range_empty(delete_range)); in transaction_merge_free_sets()
131 assert(block_range_empty(add_range)); in transaction_merge_free_sets()
181 assert(list_in_list(&tr->allocated.node)); in transaction_rebuild_free_set()
247 assert(block); in transaction_block_need_copy()
248 assert(!block_set_block_in_set(tr, &tr->tmp_allocated, block)); in transaction_block_need_copy()
[all …]
Dblock_set.c48 assert(!range->end == !range->start); in block_range_init_from_path()
62 assert(!block_range_empty(add_range)); in block_range_extend()
63 assert(!block_range_overlap(*range, add_range)); in block_range_extend()
93 assert(block_range_is_sub_range(*range, remove_range)); in block_range_shrink()
95 assert(!block_range_empty(*range)); in block_range_shrink()
98 assert(!block_range_empty(*range)); in block_range_shrink()
272 assert(!block_range_empty(range) || !range.start); in block_set_find_next_block()
280 assert(!block_range_empty(range)); in block_set_find_next_block()
388 assert(range_a.start >= range_b.start); in block_set_overlap()
398 assert(range_b.start > range_a.start); in block_set_overlap()
[all …]
Dblock_range.h40 assert(range.end >= range.start); in block_range_empty()
54 assert(range.end >= range.start); in block_in_range()
97 assert(!block_range_empty(sub_range)); in block_range_is_sub_range()
111 assert(a.end >= a.start); in block_range_eq()
112 assert(b.end >= b.start); in block_range_eq()
Dblock_mac.c26 assert(size); in block_mac_block_size()
27 assert(size <= sizeof(data_block_t)); in block_mac_block_size()
33 assert(size); in block_mac_mac_size()
34 assert(size <= sizeof(struct mac)); in block_mac_mac_size()
53 assert(tr); in block_mac_to_block()
Darray.h29 assert(src <= countof((array))); \
30 assert(dest <= countof((array))); \
59 assert(src > dest); \
60 assert(src <= countof((array))); \
Dfile.c101 assert(file_entry_ro); in file_block_map_init()
137 assert(file_entry_ro); in file_print()
210 assert(block_mac_valid(tr, &file->block_mac)); in file_block_map_update()
214 assert(tr->failed); in file_block_map_update()
218 assert(file_entry_ro); in file_block_map_update()
228 assert(found); in file_block_map_update()
243 assert((block_map && block_map->tree.root_block_changed) || in file_block_map_update()
245 assert(old_block == file_block); in file_block_map_update()
251 assert(new_block); in file_block_map_update()
276 assert(!file_tree_lookup(NULL, tr, &tr->files_added, &tree_path, in file_block_map_update()
[all …]
Dcrypt.c66 assert(!cipher_ctx); in crypt_init()
67 assert(!hmac_ctx); in crypt_init()
70 assert(cipher_ctx); in crypt_init()
73 assert(hmac_ctx); in crypt_init()
121 assert(cipher_ctx); in crypt()
175 assert(false); in str_hash()
200 assert(hmac_ctx); in calculate_mac()
Dsuper.c212 assert(block_size >= sizeof(struct super_block)); in update_super_block_internal()
213 assert(tr->fs->initial_super_block_tr == NULL || in update_super_block_internal()
227 assert(free); in update_super_block_internal()
228 assert(files); in update_super_block_internal()
240 assert(!tr->repaired || !tr->fs->alternate_data); in update_super_block_internal()
354 assert(fs->writable); in write_current_super_block()
383 assert(reinitialize || !fs->initial_super_block_tr->failed); in write_current_super_block()
415 assert(!block_mac_valid(tr, &fs->files.root)); in write_current_super_block()
449 assert(fs->initial_super_block_tr); in fs_mark_scan_required()
601 assert(!restore_checkpoint || checkpoint); in fs_set_roots()
[all …]
/trusty/user/app/storage/test/block_host_test/
Dblock_test.c45 assert(!clock_id); in gettime()
46 assert(!flags); in gettime()
49 assert(!ret); in gettime()
159 assert(ret == 0); in block_test_clear_reinit_etc()
184 assert(dev->block_size <= BLOCK_SIZE); in block_test_start_read()
185 assert(block < countof(blocks)); in block_test_start_read()
195 assert(block < countof(blocks)); in block_test_start_write()
196 assert(data_size <= sizeof(blocks[block].data)); in block_test_start_write()
220 assert(block < countof(blocks)); in block_set_used_by_etc()
227 assert(blocks[block].checkpoint_used_by_str == used_by_str); in block_set_used_by_etc()
[all …]
/trusty/user/base/lib/libstdc++-trusty/include/
DUniquePtr.h140 static void assert(bool b) {
155 assert(*p == 123);
169 assert(cCount == 1);
171 assert(cCount == 0);
176 assert(cCount == 1);
179 assert(cCount == 1);
184 assert(cCount == 1);
186 assert(cCount == 1);
188 assert(cCount == 0);
197 assert(cCount == 4);
[all …]
/trusty/kernel/lib/shared/device_tree/client/
Ddevice_tree.cpp53 assert(tree != nullptr); in device_tree_get_service()
101 assert(self != nullptr); in device_tree_idevice_tree_get_compatible_nodes_from_list()
125 assert(iter != nullptr); in device_tree_inode_iter_get_next_node()
126 assert(node != nullptr); in device_tree_inode_iter_get_next_node()
147 assert(node != nullptr); in device_tree_inode_get_name()
148 assert(name != nullptr); in device_tree_inode_get_name()
165 assert(parent != nullptr); in device_tree_inode_get_subnode()
166 assert(subnode != nullptr); in device_tree_inode_get_subnode()
189 assert(parent != nullptr); in device_tree_inode_get_subnodes()
190 assert(iter != nullptr); in device_tree_inode_get_subnodes()
[all …]
/trusty/user/base/lib/hwbcc/rust/src/
Dtest.rs18 use ::test::{assert, assert_ne};
71 assert!(artifacts.len() > 0); in test_get_dice_artifacts()
77 assert!(unsafe { in test_get_dice_artifacts()
103 assert!(get_dice_artifacts(0, dice_artifacts_buf).is_ok()); in test_ns_deprivilege()
112 assert!(bcc.len() > 0); in test_get_bcc_test_mode()
117 assert!(unsafe { in test_get_bcc_test_mode()
134 assert!(bcc.len() > 0); in test_get_bcc_test_mode()
139 assert!(unsafe { in test_get_bcc_test_mode()
173 assert!(bcc.len() > 0); in test_get_bcc()
178 assert!(unsafe { in test_get_bcc()
[all …]
/trusty/user/app/sample/spi/swspi-srv/driver/
Dswspi.c43 assert(dev); in spi_req_set_clk()
44 assert(clk_hz); in spi_req_set_clk()
52 assert(dev->bus->owner == NULL); in spi_req_exec_cs_assert()
58 assert(spi_dev_seq_active(dev)); in spi_req_cs_assert()
59 assert(dev->curr_cmd < dev->num_cmds); in spi_req_cs_assert()
67 assert(dev->bus->owner == dev); in spi_req_exec_cs_deassert()
73 assert(spi_dev_seq_active(dev)); in spi_req_cs_deassert()
74 assert(dev->curr_cmd < dev->num_cmds); in spi_req_cs_deassert()
142 assert(spi_dev_seq_active(dev)); in spi_req_xfer()
143 assert(dev->curr_cmd < dev->num_cmds); in spi_req_xfer()
[all …]
/trusty/kernel/include/shared/lk/
Dreflist.h64 assert(obj_has_ref(obj)); in obj_has_only_ref()
65 assert(list_in_list(&ref->ref_node)); in obj_has_only_ref()
69 assert(head == &ref->ref_node); in obj_has_only_ref()
83 assert(!list_in_list(&ref->ref_node)); in obj_add_ref_allow_unreferenced_obj()
89 assert(obj_has_ref(obj)); in obj_add_ref()
98 assert(list_in_list(&ref->ref_node)); in obj_del_ref()
111 assert(!list_in_list(&dst->ref_node)); in obj_ref_transfer()
112 assert(list_in_list(&src->ref_node)); in obj_ref_transfer()
/trusty/user/app/storage/test/common/
Derror_reporting_mock.c38 assert(report); in mock_error_report_clear()
49 assert(err_report && err_report->type == type); in expect_errors()
52 assert(!mock_error_report_next()); in expect_errors()
59 assert(report); in do_error_report()
/trusty/user/base/experimental/lib/tidl/
Dipc_ql_tipc.cpp97 assert(tidl_channels[i].handle == INVALID_IPC_HANDLE); in binder_check_channels()
142 assert(dev); in tidl_init()
144 assert(tidl_dev == dev); in tidl_init()
163 assert(chan); in tidl_chan_close()
182 assert(chan->handle == INVALID_IPC_HANDLE); in connect()
201 assert(num_handles == 0); in send_iovs()
203 assert(chan); in send_iovs()
229 assert(num_handles == 0); in recv_iovs()
231 assert(chan); in recv_iovs()
282 assert(num_handles == 0); in recv()
[all …]
/trusty/user/app/sample/hwcrypto/
Dhwkey_srv.c82 assert(key_slot); in is_opaque_handle()
87 assert(node); in delete_opaque_handle()
126 assert(slot); in is_allowed_to_read_opaque_key()
128 assert(handle); in is_allowed_to_read_opaque_key()
213 assert(kbuf); in hwkey_get_derived_key()
214 assert(klen); in hwkey_get_derived_key()
215 assert(data); in hwkey_get_derived_key()
216 assert(data->encrypted_key_size_ptr); in hwkey_get_derived_key()
292 assert(out_len >= 0 && in hwkey_get_derived_key()
301 assert(out_len == 0); in hwkey_get_derived_key()
[all …]
/trusty/user/base/lib/hwkey/rust/src/
Dtest.rs18 use ::test::{assert, assert_eq, assert_ne};
89 assert!(keys_are_sufficiently_distinct(buf, buf2)); in test_hwkey_derive_repeatable_versioned()
107 assert!(keys_are_sufficiently_distinct(buf, buf2)) in test_hwkey_derive_repeatable_versioned()
141 assert!(keys_are_sufficiently_distinct(buf1, buf2)); in test_hwkey_derive_different_default()
179 assert!(keys_are_sufficiently_distinct(buf1, buf2)); in test_hwkey_derive_different_specified()
202 assert!(keys_are_sufficiently_distinct(buf1, buf2)); in test_hwkey_derive_different_specified()
219 assert!(keys_are_sufficiently_distinct(buf1, buf_shared)); in test_hwkey_derive_different_specified()
220 assert!(keys_are_sufficiently_distinct(buf2, buf_shared)); in test_hwkey_derive_different_specified()
238 assert!(keys_are_sufficiently_distinct(buf1, buf_shared2)); in test_hwkey_derive_different_specified()
239 assert!(keys_are_sufficiently_distinct(buf2, buf_shared2)); in test_hwkey_derive_different_specified()
[all …]
/trusty/user/base/lib/hwbcc/common/
Dswbcc.c147 assert(FRS); in swbcc_glob_init()
322 assert(s); in swbcc_sign_key()
323 assert(key); in swbcc_sign_key()
324 assert(aad); in swbcc_sign_key()
325 assert(cose_sign1); in swbcc_sign_key()
326 assert(cose_sign1_size); in swbcc_sign_key()
327 assert(cose_sign1_buf_size >= MAC_SIGN1_SIZE); in swbcc_sign_key()
419 assert(s); in swbcc_get_bcc()
420 assert(bcc); in swbcc_get_bcc()
421 assert(bcc_size); in swbcc_get_bcc()
[all …]
/trusty/user/base/lib/hwwsk/rust/src/
Dtest.rs21 use ::test::assert;
43 assert!(key_res.is_ok()); in test_hwwsk_generate_key()
56 assert!(key_res.is_ok()); in test_hwwsk_import_key()
/trusty/user/base/lib/spi/common/
Dutils.c62 assert(align && IS_ALIGNED(buf, align)); in mb_init()
102 assert(IS_ALIGNED(mb->pos, mb->align)); in mb_advance_pos()
103 assert(mb->curr_size >= mb->pos); in mb_advance_pos()
113 assert(IS_ALIGNED(mb->pos, mb->align)); in mb_advance_pos()
/trusty/user/base/lib/hwbcc/client/
Dhwbcc.c36 assert(buf); in recv_resp()
37 assert(out_size); in recv_resp()
112 assert(data); in sign_data()
114 assert(aad); in sign_data()
116 assert(cose_sign1); in sign_data()
117 assert(cose_sign1_size); in sign_data()
196 assert(bcc); in get_bcc()
197 assert(bcc_size); in get_bcc()
270 assert(dice_artifacts); in hwbcc_get_dice_artifacts()
271 assert(dice_artifacts_size); in hwbcc_get_dice_artifacts()

12345