Lines Matching defs:slot
951 struct netmap_slot *slot = &ring->slot[nm_i];
952 void *addr = PNMB(na, slot, &fl->ifl_bus_addrs[i]);
964 } else if (slot->flags & NS_BUF_CHANGED) {
971 slot->flags &= ~NS_BUF_CHANGED;
1047 * the corresponding slot in the NIC ring. Some drivers also
1048 * need to update the buffer's physical address in the NIC slot
1059 * to prefetch the next slot and txr entry.
1071 __builtin_prefetch(&ring->slot[nm_i]);
1076 struct netmap_slot *slot = &ring->slot[nm_i];
1077 u_int len = slot->len;
1079 void *addr = PNMB(na, slot, &paddr);
1081 flags |= (slot->flags & NS_REPORT ||
1087 * index of the first NIC slot for later.
1099 if (!(slot->flags & NS_MOREFRAG)) {
1120 __builtin_prefetch(&ring->slot[nm_i + 1]);
1126 if (slot->flags & NS_BUF_CHANGED) {
1136 slot->flags &= ~(NS_REPORT | NS_BUF_CHANGED | NS_MOREFRAG);
1146 /* (re)start the tx unit up to slot nic_i (excluded) */
1224 * nm_i is the index of the next free slot in the netmap ring,
1267 ring->slot[nm_i].len = 0;
1268 ring->slot[nm_i].flags = 0;
1270 ring->slot[nm_i].len = ri.iri_frags[i].irf_len;
1272 ring->slot[nm_i].len -= crclen;
1273 ring->slot[nm_i].flags = 0;
1279 ring->slot[nm_i].flags = NS_MOREFRAG;
1363 struct netmap_slot *slot;
1365 slot = netmap_reset(na, NR_TX, txq->ift_id, 0);
1366 if (slot == NULL)
1374 * netmap slot index, si
1378 NMB(na, slot + si));
1388 struct netmap_slot *slot;
1390 slot = netmap_reset(na, NR_RX, rxq->ifr_id, 0);
1391 if (slot == NULL)