Lines Matching refs:nic_i
122 u_int nic_i; /* index into the NIC ring */
142 nic_i = netmap_idx_k2n(kring, nm_i);
150 struct e1000_tx_desc *curr = &txr->tx_base[nic_i];
151 struct em_txbuffer *txbuf = &txr->tx_buffers[nic_i];
153 nic_i == 0 || nic_i == report_frequency) ?
173 nic_i = nm_next(nic_i, lim);
181 /* (re)start the tx unit up to slot nic_i (excluded) */
182 E1000_WRITE_REG(&adapter->hw, E1000_TDT(txr->me), nic_i);
190 nic_i = E1000_READ_REG(&adapter->hw, E1000_TDH(kring->ring_id));
191 if (nic_i >= kring->nkr_num_slots) { /* XXX can it happen ? */
192 D("TDH wrap %d", nic_i);
193 nic_i -= kring->nkr_num_slots;
195 if (nic_i != txr->next_to_clean) {
196 txr->next_to_clean = nic_i;
197 kring->nr_hwtail = nm_prev(netmap_idx_n2k(kring, nic_i), lim);
215 u_int nic_i; /* index into the NIC ring */
238 nic_i = rxr->next_to_check;
239 nm_i = netmap_idx_n2k(kring, nic_i);
242 union e1000_rx_desc_extended *curr = &rxr->rx_base[nic_i];
249 bus_dmamap_sync(rxr->rxtag, rxr->rx_buffers[nic_i].map,
253 rxr->next_to_refresh = nic_i; // XXX
254 nic_i = nm_next(nic_i, lim);
257 rxr->next_to_check = nic_i;
268 nic_i = netmap_idx_k2n(kring, nm_i);
274 union e1000_rx_desc_extended *curr = &rxr->rx_base[nic_i];
275 struct em_rxbuffer *rxbuf = &rxr->rx_buffers[nic_i];
290 nic_i = nm_next(nic_i, lim);
298 * so move nic_i back by one unit
300 nic_i = nm_prev(nic_i, lim);
301 E1000_WRITE_REG(&adapter->hw, E1000_RDT(rxr->me), nic_i);