Lines Matching refs:dma_wr
343 u32 dma_rd,dma_wr; in do_rx_dma() local
452 dma_wr = eni_in(MID_DMA_WR_RX); in do_rx_dma()
458 if (!NEPMOK(dma_wr,j+j+1,dma_rd,NR_DMA_RX)) { /* @@@ +1 is ugly */ in do_rx_dma()
464 writel(dma[i*2],eni_dev->rx_dma+dma_wr*8); in do_rx_dma()
465 writel(dma[i*2+1],eni_dev->rx_dma+dma_wr*8+4); in do_rx_dma()
466 dma_wr = (dma_wr+1) & (NR_DMA_RX-1); in do_rx_dma()
475 eni_out(dma_wr,MID_DMA_WR_RX); in do_rx_dma()
1034 u32 dma_rd,dma_wr; in do_tx() local
1094 dma_wr = eni_in(MID_DMA_WR_TX); in do_tx()
1105 DPRINTK("dma_wr is %d, tx_pos is %ld\n",dma_wr,tx->tx_pos); in do_tx()
1106 if (dma_wr != dma_rd && ((dma_rd+NR_DMA_TX-dma_wr) & (NR_DMA_TX-1)) < in do_tx()
1164 writel(eni_dev->dma[i*2],eni_dev->tx_dma+dma_wr*8); in do_tx()
1165 writel(eni_dev->dma[i*2+1],eni_dev->tx_dma+dma_wr*8+4); in do_tx()
1166 dma_wr = (dma_wr+1) & (NR_DMA_TX-1); in do_tx()
1172 DPRINTK("dma_wr set to %d, tx_pos is now %ld\n",dma_wr,tx->tx_pos); in do_tx()
1173 eni_out(dma_wr,MID_DMA_WR_TX); in do_tx()