Lines Matching refs:rdbx

133 void print_rdbx(srtp_rdbx_t *rdbx)  in print_rdbx()  argument
136 printf("rdbx: {%llu, %s}\n", (unsigned long long)(rdbx->index), in print_rdbx()
137 bitvector_bit_string(&rdbx->bitmask, buf, sizeof(buf))); in print_rdbx()
148 srtp_err_status_t rdbx_check_add(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_add() argument
153 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_add()
155 if (srtp_rdbx_check(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add()
165 if (srtp_rdbx_add_index(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add()
180 srtp_err_status_t rdbx_check_expect_failure(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_expect_failure() argument
186 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_expect_failure()
188 status = srtp_rdbx_check(rdbx, delta); in rdbx_check_expect_failure()
198 srtp_err_status_t rdbx_check_add_unordered(srtp_rdbx_t *rdbx, uint32_t idx) in rdbx_check_add_unordered() argument
204 delta = srtp_index_guess(&rdbx->index, &est, idx); in rdbx_check_add_unordered()
206 rstat = srtp_rdbx_check(rdbx, delta); in rdbx_check_add_unordered()
215 if (srtp_rdbx_add_index(rdbx, delta) != srtp_err_status_ok) { in rdbx_check_add_unordered()
225 srtp_rdbx_t rdbx; in test_replay_dbx() local
231 status = srtp_rdbx_init(&rdbx, ws); in test_replay_dbx()
242 status = rdbx_check_add(&rdbx, idx); in test_replay_dbx()
261 status = rdbx_check_expect_failure(&rdbx, idx); in test_replay_dbx()
268 srtp_rdbx_dealloc(&rdbx); in test_replay_dbx()
270 if (srtp_rdbx_init(&rdbx, ws) != srtp_err_status_ok) { in test_replay_dbx()
286 status = rdbx_check_add_unordered(&rdbx, ircvd); in test_replay_dbx()
289 status = rdbx_check_expect_failure(&rdbx, ircvd); in test_replay_dbx()
296 srtp_rdbx_dealloc(&rdbx); in test_replay_dbx()
298 if (srtp_rdbx_init(&rdbx, ws) != srtp_err_status_ok) { in test_replay_dbx()
310 status = rdbx_check_add(&rdbx, ircvd); in test_replay_dbx()
313 status = rdbx_check_expect_failure(&rdbx, ircvd); in test_replay_dbx()
319 srtp_rdbx_dealloc(&rdbx); in test_replay_dbx()
330 srtp_rdbx_t rdbx; in rdbx_check_adds_per_second() local
335 if (srtp_rdbx_init(&rdbx, ws) != srtp_err_status_ok) { in rdbx_check_adds_per_second()
343 delta = srtp_index_guess(&rdbx.index, &est, i); in rdbx_check_adds_per_second()
345 if (srtp_rdbx_check(&rdbx, delta) != srtp_err_status_ok) in rdbx_check_adds_per_second()
347 else if (srtp_rdbx_add_index(&rdbx, delta) != srtp_err_status_ok) in rdbx_check_adds_per_second()
357 srtp_rdbx_dealloc(&rdbx); in rdbx_check_adds_per_second()