Lines Matching refs:txre

526 	struct mpsc_tx_desc *txre, *txre_p;  in mpsc_sdma_start_tx()  local
530 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_sdma_start_tx()
532 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_sdma_start_tx()
536 invalidate_dcache_range((ulong)txre, in mpsc_sdma_start_tx()
537 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_sdma_start_tx()
540 if (be32_to_cpu(txre->cmdstat) & SDMA_DESC_CMDSTAT_O) { in mpsc_sdma_start_tx()
788 struct mpsc_tx_desc *txre; in mpsc_init_rings() local
864 txre = (struct mpsc_tx_desc *)dp; in mpsc_init_rings()
866 txre->link = cpu_to_be32(dp_p + MPSC_TXRE_SIZE); in mpsc_init_rings()
867 txre->buf_ptr = cpu_to_be32(bp_p); in mpsc_init_rings()
874 txre->link = cpu_to_be32(pi->txr_p); /* Wrap last back to first */ in mpsc_init_rings()
1094 struct mpsc_tx_desc *txre; in mpsc_setup_tx_desc() local
1096 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_setup_tx_desc()
1099 txre->bytecnt = cpu_to_be16(count); in mpsc_setup_tx_desc()
1100 txre->shadow = txre->bytecnt; in mpsc_setup_tx_desc()
1102 txre->cmdstat = cpu_to_be32(SDMA_DESC_CMDSTAT_O | SDMA_DESC_CMDSTAT_F in mpsc_setup_tx_desc()
1106 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_setup_tx_desc()
1110 flush_dcache_range((ulong)txre, in mpsc_setup_tx_desc()
1111 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_setup_tx_desc()
1169 struct mpsc_tx_desc *txre; in mpsc_tx_intr() local
1176 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_tx_intr()
1179 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_tx_intr()
1183 invalidate_dcache_range((ulong)txre, in mpsc_tx_intr()
1184 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_tx_intr()
1187 while (!(be32_to_cpu(txre->cmdstat) & SDMA_DESC_CMDSTAT_O)) { in mpsc_tx_intr()
1189 pi->port.icount.tx += be16_to_cpu(txre->bytecnt); in mpsc_tx_intr()
1196 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_tx_intr()
1198 dma_cache_sync(pi->port.dev, (void *)txre, in mpsc_tx_intr()
1202 invalidate_dcache_range((ulong)txre, in mpsc_tx_intr()
1203 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_tx_intr()