Lines Matching refs:bus_addr
366 dma_addr_t bus_addr, ret; in dma_4v_map_page() local
391 bus_addr = (tbl->table_map_base + (entry << IO_PAGE_SHIFT)); in dma_4v_map_page()
392 ret = bus_addr | (oaddr & ~IO_PAGE_MASK); in dma_4v_map_page()
424 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4v_map_page()
428 static void dma_4v_unmap_page(struct device *dev, dma_addr_t bus_addr, in dma_4v_unmap_page() argument
452 npages = IO_PAGE_ALIGN(bus_addr + sz) - (bus_addr & IO_PAGE_MASK); in dma_4v_unmap_page()
454 bus_addr &= IO_PAGE_MASK; in dma_4v_unmap_page()
456 if (bus_addr <= DMA_BIT_MASK(32)) { in dma_4v_unmap_page()
463 entry = (bus_addr - tbl->table_map_base) >> IO_PAGE_SHIFT; in dma_4v_unmap_page()
464 dma_4v_iommu_demap(dev, devhandle, bus_addr, iotsb_num, entry, npages); in dma_4v_unmap_page()
465 iommu_tbl_range_free(tbl, bus_addr, npages, IOMMU_ERROR_CODE); in dma_4v_unmap_page()