Home
last modified time | relevance | path

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

/kernel/power/
Dsnapshot.c633 static int memory_bm_find_bit(struct memory_bitmap *bm, unsigned long pfn, in memory_bm_find_bit() argument
642 if (pfn >= zone->start_pfn && pfn < zone->end_pfn) in memory_bm_find_bit()
649 if (pfn >= curr->start_pfn && pfn < curr->end_pfn) { in memory_bm_find_bit()
665 if (((pfn - zone->start_pfn) & ~BM_BLOCK_MASK) == bm->cur.node_pfn) in memory_bm_find_bit()
669 block_nr = (pfn - zone->start_pfn) >> BM_BLOCK_SHIFT; in memory_bm_find_bit()
684 bm->cur.node_pfn = (pfn - zone->start_pfn) & ~BM_BLOCK_MASK; in memory_bm_find_bit()
688 *bit_nr = (pfn - zone->start_pfn) & BM_BLOCK_MASK; in memory_bm_find_bit()
693 static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_set_bit() argument
699 error = memory_bm_find_bit(bm, pfn, &addr, &bit); in memory_bm_set_bit()
704 static int mem_bm_set_bit_check(struct memory_bitmap *bm, unsigned long pfn) in mem_bm_set_bit_check() argument
[all …]
/kernel/
Dresource.c456 unsigned long pfn, end_pfn; in walk_system_ram_range() local
466 pfn = (res.start + PAGE_SIZE - 1) >> PAGE_SHIFT; in walk_system_ram_range()
468 if (end_pfn > pfn) in walk_system_ram_range()
469 ret = (*func)(pfn, end_pfn - pfn, arg); in walk_system_ram_range()
480 static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) in __is_ram() argument
488 int __weak page_is_ram(unsigned long pfn) in page_is_ram() argument
490 return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; in page_is_ram()
Dkexec.c708 unsigned long pfn, epfn, addr, eaddr; in kimage_alloc_normal_control_pages() local
713 pfn = page_to_pfn(pages); in kimage_alloc_normal_control_pages()
714 epfn = pfn + count; in kimage_alloc_normal_control_pages()
715 addr = pfn << PAGE_SHIFT; in kimage_alloc_normal_control_pages()
/kernel/debug/kdb/
Dkdb_support.c379 unsigned long pfn; in kdb_getphys() local
383 pfn = (addr >> PAGE_SHIFT); in kdb_getphys()
384 if (!pfn_valid(pfn)) in kdb_getphys()
386 page = pfn_to_page(pfn); in kdb_getphys()