Lines Matching refs:bus_addr
273 u32 bus_addr, ret; in dma_4u_map_page() local
296 bus_addr = (iommu->tbl.table_map_base + in dma_4u_map_page()
298 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4u_map_page()
386 static void dma_4u_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4u_unmap_page() argument
404 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_unmap_page()
407 ((bus_addr - iommu->tbl.table_map_base) >> IO_PAGE_SHIFT); in dma_4u_unmap_page()
408 bus_addr &= IO_PAGE_MASK; in dma_4u_unmap_page()
419 strbuf_flush(strbuf, iommu, bus_addr, ctx, in dma_4u_unmap_page()
429 iommu_tbl_range_free(&iommu->tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4u_unmap_page()
593 u32 bus_addr; in fetch_sg_ctx() local
596 bus_addr = sg->dma_address & IO_PAGE_MASK; in fetch_sg_ctx()
598 ((bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT); in fetch_sg_ctx()
658 dma_addr_t bus_addr, size_t sz, in dma_4u_sync_single_for_cpu() argument
673 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4u_sync_single_for_cpu()
675 bus_addr &= IO_PAGE_MASK; in dma_4u_sync_single_for_cpu()
685 ((bus_addr - tbl->table_map_base)>>IO_PAGE_SHIFT); in dma_4u_sync_single_for_cpu()
690 strbuf_flush(strbuf, iommu, bus_addr, ctx, npages, direction); in dma_4u_sync_single_for_cpu()
703 u32 bus_addr; in dma_4u_sync_sg_for_cpu() local
726 bus_addr = sglist[0].dma_address & IO_PAGE_MASK; in dma_4u_sync_sg_for_cpu()
735 - bus_addr) >> IO_PAGE_SHIFT; in dma_4u_sync_sg_for_cpu()
736 strbuf_flush(strbuf, iommu, bus_addr, ctx, npages, direction); in dma_4u_sync_sg_for_cpu()