Home
last modified time | relevance | path

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

12345678910>>...12

/hal_espressif-latest/components/bt/host/bluedroid/btc/core/
Dbtc_config.c33 assert(key_value != NULL); in btc_compare_address_key_value()
50 assert(key_value != NULL); in btc_key_value_to_string()
51 assert(value_str != NULL); in btc_key_value_to_string()
107 assert(config != NULL); in btc_config_has_section()
108 assert(section != NULL); in btc_config_has_section()
115 assert(config != NULL); in btc_config_exist()
116 assert(section != NULL); in btc_config_exist()
117 assert(key != NULL); in btc_config_exist()
124 assert(config != NULL); in btc_config_get_int()
125 assert(section != NULL); in btc_config_get_int()
[all …]
/hal_espressif-latest/components/bt/common/osi/
Dlist.c53 assert(list != NULL); in list_is_empty()
59 assert(list != NULL); in list_contains()
60 assert(data != NULL); in list_contains()
73 assert(list != NULL); in list_get_node()
74 assert(data != NULL); in list_get_node()
88 assert(list != NULL); in list_length()
94 assert(list != NULL); in list_front()
95 assert(!list_is_empty(list)); in list_front()
101 assert(list != NULL); in list_back()
102 assert(!list_is_empty(list)); in list_back()
[all …]
Dconfig.c76 assert(filename != NULL); in config_new()
114 assert(config != NULL); in config_has_section()
115 assert(section != NULL); in config_has_section()
122 assert(config != NULL); in config_has_key()
123 assert(section != NULL); in config_has_key()
124 assert(key != NULL); in config_has_key()
150 assert(config != NULL); in config_get_int()
151 assert(section != NULL); in config_get_int()
152 assert(key != NULL); in config_get_int()
166 assert(config != NULL); in config_get_bool()
[all …]
Dbuffer.c32 assert(size > 0); in buffer_new()
49 assert(buf != NULL); in buffer_new_ref()
55 assert(buf != NULL); in buffer_new_slice()
56 assert(slice_size > 0); in buffer_new_slice()
57 assert(slice_size <= buf->length); in buffer_new_slice()
94 assert(buf != NULL); in buffer_ptr()
100 assert(buf != NULL); in buffer_length()
Dfixed_pkt_queue.c90 assert(queue != NULL); in fixed_pkt_queue_capacity()
99 assert(queue != NULL); in fixed_pkt_queue_enqueue()
100 assert(linked_pkt != NULL); in fixed_pkt_queue_enqueue()
108 assert(ret == true); in fixed_pkt_queue_enqueue()
118 assert(queue != NULL); in fixed_pkt_queue_dequeue()
141 assert(queue != NULL); in fixed_pkt_queue_register_dequeue()
142 assert(ready_cb != NULL); in fixed_pkt_queue_register_dequeue()
149 assert(queue != NULL); in fixed_pkt_queue_unregister_dequeue()
156 assert(queue != NULL); in fixed_pkt_queue_process()
Dthread.c99 assert (wq != NULL); in osi_thead_work_queue_get()
100 assert (wq->queue != 0); in osi_thead_work_queue_get()
101 assert (item != NULL); in osi_thead_work_queue_get()
112 assert (wq != NULL); in osi_thead_work_queue_put()
113 assert (wq->queue != 0); in osi_thead_work_queue_put()
114 assert (item != NULL); in osi_thead_work_queue_put()
132 assert (wq != NULL); in osi_thead_work_queue_len()
133 assert (wq->queue != 0); in osi_thead_work_queue_len()
134 assert (wq->capacity != 0); in osi_thead_work_queue_len()
141 assert (0); in osi_thead_work_queue_len()
[all …]
Dfixed_queue.c125 assert(queue != NULL); in fixed_queue_capacity()
134 assert(queue != NULL); in fixed_queue_enqueue()
135 assert(data != NULL); in fixed_queue_enqueue()
155 assert(queue != NULL); in fixed_queue_dequeue()
213 assert(removed); in fixed_queue_try_remove_from_queue()
227 assert(queue != NULL); in fixed_queue_get_list()
236 assert(queue != NULL); in fixed_queue_register_dequeue()
237 assert(ready_cb != NULL); in fixed_queue_register_dequeue()
244 assert(queue != NULL); in fixed_queue_unregister_dequeue()
251 assert(queue != NULL); in fixed_queue_process()
Dhash_map.c57 assert(hash_fn != NULL); in hash_map_new_internal()
58 assert(num_bucket > 0); in hash_map_new_internal()
117 assert(hash_map != NULL); in hash_map_has_key()
128 assert(hash_map != NULL); in hash_map_set()
129 assert(data != NULL); in hash_map_set()
146 assert(rc == true); in hash_map_set()
165 assert(hash_map != NULL); in hash_map_erase()
187 assert(hash_map != NULL); in hash_map_get()
202 assert(hash_map != NULL); in hash_map_clear()
215 assert(hash_map != NULL); in hash_map_foreach()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/device/
Dcontroller.c168 assert(page_number == 0); in start_up()
327 assert(controller_param.readable); in get_address()
333 assert(controller_param.readable); in get_bt_version()
340 assert(controller_param.readable); in get_features_classic()
341 assert(index < MAX_FEATURES_CLASSIC_PAGE_COUNT); in get_features_classic()
347 assert(controller_param.readable); in get_last_features_classic_index()
353 assert(controller_param.readable); in get_features_ble()
354 assert(controller_param.ble_supported); in get_features_ble()
360 assert(controller_param.readable); in get_ble_supported_states()
361 assert(controller_param.ble_supported); in get_ble_supported_states()
[all …]
Dbdaddr.c37 assert(addr != NULL); in bdaddr_is_empty()
45 assert(first != NULL); in bdaddr_equals()
46 assert(second != NULL); in bdaddr_equals()
53 assert(dest != NULL); in bdaddr_copy()
54 assert(src != NULL); in bdaddr_copy()
61 assert(addr != NULL); in bdaddr_to_string()
62 assert(string != NULL); in bdaddr_to_string()
77 assert(string != NULL); in string_is_bdaddr()
100 assert(string != NULL); in string_to_bdaddr()
101 assert(addr != NULL); in string_to_bdaddr()
/hal_espressif-latest/components/esp_hw_support/include/
Dspinlock.h45 assert(lock); in spinlock_initialize()
74 assert(lock); in spinlock_acquire()
90assert(lock->count > 0 && lock->count < 0xFF); // Bad count value implies memory corruption in spinlock_acquire()
121 assert(lock->owner == core_id); in spinlock_acquire()
122assert(lock->count == 0); // This is the first time the lock is set, so count should still be 0 in spinlock_acquire()
125 assert(lock->owner == SPINLOCK_FREE || lock->owner == other_core_id); in spinlock_acquire()
126 assert(lock->count < 0xFF); // Bad count value implies memory corruption in spinlock_acquire()
156 assert(lock); in spinlock_release()
160 assert(core_id == lock->owner); // This is a lock that we didn't acquire, or the lock is corrupt in spinlock_release()
166 assert(lock->count < 0x100); // Indicates memory corruption in spinlock_release()
Desp_cpu.h250 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_set_type()
266 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_get_type()
281 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_set_priority()
296 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_get_priority()
314 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_has_handler()
338 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_set_handler()
356 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_get_handler_arg()
417 assert(intr_num >= 0 && intr_num < SOC_CPU_INTR_NUM); in esp_cpu_intr_edge_ack()
/hal_espressif-latest/components/mbedtls/port/sha/
Desp_sha.c43 assert(input != NULL && output != NULL); in esp_sha()
50 assert(ret == 0); in esp_sha()
52 assert(ret == 0); in esp_sha()
63 assert(ret == 0); in esp_sha()
65 assert(ret == 0); in esp_sha()
76 assert(ret == 0); in esp_sha()
78 assert(ret == 0); in esp_sha()
89 assert(ret == 0); in esp_sha()
91 assert(ret == 0); in esp_sha()
/hal_espressif-latest/components/bt/host/bluedroid/stack/l2cap/
Dl2cap_client.c85 assert(callbacks != NULL); in l2cap_client_new()
86 assert(callbacks->connected != NULL); in l2cap_client_new()
87 assert(callbacks->disconnected != NULL); in l2cap_client_new()
88 assert(callbacks->read_ready != NULL); in l2cap_client_new()
89 assert(callbacks->write_ready != NULL); in l2cap_client_new()
138 assert(client != NULL); in l2cap_client_connect()
139 assert(remote_bdaddr != NULL); in l2cap_client_connect()
140 assert(psm != 0); in l2cap_client_connect()
141 assert(!bdaddr_is_empty(remote_bdaddr)); in l2cap_client_connect()
142 assert(client->local_channel_id == 0); in l2cap_client_connect()
[all …]
/hal_espressif-latest/components/bt/porting/transport/driver/common/
Dhci_driver_h4.c79 assert(ib->len >= len); in hci_h4_ib_consume()
116 assert(h4sm->allocs && h4sm->allocs->cmd); in hci_h4_sm_w4_header()
127 assert(h4sm->allocs && h4sm->allocs->acl); in hci_h4_sm_w4_header()
148 assert(h4sm->allocs && h4sm->allocs->evt); in hci_h4_sm_w4_header()
170 assert(h4sm->allocs && h4sm->allocs->iso); in hci_h4_sm_w4_header()
180 assert(0); in hci_h4_sm_w4_header()
207 assert(h4sm->om); in hci_h4_sm_w4_payload()
223 assert(0); in hci_h4_sm_w4_payload()
243 assert(h4sm->frame_cb); in hci_h4_sm_completed()
245 assert(rc == 0); in hci_h4_sm_completed()
[all …]
/hal_espressif-latest/components/newlib/platform_include/
Dassert.h16 #include_next <assert.h>
25 #undef assert
34 #define assert(__e) ((void)(__e)) macro
38 #define assert(__e) (__builtin_expect(!!(__e), 1) ? (void)0 : __assert_func(NULL, 0, NULL, NULL)) macro
42 #define assert(__e) (__builtin_expect(!!(__e), 1) ? (void)0 : __assert_func (__FILENAME__, __LINE__… macro
/hal_espressif-latest/components/efuse/esp32s3/
Desp_efuse_rtc_calib.c30 assert((version >= ESP_EFUSE_ADC_CALIB_VER_MIN) && in esp_efuse_rtc_calib_get_init_code()
32 assert(atten < 4); in esp_efuse_rtc_calib_get_init_code()
33 assert(adc_unit <= ADC_UNIT_2); in esp_efuse_rtc_calib_get_init_code()
66 assert((version >= ESP_EFUSE_ADC_CALIB_VER_MIN) && in esp_efuse_rtc_calib_get_cal_voltage()
68 assert(atten < 4); in esp_efuse_rtc_calib_get_cal_voltage()
69 assert(adc_unit <= ADC_UNIT_2); in esp_efuse_rtc_calib_get_cal_voltage()
107 assert(cal_temp_size == 9); in esp_efuse_rtc_calib_get_tsens_val()
111 assert(err == ESP_OK); in esp_efuse_rtc_calib_get_tsens_val()
/hal_espressif-latest/components/bt/host/bluedroid/hci/
Dhci_packet_parser.c49 assert(stream != NULL); in parse_read_buffer_size_response()
63 assert(stream != NULL); in parse_read_local_version_info_response()
79 assert(stream != NULL); in parse_read_bd_addr_response()
92 assert(stream != NULL); in parse_read_local_supported_commands_response()
122 assert(*page_number_ptr < feature_pages_count); in parse_read_local_extended_features_response()
138 assert(stream != NULL); in parse_ble_read_white_list_size_response()
151 assert(stream != NULL); in parse_ble_read_buffer_size_response()
165 assert(stream != NULL); in parse_ble_read_supported_states_response()
177 assert(stream != NULL); in parse_ble_read_local_supported_features_response()
246 assert(event_code == HCI_COMMAND_COMPLETE_EVT); in read_command_complete_header()
[all …]
/hal_espressif-latest/components/esp_hw_support/include/esp_private/
Dregdma_link.h36 assert(plink != NULL); in regdma_link_init_continuous()
37 assert(buff !=NULL); in regdma_link_init_continuous()
61 assert(plink != NULL); in regdma_link_init_addr_map()
62 assert(buff != NULL); in regdma_link_init_addr_map()
63 assert(len == regdma_link_addr_map_count(bitmap)); in regdma_link_init_addr_map()
84 assert(plink != NULL); in regdma_link_init_write()
101 assert(plink != NULL); in regdma_link_init_wait()
117 assert(plink != NULL); in regdma_link_init_branch_continuous()
118 assert(buff !=NULL); in regdma_link_init_branch_continuous()
137 assert(plink != NULL); in regdma_link_init_branch_addr_map()
[all …]
/hal_espressif-latest/components/bootloader_support/src/esp32/
Dbootloader_sha.c33 assert(handle != NULL); in bootloader_sha256_data()
34 assert(data_len % 4 == 0); in bootloader_sha256_data()
75 assert(handle != NULL); in bootloader_sha256_finish()
94 assert(pad_bytes % 4 == 0); // should be, as (block_bytes % 4 == 0) in bootloader_sha256_finish()
98 assert(words_hashed % BLOCK_WORDS == 60 / 4); // 32-bits left in block in bootloader_sha256_finish()
104 assert(words_hashed % BLOCK_WORDS == 0); in bootloader_sha256_finish()
/hal_espressif-latest/components/efuse/esp32c3/
Desp_efuse_rtc_calib.c27 assert((version >= ESP_EFUSE_ADC_CALIB_VER_MIN) && in esp_efuse_rtc_calib_get_init_code()
31 assert(atten < 4); in esp_efuse_rtc_calib_get_init_code()
43 assert(init_code_size == 10); in esp_efuse_rtc_calib_get_init_code()
76 assert(cal_vol_efuse[0]->bit_count == 10); in esp_efuse_rtc_calib_get_cal_voltage()
96 assert(cal_temp_size == 9); in esp_efuse_rtc_calib_get_tsens_val()
100 assert(err == ESP_OK); in esp_efuse_rtc_calib_get_tsens_val()
/hal_espressif-latest/components/efuse/esp32h2/
Desp_efuse_rtc_calib.c36 assert(atten >=0 && atten < 4); in esp_efuse_rtc_calib_get_init_code()
51 assert(init_code_size == 10); in esp_efuse_rtc_calib_get_init_code()
61 assert(atten < 4); in esp_efuse_rtc_calib_get_chan_compens()
62 assert(adc_channel < SOC_ADC_CHANNEL_NUM(adc_unit)); in esp_efuse_rtc_calib_get_chan_compens()
84 assert(chan_diff_size == 4); in esp_efuse_rtc_calib_get_chan_compens()
112 assert(cal_vol_efuse[atten][0]->bit_count == 10); in esp_efuse_rtc_calib_get_cal_voltage()
/hal_espressif-latest/components/efuse/esp32c6/
Desp_efuse_rtc_calib.c38 assert(atten >=0 && atten < 4); in esp_efuse_rtc_calib_get_init_code()
53 assert(init_code_size == 10); in esp_efuse_rtc_calib_get_init_code()
63 assert(atten < 4); in esp_efuse_rtc_calib_get_chan_compens()
64 assert(adc_channel < SOC_ADC_CHANNEL_NUM(adc_unit)); in esp_efuse_rtc_calib_get_chan_compens()
92 assert(chan_diff_size == 4); in esp_efuse_rtc_calib_get_chan_compens()
120 assert(cal_vol_efuse[atten][0]->bit_count == 10); in esp_efuse_rtc_calib_get_cal_voltage()
/hal_espressif-latest/components/bootloader_support/src/idf/
Dbootloader_sha.c30 assert(handle != NULL); in bootloader_sha256_data()
33 assert(ret == 0); in bootloader_sha256_data()
39 assert(handle != NULL); in bootloader_sha256_finish()
43 assert(ret == 0); in bootloader_sha256_finish()
/hal_espressif-latest/zephyr/port/include/boot/mcuboot_config/
Dmcuboot_assert.h11 #ifdef assert
12 #undef assert
14 #define assert(arg) \ macro

12345678910>>...12