Lines Matching refs:dcsr

335 	unsigned int dcsr;  in sun_pci_fd_reset_dma()  local
337 writel(EBUS_DCSR_RESET, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_reset_dma()
339 dcsr = EBUS_DCSR_BURST_SZ_16 | EBUS_DCSR_TCI_DIS | in sun_pci_fd_reset_dma()
341 writel(dcsr, (unsigned long)&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_reset_dma()
346 unsigned int dcsr; in sun_pci_fd_enable_dma() local
371 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_enable_dma()
372 dcsr |= EBUS_DCSR_EN_DMA; in sun_pci_fd_enable_dma()
373 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_enable_dma()
378 unsigned int dcsr; in sun_pci_fd_disable_dma() local
380 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_disable_dma()
381 if (dcsr & EBUS_DCSR_EN_DMA) { in sun_pci_fd_disable_dma()
382 while (dcsr & EBUS_DCSR_DRAIN) { in sun_pci_fd_disable_dma()
384 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_disable_dma()
386 dcsr &= ~(EBUS_DCSR_EN_DMA); in sun_pci_fd_disable_dma()
387 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_disable_dma()
388 if (dcsr & EBUS_DCSR_ERR_PEND) { in sun_pci_fd_disable_dma()
390 dcsr &= ~(EBUS_DCSR_ERR_PEND); in sun_pci_fd_disable_dma()
391 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_disable_dma()
404 unsigned int dcsr; in sun_pci_fd_set_dma_mode() local
406 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_set_dma_mode()
409 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_set_dma_mode()
412 dcsr |= EBUS_DCSR_EN_CNT | EBUS_DCSR_TC; in sun_pci_fd_set_dma_mode()
418 dcsr &= ~(EBUS_DCSR_WRITE); in sun_pci_fd_set_dma_mode()
421 dcsr |= EBUS_DCSR_WRITE; in sun_pci_fd_set_dma_mode()
424 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_set_dma_mode()
440 unsigned int dcsr, res; in sun_pci_get_dma_residue() local
444 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_get_dma_residue()
446 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_get_dma_residue()
453 unsigned int dcsr; in sun_pci_fd_enable_irq() local
455 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_enable_irq()
456 dcsr |= EBUS_DCSR_INT_EN; in sun_pci_fd_enable_irq()
457 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_enable_irq()
462 unsigned int dcsr; in sun_pci_fd_disable_irq() local
464 dcsr = readl(&sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_disable_irq()
465 dcsr &= ~(EBUS_DCSR_INT_EN); in sun_pci_fd_disable_irq()
466 writel(dcsr, &sun_pci_fd_ebus_dma->dcsr); in sun_pci_fd_disable_irq()