Home
last modified time | relevance | path

Searched refs:txfc (Results 1 – 10 of 10) sorted by relevance

/openssl/ssl/quic/
H A Dquic_fc.c28 txfc->swm = 0; in OSSL_SAFE_MATH_UNSIGNED()
37 return txfc->parent; in ossl_quic_txfc_get_parent()
42 if (cwm <= txfc->cwm) in ossl_quic_txfc_bump_cwm()
45 txfc->cwm = cwm; in ossl_quic_txfc_bump_cwm()
51 assert((txfc->swm + consumed) <= txfc->cwm); in ossl_quic_txfc_get_credit_local()
52 return txfc->cwm - (consumed + txfc->swm); in ossl_quic_txfc_get_credit_local()
61 if (txfc->parent != NULL) { in ossl_quic_txfc_get_credit()
84 txfc->swm += num_bytes; in ossl_quic_txfc_consume_credit_local()
92 if (txfc->parent != NULL) { in ossl_quic_txfc_consume_credit()
113 return txfc->cwm; in ossl_quic_txfc_get_cwm()
[all …]
H A Dquic_stream_map.c273 fc_credit = ossl_quic_txfc_get_credit(&s->txfc, 0); in stream_has_data_to_send()
274 fc_swm = ossl_quic_txfc_get_swm(&s->txfc); in stream_has_data_to_send()
487 qs->send_final_size = ossl_quic_txfc_get_swm(&qs->txfc); in ossl_quic_stream_map_reset_stream_send_part()
H A Dquic_txp.c2482 if (!ossl_assert(f.final_size <= ossl_quic_txfc_get_swm(&stream->txfc))) in txp_generate_stream_related()
2486 = f.final_size - ossl_quic_txfc_get_swm(&stream->txfc); in txp_generate_stream_related()
2541 &stream->txfc, in txp_generate_stream_related()
2970 if (!ossl_assert(ossl_quic_txfc_consume_credit(&stream->txfc, in txp_pkt_commit()
H A Dquic_channel.c1129 ossl_quic_txfc_bump_cwm(&s->txfc, *(uint64_t *)arg); in txfc_bump_cwm_bidi()
1138 ossl_quic_txfc_bump_cwm(&s->txfc, *(uint64_t *)arg); in txfc_bump_cwm_uni()
3406 if (!ossl_quic_txfc_init(&qs->txfc, &ch->conn_txfc)) in ch_init_new_stream()
3425 ossl_quic_txfc_bump_cwm(&qs->txfc, cwm); in ch_init_new_stream()
H A Dquic_rx_depack.c721 ossl_quic_txfc_bump_cwm(&stream->txfc, max_stream_data); in depack_do_frame_max_stream_data()
H A Dquic_impl.c2254 uint64_t cwm = ossl_quic_txfc_get_cwm(&xso->stream->txfc); in xso_sstream_append()
/openssl/test/
H A Dquic_fc_test.c17 QUIC_TXFC conn_txfc, stream_txfc, *txfc, *parent_txfc; in test_txfc() local
25 txfc = is_stream ? &stream_txfc : &conn_txfc; in test_txfc()
28 if (!TEST_true(ossl_quic_txfc_bump_cwm(txfc, 2000))) in test_txfc()
34 if (!TEST_uint64_t_eq(ossl_quic_txfc_get_swm(txfc), 0)) in test_txfc()
37 if (!TEST_uint64_t_eq(ossl_quic_txfc_get_cwm(txfc), 2000)) in test_txfc()
57 if (!TEST_true(ossl_quic_txfc_consume_credit(txfc, 500))) in test_txfc()
70 if (!TEST_uint64_t_eq(ossl_quic_txfc_get_swm(txfc), 500)) in test_txfc()
73 if (!TEST_true(ossl_quic_txfc_consume_credit(txfc, 100))) in test_txfc()
76 if (!TEST_uint64_t_eq(ossl_quic_txfc_get_swm(txfc), 600)) in test_txfc()
126 if (!TEST_false(ossl_quic_txfc_bump_cwm(txfc, 2000))) in test_txfc()
[all …]
H A Dquic_txp_test.c1492 || !TEST_true(ossl_quic_txfc_init(&s->txfc, &h.conn_txfc)) in run_script()
1584 if (!TEST_true(ossl_quic_txfc_bump_cwm(&s->txfc, op->arg0))) in run_script()
/openssl/include/internal/
H A Dquic_fc.h37 int ossl_quic_txfc_init(QUIC_TXFC *txfc, QUIC_TXFC *conn_txfc);
43 QUIC_TXFC *ossl_quic_txfc_get_parent(QUIC_TXFC *txfc);
55 int ossl_quic_txfc_bump_cwm(QUIC_TXFC *txfc, uint64_t cwm);
67 uint64_t ossl_quic_txfc_get_credit(QUIC_TXFC *txfc, uint64_t consumed);
75 uint64_t ossl_quic_txfc_get_credit_local(QUIC_TXFC *txfc, uint64_t consumed);
92 int ossl_quic_txfc_consume_credit(QUIC_TXFC *txfc, uint64_t num_bytes);
99 int ossl_quic_txfc_consume_credit_local(QUIC_TXFC *txfc, uint64_t num_bytes);
108 int ossl_quic_txfc_has_become_blocked(QUIC_TXFC *txfc, int clear);
114 uint64_t ossl_quic_txfc_get_cwm(QUIC_TXFC *txfc);
120 uint64_t ossl_quic_txfc_get_swm(QUIC_TXFC *txfc);
H A Dquic_stream_map.h155 QUIC_TXFC txfc; /* NULL if RX-only */ member

Completed in 83 milliseconds