Lines Matching refs:item

27 uint64_t ossl_quic_cfq_item_get_frame_type(const QUIC_CFQ_ITEM *item)  in ossl_quic_cfq_item_get_frame_type()  argument
29 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_get_frame_type()
34 const unsigned char *ossl_quic_cfq_item_get_encoded(const QUIC_CFQ_ITEM *item) in ossl_quic_cfq_item_get_encoded() argument
36 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_get_encoded()
41 size_t ossl_quic_cfq_item_get_encoded_len(const QUIC_CFQ_ITEM *item) in ossl_quic_cfq_item_get_encoded_len() argument
43 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_get_encoded_len()
48 int ossl_quic_cfq_item_get_state(const QUIC_CFQ_ITEM *item) in ossl_quic_cfq_item_get_state() argument
50 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_get_state()
55 uint32_t ossl_quic_cfq_item_get_pn_space(const QUIC_CFQ_ITEM *item) in ossl_quic_cfq_item_get_pn_space() argument
57 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_get_pn_space()
62 int ossl_quic_cfq_item_is_unreliable(const QUIC_CFQ_ITEM *item) in ossl_quic_cfq_item_is_unreliable() argument
64 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_is_unreliable()
179 static void clear_item(QUIC_CFQ_ITEM_EX *item) in clear_item() argument
181 if (item->free_cb != NULL) { in clear_item()
182 item->free_cb(item->encoded, item->encoded_len, item->free_cb_arg); in clear_item()
184 item->free_cb = NULL; in clear_item()
185 item->encoded = NULL; in clear_item()
186 item->encoded_len = 0; in clear_item()
189 item->state = -1; in clear_item()
216 QUIC_CFQ_ITEM_EX *item = cfq->free_list.head; in cfq_get_free() local
218 if (item != NULL) in cfq_get_free()
219 return item; in cfq_get_free()
221 item = OPENSSL_zalloc(sizeof(*item)); in cfq_get_free()
222 if (item == NULL) in cfq_get_free()
225 item->state = -1; in cfq_get_free()
226 list_insert_tail(&cfq->free_list, item); in cfq_get_free()
227 return item; in cfq_get_free()
240 QUIC_CFQ_ITEM_EX *item = cfq_get_free(cfq); in ossl_quic_cfq_add_frame() local
242 if (item == NULL) in ossl_quic_cfq_add_frame()
245 item->priority = priority; in ossl_quic_cfq_add_frame()
246 item->frame_type = frame_type; in ossl_quic_cfq_add_frame()
247 item->pn_space = pn_space; in ossl_quic_cfq_add_frame()
248 item->encoded = (unsigned char *)encoded; in ossl_quic_cfq_add_frame()
249 item->encoded_len = encoded_len; in ossl_quic_cfq_add_frame()
250 item->free_cb = free_cb; in ossl_quic_cfq_add_frame()
251 item->free_cb_arg = free_cb_arg; in ossl_quic_cfq_add_frame()
253 item->state = QUIC_CFQ_STATE_NEW; in ossl_quic_cfq_add_frame()
254 item->flags = flags; 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()
257 return &item->public; 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
262 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; 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
281 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_mark_lost()
283 if (ossl_quic_cfq_item_is_unreliable(item)) { in ossl_quic_cfq_mark_lost()
284 ossl_quic_cfq_release(cfq, item); 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
315 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_release()
337 QUIC_CFQ_ITEM_EX *item = cfq->new_list.head; in ossl_quic_cfq_get_priority_head() local
339 for (; item != NULL && item->pn_space != pn_space; item = item->next); in ossl_quic_cfq_get_priority_head()
341 if (item == NULL) in ossl_quic_cfq_get_priority_head()
344 return &item->public; in ossl_quic_cfq_get_priority_head()
347 QUIC_CFQ_ITEM *ossl_quic_cfq_item_get_priority_next(const QUIC_CFQ_ITEM *item, in ossl_quic_cfq_item_get_priority_next() argument
350 QUIC_CFQ_ITEM_EX *ex = (QUIC_CFQ_ITEM_EX *)item; in ossl_quic_cfq_item_get_priority_next()