Lines Matching +full:compound +full:- +full:device
1 /* SPDX-License-Identifier: GPL-2.0 */
8 #include <linux/percpu-refcount.h>
11 struct device;
14 * struct vmem_altmap - pre-allocated storage for vmemmap_populate
36 * Device memory that is not directly addressable by the CPU: CPU can neither
38 * backing the device memory. Doing so simplifies the implementation, but it is
46 * Device memory that is cache coherent from device and CPU point of view. This
48 * driver can hotplug the device memory using ZONE_DEVICE and with that memory
58 * fs truncate/hole punch) vs pinned pages (ex: device dma).
63 * that expose memory using a character device.
66 * Device memory residing in a PCI BAR intended for use with Peer-to-Peer
87 * Used for private (un-addressable) device memory only. Must migrate
98 * When this is not implemented, or it returns -EOPNOTSUPP, the caller
108 * struct dev_pagemap - metadata for ZONE_DEVICE mappings
109 * @altmap: pre-allocated/reserved memory for vmemmap allocations
117 * representation. A bigger value will set up compound struct pages
145 return pgmap->ops && pgmap->ops->memory_failure; in pgmap_has_memory_failure()
150 if (pgmap->flags & PGMAP_ALTMAP_VALID) in pgmap_altmap()
151 return &pgmap->altmap; in pgmap_altmap()
157 return 1 << pgmap->vmemmap_shift; in pgmap_vmemmap_nr()
164 folio->pgmap->type == MEMORY_DEVICE_PRIVATE; in folio_is_device_private()
177 folio->pgmap->type == MEMORY_DEVICE_PCI_P2PDMA; in folio_is_pci_p2pdma()
189 folio->pgmap->type == MEMORY_DEVICE_COHERENT; in folio_is_device_coherent()
200 folio->pgmap->type == MEMORY_DEVICE_FS_DAX; in folio_is_fsdax()
212 void *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap);
213 void devm_memunmap_pages(struct device *dev, struct dev_pagemap *pgmap);
219 static inline void *devm_memremap_pages(struct device *dev, in devm_memremap_pages()
228 return ERR_PTR(-ENXIO); in devm_memremap_pages()
231 static inline void devm_memunmap_pages(struct device *dev, in devm_memunmap_pages()
256 percpu_ref_put(&pgmap->ref); in put_dev_pagemap()