Home
last modified time | relevance | path

Searched refs:HPAGE_PMD_NR (Results 1 – 18 of 18) sorted by relevance

/linux-6.6.21/mm/
Dkhugepaged.c267 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 …]
Dpage_vma_mapped.c135 if ((pfn + HPAGE_PMD_NR - 1) < pvmw->pfn) in check_pmd()
272 (pvmw->nr_pages >= HPAGE_PMD_NR)) { in page_vma_mapped_walk()
Dmemfd.c45 cache_count = HPAGE_PMD_NR; in memfd_tag_pins()
104 cache_count = HPAGE_PMD_NR; in memfd_wait_for_pins()
Dhuge_memory.c215 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 …]
Dmprotect.c408 if (ret == HPAGE_PMD_NR) { in change_pmd_range()
409 pages += HPAGE_PMD_NR; in change_pmd_range()
Dvmstat.c1683 pages /= HPAGE_PMD_NR; in zoneinfo_show_print()
1815 v[i] /= HPAGE_PMD_NR; in vmstat_start()
Dmemcontrol.c6027 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()
Dfilemap.c3162 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()
Dshmem.c556 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()
Dmemory-failure.c763 if (pfn <= hwp->pfn && hwp->pfn < pfn + HPAGE_PMD_NR) { in check_hwpoisoned_pmd_entry()
Dmigrate.c1492 #define NR_MAX_BATCHED_MIGRATION HPAGE_PMD_NR
Dgup.c738 ctx->page_mask = HPAGE_PMD_NR - 1; in follow_pmd_mask()
Dmemory.c4309 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()
Dswapfile.c273 #define SWAPFILE_CLUSTER HPAGE_PMD_NR
/linux-6.6.21/include/linux/
Dhuge_mm.h68 #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) macro
108 HPAGE_PMD_NR)) in transhuge_vma_suitable()
/linux-6.6.21/arch/arc/mm/
Dtlb.c540 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/
Damdgpu_vram_mgr.c451 pages_per_block = HPAGE_PMD_NR; in amdgpu_vram_mgr_new()
/linux-6.6.21/drivers/base/
Dnode.c540 pages /= HPAGE_PMD_NR; in node_read_vmstat()