Lines Matching refs:txpim
36 QUIC_TXPIM *txpim = OPENSSL_zalloc(sizeof(*txpim)); in ossl_quic_txpim_new() local
38 if (txpim == NULL) in ossl_quic_txpim_new()
41 return txpim; in ossl_quic_txpim_new()
58 void ossl_quic_txpim_free(QUIC_TXPIM *txpim) in ossl_quic_txpim_free() argument
60 if (txpim == NULL) in ossl_quic_txpim_free()
63 assert(txpim->in_use == 0); in ossl_quic_txpim_free()
64 free_list(&txpim->free_list); in ossl_quic_txpim_free()
65 OPENSSL_free(txpim); in ossl_quic_txpim_free()
92 static QUIC_TXPIM_PKT_EX *txpim_get_free(QUIC_TXPIM *txpim) in txpim_get_free() argument
94 QUIC_TXPIM_PKT_EX *ex = txpim->free_list.head; in txpim_get_free()
103 list_insert_tail(&txpim->free_list, ex); in txpim_get_free()
121 QUIC_TXPIM_PKT *ossl_quic_txpim_pkt_alloc(QUIC_TXPIM *txpim) in ossl_quic_txpim_pkt_alloc() argument
123 QUIC_TXPIM_PKT_EX *ex = txpim_get_free(txpim); in ossl_quic_txpim_pkt_alloc()
129 list_remove(&txpim->free_list, ex); in ossl_quic_txpim_pkt_alloc()
130 ++txpim->in_use; in ossl_quic_txpim_pkt_alloc()
134 void ossl_quic_txpim_pkt_release(QUIC_TXPIM *txpim, QUIC_TXPIM_PKT *fpkt) in ossl_quic_txpim_pkt_release() argument
138 assert(txpim->in_use > 0); in ossl_quic_txpim_pkt_release()
139 --txpim->in_use; in ossl_quic_txpim_pkt_release()
140 list_insert_tail(&txpim->free_list, ex); in ossl_quic_txpim_pkt_release()
226 size_t ossl_quic_txpim_get_in_use(const QUIC_TXPIM *txpim) in ossl_quic_txpim_get_in_use() argument
228 return txpim->in_use; in ossl_quic_txpim_get_in_use()