Home
last modified time | relevance | path

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

123

/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/kernel/
H A Dprocess.c124 if (cpu_has_feature(CPU_FTR_VSX) && (bits & MSR_FP)) in msr_check_and_set()
142 if (cpu_has_feature(CPU_FTR_VSX) && (bits & MSR_FP)) in __msr_check_and_clear()
158 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_fpu()
241 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_altivec()
410 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in init_msr_all_available()
412 if (cpu_has_feature(CPU_FTR_VSX)) in init_msr_all_available()
414 if (cpu_has_feature(CPU_FTR_SPE)) in init_msr_all_available()
473 if (cpu_has_feature(CPU_FTR_ALTIVEC) && (current->thread.load_vec)) { in should_restore_altivec()
492 if (cpu_has_feature(CPU_FTR_VSX)) in should_restore_vsx()
822 if (cpu_has_feature(CPU_FTR_DABRX)) in set_dabr()
[all …]
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()
H A Dsetup_64.c272 if (cpu_has_feature(CPU_FTR_HVMODE)) { in cpu_ready_for_interrupts()
276 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in cpu_ready_for_interrupts()
283 } else if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in cpu_ready_for_interrupts()
299 if (cpu_has_feature(CPU_FTR_HVMODE)) { in cpu_ready_for_interrupts()
300 if (cpu_has_feature(CPU_FTR_TM_COMP)) in cpu_ready_for_interrupts()
761 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) in exc_lvl_early_init()
H A Dtime.c159 if (cpu_has_feature(CPU_FTR_SPURR)) in read_spurr()
161 if (cpu_has_feature(CPU_FTR_PURR)) in read_spurr()
667 cpu_has_feature(CPU_FTR_ARCH_207S)) in running_clock()
849 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in enable_large_decrementer()
859 if (cpu_has_feature(CPU_FTR_HVMODE)) in enable_large_decrementer()
869 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in set_decrementer_max()
H A Dinterrupt.c116 if (cpu_has_feature(CPU_FTR_HVMODE) && trap == INTERRUPT_EXTERNAL) in check_return_regs_valid()
215 if (cpu_has_feature(CPU_FTR_VSX)) in interrupt_exit_user_prepare_main()
217 else if (cpu_has_feature(CPU_FTR_ALTIVEC)) in interrupt_exit_user_prepare_main()
/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/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()
/linux/arch/powerpc/platforms/powernv/
H A 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()
350 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
379 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
392 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
484 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in power7_idle_insn()
643 if (cpu_has_feature(CPU_FTR_P9_TM_XER_SO_BUG)) { in power9_idle_stop()
654 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()
997 if (cpu_has_feature(CPU_FTR_ARCH_31)) in arch300_offline_stop()
[all …]
/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/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/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/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/lib/raid6/
H A Dvpermxor.uc89 return (cpu_has_feature(CPU_FTR_ALTIVEC_COMP) &&
90 cpu_has_feature(CPU_FTR_ARCH_207S));

123