Searched refs:asid_bits (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/arch/riscv/mm/ |
D | context.c | 23 static unsigned long asid_bits; variable 234 asid_bits = old | (SATP_ASID_MASK << SATP_ASID_SHIFT); in asids_init() 235 csr_write(CSR_SATP, asid_bits); in asids_init() 236 asid_bits = (csr_read(CSR_SATP) >> SATP_ASID_SHIFT) & SATP_ASID_MASK; in asids_init() 237 asid_bits = fls_long(asid_bits); in asids_init() 248 if (asid_bits) { in asids_init() 249 num_asids = 1 << asid_bits; in asids_init() 270 asid_bits, num_asids); in asids_init() 272 pr_info("ASID allocator disabled (%lu bits)\n", asid_bits); in asids_init()
|
/linux-6.6.21/arch/arm64/mm/ |
D | context.c | 20 static u32 asid_bits; variable 34 #define ASID_MASK (~GENMASK(asid_bits - 1, 0)) 35 #define ASID_FIRST_VERSION (1UL << asid_bits) 68 if (asid < asid_bits) { in verify_cpu_asid_bits() 74 smp_processor_id(), asid, asid_bits); in verify_cpu_asid_bits() 102 (!(((asid) ^ atomic64_read(&asid_generation)) >> asid_bits)) 403 asid_bits = get_cpu_asid_bits(); in asids_init()
|
/linux-6.6.21/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-sva.c | 69 XA_LIMIT(1, (1 << smmu->asid_bits) - 1), GFP_KERNEL); in arm_smmu_share_asid() 394 unsigned long asid_bits; in arm_smmu_sva_supported() local 419 asid_bits = fld ? 16 : 8; in arm_smmu_sva_supported() 420 if (smmu->asid_bits < asid_bits) in arm_smmu_sva_supported() 428 asid_bits--; in arm_smmu_sva_supported() 429 dev_dbg(smmu->dev, "%d shared contexts\n", (1 << asid_bits) - in arm_smmu_sva_supported()
|
D | arm-smmu-v3.h | 669 unsigned int asid_bits; member
|
D | arm-smmu-v3.c | 2104 XA_LIMIT(1, (1 << smmu->asid_bits) - 1), GFP_KERNEL); in arm_smmu_domain_finalise_s1() 3570 smmu->asid_bits = reg & IDR0_ASID16 ? 16 : 8; in arm_smmu_device_hw_probe()
|