Home
last modified time | relevance | path

Searched refs:cpu_has_feature (Results 1 – 25 of 108) sorted by relevance

12345

/kernel/linux/linux-5.10/arch/powerpc/perf/
Disa207-common.c58 if (cpu_has_feature(CPU_FTR_ARCH_31)) in is_event_valid()
60 else if (cpu_has_feature(CPU_FTR_ARCH_300)) in is_event_valid()
76 if (cpu_has_feature(CPU_FTR_ARCH_31)) in sdar_mod_val()
100 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in mmcra_sdar_mode()
113 if (cpu_has_feature(CPU_FTR_ARCH_300)) in thresh_cmp_val()
121 if (cpu_has_feature(CPU_FTR_ARCH_300)) in combine_from_event()
129 if (cpu_has_feature(CPU_FTR_ARCH_300)) in combine_shift()
149 if (cpu_has_feature(CPU_FTR_ARCH_31)) in is_thresh_cmp_valid()
250 if (cpu_has_feature(CPU_FTR_ARCH_31)) in isa207_get_mem_weight()
271 if (cpu_has_feature(CPU_FTR_ARCH_31)) in isa207_get_constraint()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
Dptrace-tm.c21 if (!cpu_has_feature(CPU_FTR_TM) || tsk != current) in flush_tmregs_to_thread()
60 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_active()
89 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_get()
140 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_set()
201 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_active()
234 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_get()
279 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_set()
313 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_active()
350 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_get()
400 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_set()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/
Dos_types.h62 if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
65 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) { \
68 } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) { \
74 if (cpu_has_feature(CPU_FTR_VSX_COMP)) { \
77 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) { \
80 } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) { \
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsetup_32.c104 if (cpu_has_feature(CPU_FTR_L2CR)) { in ppc_setup_l2cr()
117 if (cpu_has_feature(CPU_FTR_L3CR)) { in ppc_setup_l3cr()
204 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in setup_power_save()
205 cpu_has_feature(CPU_FTR_CAN_NAP)) in setup_power_save()
210 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in setup_power_save()
211 cpu_has_feature(CPU_FTR_CAN_NAP)) in setup_power_save()
Dprocess.c127 if (cpu_has_feature(CPU_FTR_VSX) && (bits & MSR_FP)) in msr_check_and_set()
145 if (cpu_has_feature(CPU_FTR_VSX) && (bits & MSR_FP)) in __msr_check_and_clear()
161 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_fpu()
244 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_altivec()
413 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in init_msr_all_available()
415 if (cpu_has_feature(CPU_FTR_VSX)) in init_msr_all_available()
417 if (cpu_has_feature(CPU_FTR_SPE)) in init_msr_all_available()
476 if (cpu_has_feature(CPU_FTR_ALTIVEC) && (current->thread.load_vec)) { in should_restore_altivec()
495 if (cpu_has_feature(CPU_FTR_VSX)) in should_restore_vsx()
822 if (cpu_has_feature(CPU_FTR_DABRX)) in __set_dabr()
[all …]
Dsysfs.c73 if (!cpu_has_feature(CPU_FTR_SMT)) in setup_smt_snooze_delay()
219 if (cpu_has_feature(CPU_FTR_DSCR)) { in sysfs_create_dscr_default()
837 if (cpu_has_feature(CPU_FTR_SMT)) in register_cpu_online()
880 if (cpu_has_feature(CPU_FTR_MMCRA)) in register_cpu_online()
883 if (cpu_has_feature(CPU_FTR_ARCH_31)) in register_cpu_online()
887 if (cpu_has_feature(CPU_FTR_PURR)) { in register_cpu_online()
894 if (cpu_has_feature(CPU_FTR_SPURR)) { in register_cpu_online()
899 if (cpu_has_feature(CPU_FTR_DSCR)) in register_cpu_online()
902 if (cpu_has_feature(CPU_FTR_PPCAS_ARCH_V2)) in register_cpu_online()
905 if (cpu_has_feature(CPU_FTR_ARCH_206) && in register_cpu_online()
[all …]
Didle.c75 if (!cpu_has_feature(CPU_FTR_CAN_NAP)) in power4_idle()
84 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in power4_idle()
Dhw_breakpoint_constraints.c41 if (!cpu_has_feature(CPU_FTR_ARCH_31) && size == 16) in ea_hw_range_overlaps()
101 if (cpu_has_feature(CPU_FTR_ARCH_31) && in wp_check_constraints()
111 if (cpu_has_feature(CPU_FTR_ARCH_31) && in wp_check_constraints()
Dsyscall_64.c219 if (cpu_has_feature(CPU_FTR_VSX)) in syscall_exit_prepare()
221 else if (cpu_has_feature(CPU_FTR_ALTIVEC)) in syscall_exit_prepare()
298 if (cpu_has_feature(CPU_FTR_VSX)) in interrupt_exit_user_prepare()
300 else if (cpu_has_feature(CPU_FTR_ALTIVEC)) in interrupt_exit_user_prepare()
Dsecurity.c308 hv = cpu_has_feature(CPU_FTR_HVMODE); in setup_stf_barrier()
311 if (cpu_has_feature(CPU_FTR_ARCH_300)) in setup_stf_barrier()
313 else if (cpu_has_feature(CPU_FTR_ARCH_207S)) in setup_stf_barrier()
315 else if (cpu_has_feature(CPU_FTR_ARCH_206)) in setup_stf_barrier()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dcputhreads.h109 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_first_tlb_thread_sibling()
117 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_last_tlb_thread_sibling()
125 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_tlb_thread_sibling_step()
134 if (cpu_has_feature(CPU_FTR_SMT)) in get_tensr()
Ddcr-native.h58 else if (likely(cpu_has_feature(CPU_FTR_INDEXED_DCR))) \
69 else if (likely(cpu_has_feature(CPU_FTR_INDEXED_DCR))) \
84 if (cpu_has_feature(CPU_FTR_INDEXED_DCR)) { in __mfdcri()
101 if (cpu_has_feature(CPU_FTR_INDEXED_DCR)) { in __mtdcri()
118 if (cpu_has_feature(CPU_FTR_INDEXED_DCR)) { in __dcri_clrset()
Drunlatch.h20 if (cpu_has_feature(CPU_FTR_CTRL) && \
32 if (cpu_has_feature(CPU_FTR_CTRL) && \
Dcpu_has_feature.h23 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() function
49 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() function
/kernel/linux/linux-5.10/arch/powerpc/xmon/
Dppc-dis.c128 if (cpu_has_feature(CPU_FTRS_POWER5)) in print_insn_powerpc()
131 if (cpu_has_feature(CPU_FTRS_CELL)) in print_insn_powerpc()
134 if (cpu_has_feature(CPU_FTRS_POWER6)) in print_insn_powerpc()
137 if (cpu_has_feature(CPU_FTRS_POWER7)) in print_insn_powerpc()
141 if (cpu_has_feature(CPU_FTRS_POWER8)) in print_insn_powerpc()
146 if (cpu_has_feature(CPU_FTRS_POWER9)) in print_insn_powerpc()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Didle.c92 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in pnv_save_sprs_for_deep_states()
116 if (!cpu_has_feature(CPU_FTR_ARCH_300)) { in pnv_save_sprs_for_deep_states()
348 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
377 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
391 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
483 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
642 if (cpu_has_feature(CPU_FTR_P9_TM_XER_SO_BUG)) { in power9_idle_stop()
653 if (!cpu_has_feature(CPU_FTR_POWER9_DD2_1)) { in power9_idle_stop()
719 if (!cpu_has_feature(CPU_FTR_POWER9_DD2_1)) { in power9_idle_stop()
1003 if (cpu_has_feature(CPU_FTR_ARCH_31)) in arch300_offline_stop()
[all …]
Dsmp.c154 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in pnv_flush_interrupts()
179 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in pnv_cpu_offline_self()
306 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in pnv_cpu_bootable()
337 if (cpu_has_feature(CPU_FTR_DBELL)) { in pnv_smp_probe()
341 if (cpu_has_feature(CPU_FTR_ARCH_300)) in pnv_smp_probe()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/
Dkexec.h10 if (cpu_has_feature(CPU_FTR_ARCH_206)) { in reset_sprs()
15 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in reset_sprs()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dsmp.c204 if (!cpu_has_feature(CPU_FTR_DBELL)) in pSeries_smp_probe()
208 if (!cpu_has_feature(CPU_FTR_SMT)) in pSeries_smp_probe()
271 if (cpu_has_feature(CPU_FTR_SMT)) { in smp_init_pseries()
/kernel/linux/linux-5.10/arch/powerpc/lib/
Dsstep.c1014 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in set_ca32()
1252 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1357 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in analyse_instr()
1396 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1483 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1796 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1806 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1843 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1865 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
1872 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr()
[all …]
Dpmem.c38 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in clean_pmem_range()
44 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in flush_pmem_range()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dradix_tlb.c204 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_va()
209 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_va()
218 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_va_range()
223 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_va_range()
237 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_pid()
242 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_pid()
252 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid_va()
257 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid_va()
271 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid()
276 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid()
[all …]
Dhash_64k.c77 if (cpu_has_feature(CPU_FTR_NOEXECUTE) && in __hash_page_4K()
78 !cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) { in __hash_page_4K()
266 if (cpu_has_feature(CPU_FTR_NOEXECUTE) && in __hash_page_64K()
267 !cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) in __hash_page_64K()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv.c197 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_ipi_thread()
205 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in kvmppc_ipi_thread()
356 if (cpu_has_feature(CPU_FTR_ARCH_31)) in kvmppc_set_arch_compat()
358 else if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_set_arch_compat()
360 else if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_set_arch_compat()
362 else if (cpu_has_feature(CPU_FTR_ARCH_206)) in kvmppc_set_arch_compat()
755 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_power8_compatible()
1439 cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_handle_exit_hv()
1642 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_set_lpcr()
1648 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_set_lpcr()
[all …]
/kernel/linux/linux-5.10/drivers/misc/cxl/
Dcxllib.c31 if (!cpu_has_feature(CPU_FTR_HVMODE)) in cxllib_slot_is_supported()
81 if (!cpu_has_feature(CPU_FTR_HVMODE)) in cxllib_get_xsl_config()
115 if (!cpu_has_feature(CPU_FTR_HVMODE)) in cxllib_switch_phb_mode()

12345