Home
last modified time | relevance | path

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

/openbmc/linux/mm/
H A 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 …]
H A 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()
H A Dhuge_memory.c205 return atomic_read(&huge_zero_refcount) == 1 ? HPAGE_PMD_NR : 0; in shrink_huge_zero_page_count()
216 return HPAGE_PMD_NR; in shrink_huge_zero_page_scan()
664 clear_huge_page(page, vmf->address, HPAGE_PMD_NR); in __do_huge_pmd_anonymous_page()
699 add_mm_counter(vma->vm_mm, MM_ANONPAGES, HPAGE_PMD_NR); in __do_huge_pmd_anonymous_page()
1095 add_mm_counter(dst_mm, MM_ANONPAGES, HPAGE_PMD_NR); in copy_huge_pmd()
1138 add_mm_counter(dst_mm, MM_ANONPAGES, HPAGE_PMD_NR); in copy_huge_pmd()
1540 task_numa_fault(last_cpupid, page_nid, HPAGE_PMD_NR, flags); in do_huge_pmd_numa_page()
1561 task_numa_fault(last_cpupid, page_nid, HPAGE_PMD_NR, flags); in do_huge_pmd_numa_page()
1697 add_mm_counter(tlb->mm, MM_ANONPAGES, -HPAGE_PMD_NR); in zap_huge_pmd()
1701 add_mm_counter(tlb->mm, mm_counter_file(page), -HPAGE_PMD_NR); in zap_huge_pmd()
[all …]
H A Dmemfd.c45 cache_count = HPAGE_PMD_NR; in memfd_tag_pins()
104 cache_count = HPAGE_PMD_NR; in memfd_wait_for_pins()
H A Dmprotect.c408 if (ret == HPAGE_PMD_NR) { in change_pmd_range()
409 pages += HPAGE_PMD_NR; in change_pmd_range()
H A Dvmstat.c1683 pages /= HPAGE_PMD_NR; in zoneinfo_show_print()
1816 v[i] /= HPAGE_PMD_NR; in vmstat_start()
H A Dmemcontrol.c6050 mc.precharge += HPAGE_PMD_NR; in mem_cgroup_count_precharge_pte_range()
6248 if (mc.precharge < HPAGE_PMD_NR) { in mem_cgroup_move_charge_pte_range()
6280 mc.precharge -= HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range()
6281 mc.moved_charge += HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range()
6291 mc.precharge -= HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range()
6292 mc.moved_charge += HPAGE_PMD_NR; in mem_cgroup_move_charge_pte_range()
H A Dfilemap.c3188 ractl._index &= ~((unsigned long)HPAGE_PMD_NR - 1); in do_sync_mmap_readahead()
3189 ra->size = HPAGE_PMD_NR; in do_sync_mmap_readahead()
3196 ra->async_size = HPAGE_PMD_NR; in do_sync_mmap_readahead()
H A Dshmem.c557 index = round_up(index + 1, HPAGE_PMD_NR); in __shmem_is_huge()
1660 hindex = round_down(index, HPAGE_PMD_NR); in shmem_alloc_hugefolio()
1661 if (xa_find(&mapping->i_pages, &hindex, hindex + HPAGE_PMD_NR - 1, in shmem_alloc_hugefolio()
1696 nr = huge ? HPAGE_PMD_NR : 1; in shmem_alloc_and_acct_folio()
H A Dmemory-failure.c775 if (pfn <= hwp->pfn && hwp->pfn < pfn + HPAGE_PMD_NR) { in check_hwpoisoned_pmd_entry()
H A Dmigrate.c1492 #define NR_MAX_BATCHED_MIGRATION HPAGE_PMD_NR
H A Dgup.c650 ctx->page_mask = HPAGE_PMD_NR - 1; in follow_pmd_mask()
H A Dmemory.c4335 flush_icache_pages(vma, page, HPAGE_PMD_NR); in do_set_pmd()
4341 add_mm_counter(vma->vm_mm, mm_counter_file(page), HPAGE_PMD_NR); in do_set_pmd()
H A Dswapfile.c273 #define SWAPFILE_CLUSTER HPAGE_PMD_NR
/openbmc/linux/include/linux/
H A Dhuge_mm.h68 #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) macro
108 HPAGE_PMD_NR)) in transhuge_vma_suitable()
/openbmc/linux/arch/arc/mm/
H A Dtlb.c540 update_mmu_cache_range(NULL, vma, addr, &pte, HPAGE_PMD_NR); in update_mmu_cache_pmd()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vram_mgr.c451 pages_per_block = HPAGE_PMD_NR; in amdgpu_vram_mgr_new()
/openbmc/linux/drivers/base/
H A Dnode.c540 pages /= HPAGE_PMD_NR; in node_read_vmstat()