Lines Matching full:ext
110 #define riscv_isa_extension_available(isa_bitmap, ext) \ argument
111 __riscv_isa_extension_available(isa_bitmap, RISCV_ISA_EXT_##ext)
114 const unsigned long ext) in __riscv_has_extension_likely() argument
116 asm goto(ALTERNATIVE("j %l[l_no]", "nop", %[vendor], %[ext], 1) in __riscv_has_extension_likely()
118 : [vendor] "i" (vendor), [ext] "i" (ext) in __riscv_has_extension_likely()
128 const unsigned long ext) in __riscv_has_extension_unlikely() argument
130 asm goto(ALTERNATIVE("nop", "j %l[l_yes]", %[vendor], %[ext], 1) in __riscv_has_extension_unlikely()
132 : [vendor] "i" (vendor), [ext] "i" (ext) in __riscv_has_extension_unlikely()
141 static __always_inline bool riscv_has_extension_unlikely(const unsigned long ext) in riscv_has_extension_unlikely() argument
143 compiletime_assert(ext < RISCV_ISA_EXT_MAX, "ext must be < RISCV_ISA_EXT_MAX"); in riscv_has_extension_unlikely()
146 return __riscv_has_extension_unlikely(STANDARD_EXT, ext); in riscv_has_extension_unlikely()
148 return __riscv_isa_extension_available(NULL, ext); in riscv_has_extension_unlikely()
151 static __always_inline bool riscv_has_extension_likely(const unsigned long ext) in riscv_has_extension_likely() argument
153 compiletime_assert(ext < RISCV_ISA_EXT_MAX, "ext must be < RISCV_ISA_EXT_MAX"); in riscv_has_extension_likely()
156 return __riscv_has_extension_likely(STANDARD_EXT, ext); in riscv_has_extension_likely()
158 return __riscv_isa_extension_available(NULL, ext); in riscv_has_extension_likely()
161 static __always_inline bool riscv_cpu_has_extension_likely(int cpu, const unsigned long ext) in riscv_cpu_has_extension_likely() argument
163 compiletime_assert(ext < RISCV_ISA_EXT_MAX, "ext must be < RISCV_ISA_EXT_MAX"); in riscv_cpu_has_extension_likely()
166 __riscv_has_extension_likely(STANDARD_EXT, ext)) in riscv_cpu_has_extension_likely()
169 return __riscv_isa_extension_available(hart_isa[cpu].isa, ext); in riscv_cpu_has_extension_likely()
172 static __always_inline bool riscv_cpu_has_extension_unlikely(int cpu, const unsigned long ext) in riscv_cpu_has_extension_unlikely() argument
174 compiletime_assert(ext < RISCV_ISA_EXT_MAX, "ext must be < RISCV_ISA_EXT_MAX"); in riscv_cpu_has_extension_unlikely()
177 __riscv_has_extension_unlikely(STANDARD_EXT, ext)) in riscv_cpu_has_extension_unlikely()
180 return __riscv_isa_extension_available(hart_isa[cpu].isa, ext); in riscv_cpu_has_extension_unlikely()