Lines Matching full:opaque

27  * The SRTM is implemented using two LHASH instances, one matching opaque pointers to
29 * structure. Multiple items with different seq_num values under a given opaque,
33 * total number of entries for a given opaque (total number of extant CIDs for a
37 * opaque.
43 SRTM_ITEM *next_by_srt_blinded; /* SORT BY opaque DESC */
45 void *opaque; /* \__ unique identity for item */ member
59 LHASH_OF(SRTM_ITEM) *items_fwd; /* (opaque) -> SRTM_ITEM */
71 return (unsigned long)(uintptr_t)item->opaque; in items_fwd_hash()
76 return a->opaque != b->opaque; in items_fwd_cmp()
180 * Find a SRTM_ITEM by (opaque, seq_num). Returns NULL if no match.
181 * If head is non-NULL, writes the head of the relevant opaque list to *head if
186 static SRTM_ITEM *srtm_find(QUIC_SRTM *srtm, void *opaque, uint64_t seq_num, in srtm_find() argument
191 key.opaque = opaque; in srtm_find()
243 uintptr_t opaque = (uintptr_t)item->opaque; in sorted_insert_srt() local
248 while (cur != NULL && (uintptr_t)cur->opaque > opaque) { in sorted_insert_srt()
282 int ossl_quic_srtm_add(QUIC_SRTM *srtm, void *opaque, uint64_t seq_num, in ossl_quic_srtm_add() argument
290 /* (opaque, seq_num) duplicates not allowed */ in ossl_quic_srtm_add()
291 if ((item = srtm_find(srtm, opaque, seq_num, &head, NULL)) != NULL) in ossl_quic_srtm_add()
297 item->opaque = opaque; in ossl_quic_srtm_add()
307 /* First item under this opaque */ in ossl_quic_srtm_add()
379 int ossl_quic_srtm_remove(QUIC_SRTM *srtm, void *opaque, uint64_t seq_num) in ossl_quic_srtm_remove() argument
386 if ((item = srtm_find(srtm, opaque, seq_num, NULL, &prev)) == NULL) in ossl_quic_srtm_remove()
415 int ossl_quic_srtm_cull(QUIC_SRTM *srtm, void *opaque) in ossl_quic_srtm_cull() argument
419 key.opaque = opaque; in ossl_quic_srtm_cull()
444 void **opaque, uint64_t *seq_num) in ossl_quic_srtm_lookup() argument
459 if (opaque != NULL) in ossl_quic_srtm_lookup()
460 *opaque = item->opaque; in ossl_quic_srtm_lookup()
489 assert(!(item->opaque == prev_opaque && item->seq_num == prev_seq_num)); in check_mark()
491 assert(item->opaque != prev_opaque || item->seq_num < prev_seq_num); in check_mark()
496 prev_opaque = item->opaque; in check_mark()