Lines Matching +full:dma +full:- +full:capable
1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/dma-direct.h>
14 * If @dev is expected to be DMA-capable then the bus code that created in acpi_arch_dma_setup()
19 if (!dev->dma_mask) { in acpi_arch_dma_setup()
20 dev_warn(dev, "DMA mask not set\n"); in acpi_arch_dma_setup()
21 dev->dma_mask = &dev->coherent_dma_mask; in acpi_arch_dma_setup()
24 if (dev->coherent_dma_mask) in acpi_arch_dma_setup()
25 end = dev->coherent_dma_mask; in acpi_arch_dma_setup()
27 end = (1ULL << 32) - 1; in acpi_arch_dma_setup()
32 dev->dma_range_map = map; in acpi_arch_dma_setup()
35 if (ret == -ENODEV) in acpi_arch_dma_setup()
39 * Limit coherent and dma mask based on size retrieved from in acpi_arch_dma_setup()
43 dev->bus_dma_limit = end; in acpi_arch_dma_setup()
44 dev->coherent_dma_mask = min(dev->coherent_dma_mask, mask); in acpi_arch_dma_setup()
45 *dev->dma_mask = min(*dev->dma_mask, mask); in acpi_arch_dma_setup()