Lines Matching refs:pmd
5679 unsigned long addr, pmd_t pmd, union mc_target *target) in get_mctgt_type_thp() argument
5684 if (unlikely(is_swap_pmd(pmd))) { in get_mctgt_type_thp()
5686 !is_pmd_migration_entry(pmd)); in get_mctgt_type_thp()
5689 page = pmd_page(pmd); in get_mctgt_type_thp()
5704 unsigned long addr, pmd_t pmd, union mc_target *target) in get_mctgt_type_thp() argument
5710 static int mem_cgroup_count_precharge_pte_range(pmd_t *pmd, in mem_cgroup_count_precharge_pte_range() argument
5718 ptl = pmd_trans_huge_lock(pmd, vma); in mem_cgroup_count_precharge_pte_range()
5725 if (get_mctgt_type_thp(vma, addr, *pmd, NULL) == MC_TARGET_PAGE) in mem_cgroup_count_precharge_pte_range()
5731 if (pmd_trans_unstable(pmd)) in mem_cgroup_count_precharge_pte_range()
5733 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in mem_cgroup_count_precharge_pte_range()
5908 static int mem_cgroup_move_charge_pte_range(pmd_t *pmd, in mem_cgroup_move_charge_pte_range() argument
5920 ptl = pmd_trans_huge_lock(pmd, vma); in mem_cgroup_move_charge_pte_range()
5926 target_type = get_mctgt_type_thp(vma, addr, *pmd, &target); in mem_cgroup_move_charge_pte_range()
5951 if (pmd_trans_unstable(pmd)) in mem_cgroup_move_charge_pte_range()
5954 pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in mem_cgroup_move_charge_pte_range()