Searched refs:vmid_map (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/arch/arm64/kvm/ |
D | vmid.c | 23 static unsigned long *vmid_map; variable 50 bitmap_clear(vmid_map, 0, 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 = kcalloc(BITS_TO_LONGS(NUM_USER_VMIDS), in kvm_arm_vmid_alloc_init() 186 sizeof(*vmid_map), GFP_KERNEL); in kvm_arm_vmid_alloc_init() 187 if (!vmid_map) in kvm_arm_vmid_alloc_init() [all …]
|
/linux-6.1.9/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3.h | 665 DECLARE_BITMAP(vmid_map, ARM_SMMU_MAX_VMIDS);
|
D | arm-smmu-v3.c | 2073 arm_smmu_bitmap_free(smmu->vmid_map, cfg->vmid); in arm_smmu_domain_free() 2147 vmid = arm_smmu_bitmap_alloc(smmu->vmid_map, smmu->vmid_bits); in arm_smmu_domain_finalise_s2() 3072 set_bit(0, smmu->vmid_map); in arm_smmu_init_strtab()
|