Searched refs:mp_ring (Results 1 - 4 of 4) sorted by relevance
/freebsd-10.2-release/sys/dev/cxgbe/ |
H A D | t4_mp_ring.h | 38 struct mp_ring; 39 typedef u_int (*ring_drain_t)(struct mp_ring *, u_int, u_int); 40 typedef u_int (*ring_can_drain_t)(struct mp_ring *); 42 struct mp_ring { struct 60 int mp_ring_alloc(struct mp_ring **, int, void *, ring_drain_t, 62 void mp_ring_free(struct mp_ring *); 63 int mp_ring_enqueue(struct mp_ring *, void **, int, int); 64 void mp_ring_check_drainage(struct mp_ring *, int); 65 void mp_ring_reset_stats(struct mp_ring *); 66 int mp_ring_is_idle(struct mp_ring *); [all...] |
H A D | t4_mp_ring.c | 65 space_available(struct mp_ring *r, union ring_state s) 78 increment_idx(struct mp_ring *r, uint16_t idx, uint16_t n) 104 drain_ring(struct mp_ring *r, union ring_state os, uint16_t prev, int budget) 181 mp_ring_alloc(struct mp_ring **pr, int size, void *cookie, ring_drain_t drain, 184 struct mp_ring *r; 194 r = malloc(__offsetof(struct mp_ring, items[size]), mt, flags | M_ZERO); 221 mp_ring_free(struct mp_ring *r) 249 mp_ring_enqueue(struct mp_ring *r, void **items, int n, int budget) 323 mp_ring_check_drainage(struct mp_ring *r, int budget) 347 mp_ring_reset_stats(struct mp_ring * [all...] |
H A D | adapter.h | 472 struct mp_ring; 479 struct mp_ring *r; /* tx software ring */
|
H A D | t4_sge.c | 2322 can_resume_eth_tx(struct mp_ring *r) 2342 eth_tx(struct mp_ring *r, u_int cidx, u_int pidx) 3501 device_printf(sc->dev, "failed to allocate mp_ring: %d\n", rc); 3564 "# of enqueues to the mp_ring for this queue"); 3567 "# of drops in the mp_ring for this queue"); 3570 "# of normal consumer starts in the mp_ring for this queue"); 3573 "# of consumer stalls in the mp_ring for this queue"); 3576 "# of consumer restarts in the mp_ring for this queue"); 3579 "# of consumer abdications in the mp_ring for this queue");
|
Completed in 107 milliseconds