Lines Matching refs:DMA_CSR
58 switch (dma_read32(DMA_CSR) & DMA_DEVICE_ID) { in esp_sbus_setup_dma()
217 if (dma_read32(DMA_CSR) & (DMA_HNDL_INTR | DMA_HNDL_ERROR)) in sbus_esp_irq_pending()
240 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
241 dma_write32(val | DMA_RST_SCSI, DMA_CSR); in sbus_esp_reset_dma()
242 dma_write32(val & ~DMA_RST_SCSI, DMA_CSR); in sbus_esp_reset_dma()
246 dma_write32(DMA_RESET_FAS366, DMA_CSR); in sbus_esp_reset_dma()
247 dma_write32(DMA_RST_SCSI, DMA_CSR); in sbus_esp_reset_dma()
266 while (dma_read32(DMA_CSR) & DMA_PEND_READ) { in sbus_esp_reset_dma()
276 dma_write32(0, DMA_CSR); in sbus_esp_reset_dma()
277 dma_write32(esp->prev_hme_dmacsr, DMA_CSR); in sbus_esp_reset_dma()
284 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
285 dma_write32(val | DMA_3CLKS, DMA_CSR); in sbus_esp_reset_dma()
290 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
297 dma_write32(val, DMA_CSR); in sbus_esp_reset_dma()
301 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
309 dma_write32(val, DMA_CSR); in sbus_esp_reset_dma()
317 val = dma_read32(DMA_CSR); in sbus_esp_reset_dma()
318 dma_write32(val | DMA_INT_ENAB, DMA_CSR); in sbus_esp_reset_dma()
329 csr = dma_read32(DMA_CSR); in sbus_esp_dma_drain()
334 dma_write32(csr | DMA_FIFO_STDRAIN, DMA_CSR); in sbus_esp_dma_drain()
337 while (dma_read32(DMA_CSR) & DMA_FIFO_ISDRAIN) { in sbus_esp_dma_drain()
350 dma_write32(DMA_RST_SCSI, DMA_CSR); in sbus_esp_dma_invalidate()
357 dma_write32(0, DMA_CSR); in sbus_esp_dma_invalidate()
358 dma_write32(esp->prev_hme_dmacsr, DMA_CSR); in sbus_esp_dma_invalidate()
369 while ((val = dma_read32(DMA_CSR)) & DMA_PEND_READ) { in sbus_esp_dma_invalidate()
380 dma_write32(val, DMA_CSR); in sbus_esp_dma_invalidate()
382 dma_write32(val, DMA_CSR); in sbus_esp_dma_invalidate()
411 dma_write32(csr, DMA_CSR); in sbus_esp_send_dma_cmd()
413 csr = dma_read32(DMA_CSR); in sbus_esp_send_dma_cmd()
419 dma_write32(csr, DMA_CSR); in sbus_esp_send_dma_cmd()
433 u32 csr = dma_read32(DMA_CSR); in sbus_esp_dma_error()
499 u32 val = dma_read32(DMA_CSR); in esp_sbus_probe_one()
501 dma_write32(val & ~DMA_RST_SCSI, DMA_CSR); in esp_sbus_probe_one()
564 val = dma_read32(DMA_CSR); in esp_sbus_remove()
565 dma_write32(val & ~DMA_INT_ENAB, DMA_CSR); in esp_sbus_remove()