Home
last modified time | relevance | path

Searched refs:CHECKIF (Results 1 – 25 of 86) sorted by relevance

1234

/Zephyr-latest/subsys/bluetooth/audio/
Dcodec.c271 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_get_val()
276 CHECKIF(data == NULL) { in bt_audio_codec_cfg_get_val()
291 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_set_val()
296 CHECKIF(data == NULL) { in bt_audio_codec_cfg_set_val()
301 CHECKIF(data_len == 0U || data_len > UINT8_MAX) { in bt_audio_codec_cfg_set_val()
322 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_unset_val()
343 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_get_freq()
388 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_get_frame_dur()
436 CHECKIF(codec_cfg == NULL) { in bt_audio_codec_cfg_get_chan_allocation()
441 CHECKIF(chan_allocation == NULL) { in bt_audio_codec_cfg_get_chan_allocation()
[all …]
Dbap_base.c113 CHECKIF(ad == NULL) { in bt_bap_base_get_base_from_ad()
230 CHECKIF(base == NULL) { in bt_bap_base_get_size()
281 CHECKIF(base == NULL) { in bt_bap_base_get_pres_delay()
298 CHECKIF(base == NULL) { in bt_bap_base_get_subgroup_count()
320 CHECKIF(base == NULL) { in bt_bap_base_foreach_subgroup()
326 CHECKIF(func == NULL) { in bt_bap_base_foreach_subgroup()
374 CHECKIF(subgroup == NULL) { in bt_bap_base_get_subgroup_codec_id()
380 CHECKIF(codec_id == NULL) { in bt_bap_base_get_subgroup_codec_id()
397 CHECKIF(subgroup == NULL) { in bt_bap_base_get_subgroup_codec_data()
403 CHECKIF(data == NULL) { in bt_bap_base_get_subgroup_codec_data()
[all …]
Dcap_commander.c47 CHECKIF(cb == NULL) { in bt_cap_commander_register_cb()
53 CHECKIF(cap_cb != NULL) { in bt_cap_commander_register_cb()
66 CHECKIF(cb == NULL) { in bt_cap_commander_unregister_cb()
71 CHECKIF(cap_cb != cb) { in bt_cap_commander_unregister_cb()
93 CHECKIF(conn == NULL) { in bt_cap_commander_discover()
194 CHECKIF(param == NULL) { in valid_broadcast_reception_start_param()
199 CHECKIF(param->count == 0) { in valid_broadcast_reception_start_param()
204 CHECKIF(param->count > CONFIG_BT_MAX_CONN) { in valid_broadcast_reception_start_param()
210 CHECKIF(param->param == NULL) { in valid_broadcast_reception_start_param()
232 CHECKIF(start_param->addr.type > BT_ADDR_LE_RANDOM) { in valid_broadcast_reception_start_param()
[all …]
Dpbp.c28 CHECKIF(pba_data_buf == NULL) { in bt_pbp_get_announcement()
34 CHECKIF((meta == NULL && meta_len != 0) || (meta != NULL && meta_len == 0)) { in bt_pbp_get_announcement()
40 CHECKIF(pba_data_buf->size < (meta_len + BT_PBP_MIN_PBA_SIZE)) { in bt_pbp_get_announcement()
63 CHECKIF(!data || !features || !meta) { in bt_pbp_parse_announcement()
Dvocs_client.c444 CHECKIF(!inst) { in bt_vocs_client_state_get()
449 CHECKIF(inst->conn == NULL) { in bt_vocs_client_state_get()
479 CHECKIF(!inst) { in bt_vocs_client_location_set()
484 CHECKIF(inst->conn == NULL) { in bt_vocs_client_location_set()
489 CHECKIF(location > BT_AUDIO_LOCATION_ANY) { in bt_vocs_client_location_set()
517 CHECKIF(!inst) { in bt_vocs_client_location_get()
522 CHECKIF(inst->conn == NULL) { in bt_vocs_client_location_get()
552 CHECKIF(!inst) { in bt_vocs_client_state_set()
557 CHECKIF(inst->conn == NULL) { in bt_vocs_client_state_set()
562 CHECKIF(!IN_RANGE(offset, BT_VOCS_MIN_OFFSET, BT_VOCS_MAX_OFFSET)) { in bt_vocs_client_state_set()
[all …]
Daics.c441 CHECKIF(!aics) { in bt_aics_svc_decl_get()
461 CHECKIF(!aics) { in bt_aics_register()
466 CHECKIF(!param) { in bt_aics_register()
476 CHECKIF(aics->srv.initialized) { in bt_aics_register()
480 CHECKIF(param->mute > BT_AICS_STATE_MUTE_DISABLED) { in bt_aics_register()
485 CHECKIF(param->gain_mode > BT_AICS_MODE_AUTO) { in bt_aics_register()
490 CHECKIF(param->type > BT_AICS_INPUT_TYPE_STREAMING) { in bt_aics_register()
495 CHECKIF(param->units == 0) { in bt_aics_register()
500 CHECKIF(!(param->min_gain <= param->max_gain)) { in bt_aics_register()
506 CHECKIF(param->gain < param->min_gain || param->gain > param->max_gain) { in bt_aics_register()
[all …]
Dbap_broadcast_source.c482 CHECKIF(param == NULL) { in valid_broadcast_source_param()
487 CHECKIF(!IN_RANGE(param->params_count, 1U, CONFIG_BT_BAP_BROADCAST_SRC_SUBGROUP_COUNT)) { in valid_broadcast_source_param()
492 CHECKIF(param->packing != BT_ISO_PACKING_SEQUENTIAL && in valid_broadcast_source_param()
499 CHECKIF(qos == NULL) { in valid_broadcast_source_param()
504 CHECKIF(bt_audio_verify_qos(qos) != BT_BAP_ASCS_REASON_NONE) { in valid_broadcast_source_param()
509 CHECKIF(param->qos->rtn > BT_ISO_BROADCAST_RTN_MAX) { in valid_broadcast_source_param()
514 CHECKIF(param->params == NULL) { in valid_broadcast_source_param()
519 CHECKIF(param->params_count == 0) { in valid_broadcast_source_param()
529 CHECKIF(subgroup_param->params == NULL) { in valid_broadcast_source_param()
534 CHECKIF(!IN_RANGE(subgroup_param->params_count, 1U, in valid_broadcast_source_param()
[all …]
Daics_client.c454 CHECKIF(!inst) { in aics_client_common_control()
459 CHECKIF(!inst->client_instance) { in aics_client_common_control()
464 CHECKIF(inst->cli.conn == NULL) { in aics_client_common_control()
689 CHECKIF(!inst || !conn || !param) { in bt_aics_discover()
696 CHECKIF(param->end_handle <= param->start_handle) { in bt_aics_discover()
702 CHECKIF(!atomic_test_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_ACTIVE)) { in bt_aics_discover()
746 CHECKIF(aics == NULL) { in bt_aics_client_conn_get()
770 CHECKIF(!inst) { in bt_aics_client_state_get()
775 CHECKIF(!inst->client_instance) { in bt_aics_client_state_get()
780 CHECKIF(inst->cli.conn == NULL) { in bt_aics_client_state_get()
[all …]
Dcap_initiator.c44 CHECKIF(cb == NULL) { in bt_cap_initiator_register_cb()
49 CHECKIF(cap_cb != NULL) { in bt_cap_initiator_register_cb()
61 CHECKIF(cb == NULL) { in bt_cap_initiator_unregister_cb()
66 CHECKIF(cap_cb != cb) { in bt_cap_initiator_unregister_cb()
155 CHECKIF(codec_cfg == NULL) { in cap_initiator_broadcast_audio_start_valid_param()
163 CHECKIF(!valid_metadata) { in cap_initiator_broadcast_audio_start_valid_param()
232 CHECKIF(param == NULL) { in bt_cap_initiator_broadcast_audio_create()
237 CHECKIF(broadcast_source == NULL) { in bt_cap_initiator_broadcast_audio_create()
308 CHECKIF(adv == NULL) { in bt_cap_initiator_broadcast_audio_start()
313 CHECKIF(broadcast_source == NULL) { in bt_cap_initiator_broadcast_audio_start()
[all …]
Dvocs.c359 CHECKIF(!vocs) { in bt_vocs_svc_decl_get()
364 CHECKIF(vocs->client_instance) { in bt_vocs_svc_decl_get()
390 CHECKIF(!vocs) { in bt_vocs_register()
395 CHECKIF(vocs->client_instance) { in bt_vocs_register()
402 CHECKIF(!param) { in bt_vocs_register()
412 CHECKIF(inst->initialized) { in bt_vocs_register()
417 CHECKIF(param->offset > BT_VOCS_MAX_OFFSET || param->offset < BT_VOCS_MIN_OFFSET) { in bt_vocs_register()
474 CHECKIF(!inst) { in bt_vocs_state_get()
497 CHECKIF(!inst) { in bt_vocs_location_get()
520 CHECKIF(!inst) { in bt_vocs_location_set()
[all …]
Dcap_acceptor.c39 CHECKIF(param->set_size == 0U) { in bt_cap_acceptor_register()
44 CHECKIF(param->rank == 0U) { in bt_cap_acceptor_register()
Daudio.c34 CHECKIF(ltv == NULL) { in bt_audio_data_parse()
40 CHECKIF(func == NULL) { in bt_audio_data_parse()
112 CHECKIF(ltv_data == NULL) { in bt_audio_data_get_val()
117 CHECKIF(data == NULL) { in bt_audio_data_get_val()
Dbap_stream.c115 CHECKIF(ep == NULL) { in bt_bap_ep_get_info()
121 CHECKIF(info == NULL) { in bt_bap_ep_get_info()
429 CHECKIF(stream == NULL) { in bt_bap_stream_get_tx_sync()
435 CHECKIF(info == NULL) { in bt_bap_stream_get_tx_sync()
605 CHECKIF(conn == NULL || stream == NULL || codec_cfg == NULL || ep == NULL) { in bt_bap_stream_config()
652 CHECKIF(conn == NULL) { in bt_bap_stream_qos()
657 CHECKIF(group == NULL) { in bt_bap_stream_qos()
762 CHECKIF(stream == NULL || stream->ep == NULL || stream->conn == NULL) { in bt_bap_stream_reconfig()
767 CHECKIF(codec_cfg == NULL) { in bt_bap_stream_reconfig()
811 CHECKIF(stream == NULL || stream->ep == NULL || stream->conn == NULL) { in bt_bap_stream_connect()
[all …]
Dmedia_proxy.c664 CHECKIF(ctrl_cbs == NULL) { in media_proxy_ctrl_register()
699 CHECKIF(!conn) { in media_proxy_ctrl_discover_player()
797 CHECKIF(player == NULL) { in media_proxy_ctrl_get_player_name()
834 CHECKIF(player == NULL) { in media_proxy_ctrl_get_icon_id()
869 CHECKIF(player == NULL) { in media_proxy_ctrl_get_icon_url()
904 CHECKIF(player == NULL) { in media_proxy_ctrl_get_track_title()
939 CHECKIF(player == NULL) { in media_proxy_ctrl_get_track_duration()
975 CHECKIF(player == NULL) { in media_proxy_ctrl_get_track_position()
1011 CHECKIF(player == NULL) { in media_proxy_ctrl_set_track_position()
1046 CHECKIF(player == NULL) { in media_proxy_ctrl_get_playback_speed()
[all …]
/Zephyr-latest/subsys/bluetooth/lib/
Dead.c108 CHECKIF(session_key == NULL) { in bt_ead_encrypt()
113 CHECKIF(iv == NULL) { in bt_ead_encrypt()
118 CHECKIF(payload == NULL) { in bt_ead_encrypt()
123 CHECKIF(encrypted_payload == NULL) { in bt_ead_encrypt()
143 CHECKIF(session_key == NULL) { in bt_test_ead_encrypt()
148 CHECKIF(iv == NULL) { in bt_test_ead_encrypt()
153 CHECKIF(randomizer == NULL) { in bt_test_ead_encrypt()
158 CHECKIF(payload == NULL) { in bt_test_ead_encrypt()
163 CHECKIF(encrypted_payload == NULL) { in bt_test_ead_encrypt()
212 CHECKIF(session_key == NULL) { in bt_ead_decrypt()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dcheck.h14 #define CHECKIF(expr) \ macro
18 #define CHECKIF(...) \ macro
21 #define CHECKIF(expr) \ macro
/Zephyr-latest/subsys/fs/
Dfs.c160 CHECKIF(mp->fs->open == NULL) { in fs_open()
170 CHECKIF(mp->fs->truncate == NULL) { in fs_open()
209 CHECKIF(zfp->mp->fs->close == NULL) { in fs_close()
232 CHECKIF(zfp->mp->fs->read == NULL) { in fs_read()
252 CHECKIF(zfp->mp->fs->write == NULL) { in fs_write()
272 CHECKIF(zfp->mp->fs->lseek == NULL) { in fs_seek()
292 CHECKIF(zfp->mp->fs->tell == NULL) { in fs_tell()
312 CHECKIF(zfp->mp->fs->truncate == NULL) { in fs_truncate()
332 CHECKIF(zfp->mp->fs->sync == NULL) { in fs_sync()
379 CHECKIF(mp->fs->opendir == NULL) { in fs_opendir()
[all …]
/Zephyr-latest/kernel/
Dmem_domain.c94 CHECKIF(domain == NULL) { in k_mem_domain_init()
99 CHECKIF(!(num_parts == 0U || parts != NULL)) { in k_mem_domain_init()
105 CHECKIF(!(num_parts <= max_partitions)) { in k_mem_domain_init()
132 CHECKIF(!check_add_partition(domain, parts[i])) { in k_mem_domain_init()
145 CHECKIF(ret2 != 0) { in k_mem_domain_init()
166 CHECKIF(domain == NULL) { in k_mem_domain_add_partition()
171 CHECKIF(!check_add_partition(domain, part)) { in k_mem_domain_add_partition()
186 CHECKIF(!(p_idx < max_partitions)) { in k_mem_domain_add_partition()
219 CHECKIF((domain == NULL) || (part == NULL)) { in k_mem_domain_remove_partition()
234 CHECKIF(!(p_idx < max_partitions)) { in k_mem_domain_remove_partition()
/Zephyr-latest/drivers/mm/
Dmm_drv_intel_adsp_tlb.c88 CHECKIF(!sys_mm_drv_is_addr_aligned(pa) || in sys_mm_drv_map_page()
95 CHECKIF((pa < L2_SRAM_BASE) || in sys_mm_drv_map_page()
102 CHECKIF((va < CONFIG_KERNEL_VM_BASE) || in sys_mm_drv_map_page()
171 CHECKIF((va < CONFIG_KERNEL_VM_BASE) || in sys_mm_drv_unmap_page()
178 CHECKIF(!sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_unmap_page()
218 CHECKIF(!sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_page_phys_get()
224 CHECKIF((va < CONFIG_KERNEL_VM_BASE) || in sys_mm_drv_page_phys_get()
Dmm_drv_intel_adsp_mtl_tlb.c191 CHECKIF(!sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_map_page()
197 CHECKIF((va < UNUSED_L2_START_ALIGNED) || in sys_mm_drv_map_page()
221 CHECKIF((pa < L2_SRAM_BASE) || in sys_mm_drv_map_page()
228 CHECKIF(!sys_mm_drv_is_addr_aligned(pa)) { in sys_mm_drv_map_page()
294 CHECKIF(!sys_mm_drv_is_addr_aligned(phys) || in sys_mm_drv_map_region()
347 CHECKIF((va < UNUSED_L2_START_ALIGNED) || in sys_mm_drv_unmap_page_wflush()
354 CHECKIF(!sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_unmap_page_wflush()
438 CHECKIF(!sys_mm_drv_is_addr_aligned(va) || in sys_mm_drv_update_page_flags()
482 CHECKIF(!sys_mm_drv_is_virt_addr_aligned(virt) || in sys_mm_drv_unmap_region_initial()
522 CHECKIF(!sys_mm_drv_is_addr_aligned(va)) { in sys_mm_drv_page_phys_get()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.c47 CHECKIF(dev == NULL) { in set_power_mode()
111 CHECKIF(powermode == NULL || dev == NULL) { in get_power_mode()
169 CHECKIF(dev == NULL) { in power_up_check()
191 CHECKIF(int_status == NULL || dev == NULL) { in get_interrupt_status()
202 CHECKIF(nvm_status == NULL || dev == NULL) { in get_nvm_status()
213 CHECKIF(drv == NULL) { in validate_chip_id()
242 CHECKIF(osr_odr_press_cfg == NULL || dev == NULL) { in get_osr_odr_press_config()
262 CHECKIF(osr == NULL || dev == NULL) { in set_osr_config()
305 CHECKIF(odr == NULL || dev == NULL) { in set_odr_config()
332 CHECKIF(dev == NULL) { in soft_reset()
[all …]
/Zephyr-latest/subsys/bluetooth/services/ias/
Dias_client.c70 CHECKIF(conn == NULL) { in bt_ias_client_alert_write()
154 CHECKIF(!conn || !ias_client_cb || !ias_client_cb->discover) { in bt_ias_discover()
181 CHECKIF(!cb) { in bt_ias_client_cb_register()
185 CHECKIF(cb->discover == NULL) { in bt_ias_client_cb_register()
189 CHECKIF(ias_client_cb) { in bt_ias_client_cb_register()
/Zephyr-latest/drivers/sensor/vishay/vcnl36825t/
Dvcnl36825t_trigger.c27 CHECKIF(dev == NULL) { in vcnl36825t_trigger_attr_set()
31 CHECKIF(val == NULL) { in vcnl36825t_trigger_attr_set()
73 CHECKIF(!cb) { in vcnl36825t_gpio_callback()
153 CHECKIF(dev == NULL) { in vcnl36825t_trigger_set()
158 CHECKIF(trig == NULL) { in vcnl36825t_trigger_set()
234 CHECKIF(dev == NULL) { in vcnl36825t_trigger_init()
/Zephyr-latest/subsys/bluetooth/host/
Dcrypto_psa.c52 CHECKIF(buf == NULL || len == 0) { in bt_rand()
69 CHECKIF(key == NULL || plaintext == NULL || enc_data == NULL) { in bt_encrypt_le()
119 CHECKIF(key == NULL || plaintext == NULL || enc_data == NULL) { in bt_encrypt_be()
Ddata.c61 CHECKIF(input == NULL) { in bt_data_serialize()
66 CHECKIF(output == NULL) { in bt_data_serialize()

1234