Lines Matching refs:txre
520 struct mpsc_tx_desc *txre, *txre_p; in mpsc_sdma_start_tx() local
524 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_sdma_start_tx()
526 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_sdma_start_tx()
530 invalidate_dcache_range((ulong)txre, in mpsc_sdma_start_tx()
531 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_sdma_start_tx()
534 if (be32_to_cpu(txre->cmdstat) & SDMA_DESC_CMDSTAT_O) { in mpsc_sdma_start_tx()
784 struct mpsc_tx_desc *txre; in mpsc_init_rings() local
860 txre = (struct mpsc_tx_desc *)dp; in mpsc_init_rings()
862 txre->link = cpu_to_be32(dp_p + MPSC_TXRE_SIZE); in mpsc_init_rings()
863 txre->buf_ptr = cpu_to_be32(bp_p); in mpsc_init_rings()
870 txre->link = cpu_to_be32(pi->txr_p); /* Wrap last back to first */ in mpsc_init_rings()
1091 struct mpsc_tx_desc *txre; in mpsc_setup_tx_desc() local
1093 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_setup_tx_desc()
1096 txre->bytecnt = cpu_to_be16(count); in mpsc_setup_tx_desc()
1097 txre->shadow = txre->bytecnt; in mpsc_setup_tx_desc()
1099 txre->cmdstat = cpu_to_be32(SDMA_DESC_CMDSTAT_O | SDMA_DESC_CMDSTAT_F in mpsc_setup_tx_desc()
1103 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_setup_tx_desc()
1107 flush_dcache_range((ulong)txre, in mpsc_setup_tx_desc()
1108 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_setup_tx_desc()
1166 struct mpsc_tx_desc *txre; in mpsc_tx_intr() local
1173 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_tx_intr()
1176 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_tx_intr()
1180 invalidate_dcache_range((ulong)txre, in mpsc_tx_intr()
1181 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_tx_intr()
1184 while (!(be32_to_cpu(txre->cmdstat) & SDMA_DESC_CMDSTAT_O)) { in mpsc_tx_intr()
1186 pi->port.icount.tx += be16_to_cpu(txre->bytecnt); in mpsc_tx_intr()
1193 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_tx_intr()
1195 dma_cache_sync(pi->port.dev, (void *)txre, in mpsc_tx_intr()
1199 invalidate_dcache_range((ulong)txre, in mpsc_tx_intr()
1200 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_tx_intr()