Home
last modified time | relevance | path

Searched refs:atomic_test_bit (Results 1 – 25 of 56) sorted by relevance

123

/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/
Dtest_beacon.c48 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)) { in ivu_log()
52 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in ivu_log()
56 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)) { in ivu_log()
60 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)) { in ivu_log()
68 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in test_tx_on_iv_update()
69 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tx_on_iv_update()
70 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in test_tx_on_iv_update()
71 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_tx_on_iv_update()
78 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_tx_on_iv_update()
81 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tx_on_iv_update()
[all …]
Dtest_provision.c63 if (!atomic_test_bit(flags, IS_PROVISIONER)) { in unprovisioned_beacon()
72 if (!atomic_test_bit(flags, IS_PROVISIONER)) { in prov_complete()
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Did.c67 atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_id_check_func()
78 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_private_enabled()
79 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in adv_is_private_enabled()
90 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_limited_enabled()
91 atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in adv_is_limited_enabled()
98 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_pause_enabled()
155 if (!atomic_test_bit(adv->flags, BT_ADV_PARAMS_SET)) { in bt_id_set_adv_random_addr()
188 if (!atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in adv_rpa_invalidate()
197 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED))) { in le_rpa_invalidate()
219 if (atomic_test_bit(bt_dev.flags, BT_DEV_RPA_VALID)) { in bt_id_set_private_addr()
[all …]
Dadv.c32 if (atomic_test_bit(adv->flags, BT_ADV_INCLUDE_NAME_SD)) { in get_adv_name_type()
36 if (atomic_test_bit(adv->flags, BT_ADV_INCLUDE_NAME_AD)) { in get_adv_name_type()
82 if (!atomic_test_bit(adv_pool[i].flags, BT_ADV_CREATED)) { in adv_new()
108 atomic_test_bit(adv_pool[handle].flags, BT_ADV_CREATED)) { in bt_adv_lookup_handle()
122 if (atomic_test_bit(adv_pool[i].flags, BT_ADV_CREATED)) { in bt_le_ext_adv_foreach()
426 if (atomic_test_bit(adv->flags, BT_ADV_EXT_ADV)) { in hci_set_adv_ext_complete()
546 atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in hci_set_ad_ext()
693 if (!atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in bt_le_adv_update_data()
697 scannable = atomic_test_bit(adv->flags, BT_ADV_SCANNABLE); in bt_le_adv_update_data()
803 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_adv_start_legacy()
[all …]
Dscan.c57 cp->filter_dup = atomic_test_bit(bt_dev.flags, in set_le_ext_scan_enable()
93 cp->filter_dup = atomic_test_bit(bt_dev.flags, in bt_le_scan_set_enable_legacy()
164 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_FILTERED)) { in start_le_scan_ext()
213 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_FILTERED)) { in start_le_scan_legacy()
275 if (atomic_test_bit(bt_dev.flags, BT_DEV_EXPLICIT_SCAN)) { in bt_le_scan_update()
279 if (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) { in bt_le_scan_update()
326 if (atomic_test_bit(bt_dev.flags, BT_DEV_EXPLICIT_SCAN)) { in check_pending_conn()
341 if (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING) && in check_pending_conn()
406 atomic_test_bit(bt_dev.flags, BT_DEV_EXPLICIT_SCAN) && in le_adv_recv()
556 if (!atomic_test_bit(per_adv_sync_pool[i].flags, in per_adv_sync_new()
[all …]
Dsmp.c341 if (atomic_test_bit(conn->flags, BT_CONN_FORCE_PAIR)) { in smp_keys_check()
378 if (!atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in get_pair_method()
473 if (atomic_test_bit(smp->flags, SMP_FLAG_TIMEOUT)) { in smp_create_pdu()
741 !atomic_test_bit(smp->flags, SMP_FLAG_SC) && in update_keys_check()
761 !atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in update_keys_check()
931 if (atomic_test_bit(smp->flags, SMP_FLAG_CT2)) { in sc_derive_link_key()
1008 bool bond_flag = atomic_test_bit(smp->flags, SMP_FLAG_BOND); in smp_pairing_br_complete()
1058 if (atomic_test_bit(smp->flags, SMP_FLAG_BR_PAIR)) { in bt_smp_br_connected()
1121 if (atomic_test_bit(smp->flags, SMP_FLAG_CT2)) { in smp_br_derive_ltk()
1168 if (atomic_test_bit(smp->flags, SMP_FLAG_TIMEOUT)) { in smp_br_create_pdu()
[all …]
Ddirection.c338 if (!atomic_test_bit(per_adv_sync->flags, BT_PER_ADV_SYNC_CTE_ENABLED)) { in hci_df_prepare_connectionless_iq_report()
474 if (!atomic_test_bit(adv->flags, BT_ADV_PARAMS_SET)) { in bt_df_set_adv_cte_tx_param()
478 if (atomic_test_bit(adv->flags, BT_PER_ADV_CTE_ENABLED)) { in bt_df_set_adv_cte_tx_param()
494 if (!atomic_test_bit(adv->flags, BT_PER_ADV_PARAMS_SET)) { in bt_df_set_adv_cte_tx_enabled()
498 if (!atomic_test_bit(adv->flags, BT_PER_ADV_CTE_PARAMS_SET)) { in bt_df_set_adv_cte_tx_enabled()
502 if (enable == atomic_test_bit(adv->flags, BT_PER_ADV_CTE_ENABLED)) { in bt_df_set_adv_cte_tx_enabled()
530 if (!atomic_test_bit(sync->flags, BT_PER_ADV_SYNC_SYNCED)) { in bt_df_set_per_adv_sync_cte_rx_enable()
535 !atomic_test_bit(sync->flags, BT_PER_ADV_SYNC_CTE_ENABLED)) { in bt_df_set_per_adv_sync_cte_rx_enable()
Dhci_ecc.c176 bool use_debug = atomic_test_bit(flags, USE_DEBUG_KEY); in emulate_le_generate_dhkey()
216 if (atomic_test_bit(flags, PENDING_PUB_KEY)) { in ecc_thread()
218 } else if (atomic_test_bit(flags, PENDING_DHKEY)) { in ecc_thread()
242 if (atomic_test_bit(flags, PENDING_PUB_KEY)) { in le_gen_dhkey()
299 if (atomic_test_bit(flags, PENDING_DHKEY)) { in le_p256_pub_key()
Decc.c113 if (atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY)) { in bt_pub_key_get()
161 if (dh_key_cb || atomic_test_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_dh_key_gen()
165 if (!atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY)) { in bt_dh_key_gen()
Dbr.c476 if (!atomic_test_bit(bt_dev.flags, BT_DEV_INQUIRY)) { in bt_hci_inquiry_result_with_rssi()
518 if (!atomic_test_bit(bt_dev.flags, BT_DEV_INQUIRY)) { in bt_hci_extended_inquiry_result()
957 if (atomic_test_bit(bt_dev.flags, BT_DEV_INQUIRY)) { in bt_br_discovery_start()
985 if (!atomic_test_bit(bt_dev.flags, BT_DEV_INQUIRY)) { in bt_br_discovery_stop()
1056 if (atomic_test_bit(bt_dev.flags, BT_DEV_PSCAN)) { in bt_br_set_connectable()
1062 if (!atomic_test_bit(bt_dev.flags, BT_DEV_PSCAN)) { in bt_br_set_connectable()
1073 if (atomic_test_bit(bt_dev.flags, BT_DEV_ISCAN)) { in bt_br_set_discoverable()
1077 if (!atomic_test_bit(bt_dev.flags, BT_DEV_PSCAN)) { in bt_br_set_discoverable()
1084 if (!atomic_test_bit(bt_dev.flags, BT_DEV_ISCAN)) { in bt_br_set_discoverable()
Dconn.c1413 if (atomic_test_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_SET) && in notify_le_param_updated()
1539 !atomic_test_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_L2CAP)) || in send_conn_le_param_update()
2325 if (!atomic_test_bit(conn->flags, BT_CONN_AUTO_FEATURE_EXCH) || in bt_conn_get_remote_info()
2327 !atomic_test_bit(conn->flags, BT_CONN_AUTO_VERSION_INFO))) { in bt_conn_get_remote_info()
2435 if (atomic_test_bit(conn->flags, BT_CONN_PERIPHERAL_PARAM_UPDATE)) { in bt_conn_le_param_update()
2460 !atomic_test_bit(conn->flags, BT_CONN_AUTO_DATA_LEN_COMPLETE)) { in bt_conn_le_data_len_update()
2475 !atomic_test_bit(conn->flags, BT_CONN_AUTO_PHY_COMPLETE)) { in bt_conn_le_phy_update()
2555 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_conn_le_create_auto()
2573 if (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) { in bt_conn_le_create_auto()
2577 if (atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING)) { in bt_conn_le_create_auto()
[all …]
Dssp.c216 bool bond = !atomic_test_bit(conn->flags, BT_CONN_BR_NOBOND); in ssp_pairing_complete()
263 !atomic_test_bit(conn->flags, in ssp_auth()
336 if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRING)) { in bt_ssp_start_security()
492 !atomic_test_bit(conn->flags, BT_CONN_BR_NOBOND)) { in bt_hci_link_key_notify()
657 if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRING_INITIATOR)) { in bt_hci_io_capa_req()
Dsettings.c131 if (atomic_test_bit(bt_dev.flags, BT_DEV_PRESET_ID)) { in set()
259 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in commit()
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/
Dcfg.c34 if (atomic_test_bit(bt_mesh.flags, BT_MESH_BEACON) == beacon) { in bt_mesh_beacon_set()
47 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_beacon_set()
54 return atomic_test_bit(bt_mesh.flags, BT_MESH_BEACON); in bt_mesh_beacon_enabled()
64 if (atomic_test_bit(bt_mesh.flags, feature_flag) == in feature_set()
77 return atomic_test_bit(bt_mesh.flags, feature_flag) ? in feature_get()
98 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_gatt_proxy_set()
127 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_default_ttl_set()
155 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_friend_set()
184 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_net_transmit_set()
215 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_relay_set()
[all …]
Dmain.c72 atomic_test_bit(bt_mesh_cdb.flags, BT_MESH_CDB_VALID)) { in bt_mesh_provision()
142 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_provision_adv()
161 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_reset()
221 return atomic_test_bit(bt_mesh.flags, BT_MESH_VALID); in bt_mesh_is_provisioned()
240 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_suspend()
283 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_resume()
Dprov_device.c161 if (atomic_test_bit(bt_mesh_prov_link.flags, OOB_STATIC_KEY)) { in prov_start()
236 if (atomic_test_bit(bt_mesh_prov_link.flags, INPUT_COMPLETE)) { in public_key_sent()
244 if (atomic_test_bit(bt_mesh_prov_link.flags, WAIT_NUMBER) || in start_auth()
245 atomic_test_bit(bt_mesh_prov_link.flags, WAIT_STRING)) { in start_auth()
289 atomic_test_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY)) { in dh_key_gen_complete()
291 } else if (!atomic_test_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY)) { in dh_key_gen_complete()
319 atomic_test_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY)) { in prov_dh_key_gen()
357 atomic_test_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY)) { in prov_pub_key()
570 if (atomic_test_bit(bt_mesh_prov_link.flags, PUB_KEY_SENT) || in local_input_complete()
571 atomic_test_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY)) { in local_input_complete()
Dpb_adv.c210 if (atomic_test_bit(link.flags, ADV_PROVISIONER)) { in reset_adv_link()
261 return atomic_test_bit(link.flags, ADV_ACK_PENDING); in ack_pending()
282 if (atomic_test_bit(link.flags, ADV_LINK_INVALID)) { in prov_msg_recv()
294 if (!atomic_test_bit(link.flags, ADV_LINK_ACTIVE)) { in protocol_timeout()
424 if (!atomic_test_bit(link.flags, ADV_LINK_CLOSING)) { in gen_prov_ack()
525 if (!atomic_test_bit(link.flags, ADV_LINK_ACTIVE)) { in gen_prov_ctl()
532 if (!atomic_test_bit(link.flags, ADV_LINK_ACTIVE)) { in gen_prov_ctl()
567 if (!atomic_test_bit(link.flags, ADV_LINK_ACTIVE) && in gen_prov_recv()
607 if (!atomic_test_bit(link.flags, ADV_LINK_ACTIVE)) { in prov_retransmit()
755 if (atomic_test_bit(link.flags, ADV_LINK_ACTIVE)) { in link_open()
[all …]
Dnet.c219 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in bt_mesh_iv_update()
225 return atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS); in bt_mesh_iv_update()
231 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in bt_mesh_net_iv_update()
281 atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST))) { in bt_mesh_net_iv_update()
343 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) && in bt_mesh_next_seq()
857 atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) ? in ivu_refresh()
870 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in ivu_refresh()
1004 iv.iv_update = atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS); in store_pending_iv()
1017 if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_net_pending_iv_store()
1057 if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_net_pending_net_store()
[all …]
Dprovisioner.c121 if (atomic_test_bit(bt_mesh_prov_link.flags, REMOTE_PUB_KEY) && oob_pub_key) { in send_start()
340 if (atomic_test_bit(bt_mesh_prov_link.flags, OOB_PUB_KEY) && in public_key_sent()
341 atomic_test_bit(bt_mesh_prov_link.flags, REMOTE_PUB_KEY)) { in public_key_sent()
393 if (atomic_test_bit(bt_mesh_prov_link.flags, WAIT_STRING) || in prov_dh_key_cb()
394 atomic_test_bit(bt_mesh_prov_link.flags, WAIT_NUMBER) || in prov_dh_key_cb()
395 atomic_test_bit(bt_mesh_prov_link.flags, NOTIFY_INPUT_COMPLETE)) { in prov_dh_key_cb()
431 if (atomic_test_bit(bt_mesh_prov_link.flags, NOTIFY_INPUT_COMPLETE)) { in prov_dh_key_gen()
Dbeacon.c238 !atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)) { in beacon_send()
358 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR) && in secure_beacon_recv()
359 (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) == in secure_beacon_recv()
470 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)) { in bt_mesh_beacon_disable()
/Zephyr-Core-2.7.6/subsys/pm/
Ddevice.c106 if (atomic_test_bit(&dev->pm->flags, PM_DEVICE_FLAG_TRANSITIONING)) { in pm_device_state_set()
175 if (atomic_test_bit(&dev->pm->flags, PM_DEVICE_FLAG_BUSY)) { in pm_device_is_any_busy()
185 return atomic_test_bit(&dev->pm->flags, PM_DEVICE_FLAG_BUSY); in pm_device_is_busy()
220 return atomic_test_bit(&dev->pm->flags, in pm_device_wakeup_is_enabled()
226 return atomic_test_bit(&dev->pm->flags, in pm_device_wakeup_is_capable()
Ddevice_runtime.c134 atomic_test_bit(&dev->pm->flags, PM_DEVICE_FLAG_TRANSITIONING)) { in pm_device_request()
239 atomic_test_bit(&dev->pm->flags, PM_DEVICE_FLAG_TRANSITIONING)) { in pm_device_wait()
/Zephyr-Core-2.7.6/subsys/mgmt/mcumgr/
Dsmp_shell.c54 pkt_1 = atomic_test_bit(&data->esc_state, ESC_MCUMGR_PKT_1); in read_mcumgr_byte()
55 pkt_2 = atomic_test_bit(&data->esc_state, ESC_MCUMGR_PKT_2); in read_mcumgr_byte()
56 frag_1 = atomic_test_bit(&data->esc_state, ESC_MCUMGR_FRAG_1); in read_mcumgr_byte()
57 frag_2 = atomic_test_bit(&data->esc_state, ESC_MCUMGR_FRAG_2); in read_mcumgr_byte()
/Zephyr-Core-2.7.6/drivers/console/
Duart_console.c253 if (atomic_test_bit(&esc_state, ESC_ANSI_VAL)) { in handle_ansi()
255 if (atomic_test_bit(&esc_state, ESC_ANSI_VAL_2)) { in handle_ansi()
352 pkt_1 = atomic_test_bit(&esc_state, ESC_MCUMGR_PKT_1); in read_mcumgr_byte()
353 pkt_2 = atomic_test_bit(&esc_state, ESC_MCUMGR_PKT_2); in read_mcumgr_byte()
354 frag_1 = atomic_test_bit(&esc_state, ESC_MCUMGR_FRAG_1); in read_mcumgr_byte()
355 frag_2 = atomic_test_bit(&esc_state, ESC_MCUMGR_FRAG_2); in read_mcumgr_byte()
484 if (atomic_test_bit(&esc_state, ESC_ANSI)) { in uart_console_isr()
/Zephyr-Core-2.7.6/tests/kernel/common/src/
Datomic.c219 zassert_true(!!(atomic_test_bit(&target, i) == !!(target & (1 << i))), in test_atomic()
276 zassert_true(!!atomic_test_bit(flag_bits, i) == !!(1), in test_atomic()
279 zassert_true(!!atomic_test_bit(flag_bits, i) == !!(0), in test_atomic()

123