Lines Matching refs:nm_i
198 u_int nm_i; /* index into the netmap ring */
219 * nm_i is the current index in the netmap ring,
225 * nm_i = kring->nr_hwcur
228 * nm_i == (nic_i + kring->nkr_hwofs) % ring_size
252 nm_i = kring->nr_hwcur;
253 if (nm_i != head) { /* we have new packets to send */
254 nic_i = netmap_idx_k2n(kring, nm_i);
256 __builtin_prefetch(&ring->slot[nm_i]);
259 for (n = 0; nm_i != head; n++) {
260 struct netmap_slot *slot = &ring->slot[nm_i];
273 __builtin_prefetch(&ring->slot[nm_i + 1]);
295 nm_i = nm_next(nm_i, lim);
386 u_int nm_i; /* index into the netmap ring */
407 * nm_i is the index of the next free slot in the netmap ring,
413 * nm_i = kring->nr_hwtail (previous)
415 * nm_i == (nic_i + kring->nkr_hwofs) % ring_size
423 nm_i = netmap_idx_n2k(kring, nic_i);
431 ring->slot[nm_i].len = le16toh(curr->wb.upper.length) - crclen;
432 ring->slot[nm_i].flags = 0;
435 nm_i = nm_next(nm_i, lim);
445 kring->nr_hwtail = nm_i;
454 * As usual nm_i is the index in the netmap ring,
456 * nm_i == (nic_i + kring->nkr_hwofs) % ring_size
458 nm_i = kring->nr_hwcur;
459 if (nm_i != head) {
460 nic_i = netmap_idx_k2n(kring, nm_i);
461 for (n = 0; nm_i != head; n++) {
462 struct netmap_slot *slot = &ring->slot[nm_i];
481 nm_i = nm_next(nm_i, lim);