Home
last modified time | relevance | path

Searched refs:__sme_set (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/include/linux/
H A Dmem_encrypt.h27 #define __sme_set(x) ((x) | sme_me_mask) macro
30 #define __sme_set(x) (x) macro
H A Ddma-direct.h74 return __sme_set(phys_to_dma_unencrypted(dev, paddr)); in phys_to_dma()
/openbmc/linux/arch/x86/mm/
H A Dpgprot.c58 val = __sme_set(val); in vm_get_page_prot()
H A Dmem_encrypt_amd.c495 early_pmd_flags = __sme_set(early_pmd_flags); in sme_early_init()
497 __supported_pte_mask = __sme_set(__supported_pte_mask); in sme_early_init()
/openbmc/linux/arch/x86/kvm/svm/
H A Davic.c247 phys_addr_t bpa = __sme_set(page_to_phys(svm->avic_backing_page)); in avic_init_vmcb()
248 phys_addr_t lpa = __sme_set(page_to_phys(kvm_svm->avic_logical_id_table_page)); in avic_init_vmcb()
249 phys_addr_t ppa = __sme_set(page_to_phys(kvm_svm->avic_physical_id_table_page)); in avic_init_vmcb()
311 new_entry = __sme_set((page_to_phys(svm->avic_backing_page) & in avic_init_backing_page()
879 vcpu_info->pi_desc_addr = __sme_set(page_to_phys((*svm)->avic_backing_page)); in get_pi_vcpu_info()
937 pi.base = __sme_set(page_to_phys(svm->avic_backing_page) & in avic_pi_update_irte()
H A Dsvm.h28 #define __sme_page_pa(x) __sme_set(page_to_pfn(x) << PAGE_SHIFT)
H A Dsvm.c1319 control->iopm_base_pa = __sme_set(iopm_base); in init_vmcb()
1320 control->msrpm_base_pa = __sme_set(__pa(svm->msrpm)); in init_vmcb()
1483 svm->vmcb01.pa = __sme_set(page_to_pfn(vmcb01_page) << PAGE_SHIFT); in svm_vcpu_create()
4294 svm->vmcb->control.nested_cr3 = __sme_set(root_hpa); in svm_load_mmu_pgd()
4301 cr3 = __sme_set(root_hpa) | kvm_get_active_pcid(vcpu); in svm_load_mmu_pgd()
H A Dnested.c238 svm->vmcb->control.msrpm_base_pa = __sme_set(__pa(svm->nested.msrpm)); in nested_svm_vmrun_msrpm()
1190 svm->nested.vmcb02.pa = __sme_set(page_to_pfn(vmcb02_page) << PAGE_SHIFT); in svm_allocate_nested()
H A Dsev.c351 start.dh_cert_address = __sme_set(__pa(dh_blob)); in sev_launch_start()
363 start.session_address = __sme_set(__pa(session_blob)); in sev_launch_start()
/openbmc/linux/drivers/iommu/amd/
H A Damd_iommu.h97 return (u64)__sme_set(virt_to_phys(vaddr)); in iommu_virt_to_phys()
H A Dio_pgtable.c395 __pte = PAGE_SIZE_PTE(__sme_set(paddr), pgsize); in iommu_v1_map_pages()
398 __pte = __sme_set(paddr) | IOMMU_PTE_PR | IOMMU_PTE_FC; in iommu_v1_map_pages()
H A Dio_pgtable_v2.c67 pte = __sme_set(paddr & PM_ADDR_MASK); in set_pte_attr()