Lines Matching refs:DMA_CSR
57 switch (dma_read32(DMA_CSR) & DMA_DEVICE_ID) { in esp_sbus_setup_dma()
216 if (dma_read32(DMA_CSR) & (DMA_HNDL_INTR | DMA_HNDL_ERROR)) in sbus_esp_irq_pending()
239 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
240 dma_write32(val | DMA_RST_SCSI, DMA_CSR); in sbus_esp_reset_dma()
241 dma_write32(val & ~DMA_RST_SCSI, DMA_CSR); in sbus_esp_reset_dma()
245 dma_write32(DMA_RESET_FAS366, DMA_CSR); in sbus_esp_reset_dma()
246 dma_write32(DMA_RST_SCSI, DMA_CSR); in sbus_esp_reset_dma()
265 while (dma_read32(DMA_CSR) & DMA_PEND_READ) { in sbus_esp_reset_dma()
275 dma_write32(0, DMA_CSR); in sbus_esp_reset_dma()
276 dma_write32(esp->prev_hme_dmacsr, DMA_CSR); in sbus_esp_reset_dma()
283 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
284 dma_write32(val | DMA_3CLKS, DMA_CSR); in sbus_esp_reset_dma()
289 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
296 dma_write32(val, DMA_CSR); in sbus_esp_reset_dma()
300 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
308 dma_write32(val, DMA_CSR); in sbus_esp_reset_dma()
316 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
317 dma_write32(val | DMA_INT_ENAB, DMA_CSR); in sbus_esp_reset_dma()
328 csr = dma_read32(DMA_CSR); in sbus_esp_dma_drain()
333 dma_write32(csr | DMA_FIFO_STDRAIN, DMA_CSR); in sbus_esp_dma_drain()
336 while (dma_read32(DMA_CSR) & DMA_FIFO_ISDRAIN) { in sbus_esp_dma_drain()
349 dma_write32(DMA_RST_SCSI, DMA_CSR); in sbus_esp_dma_invalidate()
356 dma_write32(0, DMA_CSR); in sbus_esp_dma_invalidate()
357 dma_write32(esp->prev_hme_dmacsr, DMA_CSR); in sbus_esp_dma_invalidate()
368 while ((val = dma_read32(DMA_CSR)) & DMA_PEND_READ) { in sbus_esp_dma_invalidate()
379 dma_write32(val, DMA_CSR); in sbus_esp_dma_invalidate()
381 dma_write32(val, DMA_CSR); in sbus_esp_dma_invalidate()
410 dma_write32(csr, DMA_CSR); in sbus_esp_send_dma_cmd()
412 csr = dma_read32(DMA_CSR); in sbus_esp_send_dma_cmd()
418 dma_write32(csr, DMA_CSR); in sbus_esp_send_dma_cmd()
432 u32 csr = dma_read32(DMA_CSR); in sbus_esp_dma_error()
498 u32 val = dma_read32(DMA_CSR); in esp_sbus_probe_one()
500 dma_write32(val & ~DMA_RST_SCSI, DMA_CSR); in esp_sbus_probe_one()
563 val = dma_read32(DMA_CSR); in esp_sbus_remove()
564 dma_write32(val & ~DMA_INT_ENAB, DMA_CSR); in esp_sbus_remove()