Searched refs:evq (Results 1 - 7 of 7) sorted by relevance

/tldk/lib/libtle_l4p/
H A Devent.c26 struct tle_evq *evq; local
35 sz = sizeof(*evq) + sizeof(evq->events[0]) * prm->max_events;
36 evq = rte_zmalloc_socket(NULL, sz, RTE_CACHE_LINE_SIZE,
38 if (evq == NULL) {
45 TAILQ_INIT(&evq->armed);
46 TAILQ_INIT(&evq->free);
49 evq->events[i].head = evq;
50 TAILQ_INSERT_TAIL(&evq
60 tle_evq_destroy(struct tle_evq *evq) argument
66 tle_event_alloc(struct tle_evq *evq, const void *data) argument
[all...]
H A Dtle_event.h82 * @param evq
85 void tle_evq_destroy(struct tle_evq *evq);
89 * @param evq
100 struct tle_event *tle_event_alloc(struct tle_evq *evq, const void *data);
220 tle_evq_idle(struct tle_evq *evq, struct tle_event *ev[], uint32_t num) argument
224 rte_spinlock_lock(&evq->lock);
229 TAILQ_REMOVE(&evq->armed, ev[i], ql);
235 evq->nb_armed -= n;
236 rte_spinlock_unlock(&evq->lock);
244 * @param evq
255 tle_evq_get(struct tle_evq *evq, const void *evd[], uint32_t num) argument
[all...]
/tldk/test/gtest/
H A Dtest_tle_udp_event.h43 struct tle_evq *evq; member in class:udp_evq
69 evq = tle_evq_create(&evq_params);
70 ASSERT_NE(evq, (struct tle_evq *) NULL);
76 tle_evq_destroy(evq);
86 event = tle_event_alloc(evq, (void *) &fake_data);
H A Dtest_tle_udp_event.cpp20 evq = tle_evq_create(NULL);
21 EXPECT_EQ(evq, (struct tle_evq *) NULL);
28 evq = tle_evq_create(&evq_params);
29 ASSERT_EQ(evq, (struct tle_evq *) NULL);
34 evq = tle_evq_create(&evq_params);
35 ASSERT_NE(evq, (struct tle_evq *) NULL);
37 EXPECT_EQ(evq->nb_events, max_events);
38 EXPECT_EQ(evq->nb_free, max_events);
39 tle_evq_destroy(evq);
58 event = tle_event_alloc(evq, (voi
[all...]
H A Dtest_tle_udp_stream_gen.h229 evq = setup_evq();
230 ASSERT_NE(evq, nullptr);
305 struct tle_evq *evq; member in class:test_tle_udp_gen_base
420 struct tle_evq *evq; local
428 evq = tle_evq_create(&evq_params);
429 return evq;
471 stream_prm.recv_ev = tle_event_alloc(evq, nullptr);
472 stream_prm.send_ev = tle_event_alloc(evq, nullptr);
H A Dtest_tle_udp_stream.h134 struct tle_evq *evq; local
142 evq = tle_evq_create(&evq_params);
143 return evq;
H A Dtest_tle_tcp_stream.h77 struct tle_evq *evq; local
85 evq = tle_evq_create(&evq_params);
86 return evq;

Completed in 7 milliseconds