Lines Matching refs:cfq

171     QUIC_CFQ *cfq = OPENSSL_zalloc(sizeof(*cfq));  in ossl_quic_cfq_new()  local
173 if (cfq == NULL) in ossl_quic_cfq_new()
176 return cfq; in ossl_quic_cfq_new()
203 void ossl_quic_cfq_free(QUIC_CFQ *cfq) in ossl_quic_cfq_free() argument
205 if (cfq == NULL) in ossl_quic_cfq_free()
208 free_list_items(&cfq->new_list); in ossl_quic_cfq_free()
209 free_list_items(&cfq->tx_list); in ossl_quic_cfq_free()
210 free_list_items(&cfq->free_list); in ossl_quic_cfq_free()
211 OPENSSL_free(cfq); in ossl_quic_cfq_free()
214 static QUIC_CFQ_ITEM_EX *cfq_get_free(QUIC_CFQ *cfq) in cfq_get_free() argument
216 QUIC_CFQ_ITEM_EX *item = cfq->free_list.head; in cfq_get_free()
226 list_insert_tail(&cfq->free_list, item); in cfq_get_free()
230 QUIC_CFQ_ITEM *ossl_quic_cfq_add_frame(QUIC_CFQ *cfq, in ossl_quic_cfq_add_frame() argument
240 QUIC_CFQ_ITEM_EX *item = cfq_get_free(cfq); in ossl_quic_cfq_add_frame()
255 list_remove(&cfq->free_list, item); in ossl_quic_cfq_add_frame()
256 list_insert_sorted(&cfq->new_list, item, compare); in ossl_quic_cfq_add_frame()
260 void ossl_quic_cfq_mark_tx(QUIC_CFQ *cfq, QUIC_CFQ_ITEM *item) in ossl_quic_cfq_mark_tx() argument
266 list_remove(&cfq->new_list, ex); in ossl_quic_cfq_mark_tx()
267 list_insert_tail(&cfq->tx_list, ex); in ossl_quic_cfq_mark_tx()
278 void ossl_quic_cfq_mark_lost(QUIC_CFQ *cfq, QUIC_CFQ_ITEM *item, in ossl_quic_cfq_mark_lost() argument
284 ossl_quic_cfq_release(cfq, item); in ossl_quic_cfq_mark_lost()
291 list_remove(&cfq->new_list, ex); in ossl_quic_cfq_mark_lost()
293 list_insert_sorted(&cfq->new_list, ex, compare); in ossl_quic_cfq_mark_lost()
299 list_remove(&cfq->tx_list, ex); in ossl_quic_cfq_mark_lost()
300 list_insert_sorted(&cfq->new_list, ex, compare); in ossl_quic_cfq_mark_lost()
313 void ossl_quic_cfq_release(QUIC_CFQ *cfq, QUIC_CFQ_ITEM *item) in ossl_quic_cfq_release() argument
319 list_remove(&cfq->new_list, ex); in ossl_quic_cfq_release()
320 list_insert_tail(&cfq->free_list, ex); in ossl_quic_cfq_release()
324 list_remove(&cfq->tx_list, ex); in ossl_quic_cfq_release()
325 list_insert_tail(&cfq->free_list, ex); in ossl_quic_cfq_release()
334 QUIC_CFQ_ITEM *ossl_quic_cfq_get_priority_head(const QUIC_CFQ *cfq, in ossl_quic_cfq_get_priority_head() argument
337 QUIC_CFQ_ITEM_EX *item = cfq->new_list.head; in ossl_quic_cfq_get_priority_head()