• Home
  • Raw
  • Download

Lines Matching refs:idx

1361 	pgoff_t idx;  in vma_needs_reservation()  local
1368 idx = vma_hugecache_offset(h, vma, addr); in vma_needs_reservation()
1369 chg = region_chg(resv, idx, idx + 1); in vma_needs_reservation()
1380 pgoff_t idx; in vma_commit_reservation() local
1386 idx = vma_hugecache_offset(h, vma, addr); in vma_commit_reservation()
1387 region_add(resv, idx, idx + 1); in vma_commit_reservation()
1397 int ret, idx; in alloc_huge_page() local
1400 idx = hstate_index(h); in alloc_huge_page()
1416 ret = hugetlb_cgroup_charge_cgroup(idx, pages_per_huge_page(h), &h_cg); in alloc_huge_page()
1432 hugetlb_cgroup_commit_charge(idx, pages_per_huge_page(h), h_cg, page); in alloc_huge_page()
1441 hugetlb_cgroup_uncharge_cgroup(idx, pages_per_huge_page(h), h_cg); in alloc_huge_page()
2050 int idx = hstate_index(h); in hugetlb_unregister_node() local
2051 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node()
2052 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node()
2053 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node()
2966 pgoff_t idx; in hugetlbfs_pagecache_page() local
2969 idx = vma_hugecache_offset(h, vma, address); in hugetlbfs_pagecache_page()
2971 return find_lock_page(mapping, idx); in hugetlbfs_pagecache_page()
2982 pgoff_t idx; in hugetlbfs_pagecache_present() local
2986 idx = vma_hugecache_offset(h, vma, address); in hugetlbfs_pagecache_present()
2988 page = find_get_page(mapping, idx); in hugetlbfs_pagecache_present()
2995 struct address_space *mapping, pgoff_t idx, in hugetlb_no_page() argument
3022 page = find_lock_page(mapping, idx); in hugetlb_no_page()
3025 if (idx >= size) in hugetlb_no_page()
3044 err = add_to_page_cache(page, mapping, idx, GFP_KERNEL); in hugetlb_no_page()
3092 if (idx >= size) in hugetlb_no_page()
3130 pgoff_t idx, unsigned long address) in fault_mutex_hash() argument
3137 key[1] = idx; in fault_mutex_hash()
3155 pgoff_t idx, unsigned long address) in fault_mutex_hash() argument
3168 pgoff_t idx; in hugetlb_fault() local
3193 idx = vma_hugecache_offset(h, vma, address); in hugetlb_fault()
3200 hash = fault_mutex_hash(h, mm, vma, mapping, idx, address); in hugetlb_fault()
3205 ret = hugetlb_no_page(mm, vma, mapping, idx, address, ptep, flags); in hugetlb_fault()
3565 unsigned long addr, pgoff_t idx) in page_table_shareable() argument
3567 unsigned long saddr = ((idx - svma->vm_pgoff) << PAGE_SHIFT) + in page_table_shareable()
3615 pgoff_t idx = ((addr - vma->vm_start) >> PAGE_SHIFT) + in huge_pmd_share() local
3627 vma_interval_tree_foreach(svma, &mapping->i_mmap, idx, idx) { in huge_pmd_share()
3631 saddr = page_table_shareable(svma, vma, addr, idx); in huge_pmd_share()