Lines Matching defs:ref
1032 nghttp3_qpack_header_block_ref *ref;
1058 rv = nghttp3_qpack_header_block_ref_new(&ref, max_cnt, min_cnt, mem);
1063 rv = nghttp3_qpack_stream_add_ref(stream, ref);
1065 nghttp3_qpack_header_block_ref_del(ref, mem);
1077 return nghttp3_pq_push(&encoder->min_cnts, &ref->min_cnts_pe);
1083 nghttp3_qpack_header_block_ref *ref;
1090 ref = *(nghttp3_qpack_header_block_ref **)nghttp3_ringbuf_get(&stream->refs,
1093 assert(ref->min_cnts_pe.index != NGHTTP3_PQ_BAD_INDEX);
1095 nghttp3_pq_remove(&encoder->min_cnts, &ref->min_cnts_pe);
1637 nghttp3_qpack_header_block_ref *ref =
1640 if (ref == NULL) {
1644 ref->max_cnts_pe.index = NGHTTP3_PQ_BAD_INDEX;
1645 ref->min_cnts_pe.index = NGHTTP3_PQ_BAD_INDEX;
1646 ref->max_cnt = max_cnt;
1647 ref->min_cnt = min_cnt;
1649 *pref = ref;
1654 void nghttp3_qpack_header_block_ref_del(nghttp3_qpack_header_block_ref *ref,
1656 nghttp3_mem_free(mem, ref);
1697 nghttp3_qpack_header_block_ref *ref;
1708 ref = *(nghttp3_qpack_header_block_ref **)nghttp3_ringbuf_get(&stream->refs,
1710 nghttp3_qpack_header_block_ref_del(ref, mem);
1719 nghttp3_qpack_header_block_ref *ref;
1725 ref = nghttp3_struct_of(nghttp3_pq_top(&stream->max_cnts),
1727 return ref->max_cnt;
1731 nghttp3_qpack_header_block_ref *ref) {
1744 *dest = ref;
1746 return nghttp3_pq_push(&stream->max_cnts, &ref->max_cnts_pe);
1750 nghttp3_qpack_header_block_ref *ref;
1754 ref =
1757 assert(ref->max_cnts_pe.index != NGHTTP3_PQ_BAD_INDEX);
1759 nghttp3_pq_remove(&stream->max_cnts, &ref->max_cnts_pe);
2280 nghttp3_qpack_header_block_ref *ref;
2288 ref =
2293 stream_id, ref->max_cnt, encoder->krcnt);
2295 if (encoder->krcnt < ref->max_cnt) {
2296 encoder->krcnt = ref->max_cnt;
2298 nghttp3_qpack_encoder_unblock(encoder, ref->max_cnt);
2303 assert(ref->min_cnts_pe.index != NGHTTP3_PQ_BAD_INDEX);
2305 nghttp3_pq_remove(&encoder->min_cnts, &ref->min_cnts_pe);
2307 nghttp3_qpack_header_block_ref_del(ref, mem);