Home
last modified time | relevance | path

Searched refs:atomic_test_and_set_bit (Results 1 – 25 of 75) sorted by relevance

123

/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dccp_call_ctrl.c35 if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_GTBS_DISCOVER)) { in process_profile_connection()
40 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_CCID_READ)) { in process_profile_connection()
45 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_STATUS_FLAGS_READ)) { in process_profile_connection()
50 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_CALL_STATE_READ)) { in process_profile_connection()
55 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_PROFILE_CONNECTED)) { in process_profile_connection()
/Zephyr-latest/arch/x86/core/intel64/
Dirq.c156 if (!atomic_test_and_set_bit(irq_reserved, IRQ_LIST_INITIALIZED)) { in arch_irq_allocate()
169 if (!atomic_test_and_set_bit(irq_reserved, irq)) { in arch_irq_allocate()
/Zephyr-latest/subsys/bluetooth/audio/
Dmcc.c2108 if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_discover_mcs()
2161 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_player_name()
2200 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_icon_obj_id()
2240 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_icon_url()
2280 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_track_title()
2320 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_track_duration()
2360 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_track_position()
2400 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_set_track_position()
2445 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_read_playback_speed()
2485 } else if (atomic_test_and_set_bit(mcs_inst->flags, MCC_FLAG_BUSY)) { in bt_mcc_set_playback_speed()
[all …]
Daics_client.c472 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in aics_client_common_control()
707 if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_discover()
735 if (!atomic_test_and_set_bit(aics_insts[i].cli.flags, BT_AICS_CLIENT_FLAG_ACTIVE)) { in bt_aics_client_free_instance_get()
788 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_state_get()
826 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_gain_setting_get()
864 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_type_get()
902 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_status_get()
960 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_gain_set()
1003 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_description_get()
1045 } else if (atomic_test_and_set_bit(inst->cli.flags, BT_AICS_CLIENT_FLAG_BUSY)) { in bt_aics_client_description_set()
Dvocs_client.c459 if (atomic_test_and_set_bit(inst->flags, BT_VOCS_CLIENT_FLAG_BUSY)) { in bt_vocs_client_state_get()
530 } else if (atomic_test_and_set_bit(inst->flags, BT_VOCS_CLIENT_FLAG_BUSY)) { in bt_vocs_client_location_get()
570 } else if (atomic_test_and_set_bit(inst->flags, BT_VOCS_CLIENT_FLAG_BUSY)) { in bt_vocs_client_state_set()
610 } else if (atomic_test_and_set_bit(inst->flags, BT_VOCS_CLIENT_FLAG_BUSY)) { in bt_vocs_client_description_get()
663 if (!atomic_test_and_set_bit(insts[i].flags, BT_VOCS_CLIENT_FLAG_ACTIVE)) { in bt_vocs_client_free_instance_get()
750 } else if (atomic_test_and_set_bit(inst->flags, BT_VOCS_CLIENT_FLAG_BUSY)) { in bt_vocs_discover()
Dbap_broadcast_assistant.c429 if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in long_bap_read()
1028 if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_discover()
1126 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_scan_start()
1138 if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_SCANNING)) { in bt_bap_broadcast_assistant_scan_start()
1213 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_scan_stop()
1381 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_add_src()
1507 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_mod_src()
1609 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_set_broadcast_code()
1649 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_rem_src()
1708 } else if (atomic_test_and_set_bit(inst->flags, BAP_BA_FLAG_BUSY)) { in bt_bap_broadcast_assistant_read_recv_state()
Dhas_client.c852 atomic_test_and_set_bit(inst->flags, HAS_CLIENT_DISCOVER_IN_PROGRESS)) { in bt_has_client_discover()
891 atomic_test_and_set_bit(inst->flags, HAS_CLIENT_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_presets_read()
931 atomic_test_and_set_bit(inst->flags, HAS_CLIENT_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_preset_set()
956 atomic_test_and_set_bit(inst->flags, HAS_CLIENT_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_preset_next()
981 atomic_test_and_set_bit(inst->flags, HAS_CLIENT_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_preset_prev()
Dmicp_mic_ctlr.c544 if (atomic_test_and_set_bit(mic_ctlr->flags, BT_MICP_MIC_CTLR_FLAG_BUSY)) { in bt_micp_mic_ctlr_discover()
693 } else if (atomic_test_and_set_bit(mic_ctlr->flags, BT_MICP_MIC_CTLR_FLAG_BUSY)) { in bt_micp_mic_ctlr_mute_get()
724 } else if (atomic_test_and_set_bit(mic_ctlr->flags, BT_MICP_MIC_CTLR_FLAG_BUSY)) { in bt_micp_mic_ctlr_write_mute()
Dvcp_vol_ctlr.c587 } else if (atomic_test_and_set_bit(vol_ctlr->flags, BT_VCP_VOL_CTLR_FLAG_BUSY)) { in vcp_vol_ctlr_common_vcs_cp()
963 if (atomic_test_and_set_bit(vol_ctlr->flags, BT_VCP_VOL_CTLR_FLAG_BUSY)) { in bt_vcp_vol_ctlr_discover()
1109 } else if (atomic_test_and_set_bit(vol_ctlr->flags, BT_VCP_VOL_CTLR_FLAG_BUSY)) { in bt_vcp_vol_ctlr_read_state()
1144 } else if (atomic_test_and_set_bit(vol_ctlr->flags, BT_VCP_VOL_CTLR_FLAG_BUSY)) { in bt_vcp_vol_ctlr_read_flags()
1215 } else if (atomic_test_and_set_bit(vol_ctlr->flags, BT_VCP_VOL_CTLR_FLAG_BUSY)) { in bt_vcp_vol_ctlr_set_vol()
/Zephyr-latest/subsys/bluetooth/host/
Dmonitor.c233 if (atomic_test_and_set_bit(&flags, BT_LOG_BUSY)) { in bt_monitor_send()
266 if (atomic_test_and_set_bit(&flags, BT_CONSOLE_BUSY)) { in monitor_console_out()
348 if (atomic_test_and_set_bit(&flags, BT_LOG_BUSY)) { in monitor_log_process()
Dhci_ecc.c287 if (atomic_test_and_set_bit(flags, PENDING_DHKEY)) { in le_gen_dhkey()
338 } else if (atomic_test_and_set_bit(flags, PENDING_PUB_KEY)) { in le_p256_pub_key()
Decc.c115 if (atomic_test_and_set_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_pub_key_gen()
/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_uart_async.c75 if (!atomic_test_and_set_bit(&backend->async.state, in modem_backend_uart_async_event_handler()
83 if (!atomic_test_and_set_bit(&backend->async.state, in modem_backend_uart_async_event_handler()
210 transmitting = atomic_test_and_set_bit(&backend->async.state, in modem_backend_uart_async_transmit()
Dmodem_backend_tty.c56 if (atomic_test_and_set_bit(&backend->state, MODEM_BACKEND_TTY_STATE_RUN_BIT)) { in modem_backend_tty_open()
/Zephyr-latest/subsys/bluetooth/mesh/
Dmain.c65 if (atomic_test_and_set_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_provision()
442 if (atomic_test_and_set_bit(bt_mesh.flags, BT_MESH_SUSPENDED)) { in bt_mesh_suspend()
568 if (atomic_test_and_set_bit(bt_mesh.flags, BT_MESH_INIT)) { in bt_mesh_init()
Dpb_adv.c451 bool pending = atomic_test_and_set_bit(link.flags, ADV_ACK_PENDING); in gen_prov_ack_send()
937 if (atomic_test_and_set_bit(link.flags, ADV_LINK_ACK_RECVD)) { in link_ack()
1003 if (atomic_test_and_set_bit(link.flags, ADV_LINK_ACTIVE)) { in prov_link_open()
1057 if (atomic_test_and_set_bit(link.flags, ADV_LINK_CLOSING)) { in prov_link_close()
Dprovisioner.c790 if (atomic_test_and_set_bit(bt_mesh_prov_link.flags, REMOTE_PUB_KEY)) { in bt_mesh_prov_remote_pub_key_set()
805 if (atomic_test_and_set_bit(bt_mesh_prov_link.flags, LINK_ACTIVE)) { in link_open()
875 if (atomic_test_and_set_bit(bt_mesh_prov_link.flags, LINK_ACTIVE)) { in reprovision_local_client_server()
/Zephyr-latest/include/zephyr/sys/
Datomic.h170 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit() function
/Zephyr-latest/drivers/modem/
Dmodem_at_shell.c236 if (atomic_test_and_set_bit(&at_shell_state, AT_SHELL_STATE_SCRIPT_RUNNING_BIT)) { in at_shell_cmd_handler()
/Zephyr-latest/drivers/serial/
Duart_cc13xx_cc26xx.c249 if (!atomic_test_and_set_bit(data->pm_lock, UART_CC13XX_CC26XX_PM_LOCK_TX)) { in uart_cc13xx_cc26xx_irq_tx_enable()
301 if (!atomic_test_and_set_bit(data->pm_lock, UART_CC13XX_CC26XX_PM_LOCK_RX)) { in uart_cc13xx_cc26xx_irq_rx_enable()
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dsfunc.c149 if (!atomic_test_and_set_bit(&data->state, SAMPLE_FUNCTION_ENABLED)) { in sfunc_enable()
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_msc.c179 if (atomic_test_and_set_bit(&ctx->bits, MSC_BULK_OUT_QUEUED)) { in msc_queue_bulk_out_ep()
266 if (atomic_test_and_set_bit(&ctx->bits, MSC_BULK_IN_QUEUED)) { in msc_process_read()
540 if (atomic_test_and_set_bit(&ctx->bits, MSC_BULK_IN_QUEUED)) { in msc_send_csw()
Dusbd_uac2.c272 if (atomic_test_and_set_bit(queued_bits, as_idx)) { in usbd_uac2_send()
274 if (atomic_test_and_set_bit(queued_bits, as_idx)) { in usbd_uac2_send()
325 if (atomic_test_and_set_bit(&ctx->as_queued, as_idx)) { in schedule_iso_out_read()
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c234 if (!atomic_test_and_set_bit(flags, FLAG_BASE_RECEIVED)) { in base_recv_cb()
249 if (!atomic_test_and_set_bit(flags, FLAG_BROADCAST_SYNCABLE)) { in syncable_cb()
/Zephyr-latest/tests/kernel/common/src/
Datomic.c243 zassert_true(!!(atomic_test_and_set_bit(&target, i)) == !!(orig & BIT(i)), in ZTEST_USER()

123