Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 51) sorted by relevance

123

/hypervisor/include/arch/x86/asm/lib/
A Datomic.h35 #define build_atomic_inc(name, size, type) \ argument
36 static inline void name(type *ptr) \
46 #define build_atomic_dec(name, size, type) \ argument
47 static inline void name(type *ptr) \
57 #define build_atomic_swap(name, size, type) \ argument
58 static inline type name(type *ptr, type v) \
87 #define build_atomic_cmpxchg(name, size, type) \ argument
88 static inline type name(volatile type *ptr, type old, type new) \
90 type ret; \
100 #define build_atomic_xadd(name, size, type) \ argument
[all …]
/hypervisor/debug/
A Ddbg_cmd.c20 int type; member
35 int type = cmd_list[i].type; in handle_dbg_cmd() local
44 if (type == INVALID) { in handle_dbg_cmd()
46 uart16550_set_property(false, type, 0UL); in handle_dbg_cmd()
47 } else if (type == PIO) { in handle_dbg_cmd()
54 uart16550_set_property(true, type, data); in handle_dbg_cmd()
57 uart16550_set_property(true, type, data); in handle_dbg_cmd()
A Duart16550.c20 enum serial_dev_type type; member
34 .type = PIO,
41 .type = PCI,
48 .type = MMIO,
61 if (uart.type == PIO) { in uart16550_read_reg()
77 if (uart.type == PIO) { in uart16550_write_reg()
162 if (uart.type == MMIO) { in uart16550_init()
172 if (uart.type == PCI) { in uart16550_init()
182 uart.type = PIO; in uart16550_init()
187 uart.type = MMIO; in uart16550_init()
[all …]
/hypervisor/arch/x86/
A De820.c62 entry->type = E820_TYPE_RESERVED; in e820_alloc_memory()
77 new_entry->type = E820_TYPE_RESERVED; in e820_alloc_memory()
120 hv_e820[index].type = type; in insert_e820_entry()
142 switch (efi_mmap_entry[i].type) { in init_e820_from_efi_mmap()
147 hv_e820[e820_idx].type = E820_TYPE_RAM; in init_e820_from_efi_mmap()
153 hv_e820[e820_idx].type = E820_TYPE_UNUSABLE; in init_e820_from_efi_mmap()
159 hv_e820[e820_idx].type = E820_TYPE_ACPI_NVS; in init_e820_from_efi_mmap()
172 hv_e820[e820_idx].type = E820_TYPE_RESERVED; in init_e820_from_efi_mmap()
180 if ((e820_idx > 0U) && (hv_e820[e820_idx].type == hv_e820[e820_idx - 1U].type) in init_e820_from_efi_mmap()
213 hv_e820[i].type = mmap[i].type; in init_e820_from_mmap()
[all …]
A Dpagetable.c84 uint64_t *pde, uint64_t *pt_page, uint32_t type) in try_to_free_pgtable_page() argument
86 if (type == MR_DEL) { in try_to_free_pgtable_page()
148 if (type == MR_MODIFY) { in local_modify_or_del_pte()
191 if ((type == MR_MODIFY) && (vaddr >= MEM_1M)) { in modify_or_del_pte()
195 local_modify_or_del_pte(pte, prot_set, prot_clr, type, table); in modify_or_del_pte()
204 try_to_free_pgtable_page(table, pde, pt_page, type); in modify_or_del_pte()
227 if (type == MR_MODIFY) { in modify_or_del_pde()
235 local_modify_or_del_pte(pde, prot_set, prot_clr, type, table); in modify_or_del_pde()
251 try_to_free_pgtable_page(table, pdpte, pd_page, type); in modify_or_del_pde()
274 if (type == MR_MODIFY) { in modify_or_del_pdpte()
[all …]
A Dsgx.c25 uint32_t eax = 0U, ebx = 0U, ecx = 0U, edx = 0U, type; in get_epc_section() local
29 type = eax & CPUID_SGX_EPC_TYPE_MASK; in get_epc_section()
30 if (type == CPUID_SGX_EPC_TYPE_VALID) { in get_epc_section()
41 } else if (type == CPUID_SGX_EPC_TYPE_INVALID) { in get_epc_section()
44 pr_err("%s: unsupport EPC type %u", __func__, type); in get_epc_section()
A Drtcm.c65 if (entry->type == RTCT_V2_COMPATIBILITY) { in parse_rtct()
75 if (entry->type == RTCT_ENTRY_TYPE_SOFTWARE_SRAM) { in parse_rtct()
82 } else if (entry->type == RTCT_ENTRY_TYPE_RTCM_BINARY) { in parse_rtct()
90 if (entry->type == RTCT_V2_SSRAM) { in parse_rtct()
97 } else if (entry->type == RTCT_V2_CRL_BINARY) { in parse_rtct()
A Dmmu.c104 static inline void local_invvpid(uint64_t type, uint16_t vpid, uint64_t gva) in local_invvpid() argument
108 if (asm_invvpid(operand, type) != 0) { in local_invvpid()
109 pr_dbg("%s, failed. type = %lu, vpid = %u", __func__, type, vpid); in local_invvpid()
116 static inline void local_invept(uint64_t type, struct invept_desc desc) in local_invept() argument
118 if (asm_invept(type, desc) != 0) { in local_invept()
119 pr_dbg("%s, failed. type = %lu, eptp = 0x%lx", __func__, type, desc.eptp); in local_invept()
271 if (entry->type == MMAP_TYPE_RAM) { in init_paging()
A Dgdt.c12 uint64_t tss, size_t tss_limit, uint32_t type) in set_tss_desc() argument
25 desc->high32_value = u2 | (type << 8U) | 0x8000U | u3; in set_tss_desc()
/hypervisor/arch/x86/guest/
A Dve820.c101 new_entry.type = E820_TYPE_RAM; in filter_mem_from_service_vm_e820()
126 entry->type = new_entry.type; in filter_mem_from_service_vm_e820()
176 .type = E820_TYPE_RAM
181 .type = E820_TYPE_RESERVED
186 .type = E820_TYPE_RAM
191 .type = E820_TYPE_RESERVED
196 .type = E820_TYPE_RESERVED
201 .type = E820_TYPE_ACPI_RECLAIM
206 .type = E820_TYPE_ACPI_NVS
211 .type = E820_TYPE_RESERVED
[all …]
A Dvmtrr.c90 return (uint8_t)(vmtrr->def_type.bits.type); in get_default_memory_type()
109 vmtrr->def_type.bits.type = MTRR_MEM_TYPE_UC; in init_vmtrr()
140 uint64_t size, uint8_t type) in update_ept() argument
144 switch ((uint64_t)type) { in update_ept()
168 uint8_t type; in update_ept_mem_type() local
183 type = vmtrr->fixed_range[i].type[0]; in update_ept_mem_type()
189 if (type == vmtrr->fixed_range[i].type[j]) { in update_ept_mem_type()
192 update_ept(vm, start, size, type); in update_ept_mem_type()
193 type = vmtrr->fixed_range[i].type[j]; in update_ept_mem_type()
199 update_ept(vm, start, size, type); in update_ept_mem_type()
A Dvirq.c84 uint8_t type; in get_exception_type() local
88 type = EXCEPTION_INTERRUPT; in get_exception_type()
90 type = EXCEPTION_TRAP; in get_exception_type()
92 type = EXCEPTION_ABORT; in get_exception_type()
94 type = EXCEPTION_FAULT; in get_exception_type()
97 return type; in get_exception_type()
/hypervisor/boot/include/
A Dmultiboot_std.h85 uint32_t type; member
205 uint32_t type; member
210 uint32_t type; member
215 uint32_t type; member
221 uint32_t type; member
229 uint32_t type; member
237 uint32_t type; member
243 uint32_t type; member
249 uint32_t type; member
/hypervisor/include/lib/
A Dlist.h120 #define container_of(ptr, type, member) \ argument
121 ((type *)(((char *)(ptr)) - offsetof(type, member)))
130 #define get_first_item(attached, type, member) \ argument
131 ((type *)((char *)((attached)->next)-(uint64_t)(&((type *)0)->member)))
155 #define hlist_entry(ptr, type, member) container_of(ptr,type,member) argument
/hypervisor/boot/guest/
A Dbzimage_loader.c196 if ((hv_efi_mmap_desc[i].type == EFI_RESERVED_MEMORYTYPE) in create_service_vm_efi_mmap_desc()
197 || (hv_efi_mmap_desc[i].type == EFI_UNUSABLE_MEMORY) in create_service_vm_efi_mmap_desc()
198 || (hv_efi_mmap_desc[i].type == EFI_ACPI_RECLAIM_MEMORY) in create_service_vm_efi_mmap_desc()
199 || (hv_efi_mmap_desc[i].type == EFI_ACPI_MEMORY_NVS) in create_service_vm_efi_mmap_desc()
200 || (hv_efi_mmap_desc[i].type == EFI_BOOT_SERVICES_CODE) in create_service_vm_efi_mmap_desc()
201 || (hv_efi_mmap_desc[i].type == EFI_BOOT_SERVICES_DATA) in create_service_vm_efi_mmap_desc()
204 || (hv_efi_mmap_desc[i].type == EFI_MEMORYMAPPED_IO) in create_service_vm_efi_mmap_desc()
206 || (hv_efi_mmap_desc[i].type == EFI_PALCODE) in create_service_vm_efi_mmap_desc()
207 || (hv_efi_mmap_desc[i].type == EFI_PERSISTENT_MEMORY)) { in create_service_vm_efi_mmap_desc()
221 if (vm->e820_entries[i].type == E820_TYPE_RAM) { in create_service_vm_efi_mmap_desc()
[all …]
A Delf_loader.c52 mmap_entry.type = vm->e820_entries[i].type; in prepare_multiboot_mmap()
53 if (mmap_entry.type > MULTIBOOT_MEMORY_BADRAM) { in prepare_multiboot_mmap()
54 mmap_entry.type = MULTIBOOT_MEMORY_RESERVED; in prepare_multiboot_mmap()
/hypervisor/include/arch/x86/asm/
A Dmmu.h75 static inline int32_t asm_invvpid(const struct invvpid_operand operand, uint64_t type) in asm_invvpid() argument
81 : "m" (operand), "r" (type) in asm_invvpid()
91 static inline int32_t asm_invept(uint64_t type, struct invept_desc desc) in asm_invept() argument
97 : "m" (desc), "r" (type) in asm_invept()
A De820.h30 uint32_t type; member
/hypervisor/boot/multiboot/
A Dmultiboot2.c30 abi->mmap_entry[i].type = (mb2_mmap + i)->type; in mb2_mmap_to_abi()
88 while ((mb2_tag->type != MULTIBOOT2_TAG_TYPE_END) && (mb2_tag < mb2_tag_end)) { in multiboot2_to_acrn_bi()
89 switch (mb2_tag->type) { in multiboot2_to_acrn_bi()
119 if (mb2_tag->type > MULTIBOOT2_TAG_TYPE_LOAD_BASE_ADDR) { in multiboot2_to_acrn_bi()
/hypervisor/include/arch/x86/asm/guest/
A Dvmtrr.h36 uint32_t type:8; member
47 uint8_t type[MTRR_SUB_RANGE_NUM]; member
/hypervisor/dm/
A Dio_req.c23 switch (req->type) { in acrn_print_request()
46 vcpu_id, req->type); in acrn_print_request()
82 (info->type == async_info->type) && in asyncio_is_conflict()
141 if ((info->type == async_info->type) in remove_asyncio()
170 uint32_t type; in get_asyncio_desc() local
185 type = ACRN_ASYNCIO_PIO; in get_asyncio_desc()
191 type = ACRN_ASYNCIO_MMIO; in get_asyncio_desc()
202 if ((iter_info->addr == addr) && (iter_info->type == type) && in get_asyncio_desc()
265 acrn_io_req->type = io_req->io_type; in acrn_insert_request()
/hypervisor/include/public/
A Dacrn_common.h289 uint32_t type; member
349 uint32_t type; member
523 uint8_t type; member
668 uint32_t type; member
844 uint32_t type; member
/hypervisor/arch/x86/seed/
A Dseed_sbl.c31 uint8_t type; member
87 if ((SEED_ENTRY_TYPE_SVNSEED == entry->type) && in parse_seed_sbl()
/hypervisor/boot/
A Dacpi_base.c94 if (entry[i].type == E820_TYPE_ACPI_RECLAIM) { in init_acpi()
194 if (entry->type == ACPI_MADT_TYPE_LOCAL_APIC) { in local_parse_madt()
234 if (ioapic->header.type == ACPI_MADT_TYPE_IOAPIC) { in parse_madt_ioapic()
/hypervisor/lib/crypto/mbedtls/
A Dmd_internal.h41 mbedtls_md_type_t type; member

Completed in 34 milliseconds

123