Lines Matching refs:bt_mesh
129 LOG_DBG("ivi: %i", bt_mesh.iv_index); in ivu_log()
132 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)) { in ivu_log()
136 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)) { in ivu_log()
140 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)) { in ivu_log()
144 if (atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)) { in ivu_log()
151 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in tx_on_iv_update_test()
152 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
153 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in tx_on_iv_update_test()
154 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in tx_on_iv_update_test()
155 ASSERT_TRUE(bt_mesh.iv_index == 0); in tx_on_iv_update_test()
161 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in tx_on_iv_update_test()
164 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
165 ASSERT_TRUE(bt_mesh.iv_index == 1); in tx_on_iv_update_test()
170 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
171 ASSERT_TRUE(bt_mesh.iv_index == 1); in tx_on_iv_update_test()
176 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test()
177 ASSERT_TRUE(bt_mesh.iv_index == 2); in tx_on_iv_update_test()
197 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in test_rx_on_iv_update()
198 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
199 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in test_rx_on_iv_update()
200 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_rx_on_iv_update()
201 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_rx_on_iv_update()
207 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_rx_on_iv_update()
212 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
213 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_rx_on_iv_update()
218 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
219 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_rx_on_iv_update()
224 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_on_iv_update()
225 ASSERT_TRUE(bt_mesh.iv_index == 2); in test_rx_on_iv_update()
542 ASSERT_FALSE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_invalid()
543 ASSERT_EQUAL(0, bt_mesh.iv_index); in test_rx_invalid()
549 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_invalid()
550 ASSERT_EQUAL(1, bt_mesh.iv_index); in test_rx_invalid()
697 ASSERT_EQUAL(test_vector[i].ivu, atomic_test_bit(bt_mesh.flags, in test_rx_kr_old_key()
699 ASSERT_EQUAL(test_vector[i].ivi, bt_mesh.iv_index); in test_rx_kr_old_key()
1327 ASSERT_FALSE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_priv_invalid()
1328 ASSERT_EQUAL(0, bt_mesh.iv_index); in test_rx_priv_invalid()
1334 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_rx_priv_invalid()
1335 ASSERT_EQUAL(1, bt_mesh.iv_index); in test_rx_priv_invalid()
1374 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in test_tx_priv_interleave()
1375 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tx_priv_interleave()
1376 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in test_tx_priv_interleave()
1377 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_tx_priv_interleave()
1378 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_tx_priv_interleave()
1390 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in test_tx_priv_interleave()
1393 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tx_priv_interleave()
1394 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_tx_priv_interleave()
2140 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_tx_priv_gatt_proxy()
2158 ASSERT_TRUE(bt_mesh.iv_index == 1); in test_tx_priv_gatt_proxy()
2169 ASSERT_TRUE(bt_mesh.iv_index == 0); in test_rx_priv_gatt_proxy()
2189 WAIT_FOR_COND(bt_mesh.iv_index == 1, 10); in test_rx_priv_gatt_proxy()