Home
last modified time | relevance | path

Searched refs:dmactl (Results 1 – 9 of 9) sorted by relevance

/drivers/ata/
Dsata_svw.c143 u8 dmactl; in k2_sata_softreset() local
146 dmactl = readb(mmio + ATA_DMA_CMD); in k2_sata_softreset()
149 if (dmactl & ATA_DMA_START) { in k2_sata_softreset()
150 dmactl &= ~ATA_DMA_START; in k2_sata_softreset()
151 writeb(dmactl, mmio + ATA_DMA_CMD); in k2_sata_softreset()
160 u8 dmactl; in k2_sata_hardreset() local
163 dmactl = readb(mmio + ATA_DMA_CMD); in k2_sata_hardreset()
166 if (dmactl & ATA_DMA_START) { in k2_sata_hardreset()
167 dmactl &= ~ATA_DMA_START; in k2_sata_hardreset()
168 writeb(dmactl, mmio + ATA_DMA_CMD); in k2_sata_hardreset()
[all …]
Dsata_rcar.c568 u32 dmactl; in sata_rcar_bmdma_setup() local
575 dmactl = ioread32(base + ATAPI_CONTROL1_REG); in sata_rcar_bmdma_setup()
576 dmactl &= ~(ATAPI_CONTROL1_RW | ATAPI_CONTROL1_STOP); in sata_rcar_bmdma_setup()
577 if (dmactl & ATAPI_CONTROL1_START) { in sata_rcar_bmdma_setup()
578 dmactl &= ~ATAPI_CONTROL1_START; in sata_rcar_bmdma_setup()
579 dmactl |= ATAPI_CONTROL1_STOP; in sata_rcar_bmdma_setup()
582 dmactl |= ATAPI_CONTROL1_RW; in sata_rcar_bmdma_setup()
583 iowrite32(dmactl, base + ATAPI_CONTROL1_REG); in sata_rcar_bmdma_setup()
594 u32 dmactl; in sata_rcar_bmdma_start() local
597 dmactl = ioread32(base + ATAPI_CONTROL1_REG); in sata_rcar_bmdma_start()
[all …]
Dpata_ns87415.c124 u8 dmactl; in ns87415_bmdma_setup() local
131 dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ns87415_bmdma_setup()
132 dmactl &= ~(ATA_DMA_WR | ATA_DMA_START); in ns87415_bmdma_setup()
135 dmactl |= ATA_DMA_INTR | ATA_DMA_ERR; in ns87415_bmdma_setup()
137 dmactl |= ATA_DMA_WR; in ns87415_bmdma_setup()
138 iowrite8(dmactl, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ns87415_bmdma_setup()
Dsata_sil.c298 u8 dmactl = ATA_DMA_START; in sil_bmdma_start() local
304 dmactl |= ATA_DMA_WR; in sil_bmdma_start()
305 iowrite8(dmactl, bmdma2); in sil_bmdma_start()
Dlibata-sff.c3005 u8 dmactl; in ata_bmdma_setup() local
3012 dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ata_bmdma_setup()
3013 dmactl &= ~(ATA_DMA_WR | ATA_DMA_START); in ata_bmdma_setup()
3015 dmactl |= ATA_DMA_WR; in ata_bmdma_setup()
3016 iowrite8(dmactl, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ata_bmdma_setup()
3033 u8 dmactl; in ata_bmdma_start() local
3036 dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ata_bmdma_start()
3037 iowrite8(dmactl | ATA_DMA_START, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in ata_bmdma_start()
Dsata_nv.c2194 u8 dmactl; in nv_swncq_dmafis() local
2214 dmactl = ioread8(ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in nv_swncq_dmafis()
2215 dmactl &= ~ATA_DMA_WR; in nv_swncq_dmafis()
2217 dmactl |= ATA_DMA_WR; in nv_swncq_dmafis()
2219 iowrite8(dmactl | ATA_DMA_START, ap->ioaddr.bmdma_addr + ATA_DMA_CMD); in nv_swncq_dmafis()
/drivers/usb/gadget/udc/
Dnet2280.c396 writel(0, &ep->dma->dmactl); in ep_reset_228x()
472 writel(0, &ep->dma->dmactl); in ep_reset_338x()
844 handshake(&dma->dmactl, BIT(DMA_ENABLE), 0, 50); in spin_stop_dma()
849 writel(readl(&dma->dmactl) & ~BIT(DMA_ENABLE), &dma->dmactl); in stop_dma()
853 static void start_queue(struct net2280_ep *ep, u32 dmactl, u32 td_dma) in start_queue() argument
866 dmactl |= BIT(DMA_REQUEST_OUTSTANDING); in start_queue()
867 writel(dmactl, &dma->dmactl); in start_queue()
886 WARN_ON(readl(&dma->dmactl) & BIT(DMA_ENABLE)); in start_dma()
887 writel(0, &ep->dma->dmactl); in start_dma()
910 writel(BIT(DMA_ENABLE), &dma->dmactl); in start_dma()
[all …]
/drivers/mtd/nand/
Dcafe_nand.c257 uint32_t dmactl = 0xc0000000 + cafe->datalen; in cafe_nand_cmdfunc() local
261 dmactl |= (1<<29); in cafe_nand_cmdfunc()
266 cafe_writel(cafe, dmactl, NAND_DMA_CTRL); in cafe_nand_cmdfunc()
/drivers/net/ethernet/toshiba/
Dtc35815.c1422 u32 dmactl = tc_readl(&tr->DMA_Ctl); in tc35815_interrupt() local
1424 if (!(dmactl & DMA_IntMask)) { in tc35815_interrupt()
1426 tc_writel(dmactl | DMA_IntMask, &tr->DMA_Ctl); in tc35815_interrupt()