size_t size, enum dma_data_direction direction)
{
return iommu_map_single(to_vio_dev(dev)->iommu_table, vaddr, size,
- ~0ul, direction);
+ direction);
}
static void vio_unmap_single(struct device *dev, dma_addr_t dma_handle,
int nelems, enum dma_data_direction direction)
{
return iommu_map_sg(dev, to_vio_dev(dev)->iommu_table, sglist,
- nelems, ~0ul, direction);
+ nelems, direction);
}
static void vio_unmap_sg(struct device *dev, struct scatterlist *sglist,
dma_addr_t *dma_handle, gfp_t flag)
{
return iommu_alloc_coherent(to_vio_dev(dev)->iommu_table, size,
- dma_handle, ~0ul, flag);
+ dma_handle, flag);
}
static void vio_free_coherent(struct device *dev, size_t size,