Lines Matching defs:mapping
11 #include <linux/dma-mapping.h>
68 struct dma_iommu_mapping *mapping;
758 * Create the ARM mapping, used by the ARM DMA mapping core to allocate
762 * - Create one mapping per context (TLB).
763 * - Make the mapping size configurable ? We currently use a 2GB mapping
766 if (!mmu->mapping) {
767 struct dma_iommu_mapping *mapping;
769 mapping = arm_iommu_create_mapping(&platform_bus_type,
771 if (IS_ERR(mapping)) {
772 dev_err(mmu->dev, "failed to create ARM IOMMU mapping\n");
773 ret = PTR_ERR(mapping);
777 mmu->mapping = mapping;
780 /* Attach the ARM VA mapping to the device. */
781 ret = arm_iommu_attach_device(dev, mmu->mapping);
783 dev_err(dev, "Failed to attach device to VA mapping\n");
790 if (mmu->mapping)
791 arm_iommu_release_mapping(mmu->mapping);
817 dev_err(dev, "Can't create IOMMU mapping - DMA-OPS will not work\n");
833 arm_iommu_release_mapping(mmu->mapping);
1076 * We can't create the ARM mapping here as it requires the bus to have
1093 arm_iommu_release_mapping(mmu->mapping);