Home
last modified time | relevance | path

Searched refs:asid_bits (Results 1 – 2 of 2) sorted by relevance

/arch/riscv/mm/
Dcontext.c23 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 num_asids = 1 << asid_bits; in asids_init()
268 asid_bits, num_asids); in asids_init()
/arch/arm64/mm/
Dcontext.c20 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()