Lines Matching defs:ring

172  * Reconcile kernel and user view of the transmit ring.
190 struct netmap_ring *ring = kring->ring;
191 u_int nm_i; /* index into the netmap ring */
192 u_int nic_i; /* index into the NIC ring */
198 * them every half ring, or where NS_REPORT is set
212 * nm_i is the current index in the netmap ring,
213 * nic_i is the corresponding index in the NIC ring.
215 * the NIC ring but leave the netmap ring unchanged.
216 * For the transmit ring, we have
229 * iterate over the netmap ring, fetch length and update
230 * the corresponding slot in the NIC ring. Some drivers also
239 * but only a few times per ring or when NS_REPORT is set.
249 __builtin_prefetch(&ring->slot[nm_i]);
253 struct netmap_slot *slot = &ring->slot[nm_i];
266 __builtin_prefetch(&ring->slot[nm_i + 1]);
277 /* Fill the slot in the NIC ring. */
293 /* synchronize the NIC ring */
359 * Reconcile kernel and user view of the receive ring.
376 struct netmap_ring *ring = kring->ring;
377 u_int nm_i; /* index into the netmap ring */
378 u_int nic_i; /* index into the NIC ring */
398 * nm_i is the index of the next free slot in the netmap ring,
399 * nic_i is the index of the next received packet in the NIC ring,
401 * in netmap mode. For the receive ring we have
408 * rxr->next_to_check is set to 0 on a ring reinit
422 ring->slot[nm_i].len = le16toh(curr->wb.upper.length) - crclen;
423 ring->slot[nm_i].flags = 0;
445 * As usual nm_i is the index in the netmap ring,
446 * nic_i is the index in the NIC ring, and
453 struct netmap_slot *slot = &ring->slot[nm_i];
480 * IMPORTANT: we must leave one free slot in the ring,