Lines Matching refs:mtk_dma_write

273 static void mtk_dma_write(struct mtk_hsdma_device *hsdma, u32 reg, u32 val)  in mtk_dma_write()  function
286 mtk_dma_write(hsdma, reg, val); in mtk_dma_rmw()
358 mtk_dma_write(hsdma, MTK_HSDMA_TX_BASE, ring->tphys); in mtk_hsdma_alloc_pchan()
359 mtk_dma_write(hsdma, MTK_HSDMA_TX_CNT, MTK_DMA_SIZE); in mtk_hsdma_alloc_pchan()
360 mtk_dma_write(hsdma, MTK_HSDMA_TX_CPU, ring->cur_tptr); in mtk_hsdma_alloc_pchan()
361 mtk_dma_write(hsdma, MTK_HSDMA_TX_DMA, 0); in mtk_hsdma_alloc_pchan()
362 mtk_dma_write(hsdma, MTK_HSDMA_RX_BASE, ring->rphys); in mtk_hsdma_alloc_pchan()
363 mtk_dma_write(hsdma, MTK_HSDMA_RX_CNT, MTK_DMA_SIZE); in mtk_hsdma_alloc_pchan()
364 mtk_dma_write(hsdma, MTK_HSDMA_RX_CPU, ring->cur_rptr); in mtk_hsdma_alloc_pchan()
365 mtk_dma_write(hsdma, MTK_HSDMA_RX_DMA, 0); in mtk_hsdma_alloc_pchan()
371 mtk_dma_write(hsdma, MTK_HSDMA_DLYINT, MTK_HSDMA_DLYINT_DEFAULT); in mtk_hsdma_alloc_pchan()
398 mtk_dma_write(hsdma, MTK_HSDMA_TX_BASE, 0); in mtk_hsdma_free_pchan()
399 mtk_dma_write(hsdma, MTK_HSDMA_TX_CNT, 0); in mtk_hsdma_free_pchan()
400 mtk_dma_write(hsdma, MTK_HSDMA_TX_CPU, 0); in mtk_hsdma_free_pchan()
401 mtk_dma_write(hsdma, MTK_HSDMA_RX_BASE, 0); in mtk_hsdma_free_pchan()
402 mtk_dma_write(hsdma, MTK_HSDMA_RX_CNT, 0); in mtk_hsdma_free_pchan()
403 mtk_dma_write(hsdma, MTK_HSDMA_RX_CPU, MTK_DMA_SIZE - 1); in mtk_hsdma_free_pchan()
487 mtk_dma_write(hsdma, MTK_HSDMA_TX_CPU, ring->cur_tptr); in mtk_hsdma_issue_pending_vdesc()
621 mtk_dma_write(hsdma, MTK_HSDMA_RX_CPU, pc->ring.cur_rptr); in mtk_hsdma_free_rooms_in_ring()
629 mtk_dma_write(hsdma, MTK_HSDMA_INT_STATUS, status); in mtk_hsdma_free_rooms_in_ring()
858 mtk_dma_write(hsdma, MTK_HSDMA_INT_ENABLE, 0); in mtk_hsdma_hw_init()
859 mtk_dma_write(hsdma, MTK_HSDMA_GLO, MTK_HSDMA_GLO_DEFAULT); in mtk_hsdma_hw_init()
866 mtk_dma_write(hsdma, MTK_HSDMA_GLO, 0); in mtk_hsdma_hw_deinit()
1027 mtk_dma_write(hsdma, MTK_HSDMA_INT_ENABLE, 0); in mtk_hsdma_remove()