Lines Matching refs:num_bytes

71 int ossl_quic_txfc_consume_credit_local(QUIC_TXFC *txfc, uint64_t num_bytes)  in ossl_quic_txfc_consume_credit_local()  argument
76 if (num_bytes > credit) { in ossl_quic_txfc_consume_credit_local()
78 num_bytes = credit; in ossl_quic_txfc_consume_credit_local()
81 if (num_bytes > 0 && num_bytes == credit) in ossl_quic_txfc_consume_credit_local()
84 txfc->swm += num_bytes; in ossl_quic_txfc_consume_credit_local()
88 int ossl_quic_txfc_consume_credit(QUIC_TXFC *txfc, uint64_t num_bytes) in ossl_quic_txfc_consume_credit() argument
90 int ok = ossl_quic_txfc_consume_credit_local(txfc, num_bytes); in ossl_quic_txfc_consume_credit()
94 if (!ossl_quic_txfc_consume_credit_local(txfc->parent, num_bytes)) in ossl_quic_txfc_consume_credit()
184 static int on_rx_controlled_bytes(QUIC_RXFC *rxfc, uint64_t num_bytes) in on_rx_controlled_bytes() argument
189 if (num_bytes > credit) { in on_rx_controlled_bytes()
191 num_bytes = credit; in on_rx_controlled_bytes()
195 rxfc->swm += num_bytes; in on_rx_controlled_bytes()
327 static int rxfc_on_retire(QUIC_RXFC *rxfc, uint64_t num_bytes, in rxfc_on_retire() argument
335 rxfc->rwm += num_bytes; in rxfc_on_retire()
341 uint64_t num_bytes, in ossl_quic_rxfc_on_retire() argument
347 if (num_bytes == 0) in ossl_quic_rxfc_on_retire()
350 if (rxfc->rwm + num_bytes > rxfc->swm) in ossl_quic_rxfc_on_retire()
354 rxfc_on_retire(rxfc, num_bytes, 0, rtt); in ossl_quic_rxfc_on_retire()
357 rxfc_on_retire(rxfc->parent, num_bytes, rxfc->cur_window_size, rtt); in ossl_quic_rxfc_on_retire()