Lines Matching defs:ring
65 * Reconcile kernel and user view of the transmit ring.
72 struct netmap_ring *ring = kring->ring;
73 u_int nm_i; /* index into the netmap ring */
74 u_int nic_i; /* index into the NIC ring */
96 struct netmap_slot *slot = &ring->slot[nm_i];
108 if (nic_i == lim) /* mark end of ring */
120 /* Fill the slot in the NIC ring. */
134 /* synchronize the NIC ring */
167 * Reconcile kernel and user view of the receive ring.
174 struct netmap_ring *ring = kring->ring;
175 u_int nm_i; /* index into the netmap ring */
176 u_int nic_i; /* index into the NIC ring */
196 * This device uses all the buffers in the ring, so we need
217 ring->slot[nm_i].len = total_len;
218 ring->slot[nm_i].flags = 0;
238 struct netmap_slot *slot = &ring->slot[nm_i];
248 if (nic_i == lim) /* mark end of ring */
302 /* l points in the netmap ring, i points in the NIC ring */
346 if (nic_i == n - 1) /* mark the end of ring */