Lines Matching refs:txre

524 	struct mpsc_tx_desc *txre, *txre_p;  in mpsc_sdma_start_tx()  local
528 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_sdma_start_tx()
530 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_sdma_start_tx()
534 invalidate_dcache_range((ulong)txre, in mpsc_sdma_start_tx()
535 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_sdma_start_tx()
538 if (be32_to_cpu(txre->cmdstat) & SDMA_DESC_CMDSTAT_O) { in mpsc_sdma_start_tx()
786 struct mpsc_tx_desc *txre; in mpsc_init_rings() local
862 txre = (struct mpsc_tx_desc *)dp; in mpsc_init_rings()
864 txre->link = cpu_to_be32(dp_p + MPSC_TXRE_SIZE); in mpsc_init_rings()
865 txre->buf_ptr = cpu_to_be32(bp_p); in mpsc_init_rings()
872 txre->link = cpu_to_be32(pi->txr_p); /* Wrap last back to first */ in mpsc_init_rings()
1093 struct mpsc_tx_desc *txre; in mpsc_setup_tx_desc() local
1095 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_setup_tx_desc()
1098 txre->bytecnt = cpu_to_be16(count); in mpsc_setup_tx_desc()
1099 txre->shadow = txre->bytecnt; in mpsc_setup_tx_desc()
1101 txre->cmdstat = cpu_to_be32(SDMA_DESC_CMDSTAT_O | SDMA_DESC_CMDSTAT_F in mpsc_setup_tx_desc()
1105 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_setup_tx_desc()
1109 flush_dcache_range((ulong)txre, in mpsc_setup_tx_desc()
1110 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_setup_tx_desc()
1168 struct mpsc_tx_desc *txre; in mpsc_tx_intr() local
1175 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_tx_intr()
1178 dma_cache_sync(pi->port.dev, (void *)txre, MPSC_TXRE_SIZE, in mpsc_tx_intr()
1182 invalidate_dcache_range((ulong)txre, in mpsc_tx_intr()
1183 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_tx_intr()
1186 while (!(be32_to_cpu(txre->cmdstat) & SDMA_DESC_CMDSTAT_O)) { in mpsc_tx_intr()
1188 pi->port.icount.tx += be16_to_cpu(txre->bytecnt); in mpsc_tx_intr()
1195 txre = (struct mpsc_tx_desc *)(pi->txr in mpsc_tx_intr()
1197 dma_cache_sync(pi->port.dev, (void *)txre, in mpsc_tx_intr()
1201 invalidate_dcache_range((ulong)txre, in mpsc_tx_intr()
1202 (ulong)txre + MPSC_TXRE_SIZE); in mpsc_tx_intr()