Lines Matching refs:sem
55 struct k_sem *sem = data; in tx_ended() local
65 k_sem_give(sem); in tx_ended()
130 struct k_sem sem; in test_tx_immediate_replay_attack() local
132 k_sem_init(&sem, 0, 1); in test_tx_immediate_replay_attack()
141 &send_cb, &sem)); in test_tx_immediate_replay_attack()
143 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_immediate_replay_attack()
159 &send_cb, &sem)); in test_tx_immediate_replay_attack()
161 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_immediate_replay_attack()
195 struct k_sem sem; in test_tx_power_replay_attack() local
197 k_sem_init(&sem, 0, 1); in test_tx_power_replay_attack()
204 &send_cb, &sem)); in test_tx_power_replay_attack()
206 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_power_replay_attack()
220 &send_cb, &sem)); in test_tx_power_replay_attack()
222 if (k_sem_take(&sem, K_SECONDS(TEST_DATA_WAITING_TIME))) { in test_tx_power_replay_attack()
249 struct k_sem *sem = cb_data; in send_end_cb() local
252 k_sem_give(sem); in send_end_cb()
271 struct k_sem sem; in msg_send() local
274 k_sem_init(&sem, 0, 1); in msg_send()
279 err = bt_mesh_trans_send(&tx, &msg, &cb, &sem); in msg_send()
285 err = k_sem_take(&sem, K_SECONDS(10)); in msg_send()