Searched refs:nm_i (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/dev/netmap/ |
H A D | if_vtnet_netmap.h | 64 u_int nm_i; /* index into the netmap ring */ in vtnet_netmap_txsync() local 79 nm_i = kring->nr_hwcur; in vtnet_netmap_txsync() 80 if (nm_i != head) { /* we have new packets to send */ in vtnet_netmap_txsync() 83 for (; nm_i != head; nm_i = nm_next(nm_i, lim)) { in vtnet_netmap_txsync() 85 struct netmap_slot *slot = &ring->slot[nm_i]; in vtnet_netmap_txsync() 117 kring->nr_hwcur = nm_i; /* note we might break early */ in vtnet_netmap_txsync() 160 u_int nm_i; in vtnet_netmap_kring_refill() local 171 for (nm_i = rxq->vtnrx_nm_refill; num > 0; in vtnet_netmap_kring_refill() 172 nm_i = nm_next(nm_i, lim), num--) { in vtnet_netmap_kring_refill() 173 struct netmap_slot *slot = &ring->slot[nm_i]; in vtnet_netmap_kring_refill() [all …]
|
H A D | netmap_generic.c | 519 u_int nm_i = nm_next(kring->nr_hwtail, lim); in generic_netmap_tx_clean() local 526 while (nm_i != hwcur) { /* buffers not completed */ in generic_netmap_tx_clean() 527 struct mbuf *m = tx_pool[nm_i]; in generic_netmap_tx_clean() 543 tx_pool[nm_i] = NULL; in generic_netmap_tx_clean() 568 nm_i = nm_next(nm_i, lim); in generic_netmap_tx_clean() 570 kring->nr_hwtail = nm_prev(nm_i, lim); in generic_netmap_tx_clean() 699 u_int nm_i; /* index into the netmap ring */ // j in generic_netmap_txsync() local 711 nm_i = kring->nr_hwcur; in generic_netmap_txsync() 712 if (nm_i != head) { /* we have new packets to send */ in generic_netmap_txsync() 725 event = ring_middle(nm_i, head, lim); in generic_netmap_txsync() [all …]
|
H A D | if_re_netmap.h | 74 u_int nm_i; /* index into the netmap ring */ in re_netmap_txsync() local 91 nm_i = kring->nr_hwcur; in re_netmap_txsync() 92 if (nm_i != head) { /* we have new packets to send */ in re_netmap_txsync() 96 for (n = 0; nm_i != head; n++) { in re_netmap_txsync() 97 struct netmap_slot *slot = &ring->slot[nm_i]; in re_netmap_txsync() 129 nm_i = nm_next(nm_i, lim); in re_netmap_txsync() 176 u_int nm_i; /* index into the netmap ring */ in re_netmap_rxsync() local 205 nm_i = netmap_idx_n2k(kring, nic_i); in re_netmap_rxsync() 207 while (nm_i != stop_i) { in re_netmap_rxsync() 217 ring->slot[nm_i].len = total_len; in re_netmap_rxsync() [all …]
|
H A D | netmap_bdg.c | 1100 u_int nm_i, lim = kring->nkr_num_slots - 1; in netmap_vp_rxsync_locked() local 1114 nm_i = kring->nr_hwcur; in netmap_vp_rxsync_locked() 1115 if (nm_i != head) { in netmap_vp_rxsync_locked() 1117 for (n = 0; likely(nm_i != head); n++) { in netmap_vp_rxsync_locked() 1118 struct netmap_slot *slot = &ring->slot[nm_i]; in netmap_vp_rxsync_locked() 1126 nm_i = nm_next(nm_i, lim); in netmap_vp_rxsync_locked()
|
H A D | netmap.c | 1383 u_int nm_i, n; in netmap_rxsync_from_host() local 1399 nm_i = kring->nr_hwtail; in netmap_rxsync_from_host() 1401 while ( nm_i != stop_i && (m = mbq_dequeue(q)) != NULL ) { in netmap_rxsync_from_host() 1403 struct netmap_slot *slot = &ring->slot[nm_i]; in netmap_rxsync_from_host() 1406 nm_prdis("nm %d len %d", nm_i, len); in netmap_rxsync_from_host() 1412 nm_i = nm_next(nm_i, lim); in netmap_rxsync_from_host() 1415 kring->nr_hwtail = nm_i; in netmap_rxsync_from_host() 1421 nm_i = kring->nr_hwcur; in netmap_rxsync_from_host() 1422 if (nm_i != head) { /* something was released */ in netmap_rxsync_from_host()
|
H A D | netmap_kern.h | 1460 kring->ring_id, nm_i, slot->buf_idx, len); \
|
/freebsd/sys/dev/ena/ |
H A D | ena_netmap.c | 48 u_int nm_i; member 113 int nm_i, qid, head, lim, rc; in ena_netmap_alloc_rx_slot() local 121 nm_i = kring->nr_hwcur; in ena_netmap_alloc_rx_slot() 129 if ((nm_i == head) && rx_ring->initialized) { in ena_netmap_alloc_rx_slot() 140 slot = &ring->slot[nm_i]; in ena_netmap_alloc_rx_slot() 163 kring->nr_hwcur = nm_next(nm_i, lim); in ena_netmap_alloc_rx_slot() 175 int nm_i, qid, lim; in ena_netmap_free_rx_slot() local 197 nm_i = nm_prev(kring->nr_hwcur, lim); in ena_netmap_free_rx_slot() 208 slot = &kring->ring->slot[nm_i]; in ena_netmap_free_rx_slot() 215 kring->nr_hwcur = nm_i; in ena_netmap_free_rx_slot() [all …]
|
/freebsd/sys/net/ |
H A D | iflib.c | 869 u_int nm_i; in netmap_fl_refill() local 904 nm_i = netmap_idx_n2k(kring, nic_i); in netmap_fl_refill() 911 MPASS(nm_i == kring->nr_hwtail); in netmap_fl_refill() 913 MPASS(nm_i == kring->nr_hwcur); in netmap_fl_refill() 922 struct netmap_slot *slot = &ring->slot[nm_i]; in netmap_fl_refill() 947 nm_i = nm_next(nm_i, lim); in netmap_fl_refill() 960 MPASS(nm_i == kring->rhead); in netmap_fl_refill() 961 kring->nr_hwcur = nm_i; in netmap_fl_refill() 994 u_int nm_i; /* index into the netmap kring */ in iflib_netmap_txsync() local 1035 nm_i = kring->nr_hwcur; in iflib_netmap_txsync() [all …]
|