Searched refs:mp_ring (Results 1 – 4 of 4) sorted by relevance
| /trueos/sys/dev/cxgbe/ |
| HD | 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, argument 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 *);
|
| HD | t4_mp_ring.c | 65 space_available(struct mp_ring *r, union ring_state s) in space_available() 78 increment_idx(struct mp_ring *r, uint16_t idx, uint16_t n) in increment_idx() 104 drain_ring(struct mp_ring *r, union ring_state os, uint16_t prev, int budget) in drain_ring() 181 mp_ring_alloc(struct mp_ring **pr, int size, void *cookie, ring_drain_t drain, in mp_ring_alloc() 184 struct mp_ring *r; in mp_ring_alloc() 194 r = malloc(__offsetof(struct mp_ring, items[size]), mt, flags | M_ZERO); in mp_ring_alloc() 221 mp_ring_free(struct mp_ring *r) in mp_ring_free() 249 mp_ring_enqueue(struct mp_ring *r, void **items, int n, int budget) in mp_ring_enqueue() 323 mp_ring_check_drainage(struct mp_ring *r, int budget) in mp_ring_check_drainage() 347 mp_ring_reset_stats(struct mp_ring *r) in mp_ring_reset_stats() [all …]
|
| HD | adapter.h | 472 struct mp_ring; 479 struct mp_ring *r; /* tx software ring */
|
| HD | t4_sge.c | 2322 can_resume_eth_tx(struct mp_ring *r) in can_resume_eth_tx() 2342 eth_tx(struct mp_ring *r, u_int cidx, u_int pidx) in eth_tx()
|