Lines Matching refs:atomic_test_bit
83 atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_id_check_func()
93 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_private_enabled()
94 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in adv_is_private_enabled()
104 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_limited_enabled()
105 atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in adv_is_limited_enabled()
112 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_pause_enabled()
182 if (!atomic_test_bit(adv->flags, BT_ADV_PARAMS_SET)) { in bt_id_set_adv_random_addr()
222 if (atomic_test_bit(adv->flags, BT_ADV_RPA_VALID) && in adv_rpa_expired()
250 if (!atomic_test_bit(adv->flags, BT_ADV_LIMITED) && in adv_rpa_invalidate()
251 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in adv_rpa_invalidate()
277 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED))) { in le_rpa_invalidate()
351 if (atomic_test_bit(bt_dev.flags, BT_DEV_RPA_VALID)) { in bt_id_set_private_addr()
431 if (atomic_test_bit(adv->flags, BT_ADV_RPA_VALID)) { in bt_id_set_adv_private_addr()
435 if (!atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in bt_id_set_adv_private_addr()
467 if (!atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in bt_id_set_adv_private_addr()
544 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_pause_rpa()
545 !atomic_test_bit(adv->flags, BT_ADV_LIMITED) && in adv_pause_rpa()
546 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in adv_pause_rpa()
604 if (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING) && in le_update_private_addr()
606 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED))) { in le_update_private_addr()
612 atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING)) { in le_update_private_addr()
625 atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in le_update_private_addr()
626 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in le_update_private_addr()
696 if (!(adv_enabled || atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING) || in rpa_timeout()
725 if (!atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in bt_id_scan_random_addr_check()
738 if ((atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY) && in bt_id_scan_random_addr_check()
769 if (!(atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING) || in bt_id_adv_random_addr_check()
770 atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING))) { in bt_id_adv_random_addr_check()
789 atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING) && in bt_id_adv_random_addr_check()
1037 bool scan_enabled = atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING); in bt_id_add()
1040 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED)) { in bt_id_add()
1185 bool scan_enabled = atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING); in bt_id_del()
1188 atomic_test_bit(bt_dev.flags, BT_DEV_SCAN_LIMITED)) { in bt_id_del()
1327 atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in id_create()
1367 if (!atomic_test_bit(bt_dev.flags, BT_DEV_ENABLE)) { in bt_id_create()
1483 atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_id_delete()
1789 return adv && atomic_test_bit(adv->flags, BT_ADV_ENABLED); in is_adv_using_rand_addr()
1809 if (err == -EACCES && (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING) || in bt_id_set_scan_own_addr()
1810 atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING))) { in bt_id_set_scan_own_addr()
1956 atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) { in bt_id_set_adv_own_addr()
2004 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_oob_get_local()
2018 atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in bt_le_oob_get_local()
2019 atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY) && in bt_le_oob_get_local()
2022 atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING)) { in bt_le_oob_get_local()
2037 atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in bt_le_oob_get_local()
2038 atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY) && in bt_le_oob_get_local()
2050 (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING) || in bt_le_oob_get_local()
2051 atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING))) { in bt_le_oob_get_local()
2083 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_ext_adv_oob_get_local()
2088 !atomic_test_bit(adv->flags, BT_ADV_USE_IDENTITY)) { in bt_le_ext_adv_oob_get_local()
2094 if (!atomic_test_bit(adv->flags, BT_ADV_LIMITED) && in bt_le_ext_adv_oob_get_local()
2097 atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING)) { in bt_le_ext_adv_oob_get_local()
2153 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_oob_set_sc_data()
2168 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_oob_get_sc_data()