Lines Matching refs:fifd
16 int ossl_quic_fifd_init(QUIC_FIFD *fifd, in ossl_quic_fifd_init() argument
46 fifd->cfq = cfq; in ossl_quic_fifd_init()
47 fifd->ackm = ackm; in ossl_quic_fifd_init()
48 fifd->txpim = txpim; in ossl_quic_fifd_init()
49 fifd->get_sstream_by_id = get_sstream_by_id; in ossl_quic_fifd_init()
50 fifd->get_sstream_by_id_arg = get_sstream_by_id_arg; in ossl_quic_fifd_init()
51 fifd->regen_frame = regen_frame; in ossl_quic_fifd_init()
52 fifd->regen_frame_arg = regen_frame_arg; in ossl_quic_fifd_init()
53 fifd->confirm_frame = confirm_frame; in ossl_quic_fifd_init()
54 fifd->confirm_frame_arg = confirm_frame_arg; in ossl_quic_fifd_init()
55 fifd->sstream_updated = sstream_updated; in ossl_quic_fifd_init()
56 fifd->sstream_updated_arg = sstream_updated_arg; in ossl_quic_fifd_init()
57 fifd->get_qlog_cb = get_qlog_cb; in ossl_quic_fifd_init()
58 fifd->get_qlog_cb_arg = get_qlog_cb_arg; in ossl_quic_fifd_init()
62 void ossl_quic_fifd_cleanup(QUIC_FIFD *fifd) in ossl_quic_fifd_cleanup() argument
70 QUIC_FIFD *fifd = pkt->fifd; in on_acked() local
78 sstream = fifd->get_sstream_by_id(chunks[i].stream_id, in on_acked()
80 fifd->get_sstream_by_id_arg); in on_acked()
93 fifd->confirm_frame(OSSL_QUIC_FRAME_TYPE_STOP_SENDING, in on_acked()
95 fifd->confirm_frame_arg); in on_acked()
98 fifd->confirm_frame(OSSL_QUIC_FRAME_TYPE_RESET_STREAM, in on_acked()
100 fifd->confirm_frame_arg); in on_acked()
103 fifd->sstream_updated(chunks[i].stream_id, fifd->sstream_updated_arg); in on_acked()
109 ossl_quic_cfq_release(fifd->cfq, cfq_item); in on_acked()
112 ossl_quic_txpim_pkt_release(fifd->txpim, pkt); in on_acked()
115 static QLOG *fifd_get_qlog(QUIC_FIFD *fifd) in fifd_get_qlog() argument
117 if (fifd->get_qlog_cb == NULL) in fifd_get_qlog()
120 return fifd->get_qlog_cb(fifd->get_qlog_cb_arg); in fifd_get_qlog()
126 QUIC_FIFD *fifd = pkt->fifd; in on_lost() local
133 ossl_qlog_event_recovery_packet_lost(fifd_get_qlog(fifd), pkt); in on_lost()
137 sstream = fifd->get_sstream_by_id(chunks[i].stream_id, in on_lost()
139 fifd->get_sstream_by_id_arg); in on_lost()
163 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_STOP_SENDING, in on_lost()
165 fifd->regen_frame_arg); in on_lost()
168 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_RESET_STREAM, in on_lost()
170 fifd->regen_frame_arg); in on_lost()
182 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_MAX_STREAM_DATA, in on_lost()
185 fifd->regen_frame_arg); in on_lost()
188 fifd->sstream_updated(chunks[i].stream_id, in on_lost()
189 fifd->sstream_updated_arg); in on_lost()
195 ossl_quic_cfq_mark_lost(fifd->cfq, cfq_item, UINT32_MAX); in on_lost()
200 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_HANDSHAKE_DONE, in on_lost()
202 fifd->regen_frame_arg); in on_lost()
205 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_MAX_DATA, in on_lost()
207 fifd->regen_frame_arg); in on_lost()
210 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_MAX_STREAMS_BIDI, in on_lost()
212 fifd->regen_frame_arg); in on_lost()
215 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_MAX_STREAMS_UNI, in on_lost()
217 fifd->regen_frame_arg); in on_lost()
225 fifd->regen_frame(OSSL_QUIC_FRAME_TYPE_ACK_WITH_ECN, in on_lost()
227 fifd->regen_frame_arg); in on_lost()
229 ossl_quic_txpim_pkt_release(fifd->txpim, pkt); in on_lost()
235 QUIC_FIFD *fifd = pkt->fifd; in on_discarded() local
246 ossl_quic_cfq_release(fifd->cfq, cfq_item); in on_discarded()
249 ossl_quic_txpim_pkt_release(fifd->txpim, pkt); in on_discarded()
252 int ossl_quic_fifd_pkt_commit(QUIC_FIFD *fifd, QUIC_TXPIM_PKT *pkt) in ossl_quic_fifd_pkt_commit() argument
259 pkt->fifd = fifd; in ossl_quic_fifd_pkt_commit()
276 ossl_quic_cfq_mark_tx(fifd->cfq, cfq_item); in ossl_quic_fifd_pkt_commit()
285 sstream = fifd->get_sstream_by_id(chunks[i].stream_id, in ossl_quic_fifd_pkt_commit()
287 fifd->get_sstream_by_id_arg); in ossl_quic_fifd_pkt_commit()
304 return ossl_ackm_on_tx_packet(fifd->ackm, &pkt->ackm_pkt); in ossl_quic_fifd_pkt_commit()
307 void ossl_quic_fifd_set_qlog_cb(QUIC_FIFD *fifd, QLOG *(*get_qlog_cb)(void *arg), in ossl_quic_fifd_set_qlog_cb() argument
310 fifd->get_qlog_cb = get_qlog_cb; in ossl_quic_fifd_set_qlog_cb()
311 fifd->get_qlog_cb_arg = get_qlog_cb_arg; in ossl_quic_fifd_set_qlog_cb()