Home
last modified time | relevance | path

Searched refs:__ASSERT (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/Zephyr-latest/include/zephyr/drivers/sip_svc/
Dsip_svc_driver.h130 __ASSERT(dev, "dev shouldn't be NULL"); in z_impl_sip_supervisory_call()
133 __ASSERT(api->sip_supervisory_call, "sip_supervisory_call shouldn't be NULL"); in z_impl_sip_supervisory_call()
134 __ASSERT(res, "response pointer shouldn't be NULL"); in z_impl_sip_supervisory_call()
154 __ASSERT(dev, "dev shouldn't be NULL"); in z_impl_sip_svc_plat_func_id_valid()
157 __ASSERT(api->sip_svc_plat_func_id_valid, in z_impl_sip_svc_plat_func_id_valid()
177 __ASSERT(dev, "dev shouldn't be NULL"); in z_impl_sip_svc_plat_format_trans_id()
180 __ASSERT(api->sip_svc_plat_format_trans_id, in z_impl_sip_svc_plat_format_trans_id()
198 __ASSERT(dev, "dev shouldn't be NULL"); in z_impl_sip_svc_plat_get_trans_idx()
201 __ASSERT(api->sip_svc_plat_get_trans_idx, in z_impl_sip_svc_plat_get_trans_idx()
220 __ASSERT(dev, "dev shouldn't be NULL"); in z_impl_sip_svc_plat_update_trans_id()
[all …]
/Zephyr-latest/drivers/smbus/
Dsmbus_utils.h26 __ASSERT(callback, "No callback!"); in smbus_callback_set()
27 __ASSERT(callback->handler, "No callback handler!"); in smbus_callback_set()
49 __ASSERT(callback, "No callback!"); in smbus_callback_remove()
50 __ASSERT(callback->handler, "No callback handler!"); in smbus_callback_remove()
75 __ASSERT(cb->handler, "No callback handler!"); in smbus_fire_callbacks()
92 __ASSERT(callback, "Callback pointer should not be NULL"); in smbus_init_callback()
93 __ASSERT(handler, "Callback handler pointer should not be NULL"); in smbus_init_callback()
/Zephyr-latest/include/zephyr/crypto/
Dcrypto.h120 __ASSERT((tmp & (CAP_OPAQUE_KEY_HNDL | CAP_RAW_KEY)) != 0, in crypto_query_hwcaps()
123 __ASSERT((tmp & (CAP_INPLACE_OPS | CAP_SEPARATE_IO_BUFS)) != 0, in crypto_query_hwcaps()
126 __ASSERT((tmp & (CAP_SYNC_OPS | CAP_ASYNC_OPS)) != 0, in crypto_query_hwcaps()
176 __ASSERT(flags != 0U, "Keytype missing: RAW Key or OPAQUE handle"); in cipher_begin_session()
177 __ASSERT(flags != (CAP_OPAQUE_KEY_HNDL | CAP_RAW_KEY), in cipher_begin_session()
181 __ASSERT(flags != 0U, "IO buffer type missing"); in cipher_begin_session()
182 __ASSERT(flags != (CAP_INPLACE_OPS | CAP_SEPARATE_IO_BUFS), in cipher_begin_session()
186 __ASSERT(flags != 0U, "sync/async type missing"); in cipher_begin_session()
187 __ASSERT(flags != (CAP_SYNC_OPS | CAP_ASYNC_OPS), in cipher_begin_session()
255 __ASSERT(ctx->ops.cipher_mode == CRYPTO_CIPHER_MODE_ECB, "ECB mode " in cipher_block_op()
[all …]
/Zephyr-latest/drivers/gnss/
Dgnss_parse.c28 __ASSERT(str != NULL, "str argument must be provided"); in gnss_parse_dec_to_nano()
29 __ASSERT(nano != NULL, "nano argument must be provided"); in gnss_parse_dec_to_nano()
106 __ASSERT(str != NULL, "str argument must be provided"); in gnss_parse_dec_to_micro()
107 __ASSERT(micro != NULL, "micro argument must be provided"); in gnss_parse_dec_to_micro()
123 __ASSERT(str != NULL, "str argument must be provided"); in gnss_parse_dec_to_milli()
124 __ASSERT(milli != NULL, "milli argument must be provided"); in gnss_parse_dec_to_milli()
139 __ASSERT(str != NULL, "str argument must be provided"); in gnss_parse_atoi()
140 __ASSERT(integer != NULL, "integer argument must be provided"); in gnss_parse_atoi()
Dgnss_nmea0183.c116 __ASSERT(str != NULL, "str argument must be provided"); in gnss_nmea0183_checksum()
133 __ASSERT(str != NULL, "str argument must be provided"); in gnss_nmea0183_snprintk()
134 __ASSERT(fmt != NULL, "fmt argument must be provided"); in gnss_nmea0183_snprintk()
173 __ASSERT(ddmm_mmmm != NULL, "ddmm_mmmm argument must be provided"); in gnss_nmea0183_ddmm_mmmm_to_ndeg()
174 __ASSERT(ndeg != NULL, "ndeg argument must be provided"); in gnss_nmea0183_ddmm_mmmm_to_ndeg()
253 __ASSERT(argv != NULL, "argv argument must be provided"); in gnss_nmea0183_validate_message()
293 __ASSERT(str != NULL, "str argument must be provided"); in gnss_nmea0183_knots_to_mms()
294 __ASSERT(mms != NULL, "mms argument must be provided"); in gnss_nmea0183_knots_to_mms()
311 __ASSERT(hhmmss != NULL, "hhmmss argument must be provided"); in gnss_nmea0183_parse_hhmmss()
312 __ASSERT(utc != NULL, "utc argument must be provided"); in gnss_nmea0183_parse_hhmmss()
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/
Dgpio_emul_callback.c39 __ASSERT(pins & gpio_emul_callback.pin_mask, "invalid mask: %x", pins); in gpio_emul_callback_handler()
42 __ASSERT(r == 0, "gpio_emul_flags_get() failed: %d", r); in gpio_emul_callback_handler()
44 __ASSERT(r == 0, "gpio_emul_flags_get() failed: %d", r); in gpio_emul_callback_handler()
48 __ASSERT(r == 0 || r == 1, "gpio_emul_output_get() failed: %d", r); in gpio_emul_callback_handler()
51 __ASSERT(r == 0, "gpio_emul_input_set() failed: %d", r); in gpio_emul_callback_handler()
65 __ASSERT(r == 0, "gpio_emul_input_set() failed: %d", r); in gpio_emul_callback_handler()
/Zephyr-latest/samples/subsys/sip_svc/src/
Dmain.c59 __ASSERT(resp_addr != NULL, "Failed to get memory"); in main()
62 __ASSERT(mb_smc_ctrl != NULL, "Failed to get the controller from sip_svc"); in main()
65 __ASSERT(mb_c_token != SIP_SVC_ID_INVALID, "Failed to register with sip_svc"); in main()
77 __ASSERT(err != SIP_SVC_ID_INVALID, "Failed to open with sip_svc"); in main()
80 __ASSERT(cmd_addr != NULL, "Failed to get memory"); in main()
99 __ASSERT(trans_id < 0, "Error in sending a request to SDM mailbox"); in main()
102 __ASSERT(err != 0, "Error in taking semaphore"); in main()
111 __ASSERT(err != SIP_SVC_ID_INVALID, "Failed to close with sip_svc"); in main()
/Zephyr-latest/tests/arch/arm/arm_no_multithreading/src/
Dmain.c66 __ASSERT( in test_main()
72 __ASSERT((__get_FPSCR() & FPSCR_MASK) == 0, in test_main()
78 __ASSERT( in test_main()
85 __ASSERT(arch_irq_unlocked(key), in test_main()
99 __ASSERT(flag == 0, "Test flag not initialized to 0\n"); in test_main()
151 __ASSERT(flag > 0, "Test flag not set by IRQ\n"); in test_main()
155 __ASSERT(0, "No available IRQ line to use in the test\n"); in test_main()
/Zephyr-latest/drivers/misc/ft8xx/
Dft8xx_common.c17 __ASSERT(err == 0, "Writing FT8xx data at 0x%x failed", address); in ft8xx_wr8()
27 __ASSERT(err == 0, "Writing FT8xx data at 0x%x failed", address); in ft8xx_wr16()
37 __ASSERT(err == 0, "Writing FT8xx data at 0x%x failed", address); in ft8xx_wr32()
46 __ASSERT(err == 0, "Reading FT8xx data from 0x%x failed", address); in ft8xx_rd8()
57 __ASSERT(err == 0, "Reading FT8xx data from 0x%x failed", address); in ft8xx_rd16()
68 __ASSERT(err == 0, "Reading FT8xx data from 0x%x failed", address); in ft8xx_rd32()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/
Dutils.c70 __ASSERT(err == 0, "Error setting security (err %u)\n", err); in security_changed()
98 __ASSERT(!err, "Err bt_le_scan_stop %d", err); in scan_connect_to_first_result_device_found()
103 __ASSERT(!err, "Err bt_conn_le_create %d", err); in scan_connect_to_first_result_device_found()
113 __ASSERT(!err, "Err bt_le_scan_start %d", err); in scan_connect_to_first_result()
127 __ASSERT(err == 0, "Advertising failed to start (err %d)\n", err); in advertise_connectable()
135 __ASSERT(!err, "Failed to initate disconnection (err %d)", err); in disconnect()
155 __ASSERT(bonded, "Bonding failed\n"); in pairing_complete()
173 __ASSERT(!err, "Err bt_conn_set_security %d", err); in set_security()
190 __ASSERT(!err, "bt_conn_auth_info_cb_register failed.\n"); in bond()
204 __ASSERT(!err, "bt_conn_auth_info_cb_register failed.\n"); in wait_bonded()
/Zephyr-latest/include/zephyr/net/
Ddhcpv4.h141 __ASSERT(callback, "Callback pointer should not be NULL"); in net_dhcpv4_init_option_callback()
142 __ASSERT(handler, "Callback handler pointer should not be NULL"); in net_dhcpv4_init_option_callback()
143 __ASSERT(data, "Data pointer should not be NULL"); in net_dhcpv4_init_option_callback()
179 __ASSERT(callback, "Callback pointer should not be NULL"); in net_dhcpv4_init_option_vendor_callback()
180 __ASSERT(handler, "Callback handler pointer should not be NULL"); in net_dhcpv4_init_option_vendor_callback()
181 __ASSERT(data, "Data pointer should not be NULL"); in net_dhcpv4_init_option_vendor_callback()
/Zephyr-latest/tests/subsys/sip_svc/src/
Dmain.c62 __ASSERT(ctrl != NULL, "couldn't get the controller"); in sip_svc_send_sync_request()
65 __ASSERT(tot_time != NULL, "tot_time should not be NULL"); in sip_svc_send_sync_request()
68 __ASSERT(err == 0, "couldn't open channel"); in sip_svc_send_sync_request()
78 __ASSERT(trans_id >= 0, "error in sending request"); in sip_svc_send_sync_request()
81 __ASSERT(err == 0, "Error in taking semaphore"); in sip_svc_send_sync_request()
90 __ASSERT(err == 0, "error in closing channel"); in sip_svc_send_sync_request()
106 __ASSERT((resp_data[1] == TEST_VAL), "SDM response is not matching"); in get_async_callback()
133 __ASSERT(ctrl != NULL, "couldn't get the controller"); in sip_svc_send_async_request()
136 __ASSERT(err == 0, "couldn't open channel"); in sip_svc_send_async_request()
139 __ASSERT(tot_time != NULL, "tot_time should not be NULL"); in sip_svc_send_async_request()
[all …]
/Zephyr-latest/include/zephyr/kernel/internal/
Dmm.h102 __ASSERT(sys_mm_is_virt_addr_in_range(virt), in k_mem_phys_addr()
105 __ASSERT( in k_mem_phys_addr()
118 __ASSERT( in k_mem_phys_addr()
153 __ASSERT(sys_mm_is_phys_addr_in_range(phys), in k_mem_virt_addr()
156 __ASSERT( in k_mem_virt_addr()
/Zephyr-latest/subsys/demand_paging/backing_store/
Dram.c61 __ASSERT(location % CONFIG_MMU_PAGE_SIZE == 0, in location_to_slab()
63 __ASSERT(location < in location_to_slab()
75 __ASSERT(pos >= backing_store && in slab_to_location()
79 __ASSERT(offset % CONFIG_MMU_PAGE_SIZE == 0, in slab_to_location()
97 __ASSERT(ret == 0, "slab count mismatch"); in k_mem_paging_backing_store_location_get()
/Zephyr-latest/drivers/dma/
Ddma_si32.c73 __ASSERT(channel_descriptor->CONFIG.TMD == 0, "Result of success: TMD set to zero"); in dma_si32_isr_handler()
74 __ASSERT(channel_descriptor->CONFIG.NCOUNT == 0, in dma_si32_isr_handler()
77 __ASSERT((SI32_DMACTRL_0->CHENSET.U32 & BIT(channel)) == 0, in dma_si32_isr_handler()
101 __ASSERT(SI32_DMACTRL_0 == SI32_DMACTRL_0, "There is only one DMA controller"); in dma_si32_init()
102 __ASSERT(SI32_DMACTRL_A_get_number_of_channels(SI32_DMACTRL_0) >= CHANNEL_COUNT, in dma_si32_init()
205 __ASSERT(cfg->source_data_size == cfg->dest_data_size, in dma_si32_config()
366 __ASSERT(SI32_CLKCTRL_0->AHBCLKG.DMACEN, in dma_si32_start()
368 __ASSERT(SI32_DMACTRL_A_is_enabled(SI32_DMACTRL_0), "DMA controller must be enabled."); in dma_si32_start()
369 __ASSERT(SI32_DMACTRL_0->BASEPTR.U32 == (uintptr_t)channel_descriptors, in dma_si32_start()
371 __ASSERT(SI32_DMACTRL_A_is_primary_selected(SI32_DMACTRL_0, channel), in dma_si32_start()
[all …]
/Zephyr-latest/kernel/
Dpoll.c46 __ASSERT(mode == K_POLL_MODE_NOTIFY_ONLY, in k_poll_event_init()
48 __ASSERT(type < (BIT(_POLL_NUM_TYPES)), "invalid type\n"); in k_poll_event_init()
49 __ASSERT(obj != NULL, "must provide an object\n"); in k_poll_event_init()
100 __ASSERT(false, "invalid event type (0x%x)\n", event->type); in is_condition_met()
142 __ASSERT(event->sem != NULL, "invalid semaphore\n"); in register_event()
146 __ASSERT(event->queue != NULL, "invalid queue\n"); in register_event()
150 __ASSERT(event->signal != NULL, "invalid poll signal\n"); in register_event()
154 __ASSERT(event->msgq != NULL, "invalid message queue\n"); in register_event()
159 __ASSERT(event->pipe != NULL, "invalid pipe\n"); in register_event()
167 __ASSERT(false, "invalid event type\n"); in register_event()
[all …]
Dthread_monitor.c43 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach()
69 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach_unlocked()
94 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach_filter_by_cpu()
95 __ASSERT(cpu < CONFIG_MP_MAX_NUM_CPUS, "cpu filter out of bounds"); in k_thread_foreach_filter_by_cpu()
124 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach_unlocked_filter_by_cpu()
125 __ASSERT(cpu < CONFIG_MP_MAX_NUM_CPUS, "cpu filter out of bounds"); in k_thread_foreach_unlocked_filter_by_cpu()
/Zephyr-latest/arch/common/
Dmultilevel_irq.c53 __ASSERT(intc != NULL, "can't find an aggregator to handle irq(%X)", irq); in z_get_sw_isr_device_from_irq()
67 __ASSERT(false, "dev(%p) not found", dev); in z_get_sw_isr_irq_from_device()
85 __ASSERT(level == 1, "can't find an aggregator to handle irq(%X)", irq); in z_get_sw_isr_table_idx()
91 __ASSERT(table_idx < IRQ_TABLE_SIZE, "table_idx(%d) < IRQ_TABLE_SIZE(%d)", table_idx, in z_get_sw_isr_table_idx()
/Zephyr-latest/arch/riscv/core/
Dfpu.c67 __ASSERT((status & MSTATUS_IEN) == 0, "must be called with IRQs disabled"); in z_riscv_fpu_disable()
79 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in z_riscv_fpu_load()
81 __ASSERT((csr_read(mstatus) & MSTATUS_FS) == 0, in z_riscv_fpu_load()
103 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in arch_flush_local_fpu()
105 __ASSERT((csr_read(mstatus) & MSTATUS_FS) == 0, in arch_flush_local_fpu()
135 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in flush_owned_fpu()
209 __ASSERT((esf->mstatus & MSTATUS_FS) == 0 && in z_riscv_fpu_trap()
256 __ASSERT((csr_read(mstatus) & MSTATUS_IEN) == 0, in fpu_access_allowed()
/Zephyr-latest/drivers/espi/
Despi_utils.h26 __ASSERT(callback, "No callback!"); in espi_manage_callback()
27 __ASSERT(callback->handler, "No callback handler!"); in espi_manage_callback()
61 __ASSERT(cb->handler, "No callback handler!"); in espi_send_callbacks()
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dthread.c148 __ASSERT(attr->stack_size <= CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE, in osThreadNew()
151 __ASSERT((cv2_prio >= osPriorityIdle) && (cv2_prio <= osPriorityISR), in osThreadNew()
170 __ASSERT(CONFIG_CMSIS_V2_THREAD_DYNAMIC_STACK_SIZE > 0, in osThreadNew()
354 __ASSERT(tid, ""); in osThreadGetStackSize()
355 __ASSERT(is_cmsis_rtos_v2_thread(tid), ""); in osThreadGetStackSize()
356 __ASSERT(!k_is_in_isr(), ""); in osThreadGetStackSize()
371 __ASSERT(tid, ""); in osThreadGetStackSpace()
372 __ASSERT(is_cmsis_rtos_v2_thread(tid), ""); in osThreadGetStackSpace()
373 __ASSERT(!k_is_in_isr(), ""); in osThreadGetStackSpace()
451 __ASSERT(tid->attr_bits != osThreadDetached, in osThreadDetach()
[all …]
/Zephyr-latest/soc/atmel/sam/common/
Dsoc_pmc.c21 __ASSERT(id < ID_PERIPH_COUNT, "Invalid peripheral id"); in soc_pmc_peripheral_enable()
38 __ASSERT(id < ID_PERIPH_COUNT, "Invalid peripheral id"); in soc_pmc_peripheral_disable()
55 __ASSERT(id < ID_PERIPH_COUNT, "Invalid peripheral id"); in soc_pmc_peripheral_is_enabled()
/Zephyr-latest/tests/bluetooth/common/testlib/include/testlib/
Dlog_utils.h19 __ASSERT(source_id >= 0, "%d", source_id); in bt_testlib_log_level_set()
22 __ASSERT(result_level == new_level, "%u %u", result_level, new_level); in bt_testlib_log_level_set()
37 __ASSERT(result_level == new_level, "%u %u", result_level, new_level); in bt_testlib_log_level_set_all()
/Zephyr-latest/subsys/sensing/
Dsensor_mgmt.h29 ({ __ASSERT(sensor >= STRUCT_SECTION_START(sensing_sensor), \
69 __ASSERT(true, "device %s is not a sensing sensor", dev->name); in get_sensor_by_dev()
85 __ASSERT(conn, "get sensor info, connection not be NULL"); in get_sensor_info()
87 __ASSERT(conn->source, "get sensor info, sensing_sensor is NULL"); in get_sensor_info()
115 __ASSERT(sensitivity, "sensitivity should not be NULL"); in is_filtering_sensitivity()
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_iso.c86 __ASSERT(old > 0, "iso reference counter is 0"); in bt_bap_iso_unref()
221 __ASSERT(ep->iso == NULL, "ep %p bound with iso %p already", ep, ep->iso); in bt_bap_iso_bind_ep()
222 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_bind_ep()
228 __ASSERT(iso_dir->ep == NULL, "iso %p bound with ep %p", iso, iso_dir); in bt_bap_iso_bind_ep()
240 __ASSERT(ep->iso == iso, "ep %p not bound with iso %p, was bound to %p", in bt_bap_iso_unbind_ep()
242 __ASSERT(ep->dir == BT_AUDIO_DIR_SINK || ep->dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_unbind_ep()
248 __ASSERT(iso_dir->ep == ep, "iso %p not bound with ep %p", iso, ep); in bt_bap_iso_unbind_ep()
260 __ASSERT(dir == BT_AUDIO_DIR_SINK || dir == BT_AUDIO_DIR_SOURCE, in bt_bap_iso_get_ep()
287 __ASSERT(stream->bap_iso == NULL, "stream %p bound with bap_iso %p already", stream, in bt_bap_iso_bind_stream()
299 __ASSERT(bap_iso_ep->stream == NULL, "bap_iso %p bound with stream %p", bap_iso, in bt_bap_iso_bind_stream()
[all …]

12345678910>>...22