Lines Matching refs:qeng

20 static int qeng_init(QUIC_ENGINE *qeng);
21 static void qeng_cleanup(QUIC_ENGINE *qeng);
28 QUIC_ENGINE *qeng; in ossl_quic_engine_new() local
30 if ((qeng = OPENSSL_zalloc(sizeof(QUIC_ENGINE))) == NULL) in ossl_quic_engine_new()
33 qeng->libctx = args->libctx; in ossl_quic_engine_new()
34 qeng->propq = args->propq; in ossl_quic_engine_new()
35 qeng->mutex = args->mutex; in ossl_quic_engine_new()
36 qeng->now_cb = args->now_cb; in ossl_quic_engine_new()
37 qeng->now_cb_arg = args->now_cb_arg; in ossl_quic_engine_new()
39 if (!qeng_init(qeng)) { in ossl_quic_engine_new()
40 OPENSSL_free(qeng); in ossl_quic_engine_new()
44 return qeng; in ossl_quic_engine_new()
47 void ossl_quic_engine_free(QUIC_ENGINE *qeng) in ossl_quic_engine_free() argument
49 if (qeng == NULL) in ossl_quic_engine_free()
52 qeng_cleanup(qeng); in ossl_quic_engine_free()
53 OPENSSL_free(qeng); in ossl_quic_engine_free()
56 static int qeng_init(QUIC_ENGINE *qeng) in qeng_init() argument
58 ossl_quic_reactor_init(&qeng->rtor, qeng_tick, qeng, ossl_time_zero()); in qeng_init()
62 static void qeng_cleanup(QUIC_ENGINE *qeng) in qeng_cleanup() argument
64 assert(ossl_list_port_num(&qeng->port_list) == 0); in qeng_cleanup()
67 QUIC_REACTOR *ossl_quic_engine_get0_reactor(QUIC_ENGINE *qeng) in ossl_quic_engine_get0_reactor() argument
69 return &qeng->rtor; in ossl_quic_engine_get0_reactor()
72 CRYPTO_MUTEX *ossl_quic_engine_get0_mutex(QUIC_ENGINE *qeng) in ossl_quic_engine_get0_mutex() argument
74 return qeng->mutex; in ossl_quic_engine_get0_mutex()
77 OSSL_TIME ossl_quic_engine_get_time(QUIC_ENGINE *qeng) in ossl_quic_engine_get_time() argument
79 if (qeng->now_cb == NULL) in ossl_quic_engine_get_time()
82 return qeng->now_cb(qeng->now_cb_arg); in ossl_quic_engine_get_time()
85 void ossl_quic_engine_set_inhibit_tick(QUIC_ENGINE *qeng, int inhibit) in ossl_quic_engine_set_inhibit_tick() argument
87 qeng->inhibit_tick = (inhibit != 0); in ossl_quic_engine_set_inhibit_tick()
95 QUIC_PORT *ossl_quic_engine_create_port(QUIC_ENGINE *qeng, in ossl_quic_engine_create_port() argument
100 if (ossl_list_port_num(&qeng->port_list) > 0) in ossl_quic_engine_create_port()
107 largs.engine = qeng; in ossl_quic_engine_create_port()
123 QUIC_ENGINE *qeng = arg; in qeng_tick() local
130 if (qeng->inhibit_tick) in qeng_tick()
134 OSSL_LIST_FOREACH(port, port, &qeng->port_list) { in qeng_tick()