/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | hci_core.c | 765 if (!atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in adv_rpa_invalidate() 898 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_update_rpa() 1009 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_id_check_connectable_func() 1021 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_limited_enabled() 1022 atomic_test_bit(adv->flags, BT_ADV_LIMITED)) { in adv_is_limited_enabled() 1029 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED)) { in adv_pause_enabled() 1048 if (atomic_test_bit(adv->flags, BT_ADV_ENABLED) && in adv_is_private_enabled() 1211 cp->filter_dup = atomic_test_bit(bt_dev.flags, in set_le_ext_scan_enable() 1229 filter_dup = atomic_test_bit(bt_dev.flags, in set_le_ext_scan_enable() 1264 cp->filter_dup = atomic_test_bit(bt_dev.flags, in set_le_scan_enable_legacy() [all …]
|
A D | smp.c | 370 if (!atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in get_pair_method() 748 !atomic_test_bit(smp->flags, SMP_FLAG_SC) && in update_keys_check() 768 !atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in update_keys_check() 938 if (atomic_test_bit(smp->flags, SMP_FLAG_CT2)) { in sc_derive_link_key() 1112 if (atomic_test_bit(smp->flags, SMP_FLAG_CT2)) { in smp_br_derive_ltk() 2107 if (!atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in bt_smp_distribute_keys() 2946 if (!atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in smp_pairing_req() 3147 if (!atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in smp_pairing_rsp() 3235 if (!atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in smp_pairing_confirm() 4406 if (atomic_test_bit(smp->flags, SMP_FLAG_SC)) { in bt_smp_encrypt_change() [all …]
|
A D | hci_ecc.c | 228 if (atomic_test_bit(flags, PENDING_PUB_KEY)) { in ecc_thread() 230 } else if (atomic_test_bit(flags, PENDING_DHKEY)) { in ecc_thread() 257 if (atomic_test_bit(flags, PENDING_PUB_KEY)) { in le_gen_dhkey() 292 if (atomic_test_bit(flags, PENDING_DHKEY)) { in le_p256_pub_key()
|
A D | conn.c | 894 !atomic_test_bit(conn->flags, in bt_conn_ssp_auth() 1116 if (atomic_test_bit(conn->flags, BT_CONN_BR_PAIRING)) { in start_security() 2282 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_conn_le_create_auto() 2300 if (atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) { in bt_conn_le_create_auto() 2304 if (atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING)) { in bt_conn_le_create_auto() 2344 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_conn_create_auto_stop() 2380 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_conn_le_create() 2396 if (atomic_test_bit(bt_dev.flags, BT_DEV_INITIATING)) { in bt_conn_le_create() 2464 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_set_auto_conn() 2503 atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_le_set_auto_conn() [all …]
|
A D | settings.c | 131 if (atomic_test_bit(bt_dev.flags, BT_DEV_PRESET_ID)) { in set() 256 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in commit()
|
A D | l2cap_br.c | 254 if (atomic_test_bit(l2cap->chan.flags, L2CAP_FLAG_SIG_INFO_PENDING)) { in l2cap_br_get_info() 315 if (atomic_test_bit(l2cap->chan.flags, L2CAP_FLAG_SIG_INFO_DONE)) { in l2cap_br_info_rsp() 656 if (!atomic_test_bit(BR_CHAN(chan)->flags, L2CAP_FLAG_CONN_ACCEPTOR)) { in l2cap_br_conn_req_reply() 812 atomic_test_bit(BR_CHAN(chan)->flags, in l2cap_br_conf_rsp() 1025 if (atomic_test_bit(BR_CHAN(chan)->flags, L2CAP_FLAG_CONN_LCONF_DONE) && in l2cap_br_conf_req() 1418 if (atomic_test_bit(BR_CHAN(chan)->flags, in l2cap_br_conn_pend()
|
A D | att.c | 180 atomic_test_bit(chan->flags, ATT_ENHANCED)) { in chan_send() 187 !atomic_test_bit(chan->chan.chan.status, in chan_send() 321 !atomic_test_bit(chan->flags, ATT_DISCONNECTED)); in att_chan_is_connected() 385 if (atomic_test_bit(chan->flags, ATT_ENHANCED)) { in att_mtu_req() 2382 if (atomic_test_bit(att_chan->flags, ATT_DISCONNECTED)) { in att_get() 2535 if (!atomic_test_bit(att_chan->flags, ATT_ENHANCED)) { in bt_att_connected() 2610 if (!atomic_test_bit(status, BT_L2CAP_STATUS_OUT)) { in bt_att_status() 2765 if (atomic_test_bit(chan->flags, ATT_ENHANCED)) { in bt_eatt_disconnect()
|
A D | gatt.c | 912 if (atomic_test_bit(gatt_sc.flags, SC_RANGE_CHANGED)) { in sc_indicate_rsp() 936 __ASSERT(!atomic_test_bit(sc->flags, SC_INDICATE_PENDING), in sc_process() 1079 if (atomic_test_bit(gatt_sc.flags, SC_INDICATE_PENDING)) { in sc_indicate() 2012 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_gatt_notify_cb() 2099 if (!atomic_test_bit(bt_dev.flags, BT_DEV_READY)) { in bt_gatt_indicate() 2612 (atomic_test_bit(params->flags, in remove_subscriptions() 4021 if (atomic_test_bit(params->flags, in bt_gatt_unsubscribe() 4070 !atomic_test_bit(params->flags, in add_subscriptions() 4344 if (atomic_test_bit(cfg->flags, CF_CHANGE_AWARE)) { in bt_gatt_change_aware() 4363 if (atomic_test_bit(cfg->flags, CF_OUT_OF_SYNC)) { in bt_gatt_change_aware() [all …]
|
A D | l2cap.c | 1317 if (atomic_test_bit(chan->chan.status, in l2cap_change_security() 2207 if (atomic_test_bit(chan->chan.status, BT_L2CAP_STATUS_SHUTDOWN)) { in l2cap_chan_recv_queue() 2513 if (atomic_test_bit(chan->status, BT_L2CAP_STATUS_SHUTDOWN)) { in bt_l2cap_chan_send()
|
A D | hci_api.c | 417 cp->filter_dup = atomic_test_bit(bt_dev.flags, in hci_api_le_scan_enable() 1020 (!atomic_test_bit(bt_dev.flags, BT_DEV_USER_ID_ADDR) && in hci_vs_init()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | main.c | 116 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_reset() 178 return atomic_test_bit(bt_mesh.flags, BT_MESH_VALID); in bt_mesh_is_provisioned() 256 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_suspend() 260 if (atomic_test_bit(bt_mesh.flags, BT_MESH_SUSPENDED)) { in bt_mesh_suspend() 319 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_resume() 323 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_SUSPENDED)) { in bt_mesh_resume()
|
A D | beacon.c | 273 …if (bt_mesh_beacon_get() == BT_MESH_BEACON_ENABLED || atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_I… in beacon_send() 332 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR) && in secure_beacon_recv() 333 (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) == BT_MESH_IV_UPDATE(flags))) { in secure_beacon_recv() 453 if (!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)) { in bt_mesh_beacon_disable()
|
A D | settings.c | 1011 …if (atomic_test_bit(bt_mesh.flags, BT_MESH_NET_PENDING) || atomic_test_bit(bt_mesh.flags, BT_MESH_… in schedule_store() 1012 …atomic_test_bit(bt_mesh.flags, BT_MESH_SEQ_PENDING) || atomic_test_bit(bt_mesh.flags, BT_MESH_KEYS… in schedule_store() 1013 …atomic_test_bit(bt_mesh.flags, BT_MESH_MOD_PENDING) || atomic_test_bit(bt_mesh.flags, BT_MESH_CFG_… in schedule_store() 1014 atomic_test_bit(bt_mesh.flags, BT_MESH_HB_PUB_PENDING) in schedule_store() 1016 || atomic_test_bit(bt_mesh.flags, BT_MESH_PROV_NODE_PENDING) in schedule_store() 1020 } else if (atomic_test_bit(bt_mesh.flags, BT_MESH_RPL_PENDING) && in schedule_store() 1085 iv.iv_update = atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS); in store_pending_iv() 1580 if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in store_pending() 1592 if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in store_pending() 1600 if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in store_pending() [all …]
|
A D | prov.c | 910 if (!atomic_test_bit(plink.flags, HAVE_DHKEY)) { in bt_mesh_input_number() 937 if (!atomic_test_bit(plink.flags, HAVE_DHKEY)) { in bt_mesh_input_string() 964 if (atomic_test_bit(plink.flags, WAIT_NUMBER) || atomic_test_bit(plink.flags, WAIT_STRING)) { in prov_dh_key_cb() 1059 if (!atomic_test_bit(plink.flags, HAVE_DHKEY)) { in prov_confirm() 1297 if (!atomic_test_bit(plink.flags, LINK_ACTIVE)) { in prov_retransmit() 1341 if (atomic_test_bit(plink.flags, LINK_ACTIVE)) { in link_open() 1404 if (!atomic_test_bit(plink.flags, LINK_ACTIVE)) { in gen_prov_ctl() 1411 if (!atomic_test_bit(plink.flags, LINK_ACTIVE)) { in gen_prov_ctl() 1585 if (!atomic_test_bit(plink.flags, LINK_ACTIVE) && gen_prov[GPCF(rx->gpc)].require_link) { in gen_prov_recv() 1613 if (atomic_test_bit(plink.flags, LINK_ACTIVE) && plink.id != rx.link_id) { in bt_mesh_pb_adv_recv() [all …]
|
A D | lpn.c | 613 if (atomic_test_bit(lpn->added, i) || in lpn_group_del() 614 atomic_test_bit(lpn->pending, i)) { in lpn_group_del() 669 if (atomic_test_bit(lpn->added, i)) { in sub_update() 673 if (!atomic_test_bit(lpn->to_remove, i)) { in sub_update() 946 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR) && in bt_mesh_lpn_friend_update() 947 (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) == in bt_mesh_lpn_friend_update()
|
A D | net.c | 431 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in bt_mesh_net_flags() 608 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in bt_mesh_iv_update() 616 return atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS); in bt_mesh_iv_update() 636 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in bt_mesh_net_iv_update() 682 …if (!(IS_ENABLED(CONFIG_BT_MESH_IV_UPDATE_TEST) && atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST… in bt_mesh_net_iv_update() 790 …if (!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) && bt_mesh.seq > CONFIG_IV_UPDATE_SEQ… in bt_mesh_net_resend() 1385 … atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS) ? "IVU in Progress" : "IVU Normal mode", in ivu_refresh() 1397 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in ivu_refresh()
|
A D | provisioner_prov.c | 1276 pub_key = atomic_test_bit(link[i].flags, LOCAL_PUB_KEY); in reset_link() 2247 if (!atomic_test_bit(link[i].flags, LOCAL_PUB_KEY)) { in prov_pub_key() 2304 if (!atomic_test_bit(link[i].flags, HAVE_DHKEY)) { in prov_confirm() 2734 if (!atomic_test_bit(link[id].flags, LINK_ACTIVE)) { in prov_retransmit() 2832 if (!atomic_test_bit(link[i].flags, LINK_ACTIVE)) { in gen_prov_ctl() 3069 if (!atomic_test_bit(link[i].flags, LINK_ACTIVE) && in gen_prov_recv() 3084 if (atomic_test_bit(link[i].flags, LINK_ACTIVE)) { in find_link() 3135 if (atomic_test_bit(link[i].flags, LINK_ACTIVE)) { in find_conn() 3257 if (atomic_test_bit(link[i].flags, LINK_ACTIVE)) { in provisioner_pb_gatt_open() 3346 pub_key = atomic_test_bit(link[i].flags, LOCAL_PUB_KEY); in provisioner_pb_gatt_close() [all …]
|
A D | adv.c | 269 if (atomic_test_bit(bt_mesh.flags, BT_MESH_SUSPENDED)) { in bt_mesh_adv_create_from_pool()
|
/AliOS-Things-master/components/ble_host/bt_host/port/aos/ |
A D | work.c | 73 if (atomic_test_bit(work->work.flags, K_WORK_STATE_PENDING)) { in k_delayed_work_submit()
|
/AliOS-Things-master/components/ble_host/include/ |
A D | atomic.h | 328 static inline int atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit() function
|
/AliOS-Things-master/components/drivers/core/base/include/drivers/ |
A D | atomic.h | 326 static inline int atomic_test_bit(const atomic_t *target, int bit) in atomic_test_bit() function
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/ |
A D | net.h | 321 #define BT_MESH_NET_IVI_TX (bt_mesh.iv_index - atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRE…
|