Searched refs:vm_type (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | memory.c | 134 phys_pg_pack->vm_type = VM_TYPE_PHYS_PACK; in alloc_device_memory() 243 userptr->vm_type = VM_TYPE_USERPTR; in dma_map_host_va() 858 phys_pg_pack->vm_type = userptr->vm_type; in init_phys_pg_pack_from_userptr() 1062 enum vm_type *vm_type; in map_device_va() local 1091 vm_type = (enum vm_type *) userptr; in map_device_va() 1133 vm_type = (enum vm_type *) phys_pg_pack; in map_device_va() 1195 rc = hl_mmu_invalidate_cache_range(hdev, false, *vm_type | MMU_OP_SKIP_LOW_CACHE_INV, in map_device_va() 1206 rc = hl_mmu_prefetch_cache_range(ctx, *vm_type, ctx->asid, ret_vaddr, in map_device_va() 1214 hnode->ptr = vm_type; in map_device_va() 1282 enum vm_type *vm_type; in unmap_device_va() local [all …]
|
H A D | debugfs.c | 253 enum vm_type *vm_type; in vm_show() local 271 vm_type = hnode->ptr; in vm_show() 273 if (*vm_type == VM_TYPE_USERPTR) { in vm_show() 697 enum vm_type *vm_type; in device_va_to_pa() local 711 vm_type = hnode->ptr; in device_va_to_pa() 713 if (*vm_type == VM_TYPE_USERPTR) { in device_va_to_pa()
|
H A D | device.c | 2569 enum vm_type *vm_type; in hl_capture_user_mappings() local 2585 vm_type = hnode->ptr; in hl_capture_user_mappings() 2586 if (((*vm_type == VM_TYPE_USERPTR) && is_pmmu) || in hl_capture_user_mappings() 2587 ((*vm_type == VM_TYPE_PHYS_PACK) && !is_pmmu)) in hl_capture_user_mappings() 2607 vm_type = hnode->ptr; in hl_capture_user_mappings() 2608 if ((*vm_type == VM_TYPE_USERPTR) && (is_pmmu)) { in hl_capture_user_mappings() 2613 } else if ((*vm_type == VM_TYPE_PHYS_PACK) && (!is_pmmu)) { in hl_capture_user_mappings()
|
H A D | habanalabs.h | 457 enum vm_type { enum 1922 enum vm_type vm_type; /* must be first */ member 2166 enum vm_type vm_type; /* must be first */ member
|
/openbmc/qemu/hw/i386/ |
H A D | x86.c | 350 static int x86_kvm_type(MachineState *ms, const char *vm_type) in x86_kvm_type() argument 356 assert(vm_type == NULL); in x86_kvm_type()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr.c | 3102 static int spapr_kvm_type(MachineState *machine, const char *vm_type) in spapr_kvm_type() argument 3111 if (!vm_type || !strcmp(vm_type, DEFAULT_KVM_TYPE)) { in spapr_kvm_type() 3115 if (!g_ascii_strcasecmp(vm_type, "hv")) { in spapr_kvm_type() 3119 if (!g_ascii_strcasecmp(vm_type, "pr")) { in spapr_kvm_type() 3123 error_report("Unknown kvm-type specified '%s'", vm_type); in spapr_kvm_type()
|