Lines Matching refs:pmd
4760 unsigned long addr, pmd_t pmd, union mc_target *target) in get_mctgt_type_thp() argument
4765 if (unlikely(is_swap_pmd(pmd))) { in get_mctgt_type_thp()
4767 !is_pmd_migration_entry(pmd)); in get_mctgt_type_thp()
4770 page = pmd_page(pmd); in get_mctgt_type_thp()
4785 unsigned long addr, pmd_t pmd, union mc_target *target) in get_mctgt_type_thp() argument
4791 static int mem_cgroup_count_precharge_pte_range(pmd_t *pmd, in mem_cgroup_count_precharge_pte_range() argument
4799 ptl = pmd_trans_huge_lock(pmd, vma); in mem_cgroup_count_precharge_pte_range()
4806 if (get_mctgt_type_thp(vma, addr, *pmd, NULL) == MC_TARGET_PAGE) in mem_cgroup_count_precharge_pte_range()
4812 if (pmd_trans_unstable(pmd)) in mem_cgroup_count_precharge_pte_range()
4814 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in mem_cgroup_count_precharge_pte_range()
4991 static int mem_cgroup_move_charge_pte_range(pmd_t *pmd, in mem_cgroup_move_charge_pte_range() argument
5003 ptl = pmd_trans_huge_lock(pmd, vma); in mem_cgroup_move_charge_pte_range()
5009 target_type = get_mctgt_type_thp(vma, addr, *pmd, &target); in mem_cgroup_move_charge_pte_range()
5034 if (pmd_trans_unstable(pmd)) in mem_cgroup_move_charge_pte_range()
5037 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in mem_cgroup_move_charge_pte_range()