Lines Matching refs:observer_sem

41 static K_SEM_DEFINE(observer_sem, 0, 1);
139 k_sem_give(&observer_sem); in single_end_cb()
151 k_sem_give(&observer_sem); in realloc_end_cb()
167 k_sem_give(&observer_sem); in seq_end_cb()
190 k_sem_give(&observer_sem); in gatt_scan_cb()
216 k_sem_give(&observer_sem); in xmit_scan_cb()
245 k_sem_give(&observer_sem); in send_order_end_cb()
267 k_sem_give(&observer_sem); in receive_order_scan_cb()
275 ASSERT_OK(bt_mesh_test_wait_for_packet(receive_order_scan_cb, &observer_sem, 10)); in receive_order()
337 err = k_sem_take(&observer_sem, K_SECONDS(1)); in test_tx_cb_single()
349 ASSERT_OK(bt_mesh_test_wait_for_packet(xmit_scan_cb, &observer_sem, 20)); in test_rx_xmit()
375 err = k_sem_take(&observer_sem, K_SECONDS(1)); in test_tx_cb_multi()
389 err = k_sem_take(&observer_sem, K_SECONDS(10)); in test_tx_cb_multi()
451 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
461 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
466 ASSERT_OK(bt_mesh_test_wait_for_packet(xmit_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
469 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
488 ASSERT_OK_MSG(k_sem_take(&observer_sem, K_SECONDS(10)), in test_tx_send_order()
518 ASSERT_OK_MSG(k_sem_take(&observer_sem, K_SECONDS(10)), in test_tx_reverse_order()
553 ASSERT_OK_MSG(k_sem_take(&observer_sem, K_SECONDS(10)), in test_tx_random_order()
748 err = bt_mesh_test_wait_for_packet(suspended_adv_scan_cb, &observer_sem, 20); in test_rx_disable()