Searched refs:vmid_map (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/arch/arm64/kvm/ |
D | vmid.c | 23 static unsigned long *vmid_map; variable 50 bitmap_zero(vmid_map, NUM_USER_VMIDS); in flush_context() 58 __set_bit(vmid2idx(vmid), vmid_map); in flush_context() 106 if (!__test_and_set_bit(vmid2idx(vmid), vmid_map)) { in new_vmid() 112 vmid = find_next_zero_bit(vmid_map, NUM_USER_VMIDS, cur_idx); in new_vmid() 122 vmid = find_next_zero_bit(vmid_map, NUM_USER_VMIDS, 1); in new_vmid() 125 __set_bit(vmid, vmid_map); in new_vmid() 185 vmid_map = bitmap_zalloc(NUM_USER_VMIDS, GFP_KERNEL); in kvm_arm_vmid_alloc_init() 186 if (!vmid_map) in kvm_arm_vmid_alloc_init() 194 bitmap_free(vmid_map); in kvm_arm_vmid_alloc_free()
|
/Linux-v6.6/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3.h | 673 struct ida vmid_map; member
|
D | arm-smmu-v3.c | 2083 ida_free(&smmu->vmid_map, cfg->vmid); in arm_smmu_domain_free() 2158 vmid = ida_alloc_range(&smmu->vmid_map, 1, (1 << smmu->vmid_bits) - 1, in arm_smmu_domain_finalise_s2() 3090 ida_init(&smmu->vmid_map); in arm_smmu_init_strtab() 3915 ida_destroy(&smmu->vmid_map); in arm_smmu_device_remove()
|