Lines Matching defs:nm_i
168 u_int nm_i; /* index into the netmap ring */
189 * nm_i is the current index in the netmap ring,
192 * If we have packets to send (nm_i != head)
209 nm_i = kring->nr_hwcur;
210 if (nm_i != head) { /* we have new packets to send */
211 nic_i = netmap_idx_k2n(kring, nm_i);
213 __builtin_prefetch(&ring->slot[nm_i]);
216 for (n = 0; nm_i != head; n++) {
217 struct netmap_slot *slot = &ring->slot[nm_i];
230 __builtin_prefetch(&ring->slot[nm_i + 1]);
253 nm_i = nm_next(nm_i, lim);
299 u_int nm_i; /* index into the netmap ring */
321 * nm_i is the index of the next free slot in the netmap ring,
327 * nm_i = kring->nr_hwtail (previous)
329 * nm_i == (nic_i + kring->nkr_hwofs) % ring_size
338 nm_i = netmap_idx_n2k(kring, nic_i);
348 ring->slot[nm_i].len = ((qword & I40E_RXD_QW1_LENGTH_PBUF_MASK)
350 ring->slot[nm_i].flags = slot_flags;
353 nm_i = nm_next(nm_i, lim);
363 kring->nr_hwtail = nm_i;
372 * As usual nm_i is the index in the netmap ring,
374 * nm_i == (nic_i + kring->nkr_hwofs) % ring_size
376 nm_i = kring->nr_hwcur;
377 if (nm_i != head) {
378 nic_i = netmap_idx_k2n(kring, nm_i);
379 for (n = 0; nm_i != head; n++) {
380 struct netmap_slot *slot = &ring->slot[nm_i];
399 nm_i = nm_next(nm_i, lim);