Lines Matching defs:mtk_hsdma_device
217 * struct mtk_hsdma_device - This is the struct holding info describing HSDMA
231 struct mtk_hsdma_device {
248 static struct mtk_hsdma_device *to_hsdma_dev(struct dma_chan *chan)
250 return container_of(chan->device, struct mtk_hsdma_device, ddev);
263 static struct device *hsdma2dev(struct mtk_hsdma_device *hsdma)
268 static u32 mtk_dma_read(struct mtk_hsdma_device *hsdma, u32 reg)
273 static void mtk_dma_write(struct mtk_hsdma_device *hsdma, u32 reg, u32 val)
278 static void mtk_dma_rmw(struct mtk_hsdma_device *hsdma, u32 reg,
289 static void mtk_dma_set(struct mtk_hsdma_device *hsdma, u32 reg, u32 val)
294 static void mtk_dma_clr(struct mtk_hsdma_device *hsdma, u32 reg, u32 val)
304 static int mtk_hsdma_busy_wait(struct mtk_hsdma_device *hsdma)
314 static int mtk_hsdma_alloc_pchan(struct mtk_hsdma_device *hsdma,
387 static void mtk_hsdma_free_pchan(struct mtk_hsdma_device *hsdma,
411 static int mtk_hsdma_issue_pending_vdesc(struct mtk_hsdma_device *hsdma,
494 static void mtk_hsdma_issue_vchan_pending(struct mtk_hsdma_device *hsdma,
532 static void mtk_hsdma_free_rooms_in_ring(struct mtk_hsdma_device *hsdma)
646 struct mtk_hsdma_device *hsdma = devid;
707 struct mtk_hsdma_device *hsdma = to_hsdma_dev(c);
809 struct mtk_hsdma_device *hsdma = to_hsdma_dev(c);
835 struct mtk_hsdma_device *hsdma = to_hsdma_dev(c);
847 static int mtk_hsdma_hw_init(struct mtk_hsdma_device *hsdma)
864 static int mtk_hsdma_hw_deinit(struct mtk_hsdma_device *hsdma)
895 struct mtk_hsdma_device *hsdma;
1014 struct mtk_hsdma_device *hsdma = platform_get_drvdata(pdev);