Lines Matching +full:firmware +full:- +full:initialised
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()
15 * it should have initialised its dma_mask pointer by this point. For in acpi_arch_dma_setup()
19 if (!dev->dma_mask) { 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 size = max(dev->coherent_dma_mask, dev->coherent_dma_mask + 1); in acpi_arch_dma_setup()
30 if (ret == -ENODEV) in acpi_arch_dma_setup()
35 * firmware. in acpi_arch_dma_setup()
37 end = dmaaddr + size - 1; in acpi_arch_dma_setup()
39 dev->bus_dma_limit = end; in acpi_arch_dma_setup()
40 dev->coherent_dma_mask = min(dev->coherent_dma_mask, mask); in acpi_arch_dma_setup()
41 *dev->dma_mask = min(*dev->dma_mask, mask); in acpi_arch_dma_setup()