Home
last modified time | relevance | path

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

1234

/Linux-v5.4/arch/powerpc/kernel/
Dsetup_32.c102 if (cpu_has_feature(CPU_FTR_L2CR)) { in ppc_setup_l2cr()
115 if (cpu_has_feature(CPU_FTR_L3CR)) { in ppc_setup_l3cr()
187 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in setup_power_save()
188 cpu_has_feature(CPU_FTR_CAN_NAP)) in setup_power_save()
193 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in setup_power_save()
194 cpu_has_feature(CPU_FTR_CAN_NAP)) in setup_power_save()
Dprocess.c129 if (cpu_has_feature(CPU_FTR_VSX) && (bits & MSR_FP)) in msr_check_and_set()
149 if (cpu_has_feature(CPU_FTR_VSX) && (bits & MSR_FP)) in __msr_check_and_clear()
167 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_fpu()
264 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_altivec()
324 if (cpu_has_feature(CPU_FTR_ALTIVEC) && (tsk->thread.load_vec)) { in restore_altivec()
406 if (cpu_has_feature(CPU_FTR_VSX)) { in restore_vsx()
463 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in init_msr_all_available()
467 if (cpu_has_feature(CPU_FTR_VSX)) in init_msr_all_available()
471 if (cpu_has_feature(CPU_FTR_SPE)) in init_msr_all_available()
737 if (cpu_has_feature(CPU_FTR_DABRX)) in __set_dabr()
[all …]
Dsysfs.c77 if (!cpu_has_feature(CPU_FTR_SMT)) in setup_smt_snooze_delay()
594 if (cpu_has_feature(CPU_FTR_DSCR)) { in sysfs_create_dscr_default()
748 if (cpu_has_feature(CPU_FTR_SMT)) in register_cpu_online()
790 if (cpu_has_feature(CPU_FTR_MMCRA)) in register_cpu_online()
793 if (cpu_has_feature(CPU_FTR_PURR)) { in register_cpu_online()
799 if (cpu_has_feature(CPU_FTR_SPURR)) in register_cpu_online()
802 if (cpu_has_feature(CPU_FTR_DSCR)) in register_cpu_online()
805 if (cpu_has_feature(CPU_FTR_PPCAS_ARCH_V2)) in register_cpu_online()
808 if (cpu_has_feature(CPU_FTR_ARCH_206) && in register_cpu_online()
837 if (cpu_has_feature(CPU_FTR_SMT)) in unregister_cpu_online()
[all …]
Dsecurity.c288 hv = cpu_has_feature(CPU_FTR_HVMODE); in setup_stf_barrier()
291 if (cpu_has_feature(CPU_FTR_ARCH_300)) in setup_stf_barrier()
293 else if (cpu_has_feature(CPU_FTR_ARCH_207S)) in setup_stf_barrier()
295 else if (cpu_has_feature(CPU_FTR_ARCH_206)) in setup_stf_barrier()
Dptrace.c138 if ((!cpu_has_feature(CPU_FTR_TM)) || (tsk != current)) in flush_tmregs_to_thread()
804 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_active()
840 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_get()
905 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_set()
969 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_active()
1007 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_get()
1053 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_set()
1088 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_active()
1128 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_get()
1190 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_set()
[all …]
Dsetup_64.c235 if (cpu_has_feature(CPU_FTR_HVMODE) && in cpu_ready_for_interrupts()
236 cpu_has_feature(CPU_FTR_ARCH_207S)) { in cpu_ready_for_interrupts()
249 if (cpu_has_feature(CPU_FTR_HVMODE)) { in cpu_ready_for_interrupts()
250 if (cpu_has_feature(CPU_FTR_TM_COMP)) in cpu_ready_for_interrupts()
693 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) in exc_lvl_early_init()
Dtime.c177 if (cpu_has_feature(CPU_FTR_SPURR)) in read_spurr()
179 if (cpu_has_feature(CPU_FTR_PURR)) in read_spurr()
748 cpu_has_feature(CPU_FTR_ARCH_207S)) in running_clock()
1029 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in enable_large_decrementer()
1039 if (cpu_has_feature(CPU_FTR_HVMODE)) in enable_large_decrementer()
1049 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in set_decrementer_max()
/Linux-v5.4/arch/powerpc/perf/
Disa207-common.c58 if (cpu_has_feature(CPU_FTR_ARCH_300)) in is_event_valid()
90 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in mmcra_sdar_mode()
103 if (cpu_has_feature(CPU_FTR_ARCH_300)) in thresh_cmp_val()
111 if (cpu_has_feature(CPU_FTR_ARCH_300)) in combine_from_event()
119 if (cpu_has_feature(CPU_FTR_ARCH_300)) in combine_shift()
286 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in isa207_get_constraint()
306 } else if (cpu_has_feature(CPU_FTR_ARCH_300) || (event & EVENT_IS_L1)) { in isa207_get_constraint()
316 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in isa207_get_constraint()
409 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in isa207_compute_mmcr()
433 if (!cpu_has_feature(CPU_FTR_ARCH_300) && event_is_fab_match(event[i])) { in isa207_compute_mmcr()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/
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 inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() function
Dxor.h27 if (cpu_has_feature(CPU_FTR_ALTIVEC)) \
/Linux-v5.4/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()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Didle.c95 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in pnv_save_sprs_for_deep_states()
119 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()
641 if (cpu_has_feature(CPU_FTR_P9_TM_XER_SO_BUG)) { in power9_idle_stop()
652 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()
974 if (cpu_has_feature(CPU_FTR_ARCH_300) && deepest_stop_found) { in pnv_cpu_offline()
[all …]
Dsmp.c151 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in pnv_flush_interrupts()
177 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in pnv_smp_cpu_kill_self()
304 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in pnv_cpu_bootable()
335 if (cpu_has_feature(CPU_FTR_DBELL)) { in pnv_smp_probe()
339 if (cpu_has_feature(CPU_FTR_ARCH_300)) in pnv_smp_probe()
/Linux-v5.4/arch/powerpc/kvm/
Dbook3s_hv.c194 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_ipi_thread()
202 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in kvmppc_ipi_thread()
367 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_set_arch_compat()
369 else if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_set_arch_compat()
371 else if (cpu_has_feature(CPU_FTR_ARCH_206)) in kvmppc_set_arch_compat()
761 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_power8_compatible()
1403 cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_handle_exit_hv()
1606 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_set_lpcr()
1612 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_set_lpcr()
1778 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_hv()
[all …]
Dbook3s_hv_rm_mmu.c69 if (cpu_has_feature(CPU_FTR_ARCH_300)) in global_invalidates()
399 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_do_h_enter()
439 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid()
460 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid()
516 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_do_h_remove()
614 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_h_bulk_remove()
704 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_h_protect()
778 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_h_read()
1043 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_invalidate_hpte()
1061 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_clear_ref_hpte()
[all …]
Dbook3s_pr.c106 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_core_vcpu_load_pr()
107 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_vcpu_load_pr()
141 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_core_vcpu_put_pr()
142 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_vcpu_put_pr()
181 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_copy_to_svcpu()
267 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_copy_from_svcpu()
863 if (!cpu_has_feature(CPU_FTR_VSX)) in kvmppc_handle_ext()
971 BUG_ON(!cpu_has_feature(CPU_FTR_ARCH_207S)); in kvmppc_handle_fac()
1560 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_pr()
1592 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_pr()
[all …]
/Linux-v5.4/arch/powerpc/mm/book3s64/
Dradix_tlb.c203 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_va()
208 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_va()
217 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_va_range()
222 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_va_range()
236 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_pid()
241 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_pid()
251 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid_va()
256 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid_va()
270 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid()
275 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()
Dhash_4k.c60 if (cpu_has_feature(CPU_FTR_NOEXECUTE) && in __hash_page_4K()
61 !cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) in __hash_page_4K()
/Linux-v5.4/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()
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dsmp.c225 if (cpu_has_feature(CPU_FTR_DBELL) && !is_secure_guest()) in pSeries_smp_probe_xics()
271 if (cpu_has_feature(CPU_FTR_SMT)) { in smp_init_pseries()
/Linux-v5.4/arch/powerpc/mm/nohash/
Dbook3e_hugetlbpage.c45 if (!cpu_has_feature(CPU_FTR_SMT)) in book3e_tlb_lock()
68 if (!cpu_has_feature(CPU_FTR_SMT)) in book3e_tlb_unlock()
/Linux-v5.4/lib/raid6/
Dvpermxor.uc89 return (cpu_has_feature(CPU_FTR_ALTIVEC_COMP) &&
90 cpu_has_feature(CPU_FTR_ARCH_207S));

1234