Lines Matching +full:wakeup +full:- +full:method
1 /* SPDX-License-Identifier: GPL-2.0 */
8 #include <linux/percpu-refcount.h>
14 * struct vmem_altmap - pre-allocated storage for vmemmap_populate
56 * wakeup event whenever a page is unpinned and becomes idle. This
57 * wakeup is used to coordinate physical address space management (ex:
66 * Device memory residing in a PCI BAR intended for use with Peer-to-Peer
81 * reset to one by the core code after the method is called to prepare
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
119 * @ops: method table
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 page->pgmap->type == MEMORY_DEVICE_PRIVATE; in is_device_private_page()
169 return is_device_private_page(&folio->page); in folio_is_device_private()
176 page->pgmap->type == MEMORY_DEVICE_PCI_P2PDMA; in is_pci_p2pdma_page()
182 page->pgmap->type == MEMORY_DEVICE_COHERENT; in is_device_coherent_page()
187 return is_device_coherent_page(&folio->page); in folio_is_device_coherent()
211 return ERR_PTR(-ENXIO); in devm_memremap_pages()
240 percpu_ref_put(&pgmap->ref); in put_dev_pagemap()