Home
last modified time | relevance | path

Searched refs:asid_map (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/arch/arm64/mm/
Dcontext.c34 static unsigned long *asid_map; variable
97 bitmap_clear(asid_map, 0, NUM_USER_ASIDS); in flush_context()
110 __set_bit(asid2idx(asid), asid_map); in flush_context()
165 if (!__test_and_set_bit(asid2idx(asid), asid_map)) in new_context()
176 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, cur_idx); in new_context()
186 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, 1); in new_context()
189 __set_bit(asid, asid_map); in new_context()
266 asid_map = kcalloc(BITS_TO_LONGS(NUM_USER_ASIDS), sizeof(*asid_map), in asids_init()
268 if (!asid_map) in asids_init()
/Linux-v4.19/arch/arm/mm/
Dcontext.c47 static DECLARE_BITMAP(asid_map, NUM_USER_ASIDS);
145 bitmap_clear(asid_map, 0, NUM_USER_ASIDS); in flush_context()
157 __set_bit(asid & ~ASID_MASK, asid_map); in flush_context()
213 if (!__test_and_set_bit(asid, asid_map)) in new_context()
226 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, cur_idx); in new_context()
231 asid = find_next_zero_bit(asid_map, NUM_USER_ASIDS, 1); in new_context()
234 __set_bit(asid, asid_map); in new_context()
/Linux-v4.19/drivers/iommu/
Darm-smmu-v3.c578 DECLARE_BITMAP(asid_map, ARM_SMMU_MAX_ASIDS);
1514 arm_smmu_bitmap_free(smmu->asid_map, cfg->cd.asid); in arm_smmu_domain_free()
1533 asid = arm_smmu_bitmap_alloc(smmu->asid_map, smmu->asid_bits); in arm_smmu_domain_finalise_s1()
1553 arm_smmu_bitmap_free(smmu->asid_map, asid); in arm_smmu_domain_finalise_s1()