Lines Matching refs:bt_dev
85 if (!BT_CMD_TEST(bt_dev.supported_commands, 34, 1) || in bt_pub_key_gen()
86 !BT_CMD_TEST(bt_dev.supported_commands, 34, 2)) { in bt_pub_key_gen()
92 if (!BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_pub_key_gen()
95 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_pub_key_gen()
115 if (atomic_test_and_set_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_pub_key_gen()
119 atomic_clear_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_pub_key_gen()
125 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_pub_key_gen()
144 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_pub_key_hci_disrupted()
158 BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_pub_key_get()
162 if (atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY)) { in bt_pub_key_get()
210 if (dh_key_cb || atomic_test_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY)) { in bt_dh_key_gen()
214 if (!atomic_test_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY)) { in bt_dh_key_gen()
221 BT_CMD_TEST(bt_dev.supported_commands, 41, 2)) { in bt_dh_key_gen()
244 atomic_clear_bit(bt_dev.flags, BT_DEV_PUB_KEY_BUSY); in bt_hci_evt_le_pkey_complete()
248 atomic_set_bit(bt_dev.flags, BT_DEV_HAS_PUB_KEY); in bt_hci_evt_le_pkey_complete()