| /device/soc/esp/esp32/components/bt/host/bluedroid/btc/core/ |
| D | btc_config.c | 41 assert(key_value != NULL); in btc_compare_address_key_value() 58 assert(key_value != NULL); in btc_key_value_to_string() 59 assert(value_str != NULL); in btc_key_value_to_string() 115 assert(config != NULL); in btc_config_has_section() 116 assert(section != NULL); in btc_config_has_section() 123 assert(config != NULL); in btc_config_exist() 124 assert(section != NULL); in btc_config_exist() 125 assert(key != NULL); in btc_config_exist() 132 assert(config != NULL); in btc_config_get_int() 133 assert(section != NULL); in btc_config_get_int() [all …]
|
| /device/board/isoftstone/yangfan/common/mqtt/mqttclient/test/ |
| D | test1.cpp | 210 #define assert(a) macro 231 #define assert(a, b, c, d) myassert(__FILE__, __LINE__, a, b, c, d) macro 286 assert("Good message lengths", pubmsg.payloadlen == m.payloadlen, in messageArrived() 290 assert("Good message contents", memcmp(m.payload, pubmsg.payload, m.payloadlen) == 0, in messageArrived() 321 assert("Good rc from publish", rc == MQTT::SUCCESS, "rc was %d", rc); in test1_sendAndReceive() 329 assert("Message Arrived", wait_seconds > 0, "Time out waiting for message %d\n", i); in test1_sendAndReceive() 375 assert("Good rc from TCP connect", rc == MQTT::SUCCESS, "rc was %d", rc); in test1() 380 assert("Good rc from connect", rc == MQTT::SUCCESS, "rc was %d", rc); in test1() 385 assert("Good rc from subscribe", rc == MQTT::SUCCESS, "rc was %d", rc); in test1() 394 assert("Unsubscribe successful", rc == MQTT::SUCCESS, "rc was %d", rc); in test1() [all …]
|
| /device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/test/ |
| D | test1.c | 215 #define assert(a) macro 236 #define assert(a, b, c, d) myassert(__FILE__, __LINE__, a, b, c, d) macro 291 assert("Good message lengths", pubmsg.payloadlen == m->payloadlen, in messageArrived() 295 assert("Good message contents", memcmp(m->payload, pubmsg.payload, m->payloadlen) == 0, in messageArrived() 326 assert("Good rc from publish", rc == SUCCESS, "rc was %d", rc); in test1_sendAndReceive() 334 assert("Message Arrived", wait_seconds > 0, "Time out waiting for message %d\n", i); in test1_sendAndReceive() 387 assert("Good rc from connect", rc == SUCCESS, "rc was %d", rc); in test1() 392 assert("Good rc from subscribe", rc == SUCCESS, "rc was %d", rc); in test1() 401 assert("Unsubscribe successful", rc == SUCCESS, "rc was %d", rc); in test1() 403 assert("Disconnect successful", rc == SUCCESS, "rc was %d", rc); in test1() [all …]
|
| /device/soc/esp/esp32/components/bt/host/bluedroid/device/ |
| D | controller.c | 168 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 …]
|
| D | bdaddr.c | 37 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()
|
| /device/soc/esp/esp32/components/bt/common/osi/ |
| D | list.c | 52 assert(list != NULL); in list_is_empty() 58 assert(list != NULL); in list_contains() 59 assert(data != NULL); in list_contains() 72 assert(list != NULL); in list_get_node() 73 assert(data != NULL); in list_get_node() 87 assert(list != NULL); in list_length() 93 assert(list != NULL); in list_front() 94 assert(!list_is_empty(list)); in list_front() 100 assert(list != NULL); in list_back() 101 assert(!list_is_empty(list)); in list_back() [all …]
|
| D | config.c | 84 assert(filename != NULL); in config_new() 122 assert(config != NULL); in config_has_section() 123 assert(section != NULL); in config_has_section() 130 assert(config != NULL); in config_has_key() 131 assert(section != NULL); in config_has_key() 132 assert(key != NULL); in config_has_key() 158 assert(config != NULL); in config_get_int() 159 assert(section != NULL); in config_get_int() 160 assert(key != NULL); in config_get_int() 174 assert(config != NULL); in config_get_bool() [all …]
|
| D | buffer.c | 32 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()
|
| D | hash_map.c | 57 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() 164 assert(hash_map != NULL); in hash_map_erase() 186 assert(hash_map != NULL); in hash_map_get() 201 assert(hash_map != NULL); in hash_map_clear() 214 assert(hash_map != NULL); in hash_map_foreach() [all …]
|
| D | fixed_queue.c | 125 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()
|
| /device/board/isoftstone/yangfan/common/mqtt/mqttpacket/test/ |
| D | test1.c | 168 #define assert(a) macro 188 #define assert(a, b, c, d) myassert(__FILE__, __LINE__, a, b, c, d) macro 255 assert("struct_ids should be the same", in checkConnectPackets() 258 assert("struct_versions should be the same", in checkConnectPackets() 261 assert("MQTT versions should be the same", in checkConnectPackets() 264 assert("ClientIDs should be the same", in checkConnectPackets() 267 assert("keepAliveIntervals should be the same", in checkConnectPackets() 271 assert("cleansessions should be the same", in checkConnectPackets() 274 assert("willFlags should be the same", in checkConnectPackets() 278 assert("will struct_ids should be the same", in checkConnectPackets() [all …]
|
| /device/soc/winnermicro/wm800/board/src/bt/blehost/porting/w800/src/ |
| D | npl_os_freertos.c | 51 assert(status == TLS_OS_SUCCESS); in npl_freertos_eventq_put() 63 assert(status == TLS_OS_SUCCESS); in npl_freertos_eventq_remove() 76 assert(status == TLS_OS_SUCCESS); in npl_freertos_mutex_init() 77 assert(mu->handle); in npl_freertos_mutex_init() 91 assert(status == TLS_OS_SUCCESS); in npl_freertos_mutex_deinit() 105 assert(mu->handle); in npl_freertos_mutex_pend() 109 assert(0); in npl_freertos_mutex_pend() 125 assert(mu->handle); in npl_freertos_mutex_release() 128 assert(0); in npl_freertos_mutex_release() 148 assert(status == TLS_OS_SUCCESS); in npl_freertos_sem_init() [all …]
|
| /device/soc/esp/esp32/components/cxx/ |
| D | cxx_guards.cpp | 84 assert(result); in wait_for_guard_obj() 91 assert(result); in wait_for_guard_obj() 97 assert(result); in wait_for_guard_obj() 142 assert(result); in __cxa_guard_acquire() 170 assert(result); in __cxa_guard_acquire() 181 assert(result); in __cxa_guard_release() 183 assert(g->pending && "tried to release a guard which wasn't acquired"); in __cxa_guard_release() 191 assert(result); in __cxa_guard_release() 201 assert(result); in __cxa_guard_abort() 203 assert(!g->ready && "tried to abort a guard which is ready"); in __cxa_guard_abort() [all …]
|
| /device/soc/esp/esp32/components/bt/host/bluedroid/stack/l2cap/ |
| D | l2cap_client.c | 85 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 …]
|
| /device/soc/esp/esp32/components/newlib/platform_include/ |
| D | assert.h | 24 #include_next <assert.h> 27 #undef assert 28 #define assert(__e) (likely(__e)) ? (void)0 : abort() macro 34 #undef assert 36 # define assert(__e) ((void)0) macro 38 # define assert(__e) (likely(__e) ? (void)0 : __assert_func (__FILE__, __LINE__, \ macro
|
| /device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/transport/uart/src/ |
| D | ble_hci_uart.c | 192 assert(cmd != NULL); in ble_hci_trans_hs_cmd_tx() 265 assert(0); in ble_hci_trans_buf_alloc() 286 assert(rc == 0); in ble_hci_trans_buf_free() 289 assert(rc == 0); in ble_hci_trans_buf_free() 291 assert(os_memblock_from(&ble_hci_vuart_cmd_pool, buf)); in ble_hci_trans_buf_free() 293 assert(rc == 0); in ble_hci_trans_buf_free() 341 assert(0); in ble_hci_rx_acl() 347 assert(0); in ble_hci_rx_acl() 352 assert(0); in ble_hci_rx_acl() 378 assert(totlen <= UINT8_MAX + BLE_HCI_EVENT_HDR_LEN); in ble_hci_trans_hs_rx() [all …]
|
| /device/soc/esp/esp32/components/esp_hw_support/include/soc/ |
| D | spinlock.h | 54 assert(lock); in spinlock_initialize() 73 assert(lock); in spinlock_acquire() 120 assert(result == core_id || result == SPINLOCK_FREE); in spinlock_acquire() 121 …assert((result == SPINLOCK_FREE) == (lock->count == 0)); /* we're first to lock iff count is zero … in spinlock_acquire() 122 assert(lock->count < 0xFF); /* Bad count value implies memory corruption */ in spinlock_acquire() 143 assert(lock); in spinlock_release() 147 assert(core_id == lock->owner); // This is a mutex we didn't lock, or it's corrupt in spinlock_release() 153 assert(lock->count < 0x100); // Indicates memory corruption in spinlock_release()
|
| /device/soc/esp/esp32/components/bt/host/bluedroid/hci/ |
| D | hci_packet_parser.c | 49 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() 238 assert(event_code == HCI_COMMAND_COMPLETE_EVT); in read_command_complete_header() [all …]
|
| /device/soc/telink/b91/b91_ble_sdk/common/buf_pool0/ |
| D | myBuf.c | 73 assert(myCsNesting != 0); in myCsExit() 216 assert(FALSE); in myBufInit() 250 assert(FALSE); in myBufInit() 260 assert(FALSE); in myBufInit() 289 assert(len > 0); in myBufAlloc() 340 assert(FALSE); in myBufAlloc() 362 assert(FALSE); in myBufAlloc() 380 assert(p >= ((myBufPool_t *)myBufMem)->pStart); in myBufFree() 381 assert(p < (myBufMem_t *)(((u8 *)myBufMem) + myBufMemLen)); in myBufFree() 393 assert(p->free != MY_BUF_FREE_NUM); in myBufFree() [all …]
|
| /device/soc/esp/esp32/components/bootloader_support/src/esp32/ |
| D | bootloader_sha.c | 41 assert(handle != NULL); in bootloader_sha256_data() 42 assert(data_len % 4 == 0); in bootloader_sha256_data() 83 assert(handle != NULL); in bootloader_sha256_finish() 102 assert(pad_bytes % 4 == 0); // should be, as (block_bytes % 4 == 0) in bootloader_sha256_finish() 106 assert(words_hashed % BLOCK_WORDS == 60 / 4); // 32-bits left in block in bootloader_sha256_finish() 112 assert(words_hashed % BLOCK_WORDS == 0); in bootloader_sha256_finish()
|
| /device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/services/gap/src/ |
| D | ble_svc_gap.c | 109 assert(0); in ble_svc_gap_device_name_write_access() 145 assert(0); in ble_svc_gap_appearance_write_access() 187 assert(uuid16 != 0); in ble_svc_gap_access() 196 assert(0); in ble_svc_gap_access() 208 assert(0); in ble_svc_gap_access() 216 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR); in ble_svc_gap_access() 223 assert(ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR); in ble_svc_gap_access() 229 assert(0); in ble_svc_gap_access()
|
| /device/soc/esp/esp32/components/bt/host/bluedroid/stack/btu/ |
| D | btu_task.c | 301 assert(p_tle != NULL); in btu_general_alarm_process() 408 assert(data != NULL); in btu_general_alarm_cb() 418 assert(p_tle != NULL); in btu_start_timer() 454 assert(p_tle != NULL); in btu_stop_timer() 481 assert(p_tle != NULL); in btu_free_timer() 508 assert(p_tle != NULL); in btu_l2cap_alarm_process() 523 assert(data != NULL); in btu_l2cap_alarm_cb() 533 assert(p_tle != NULL); in btu_start_quick_timer() 568 assert(p_tle != NULL); in btu_stop_quick_timer() 586 assert(p_tle != NULL); in btu_free_quick_timer() [all …]
|
| /device/soc/esp/esp32/components/bootloader_support/src/idf/ |
| D | bootloader_sha.c | 38 assert(handle != NULL); in bootloader_sha256_data() 41 assert(ret == 0); in bootloader_sha256_data() 46 assert(handle != NULL); in bootloader_sha256_finish() 50 assert(ret == 0); in bootloader_sha256_finish()
|
| /device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/mesh/src/ |
| D | glue.c | 66 assert(OS_MBUF_IS_PKTHDR(om)); in net_buf_put() 68 assert(ev); in net_buf_put() 69 assert(ble_npl_event_get_arg(ev)); in net_buf_put() 125 assert(om == old); in net_buf_simple_pull_le16() 136 assert(om == old); in net_buf_simple_pull_be16() 147 assert(om == old); in net_buf_simple_pull_be32() 158 assert(om == old); in net_buf_simple_pull_le32() 169 assert(om == old); in net_buf_simple_pull_u8() 212 assert(headroom >= 2); // 2:byte alignment in net_buf_simple_push_le16() 227 assert(headroom >= 2); // 2:byte alignment in net_buf_simple_push_be16() [all …]
|
| /device/soc/winnermicro/hals/communication/bt_lite/ble/source/ |
| D | nble_server.c | 85 assert(rc == 0); in ble_server_gap_event() 213 assert(offset <= sizeof(cache_buffer)); in ble_server_gatt_svc_access_func() 276 assert(srvcinfo != NULL); in ble_server_alloc() 279 assert(serv_elem != NULL); in ble_server_alloc() 301 assert(srvc_counter == 1); in ble_server_alloc() 302 assert(char_counter >= 1); in ble_server_alloc() 308 assert(gatt_svc_array != NULL); in ble_server_alloc() 313 assert(gatt_chr_array != NULL); in ble_server_alloc() 321 assert(nim_service != NULL); in ble_server_alloc() 329 assert(srvc_elem != NULL); in ble_server_alloc() [all …]
|