Searched refs:HPAGE_PMD_NR (Results 1 – 18 of 18) sorted by relevance
/linux-6.6.21/mm/ |
D | khugepaged.c | 267 if (err || max_ptes_none > HPAGE_PMD_NR - 1) in max_ptes_none_store() 292 if (err || max_ptes_swap > HPAGE_PMD_NR - 1) in max_ptes_swap_store() 318 if (err || max_ptes_shared > HPAGE_PMD_NR - 1) in max_ptes_shared_store() 394 khugepaged_pages_to_scan = HPAGE_PMD_NR * 8; in khugepaged_init() 395 khugepaged_max_ptes_none = HPAGE_PMD_NR - 1; in khugepaged_init() 396 khugepaged_max_ptes_swap = HPAGE_PMD_NR / 8; in khugepaged_init() 397 khugepaged_max_ptes_shared = HPAGE_PMD_NR / 2; in khugepaged_init() 549 for (_pte = pte; _pte < pte + HPAGE_PMD_NR; in __collapse_huge_page_isolate() 693 for (_pte = pte; _pte < pte + HPAGE_PMD_NR; in __collapse_huge_page_copy_succeeded() 756 release_pte_pages(pte, pte + HPAGE_PMD_NR, compound_pagelist); in __collapse_huge_page_copy_failed() [all …]
|
D | page_vma_mapped.c | 135 if ((pfn + HPAGE_PMD_NR - 1) < pvmw->pfn) in check_pmd() 272 (pvmw->nr_pages >= HPAGE_PMD_NR)) { in page_vma_mapped_walk()
|
D | memfd.c | 45 cache_count = HPAGE_PMD_NR; in memfd_tag_pins() 104 cache_count = HPAGE_PMD_NR; in memfd_wait_for_pins()
|
D | huge_memory.c | 215 return atomic_read(&huge_zero_refcount) == 1 ? HPAGE_PMD_NR : 0; in shrink_huge_zero_page_count() 226 return HPAGE_PMD_NR; in shrink_huge_zero_page_scan() 671 clear_huge_page(page, vmf->address, HPAGE_PMD_NR); in __do_huge_pmd_anonymous_page() 706 add_mm_counter(vma->vm_mm, MM_ANONPAGES, HPAGE_PMD_NR); in __do_huge_pmd_anonymous_page() 1102 add_mm_counter(dst_mm, MM_ANONPAGES, HPAGE_PMD_NR); in copy_huge_pmd() 1145 add_mm_counter(dst_mm, MM_ANONPAGES, HPAGE_PMD_NR); in copy_huge_pmd() 1559 task_numa_fault(last_cpupid, page_nid, HPAGE_PMD_NR, in do_huge_pmd_numa_page() 1708 add_mm_counter(tlb->mm, MM_ANONPAGES, -HPAGE_PMD_NR); in zap_huge_pmd() 1712 add_mm_counter(tlb->mm, mm_counter_file(page), -HPAGE_PMD_NR); in zap_huge_pmd() 1925 ret = HPAGE_PMD_NR; in change_huge_pmd() [all …]
|
D | mprotect.c | 408 if (ret == HPAGE_PMD_NR) { in change_pmd_range() 409 pages += HPAGE_PMD_NR; in change_pmd_range()
|
D | vmstat.c | 1683 pages /= HPAGE_PMD_NR; in zoneinfo_show_print() 1815 v[i] /= HPAGE_PMD_NR; in vmstat_start()
|
D | memcontrol.c | 6027 mc.precharge += HPAGE_PMD_NR; in mem_cgroup_count_precharge_pte_range() 6222 if (mc.precharge < HPAGE_PMD_NR) { in mem_cgroup_move_charge_pte_range() 6232 mc.precharge -= HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range() 6233 mc.moved_charge += HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range() 6243 mc.precharge -= HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range() 6244 mc.moved_charge += HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range()
|
D | filemap.c | 3162 ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1); in do_sync_mmap_readahead() 3163 ra->size = HPAGE_PMD_NR; in do_sync_mmap_readahead() 3170 ra->async_size = HPAGE_PMD_NR; in do_sync_mmap_readahead()
|
D | shmem.c | 556 index = round_up(index + 1, HPAGE_PMD_NR); in shmem_is_huge() 1655 hindex = round_down(index, HPAGE_PMD_NR); in shmem_alloc_hugefolio() 1656 if (xa_find(&mapping->i_pages, &hindex, hindex + HPAGE_PMD_NR - 1, in shmem_alloc_hugefolio() 1691 nr = huge ? HPAGE_PMD_NR : 1; in shmem_alloc_and_acct_folio()
|
D | memory-failure.c | 763 if (pfn <= hwp->pfn && hwp->pfn < pfn + HPAGE_PMD_NR) { in check_hwpoisoned_pmd_entry()
|
D | migrate.c | 1492 #define NR_MAX_BATCHED_MIGRATION HPAGE_PMD_NR
|
D | gup.c | 738 ctx->page_mask = HPAGE_PMD_NR - 1; in follow_pmd_mask()
|
D | memory.c | 4309 flush_icache_pages(vma, page, HPAGE_PMD_NR); in do_set_pmd() 4315 add_mm_counter(vma->vm_mm, mm_counter_file(page), HPAGE_PMD_NR); in do_set_pmd()
|
D | swapfile.c | 273 #define SWAPFILE_CLUSTER HPAGE_PMD_NR
|
/linux-6.6.21/include/linux/ |
D | huge_mm.h | 68 #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) macro 108 HPAGE_PMD_NR)) in transhuge_vma_suitable()
|
/linux-6.6.21/arch/arc/mm/ |
D | tlb.c | 540 update_mmu_cache_range(NULL, vma, addr, &pte, HPAGE_PMD_NR); in update_mmu_cache_pmd()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vram_mgr.c | 451 pages_per_block = HPAGE_PMD_NR; in amdgpu_vram_mgr_new()
|
/linux-6.6.21/drivers/base/ |
D | node.c | 540 pages /= HPAGE_PMD_NR; in node_read_vmstat()
|