/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | charge_reserved_hugetlb.sh | 49 if [[ -e /mnt/huge ]]; then 50 rm -rf /mnt/huge/* 51 umount /mnt/huge || echo error 52 rmdir /mnt/huge 257 if [[ -e /mnt/huge ]]; then 258 rm -rf /mnt/huge/* 259 umount /mnt/huge 260 rmdir /mnt/huge 287 mkdir -p /mnt/huge 288 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | charge_reserved_hugetlb.sh | 52 if [[ -e /mnt/huge ]]; then 53 rm -rf /mnt/huge/* 54 umount /mnt/huge || echo error 55 rmdir /mnt/huge 260 if [[ -e /mnt/huge ]]; then 261 rm -rf /mnt/huge/* 262 umount /mnt/huge 263 rmdir /mnt/huge 290 mkdir -p /mnt/huge 291 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge [all...] |
H A D | run_vmtests.sh | 62 test transparent huge pages 108 for huge in -t -T "-H -m $hugetlb_mb"; do 117 # just test partial gup when hit a huge in whatever form 120 $huge $test_cmd $write $share $num 128 # get huge pagesize and freepages from /proc/meminfo 139 # huge pages totaling 256MB (262144KB) in size. The userfaultfd 140 # hugetlb test requires a minimum of 2 * nr_cpus huge pages. Take 142 # number of huge pages available. 168 printf "Not enough huge pages available (%d < %d)\n" \ 247 # Hugetlb tests require source and destination huge page [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/32/ |
H A D | pgtable.h | 235 static int number_of_cells_per_pte(pmd_t *pmd, pte_basic_t val, int huge) in number_of_cells_per_pte() argument 237 if (!huge) in number_of_cells_per_pte() 248 unsigned long clr, unsigned long set, int huge) in pte_update() 256 num = number_of_cells_per_pte(pmd, new, huge); in pte_update() 277 unsigned long clr, unsigned long set, int huge) in pte_update() 329 int huge = psize > mmu_virtual_psize ? 1 : 0; in __ptep_set_access_flags() local 331 pte_update(vma->vm_mm, address, ptep, clr, set, huge); in __ptep_set_access_flags() 247 pte_update(struct mm_struct *mm, unsigned long addr, pte_t *p, unsigned long clr, unsigned long set, int huge) pte_update() argument 276 pte_update(struct mm_struct *mm, unsigned long addr, pte_t *p, unsigned long clr, unsigned long set, int huge) pte_update() argument
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/nohash/32/ |
H A D | pgtable.h | 236 static int number_of_cells_per_pte(pmd_t *pmd, pte_basic_t val, int huge) in number_of_cells_per_pte() argument 238 if (!huge) in number_of_cells_per_pte() 249 unsigned long clr, unsigned long set, int huge) in pte_update() 257 num = number_of_cells_per_pte(pmd, new, huge); in pte_update() 284 unsigned long clr, unsigned long set, int huge) in pte_update() 334 int huge = psize > mmu_virtual_psize ? 1 : 0; in __ptep_set_access_flags() local 336 pte_update(vma->vm_mm, address, ptep, 0, set, huge); in __ptep_set_access_flags() 248 pte_update(struct mm_struct *mm, unsigned long addr, pte_t *p, unsigned long clr, unsigned long set, int huge) pte_update() argument 283 pte_update(struct mm_struct *mm, unsigned long addr, pte_t *p, unsigned long clr, unsigned long set, int huge) pte_update() argument
|
H A D | pte-8xx.h | 147 unsigned long clr, unsigned long set, int huge); 160 int huge = psize > mmu_virtual_psize ? 1 : 0; in __ptep_set_access_flags() local 162 pte_update(vma->vm_mm, address, ptep, clr, set, huge); in __ptep_set_access_flags()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/ |
H A D | ttm_page_alloc.c | 221 static struct ttm_page_pool *ttm_get_pool(int flags, bool huge, in ttm_get_pool() argument 235 if (huge) in ttm_get_pool() 239 } else if (huge) { in ttm_get_pool() 713 struct ttm_page_pool *huge = ttm_get_pool(flags, true, cstate); in ttm_put_pages() local 759 if (huge) { in ttm_put_pages() 762 spin_lock_irqsave(&huge->lock, irq_flags); in ttm_put_pages() 777 list_add_tail(&pages[i]->lru, &huge->list); in ttm_put_pages() 781 huge->npages++; in ttm_put_pages() 787 if (huge->npages > max_size) in ttm_put_pages() 788 n2free = huge in ttm_put_pages() 831 struct ttm_page_pool *huge = ttm_get_pool(flags, true, cstate); ttm_get_pages() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/ |
H A D | hash.h | 147 pte_t *ptep, unsigned long pte, int huge); 154 int huge) in hash__pte_update() 171 /* huge pages use the old page table lock */ in hash__pte_update() 172 if (!huge) in hash__pte_update() 177 hpte_need_flush(mm, addr, ptep, old, huge); in hash__pte_update() 150 hash__pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr, unsigned long set, int huge) hash__pte_update() argument
|
H A D | radix.h | 170 int huge) in radix__pte_update() 175 if (!huge) in radix__pte_update() 166 radix__pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr, unsigned long set, int huge) radix__pte_update() argument
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/book3s/64/ |
H A D | hash.h | 161 pte_t *ptep, unsigned long pte, int huge); 168 int huge) in hash__pte_update() 185 /* huge pages use the old page table lock */ in hash__pte_update() 186 if (!huge) in hash__pte_update() 191 hpte_need_flush(mm, addr, ptep, old, huge); in hash__pte_update() 164 hash__pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr, unsigned long set, int huge) hash__pte_update() argument
|
H A D | radix.h | 176 int huge) in radix__pte_update() 181 if (!huge) in radix__pte_update() 172 radix__pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr, unsigned long set, int huge) radix__pte_update() argument
|
/kernel/linux/linux-6.6/arch/loongarch/mm/ |
H A D | init.c | 143 int huge = pmd_val(*pmd) & _PAGE_HUGE; in vmemmap_check_pmd() local 145 if (huge) in vmemmap_check_pmd() 148 return huge; in vmemmap_check_pmd()
|
/kernel/linux/linux-5.10/drivers/misc/lkdtm/ |
H A D | bugs.c | 180 volatile unsigned int huge = INT_MAX - 2; variable 187 value = huge; in lkdtm_OVERFLOW_SIGNED() 202 value = huge; in lkdtm_OVERFLOW_UNSIGNED()
|
/kernel/linux/linux-5.10/mm/ |
H A D | shmem.c | 118 int huge; member 443 * Definitions for "huge tmpfs": tmpfs mounted with the huge= option 446 * disables huge pages for the mount; 448 * enables huge pages for the mount; 450 * only allocate huge pages if the page will be fully within i_size, 453 * only allocate huge pages if requested with fadvise()/madvise(); 466 * disables huge on shm_mnt and all mounts, for emergency use; 468 * enables huge on shm_mnt and all mounts, w/o needing option, for testing; 499 static const char *shmem_format_huge(int huge) in shmem_format_huge() argument 1576 shmem_alloc_and_acct_page(gfp_t gfp, struct inode *inode, pgoff_t index, bool huge) shmem_alloc_and_acct_page() argument 4074 int huge; shmem_enabled_store() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
H A D | hash_tlb.c | 41 pte_t *ptep, unsigned long pte, int huge) in hpte_need_flush() 61 if (huge) { in hpte_need_flush() 40 hpte_need_flush(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long pte, int huge) hpte_need_flush() argument
|
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/ |
H A D | hash_tlb.c | 41 pte_t *ptep, unsigned long pte, int huge) in hpte_need_flush() 61 if (huge) { in hpte_need_flush() 40 hpte_need_flush(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long pte, int huge) hpte_need_flush() argument
|
/kernel/linux/linux-5.10/arch/alpha/lib/ |
H A D | ev6-clear_user.S | 86 subq $1, 16, $4 # .. .. .. E : If < 16, we can not use the huge loop 87 and $16, 0x3f, $2 # .. .. E .. : Forward work for huge loop 88 subq $2, 0x40, $3 # .. E .. .. : bias counter (huge loop)
|
/kernel/linux/linux-6.6/arch/alpha/lib/ |
H A D | ev6-clear_user.S | 86 subq $1, 16, $4 # .. .. .. E : If < 16, we can not use the huge loop 87 and $16, 0x3f, $2 # .. .. E .. : Forward work for huge loop 88 subq $2, 0x40, $3 # .. E .. .. : bias counter (huge loop)
|
/kernel/linux/linux-6.6/mm/ |
H A D | memory-failure.c | 880 [MF_MSG_HUGE] = "huge page", 881 [MF_MSG_FREE_HUGE] = "free huge page", 1619 pr_info("%#lx: could not lock mapping for mapped huge page\n", pfn); in hwpoison_user_mappings() 2507 bool huge = false; in unpoison_memory() local 2561 huge = true; in unpoison_memory() 2577 huge = true; in unpoison_memory() 2595 if (!huge) in unpoison_memory() 2649 bool huge = PageHuge(page); in soft_offline_in_use_page() local 2656 if (!huge && PageTransHuge(hpage)) { in soft_offline_in_use_page() 2665 if (!huge) in soft_offline_in_use_page() [all...] |
H A D | shmem.c | 120 int huge; member 502 * Definitions for "huge tmpfs": tmpfs mounted with the huge= option 505 * disables huge pages for the mount; 507 * enables huge pages for the mount; 509 * only allocate huge pages if the page will be fully within i_size, 512 * only allocate huge pages if requested with fadvise()/madvise(); 525 * disables huge on shm_mnt and all mounts, for emergency use; 527 * enables huge on shm_mnt and all mounts, w/o needing option, for testing; 552 switch (SHMEM_SB(inode->i_sb)->huge) { in shmem_is_huge() 590 shmem_format_huge(int huge) shmem_format_huge() argument 1681 shmem_alloc_and_acct_folio(gfp_t gfp, struct inode *inode, pgoff_t index, bool huge) shmem_alloc_and_acct_folio() argument 4689 int huge; shmem_enabled_store() local [all...] |
/kernel/linux/linux-5.10/arch/parisc/mm/ |
H A D | init.c | 402 bool huge = false; in map_pages() local 412 huge = true; in map_pages() 417 huge = true; in map_pages() 423 if (huge) in map_pages()
|
/kernel/linux/linux-6.6/arch/parisc/mm/ |
H A D | init.c | 399 bool huge = false; in map_pages() local 409 huge = true; in map_pages() 414 huge = true; in map_pages() 420 if (huge) in map_pages()
|
/kernel/linux/linux-6.6/drivers/misc/lkdtm/ |
H A D | bugs.c | 276 static volatile unsigned int huge = INT_MAX - 2; variable 283 value = huge; in lkdtm_OVERFLOW_SIGNED() 298 value = huge; in lkdtm_OVERFLOW_UNSIGNED()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/ |
H A D | pgtable.h | 197 int huge) in pte_update() 202 /* huge pages use the old page table lock */ in pte_update() 203 if (!huge) in pte_update() 193 pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr, unsigned long set, int huge) pte_update() argument
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/nohash/64/ |
H A D | pgtable.h | 178 int huge) in pte_update() 183 /* huge pages use the old page table lock */ in pte_update() 184 if (!huge) in pte_update() 174 pte_update(struct mm_struct *mm, unsigned long addr, pte_t *ptep, unsigned long clr, unsigned long set, int huge) pte_update() argument
|