Lines Matching refs:buf_dma
875 dma_addr_t buf_dma; in mtk_snand_read_page_cache() local
936 buf_dma = dma_map_single(snf->dev, buf, dma_len, DMA_FROM_DEVICE); in mtk_snand_read_page_cache()
937 ret = dma_mapping_error(snf->dev, buf_dma); in mtk_snand_read_page_cache()
942 nfi_write32(snf, NFI_STRADDR, buf_dma); in mtk_snand_read_page_cache()
996 dma_unmap_single(snf->dev, buf_dma, dma_len, DMA_FROM_DEVICE); in mtk_snand_read_page_cache()
1036 dma_unmap_single(snf->dev, buf_dma, dma_len, DMA_FROM_DEVICE); in mtk_snand_read_page_cache()
1067 dma_addr_t buf_dma; in mtk_snand_write_page_cache() local
1126 buf_dma = dma_map_single(snf->dev, snf->buf, dma_len, DMA_TO_DEVICE); in mtk_snand_write_page_cache()
1127 ret = dma_mapping_error(snf->dev, buf_dma); in mtk_snand_write_page_cache()
1132 nfi_write32(snf, NFI_STRADDR, buf_dma); in mtk_snand_write_page_cache()
1169 dma_unmap_single(snf->dev, buf_dma, dma_len, DMA_TO_DEVICE); in mtk_snand_write_page_cache()