Lines Matching refs:rdb
85 srtp_err_status_t rdb_check_add(srtp_rdb_t *rdb, uint32_t idx) in rdb_check_add() argument
87 if (srtp_rdb_check(rdb, idx) != srtp_err_status_ok) { in rdb_check_add()
91 if (srtp_rdb_add_index(rdb, idx) != srtp_err_status_ok) { in rdb_check_add()
99 srtp_err_status_t rdb_check_expect_failure(srtp_rdb_t *rdb, uint32_t idx) in rdb_check_expect_failure() argument
103 err = srtp_rdb_check(rdb, idx); in rdb_check_expect_failure()
113 srtp_err_status_t rdb_check_add_unordered(srtp_rdb_t *rdb, uint32_t idx) in rdb_check_add_unordered() argument
118 rstat = srtp_rdb_check(rdb, idx); in rdb_check_add_unordered()
127 if (srtp_rdb_add_index(rdb, idx) != srtp_err_status_ok) { in rdb_check_add_unordered()
137 srtp_rdb_t rdb; in test_rdb_db() local
142 if (srtp_rdb_init(&rdb) != srtp_err_status_ok) { in test_rdb_db()
149 err = rdb_check_add(&rdb, idx); in test_rdb_db()
156 err = rdb_check_expect_failure(&rdb, idx); in test_rdb_db()
162 if (srtp_rdb_init(&rdb) != srtp_err_status_ok) { in test_rdb_db()
172 err = rdb_check_add_unordered(&rdb, ircvd); in test_rdb_db()
175 err = rdb_check_expect_failure(&rdb, ircvd); in test_rdb_db()
181 if (srtp_rdb_init(&rdb) != srtp_err_status_ok) { in test_rdb_db()
189 err = rdb_check_add(&rdb, ircvd); in test_rdb_db()
192 err = rdb_check_expect_failure(&rdb, ircvd); in test_rdb_db()
198 if (srtp_rdb_init(&rdb) != srtp_err_status_ok) { in test_rdb_db()
205 err = rdb_check_add(&rdb, idx + 513); in test_rdb_db()
212 err = rdb_check_expect_failure(&rdb, idx); in test_rdb_db()
218 if (srtp_rdb_init(&rdb) != srtp_err_status_ok) { in test_rdb_db()
222 rdb.window_start = 0x7ffffffe; in test_rdb_db()
223 if (srtp_rdb_increment(&rdb) != srtp_err_status_ok) { in test_rdb_db()
227 if (srtp_rdb_get_value(&rdb) != 0x7fffffff) { in test_rdb_db()
231 if (srtp_rdb_increment(&rdb) != srtp_err_status_key_expired) { in test_rdb_db()
236 if (srtp_rdb_get_value(&rdb) != 0x7fffffff) { in test_rdb_db()
252 srtp_rdb_t rdb; in rdb_check_adds_per_second() local
256 if (srtp_rdb_init(&rdb) != srtp_err_status_ok) { in rdb_check_adds_per_second()
263 if (srtp_rdb_check(&rdb, i + 2) != srtp_err_status_ok) in rdb_check_adds_per_second()
265 if (srtp_rdb_add_index(&rdb, i + 2) != srtp_err_status_ok) in rdb_check_adds_per_second()
267 if (srtp_rdb_check(&rdb, i + 1) != srtp_err_status_ok) in rdb_check_adds_per_second()
269 if (srtp_rdb_add_index(&rdb, i + 1) != srtp_err_status_ok) in rdb_check_adds_per_second()
271 if (srtp_rdb_check(&rdb, i) != srtp_err_status_ok) in rdb_check_adds_per_second()
273 if (srtp_rdb_add_index(&rdb, i) != srtp_err_status_ok) in rdb_check_adds_per_second()