Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.5.0/samples/bluetooth/hap_ha/src/
Dccp_call_ctrl.c34 if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_GTBS_DISCOVER)) { in process_profile_connection()
39 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_CCID_READ)) { in process_profile_connection()
44 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_STATUS_FLAGS_READ)) { in process_profile_connection()
49 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_CALL_STATE_READ)) { in process_profile_connection()
54 } else if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_PROFILE_CONNECTED)) { in process_profile_connection()
/Zephyr-Core-3.5.0/arch/x86/core/intel64/
Dirq.c202 if (!atomic_test_and_set_bit(irq_reserved, IRQ_LIST_INITIALIZED)) { in arch_irq_allocate()
215 if (!atomic_test_and_set_bit(irq_reserved, irq)) { in arch_irq_allocate()
/Zephyr-Core-3.5.0/subsys/modem/backends/
Dmodem_backend_uart_async.c71 if (!atomic_test_and_set_bit(&backend->async.state, in modem_backend_uart_async_event_handler()
79 if (!atomic_test_and_set_bit(&backend->async.state, in modem_backend_uart_async_event_handler()
173 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-Core-3.5.0/subsys/bluetooth/host/
Dmonitor.c210 if (atomic_test_and_set_bit(&flags, BT_LOG_BUSY)) { in bt_monitor_send()
243 if (atomic_test_and_set_bit(&flags, BT_CONSOLE_BUSY)) { in monitor_console_out()
328 if (atomic_test_and_set_bit(&flags, BT_LOG_BUSY)) { in monitor_log_process()
Dhci_ecc.c247 if (atomic_test_and_set_bit(flags, PENDING_DHKEY)) { in le_gen_dhkey()
298 } else if (atomic_test_and_set_bit(flags, PENDING_PUB_KEY)) { in le_p256_pub_key()
Decc.c83 if (atomic_test_and_set_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_pub_key_gen()
/Zephyr-Core-3.5.0/include/zephyr/sys/
Datomic.h176 static inline bool atomic_test_and_set_bit(atomic_t *target, int bit) in atomic_test_and_set_bit() function
/Zephyr-Core-3.5.0/samples/subsys/usb/hid/src/
Dmain.c62 if (!atomic_test_and_set_bit(hid_ep_in_busy, HID_EP_BUSY_FLAG)) { in send_report()
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/
Dmain.c66 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()
515 if (atomic_test_and_set_bit(bt_mesh.flags, BT_MESH_INIT)) { in bt_mesh_init()
Dadv_ext.c153 if (atomic_test_and_set_bit(adv->flags, ADV_FLAG_ACTIVE)) { in adv_start()
341 } else if (atomic_test_and_set_bit(adv->flags, ADV_FLAG_SCHEDULED)) { in schedule_send()
Dpb_adv.c325 bool pending = atomic_test_and_set_bit(link.flags, ADV_ACK_PENDING); in gen_prov_ack_send()
802 if (atomic_test_and_set_bit(link.flags, ADV_LINK_ACK_RECVD)) { in link_ack()
868 if (atomic_test_and_set_bit(link.flags, ADV_LINK_ACTIVE)) { in prov_link_open()
920 if (atomic_test_and_set_bit(link.flags, ADV_LINK_CLOSING)) { in prov_link_close()
Dprovisioner.c784 if (atomic_test_and_set_bit(bt_mesh_prov_link.flags, REMOTE_PUB_KEY)) { in bt_mesh_prov_remote_pub_key_set()
799 if (atomic_test_and_set_bit(bt_mesh_prov_link.flags, LINK_ACTIVE)) { in link_open()
869 if (atomic_test_and_set_bit(bt_mesh_prov_link.flags, LINK_ACTIVE)) { in reprovision_local_client_server()
/Zephyr-Core-3.5.0/subsys/usb/device_next/class/
Dusbd_cdc_acm.c471 if (atomic_test_and_set_bit(&data->state, CDC_ACM_LOCK)) { in cdc_acm_tx_fifo_handler()
525 if (atomic_test_and_set_bit(&data->state, CDC_ACM_RX_FIFO_BUSY)) { in cdc_acm_rx_fifo_handler()
736 if (atomic_test_and_set_bit(&data->state, CDC_ACM_LOCK)) { in cdc_acm_irq_cb_handler()
793 if (atomic_test_and_set_bit(&data->state, CDC_ACM_LOCK)) { in cdc_acm_poll_in()
818 if (atomic_test_and_set_bit(&data->state, CDC_ACM_LOCK)) { in cdc_acm_poll_out()
Dusbd_msc.c171 if (atomic_test_and_set_bit(&ctx->bits, MSC_BULK_OUT_QUEUED)) { in msc_queue_bulk_out_ep()
258 if (atomic_test_and_set_bit(&ctx->bits, MSC_BULK_IN_QUEUED)) { in msc_process_read()
532 if (atomic_test_and_set_bit(&ctx->bits, MSC_BULK_IN_QUEUED)) { in msc_send_csw()
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/
Dhas_client.c883 atomic_test_and_set_bit(inst->flags, HAS_DISCOVER_IN_PROGRESS)) { in bt_has_client_discover()
922 atomic_test_and_set_bit(inst->flags, HAS_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_presets_read()
962 atomic_test_and_set_bit(inst->flags, HAS_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_preset_set()
987 atomic_test_and_set_bit(inst->flags, HAS_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_preset_next()
1012 atomic_test_and_set_bit(inst->flags, HAS_CP_OPERATION_IN_PROGRESS)) { in bt_has_client_preset_prev()
/Zephyr-Core-3.5.0/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-Core-3.5.0/tests/kernel/common/src/
Datomic.c243 zassert_true(!!(atomic_test_and_set_bit(&target, i)) == !!(orig & BIT(i)), in ZTEST_USER()
/Zephyr-Core-3.5.0/subsys/modbus/
Dmodbus_core.c202 if (atomic_test_and_set_bit(&ctx->state, MODBUS_STATE_CONFIGURED)) { in modbus_init_iface()
/Zephyr-Core-3.5.0/arch/xtensa/core/
Dxtensa_mmu.c120 if (!atomic_test_and_set_bit(l2_page_tables_track, idx)) { in alloc_l2_table()
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Ddma.h515 if (!atomic_test_and_set_bit(dma_ctx->atomic, i)) { in z_impl_dma_request_channel()
/Zephyr-Core-3.5.0/drivers/console/
Duart_console.c275 !atomic_test_and_set_bit(&esc_state, ESC_ANSI_VAL_2)) { in handle_ansi()
/Zephyr-Core-3.5.0/drivers/adc/
Dadc_mchp_xec.c91 if (atomic_test_and_set_bit(data->pm_policy_state_flag, flag) == 0) { in adc_xec_pm_policy_state_lock_get()
/Zephyr-Core-3.5.0/subsys/modem/
Dmodem_ppp.c463 if (atomic_test_and_set_bit(&ppp->state, MODEM_PPP_STATE_ATTACHED_BIT) == true) { in modem_ppp_attach()
/Zephyr-Core-3.5.0/drivers/peci/
Dpeci_mchp_xec.c74 if (atomic_test_and_set_bit(data->pm_policy_state_flag, flag) == 0) { in peci_xec_pm_policy_state_lock_get()

12