Home
last modified time | relevance | path

Searched refs:pfn (Results 1 – 25 of 50) sorted by relevance

12

/include/linux/
Dpfn_t.h29 static inline pfn_t __pfn_to_pfn_t(unsigned long pfn, u64 flags) in __pfn_to_pfn_t() argument
31 pfn_t pfn_t = { .val = pfn | (flags & PFN_FLAGS_MASK), }; in __pfn_to_pfn_t()
37 static inline pfn_t pfn_to_pfn_t(unsigned long pfn) in pfn_to_pfn_t() argument
39 return __pfn_to_pfn_t(pfn, 0); in pfn_to_pfn_t()
47 static inline bool pfn_t_has_page(pfn_t pfn) in pfn_t_has_page() argument
49 return (pfn.val & PFN_MAP) == PFN_MAP || (pfn.val & PFN_DEV) == 0; in pfn_t_has_page()
52 static inline unsigned long pfn_t_to_pfn(pfn_t pfn) in pfn_t_to_pfn() argument
54 return pfn.val & ~PFN_FLAGS_MASK; in pfn_t_to_pfn()
57 static inline struct page *pfn_t_to_page(pfn_t pfn) in pfn_t_to_page() argument
59 if (pfn_t_has_page(pfn)) in pfn_t_to_page()
[all …]
Dpageblock-flags.h56 #define pageblock_align(pfn) ALIGN((pfn), pageblock_nr_pages) argument
57 #define pageblock_aligned(pfn) IS_ALIGNED((pfn), pageblock_nr_pages) argument
58 #define pageblock_start_pfn(pfn) ALIGN_DOWN((pfn), pageblock_nr_pages) argument
59 #define pageblock_end_pfn(pfn) ALIGN((pfn) + 1, pageblock_nr_pages) argument
65 unsigned long pfn,
70 unsigned long pfn,
Dset_memory.h46 int set_mce_nospec(unsigned long pfn);
47 int clear_mce_nospec(unsigned long pfn);
49 static inline int set_mce_nospec(unsigned long pfn) in set_mce_nospec() argument
53 static inline int clear_mce_nospec(unsigned long pfn) in clear_mce_nospec() argument
Dhighmem-internal.h9 void *__kmap_local_pfn_prot(unsigned long pfn, pgprot_t prot);
87 static inline void *kmap_local_pfn(unsigned long pfn) in kmap_local_pfn() argument
89 return __kmap_local_pfn_prot(pfn, kmap_prot); in kmap_local_pfn()
113 static inline void *kmap_atomic_pfn(unsigned long pfn) in kmap_atomic_pfn() argument
121 return __kmap_local_pfn_prot(pfn, kmap_prot); in kmap_atomic_pfn()
195 static inline void *kmap_local_pfn(unsigned long pfn) in kmap_local_pfn() argument
197 return kmap_local_page(pfn_to_page(pfn)); in kmap_local_pfn()
222 static inline void *kmap_atomic_pfn(unsigned long pfn) in kmap_atomic_pfn() argument
224 return kmap_atomic(pfn_to_page(pfn)); in kmap_atomic_pfn()
Diova.h87 void free_iova(struct iova_domain *iovad, unsigned long pfn);
92 void free_iova_fast(struct iova_domain *iovad, unsigned long pfn,
101 struct iova *find_iova(struct iova_domain *iovad, unsigned long pfn);
113 static inline void free_iova(struct iova_domain *iovad, unsigned long pfn) in free_iova() argument
130 unsigned long pfn, in free_iova_fast() argument
157 unsigned long pfn) in find_iova() argument
Dcrash_dump.h24 unsigned long from, unsigned long pfn,
27 ssize_t copy_oldmem_page(struct iov_iter *i, unsigned long pfn, size_t csize,
29 ssize_t copy_oldmem_page_encrypted(struct iov_iter *iter, unsigned long pfn,
109 bool (*pfn_is_ram)(struct vmcore_cb *cb, unsigned long pfn);
Dmmzone.h1032 static inline bool zone_spans_pfn(const struct zone *zone, unsigned long pfn) in zone_spans_pfn() argument
1034 return zone->zone_start_pfn <= pfn && pfn < zone_end_pfn(zone); in zone_spans_pfn()
1697 #define pfn_to_nid(pfn) (0) argument
1721 static inline unsigned long pfn_to_section_nr(unsigned long pfn) in pfn_to_section_nr() argument
1723 return pfn >> PFN_SECTION_SHIFT; in pfn_to_section_nr()
1730 #define SECTION_ALIGN_UP(pfn) (((pfn) + PAGES_PER_SECTION - 1) & PAGE_SECTION_MASK) argument
1731 #define SECTION_ALIGN_DOWN(pfn) ((pfn) & PAGE_SECTION_MASK) argument
1746 #define SUBSECTION_ALIGN_UP(pfn) ALIGN((pfn), PAGES_PER_SUBSECTION) argument
1747 #define SUBSECTION_ALIGN_DOWN(pfn) ((pfn) & PAGE_SUBSECTION_MASK) argument
1757 void subsection_map_init(unsigned long pfn, unsigned long nr_pages);
[all …]
Dmemremap.h100 int (*memory_failure)(struct dev_pagemap *pgmap, unsigned long pfn,
195 struct dev_pagemap *get_dev_pagemap(unsigned long pfn,
197 bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn);
220 static inline struct dev_pagemap *get_dev_pagemap(unsigned long pfn, in get_dev_pagemap() argument
226 static inline bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn) in pgmap_pfn_valid() argument
Dmemory_hotplug.h68 struct page *pfn_to_online_page(unsigned long pfn);
154 extern int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,
156 extern void mhp_deinit_memmap_on_memory(unsigned long pfn, unsigned long nr_pages);
157 extern int online_pages(unsigned long pfn, unsigned long nr_pages,
227 #define pfn_to_online_page(pfn) \ argument
230 if (pfn_valid(pfn)) \
231 ___page = pfn_to_page(pfn); \
347 extern int sparse_add_section(int nid, unsigned long pfn,
351 unsigned long pfn, unsigned long nr_pages,
Dkcore.h39 extern int __init register_mem_pfn_is_ram(int (*fn)(unsigned long pfn));
Dhuge_mm.h42 vm_fault_t vmf_insert_pfn_pmd_prot(struct vm_fault *vmf, pfn_t pfn,
56 static inline vm_fault_t vmf_insert_pfn_pmd(struct vm_fault *vmf, pfn_t pfn, in vmf_insert_pfn_pmd() argument
59 return vmf_insert_pfn_pmd_prot(vmf, pfn, vmf->vma->vm_page_prot, write); in vmf_insert_pfn_pmd()
61 vm_fault_t vmf_insert_pfn_pud_prot(struct vm_fault *vmf, pfn_t pfn,
75 static inline vm_fault_t vmf_insert_pfn_pud(struct vm_fault *vmf, pfn_t pfn, in vmf_insert_pfn_pud() argument
78 return vmf_insert_pfn_pud_prot(vmf, pfn, vmf->vma->vm_page_prot, write); in vmf_insert_pfn_pud()
Drmap.h373 unsigned long pfn; member
386 .pfn = page_to_pfn(_page), \
396 .pfn = folio_pfn(_folio), \
428 int pfn_mkclean_range(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff,
/include/trace/events/
Dcma.h13 TP_PROTO(const char *name, unsigned long pfn, const struct page *page,
16 TP_ARGS(name, pfn, page, count, align),
20 __field(unsigned long, pfn)
28 __entry->pfn = pfn;
36 __entry->pfn,
44 TP_PROTO(const char *name, unsigned long pfn, const struct page *page,
47 TP_ARGS(name, pfn, page, count),
51 __field(unsigned long, pfn)
58 __entry->pfn = pfn;
65 __entry->pfn,
[all …]
Dkmem.h143 __field( unsigned long, pfn )
148 __entry->pfn = page_to_pfn(page);
153 pfn_to_page(__entry->pfn),
154 __entry->pfn,
165 __field( unsigned long, pfn )
169 __entry->pfn = page_to_pfn(page);
173 pfn_to_page(__entry->pfn),
174 __entry->pfn)
185 __field( unsigned long, pfn )
192 __entry->pfn = page ? page_to_pfn(page) : -1UL;
[all …]
Dpagemap.h36 __field(unsigned long, pfn )
43 __entry->pfn = folio_pfn(folio);
51 __entry->pfn,
69 __field(unsigned long, pfn )
74 __entry->pfn = folio_pfn(folio);
77 TP_printk("folio=%p pfn=0x%lx", __entry->folio, __entry->pfn)
Dpage_pool.h53 __field(unsigned long, pfn)
60 __entry->pfn = page_to_pfn(page);
64 __entry->pool, __entry->page, __entry->pfn, __entry->release)
78 __field(unsigned long, pfn)
85 __entry->pfn = page_to_pfn(page);
89 __entry->pool, __entry->page, __entry->pfn, __entry->hold)
Dhuge_memory.h62 __field(unsigned long, pfn)
72 __entry->pfn = page ? page_to_pfn(page) : -1;
82 __entry->pfn,
122 __field(unsigned long, pfn)
130 __entry->pfn = page ? page_to_pfn(page) : -1;
138 __entry->pfn,
181 __field(unsigned long, pfn)
190 __entry->pfn = page ? page_to_pfn(page) : -1;
199 __entry->pfn,
Dpage_ref.h20 __field(unsigned long, pfn)
30 __entry->pfn = page_to_pfn(page);
40 __entry->pfn,
68 __field(unsigned long, pfn)
79 __entry->pfn = page_to_pfn(page);
90 __entry->pfn,
Dxen.h287 TP_PROTO(struct mm_struct *mm, unsigned long pfn, unsigned level, bool pinned),
288 TP_ARGS(mm, pfn, level, pinned),
291 __field(unsigned long, pfn)
296 __entry->pfn = pfn;
300 __entry->mm, __entry->pfn, __entry->level,
305 TP_PROTO(unsigned long pfn, unsigned level, bool pinned),
306 TP_ARGS(pfn, level, pinned),
308 __field(unsigned long, pfn)
312 TP_fast_assign(__entry->pfn = pfn;
316 __entry->pfn, __entry->level,
Dfilemap.h23 __field(unsigned long, pfn)
31 __entry->pfn = folio_pfn(folio);
44 __entry->pfn,
/include/xen/arm/
Dpage.h15 #define phys_to_machine_mapping_valid(pfn) (1) argument
43 unsigned long __pfn_to_mfn(unsigned long pfn);
47 static inline unsigned long pfn_to_gfn(unsigned long pfn) in pfn_to_gfn() argument
49 return pfn; in pfn_to_gfn()
58 static inline unsigned long pfn_to_bfn(unsigned long pfn) in pfn_to_bfn() argument
63 mfn = __pfn_to_mfn(pfn); in pfn_to_bfn()
68 return pfn; in pfn_to_bfn()
103 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
104 bool __set_phys_to_machine_multi(unsigned long pfn, unsigned long mfn,
107 static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument
[all …]
/include/asm-generic/
Dmemory_model.h18 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) argument
25 #define __pfn_to_page(pfn) (vmemmap + (pfn)) argument
39 #define __pfn_to_page(pfn) \ argument
40 ({ unsigned long __pfn = (pfn); \
50 #define __pfn_to_phys(pfn) PFN_PHYS(pfn) argument
Dpage.h78 #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) argument
87 #define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr) argument
/include/ras/
Dras_event.h400 TP_PROTO(unsigned long pfn,
404 TP_ARGS(pfn, type, result),
407 __field(unsigned long, pfn)
413 __entry->pfn = pfn;
419 __entry->pfn,
/include/xen/interface/hvm/
Dhvm_op.h45 uint64_t pfn; member

12