Home
last modified time | relevance | path

Searched refs:cc_platform_has (Results 1 – 25 of 40) sorted by relevance

12

/openbmc/linux/arch/x86/mm/
H A Dmem_encrypt.c22 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in force_dma_unencrypted()
30 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in force_dma_unencrypted()
54 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in print_mem_encrypt_feature_info()
64 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in print_mem_encrypt_feature_info()
68 if (cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in print_mem_encrypt_feature_info()
72 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in print_mem_encrypt_feature_info()
81 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in mem_encrypt_init()
H A Dmem_encrypt_amd.c132 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) { in __sme_early_enc_dec()
184 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in sme_unmap_bootdata()
204 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in sme_map_bootdata()
224 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in sev_setup_arch()
328 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && !enc) in amd_enc_status_change_prepare()
341 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && enc) in amd_enc_status_change_finish()
344 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in amd_enc_status_change_finish()
H A Dioremap.c96 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in __ioremap_check_encrypted()
116 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in __ioremap_check_other()
578 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in memremap_should_map_decrypted()
761 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in arch_memremap_can_ram_remap()
770 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in arch_memremap_can_ram_remap()
791 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in early_memremap_pgprot_adjust()
796 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in early_memremap_pgprot_adjust()
H A Dcpu_entry_area.c160 if (cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) { in percpu_setup_exception_stacks()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dcc_platform.c16 bool cc_platform_has(enum cc_attr attr) in cc_platform_has() function
26 EXPORT_SYMBOL_GPL(cc_platform_has);
H A Dsvm.c42 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in set_memory_encrypted()
55 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in set_memory_decrypted()
/openbmc/linux/include/linux/
H A Dcc_platform.h109 bool cc_platform_has(enum cc_attr attr);
113 static inline bool cc_platform_has(enum cc_attr attr) { return false; } in cc_platform_has() function
/openbmc/linux/arch/x86/coco/
H A Dcore.c104 bool noinstr cc_platform_has(enum cc_attr attr) in cc_platform_has() function
115 EXPORT_SYMBOL_GPL(cc_platform_has);
165 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in cc_random_init()
/openbmc/linux/arch/x86/lib/
H A Diomem.c98 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) in memcpy_fromio()
107 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) in memcpy_toio()
116 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { in memset_io()
/openbmc/linux/arch/x86/realmode/
H A Dinit.c73 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in sme_sev_setup_real_mode()
76 if (cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) { in sme_sev_setup_real_mode()
111 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in setup_real_mode()
/openbmc/linux/arch/x86/include/asm/
H A Dsev.h149 cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_ist_enter()
155 cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_ist_exit()
163 cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_nmi_complete()
H A Dunaccepted_memory.h14 } else if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) { in arch_accept_memory()
H A Dio.h261 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \
277 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \
/openbmc/linux/drivers/ptp/
H A Dptp_kvm_x86.c31 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in kvm_arch_ptp_init()
70 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in kvm_arch_ptp_exit()
/openbmc/linux/arch/x86/kernel/
H A Dpci-dma.c54 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in pci_swiotlb_detect()
62 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in pci_swiotlb_detect()
H A Dmachine_kexec_64.c198 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in init_transition_pgtable()
238 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in init_pgtable()
336 host_mem_enc_active = cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT); in machine_kexec()
604 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in arch_kexec_post_alloc_pages()
617 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in arch_kexec_pre_free_pages()
H A Deisa.c16 if ((xen_pv_domain() && !xen_initial_domain()) || cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in eisa_bus_probe()
H A Dsev.c661 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in get_jump_table_addr()
870 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_set_memory_shared()
878 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_set_memory_private()
888 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_accept_memory()
1108 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_set_wakeup_secondary_cpu()
1166 if (!cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_efi_map_ghcbs()
1222 if (!cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in setup_ghcb()
1233 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in setup_ghcb()
1258 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in setup_ghcb()
1366 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) { in sev_es_init_vc_handling()
[all …]
H A Dcrash_dump_64.c63 cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)); in elfcorehdr_read()
H A Dkvm.c437 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in sev_map_percpu_data()
581 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) || in setup_efi_kvm_sev_migration()
933 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) && in kvm_init_platform()
H A Dkvmclock.c227 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in kvmclock_init_mem()
/openbmc/linux/arch/x86/platform/efi/
H A Defi_64.c295 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) && in __map_region()
407 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in efi_update_mem_attr()
456 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in efi_runtime_update_mappings()
/openbmc/linux/drivers/crypto/ccp/
H A Dpsp-dev.c79 cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in psp_get_capability()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_cache.c204 if (cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in drm_need_swiotlb()
/openbmc/linux/drivers/gpu/drm/ttm/
H A Dttm_tt.c93 if (bdev->pool.use_dma_alloc && cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in ttm_tt_create()

12