Home
last modified time | relevance | path

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

123

/linux/arch/powerpc/perf/
H A 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()
128 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in p10_thresh_cmp_val()
151 if (cpu_has_feature(CPU_FTR_ARCH_31)) in thresh_cmp_val()
158 if (cpu_has_feature(CPU_FTR_ARCH_300)) in thresh_cmp_val()
166 if (cpu_has_feature(CPU_FTR_ARCH_300)) in combine_from_event()
174 if (cpu_has_feature(CPU_FTR_ARCH_300)) in combine_shift()
189 if (cpu_has_feature(CPU_FTR_ARCH_31)) in is_thresh_cmp_valid()
[all …]
/linux/arch/powerpc/kernel/ptrace/
H A 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()
94 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_get()
141 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cgpr_set()
202 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_active()
235 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_get()
280 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cfpr_set()
314 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_active()
351 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_get()
401 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvmx_set()
[all …]
H A Dptrace-view.c339 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in ebb_active()
355 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in ebb_get()
374 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in ebb_set()
397 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in pmu_active()
412 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in pmu_get()
430 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in pmu_set()
460 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in dexcr_active()
469 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in dexcr_get()
484 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in hashkeyr_active()
493 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in hashkeyr_get()
[all …]
/linux/arch/powerpc/include/asm/book3s/64/
H A Dkexec.h11 if (cpu_has_feature(CPU_FTR_ARCH_206)) { in reset_sprs()
16 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in reset_sprs()
18 if (cpu_has_feature(CPU_FTR_HVMODE)) in reset_sprs()
24 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in reset_sprs()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_entry.c17 if (cpu_has_feature(CPU_FTR_ALTIVEC) && in load_spr_state()
31 if (cpu_has_feature(CPU_FTR_P9_TIDR) && in load_spr_state()
63 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in store_spr_state()
73 if (cpu_has_feature(CPU_FTR_P9_TIDR)) in store_spr_state()
92 if (cpu_has_feature(CPU_FTR_TM) || in load_vcpu_state()
93 cpu_has_feature(CPU_FTR_P9_TM_HV_ASSIST)) { in load_vcpu_state()
127 if (cpu_has_feature(CPU_FTR_TM) || in store_vcpu_state()
128 cpu_has_feature(CPU_FTR_P9_TM_HV_ASSIST)) { in store_vcpu_state()
168 if (cpu_has_feature(CPU_FTR_P9_TIDR) && in restore_p9_host_os_sprs()
189 if (cpu_has_feature(CPU_FTR_ALTIVEC) && in restore_p9_host_os_sprs()
[all …]
H A Dbook3s_hv_p9_perf.c14 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in freeze_pmu()
25 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in freeze_pmu()
66 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in switch_pmu_to_guest()
100 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in switch_pmu_to_guest()
154 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in switch_pmu_to_host()
207 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in switch_pmu_to_host()
H A Dbook3s_hv_rm_mmu.c385 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_do_h_enter()
426 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid()
447 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid()
503 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_do_h_remove()
602 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_h_bulk_remove()
692 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_h_protect()
767 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_h_read()
1025 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_invalidate_hpte()
1043 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_clear_ref_hpte()
1142 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_hv_find_lock_hpte()
[all …]
H A Dbook3s_hv_builtin.c89 if (!cpu_has_feature(CPU_FTR_HVMODE)) in kvm_cma_reserve()
208 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmhv_rm_send_ipi()
215 if (cpu_has_feature(CPU_FTR_ARCH_207S) && in kvmhv_rm_send_ipi()
575 WARN_ON_ONCE(cpu_has_feature(CPU_FTR_ARCH_300)); in kvmppc_guest_entry_inject_int()
H A Dbook3s_emulate.c488 if (!cpu_has_feature(CPU_FTR_TM)) in kvmppc_core_emulate_op_pr()
526 if (!cpu_has_feature(CPU_FTR_TM)) in kvmppc_core_emulate_op_pr()
552 if (!cpu_has_feature(CPU_FTR_TM)) in kvmppc_core_emulate_op_pr()
586 if (!cpu_has_feature(CPU_FTR_TM)) in kvmppc_core_emulate_op_pr()
782 if (!cpu_has_feature(CPU_FTR_TM)) in kvmppc_core_emulate_mtspr_pr()
963 if (!cpu_has_feature(CPU_FTR_TM)) in kvmppc_core_emulate_mfspr_pr()
/linux/arch/powerpc/include/asm/
H A Dcputhreads.h76 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_first_tlb_thread_sibling()
84 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_last_tlb_thread_sibling()
92 if (cpu_has_feature(CPU_FTR_ARCH_300) && (threads_per_core == 8)) in cpu_tlb_thread_sibling_step()
101 if (cpu_has_feature(CPU_FTR_SMT)) in get_tensr()
H A 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()
H A Drunlatch.h20 if (cpu_has_feature(CPU_FTR_CTRL) && \
31 if (cpu_has_feature(CPU_FTR_CTRL) && \
H A Dcpu_has_feature.h23 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() function
48 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() function
H A Dxor.h27 if (cpu_has_feature(CPU_FTR_ALTIVEC)) \
/linux/arch/powerpc/mm/book3s64/
H A Dradix_tlb.c210 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_va()
215 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_va()
224 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_va_range()
229 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_va_range()
243 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_pid()
248 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_pid()
257 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid_va()
262 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid_va()
276 if (cpu_has_feature(CPU_FTR_P9_TLBIE_ERAT_BUG)) { in fixup_tlbie_lpid()
281 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid()
[all …]
H A Dhash_64k.c79 if (cpu_has_feature(CPU_FTR_NOEXECUTE) && in __hash_page_4K()
80 !cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) { in __hash_page_4K()
271 if (cpu_has_feature(CPU_FTR_NOEXECUTE) && in __hash_page_64K()
272 !cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) in __hash_page_64K()
H A Dhash_4k.c62 if (cpu_has_feature(CPU_FTR_NOEXECUTE) && in __hash_page_4K()
63 !cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) in __hash_page_4K()
/linux/arch/powerpc/kernel/
H A Didle.c74 if (!cpu_has_feature(CPU_FTR_CAN_NAP)) in power4_idle()
83 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in power4_idle()
H A 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()
/linux/drivers/misc/cxl/
H A Dcxllib.c32 if (!cpu_has_feature(CPU_FTR_HVMODE)) in cxllib_slot_is_supported()
82 if (!cpu_has_feature(CPU_FTR_HVMODE)) in cxllib_get_xsl_config()
116 if (!cpu_has_feature(CPU_FTR_HVMODE)) in cxllib_switch_phb_mode()
/linux/arch/powerpc/xmon/
H A Dppc-dis.c132 if (cpu_has_feature(CPU_FTR_TM)) in print_insn_powerpc()
135 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in print_insn_powerpc()
138 if (cpu_has_feature(CPU_FTR_VSX)) in print_insn_powerpc()
/linux/arch/powerpc/lib/
H A Dpmem.c39 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in clean_pmem_range()
45 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in flush_pmem_range()
/linux/arch/powerpc/mm/nohash/
H A De500_hugetlbpage.c45 if (!cpu_has_feature(CPU_FTR_SMT)) in book3e_tlb_lock()
71 if (!cpu_has_feature(CPU_FTR_SMT)) in book3e_tlb_unlock()
/linux/drivers/cpufreq/
H A Dpmac32-cpufreq.c266 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in pmu_set_cpu_speed()
339 cpu_has_feature(CPU_FTR_L3CR)) { in do_set_cpu_speed()
348 cpu_has_feature(CPU_FTR_L3CR)) { in do_set_cpu_speed()
/linux/lib/raid6/
H A Dvpermxor.uc89 return (cpu_has_feature(CPU_FTR_ALTIVEC_COMP) &&
90 cpu_has_feature(CPU_FTR_ARCH_207S));

123