Home
last modified time | relevance | path

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

/linux-4.1.27/arch/powerpc/kernel/
Dsetup_32.c131 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in machine_init()
132 cpu_has_feature(CPU_FTR_CAN_NAP)) in machine_init()
137 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in machine_init()
138 cpu_has_feature(CPU_FTR_CAN_NAP)) in machine_init()
148 if (cpu_has_feature(CPU_FTR_L2CR)) { in ppc_setup_l2cr()
161 if (cpu_has_feature(CPU_FTR_L3CR)) { in ppc_setup_l3cr()
293 if (cpu_has_feature(CPU_FTR_UNIFIED_ID_CACHE)) in setup_arch()
Dsysfs.c74 if (!cpu_has_feature(CPU_FTR_SMT)) in setup_smt_snooze_delay()
552 if (cpu_has_feature(CPU_FTR_DSCR)) in sysfs_create_dscr_default()
676 if (cpu_has_feature(CPU_FTR_SMT)) in register_cpu_online()
718 if (cpu_has_feature(CPU_FTR_MMCRA)) in register_cpu_online()
721 if (cpu_has_feature(CPU_FTR_PURR)) { in register_cpu_online()
727 if (cpu_has_feature(CPU_FTR_SPURR)) in register_cpu_online()
730 if (cpu_has_feature(CPU_FTR_DSCR)) in register_cpu_online()
733 if (cpu_has_feature(CPU_FTR_PPCAS_ARCH_V2)) in register_cpu_online()
760 if (cpu_has_feature(CPU_FTR_SMT)) in unregister_cpu_online()
802 if (cpu_has_feature(CPU_FTR_MMCRA)) in unregister_cpu_online()
[all …]
Dprocess.c445 if (cpu_has_feature(CPU_FTR_DABRX)) in __set_dabr()
501 if (cpu_has_feature(CPU_FTR_DAWR)) in __set_breakpoint()
666 if (!cpu_has_feature(CPU_FTR_TM)) in tm_recheckpoint_new_task()
716 if (cpu_has_feature(CPU_FTR_TM)) { in __switch_to_tm()
1025 if ((regs->trap != 0xc00) && cpu_has_feature(CPU_FTR_CFAR)) in show_regs()
1214 if (cpu_has_feature(CPU_FTR_DSCR)) { in copy_thread()
1218 if (cpu_has_feature(CPU_FTR_HAS_PPR)) in copy_thread()
1329 if (cpu_has_feature(CPU_FTR_TM)) in start_thread()
1351 if (cpu_has_feature(CPU_FTR_SPE)) { in set_fpexc_mode()
1396 if (cpu_has_feature(CPU_FTR_SPE)) { in get_fpexc_mode()
[all …]
Dirq.c185 if (cpu_has_feature(CPU_FTR_HVMODE)) in __check_irq_replay()
384 if (cpu_has_feature(CPU_FTR_HVMODE)) { in arch_show_interrupts()
393 if (cpu_has_feature(CPU_FTR_DBELL)) { in arch_show_interrupts()
Dsetup_64.c210 if (cpu_has_feature(CPU_FTR_HVMODE) && in cpu_ready_for_interrupts()
211 cpu_has_feature(CPU_FTR_ARCH_207S)) { in cpu_ready_for_interrupts()
620 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) in exc_lvl_early_init()
Dsetup-common.c245 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in show_cpuinfo()
493 if (!cpu_has_feature(CPU_FTR_SMT)) { in smp_setup_cpu_maps()
519 if (cpu_has_feature(CPU_FTR_SMT)) in smp_setup_cpu_maps()
Dsignal_64.c115 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in setup_sigcontext()
233 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in setup_tm_sigcontexts()
374 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in restore_sigcontext()
508 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in restore_tm_sigcontexts()
Dalign.c779 if (cpu_has_feature(CPU_FTR_NODSISRALIGN)) { in fix_alignment()
782 if (cpu_has_feature(CPU_FTR_PPC_LE) && (regs->msr & MSR_LE)) in fix_alignment()
787 if (cpu_has_feature(CPU_FTR_REAL_LE) && (regs->msr & MSR_LE)) in fix_alignment()
836 if (cpu_has_feature(CPU_FTR_PPC_LE)) in fix_alignment()
Dtau_6xx.c224 if (!cpu_has_feature(CPU_FTR_TAU)) { in TAU_init()
Dpaca.c196 if (cpu_has_feature(CPU_FTR_HVMODE)) in setup_paca()
Dsignal_32.c440 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in save_user_regs()
575 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in save_tm_user_regs()
717 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in restore_user_regs()
833 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in restore_tm_user_regs()
1535 if (!cpu_has_feature(CPU_FTR_TM)) in sys_sigreturn()
Dtime.c189 if (cpu_has_feature(CPU_FTR_SPURR)) in read_spurr()
191 if (cpu_has_feature(CPU_FTR_PURR)) in read_spurr()
650 cpu_has_feature(CPU_FTR_ARCH_207S)) in running_clock()
Dsmp.c97 if (system_state == SYSTEM_BOOTING && cpu_has_feature(CPU_FTR_SMT)) { in smp_generic_cpu_bootable()
746 if (cpu_has_feature(CPU_FTR_ASYM_SMT)) { in powerpc_smt_flags()
Dhw_breakpoint.c174 if (cpu_has_feature(CPU_FTR_DAWR)) { in arch_validate_hwbkpt_settings()
Dtraps.c1075 cpu_has_feature(CPU_FTR_DSCR)) { in emulate_instruction()
1086 cpu_has_feature(CPU_FTR_DSCR)) { in emulate_instruction()
Dptrace.c1629 if (cpu_has_feature(CPU_FTR_DAWR)) in arch_ptrace()
/linux-4.1.27/arch/powerpc/include/asm/
Ddcr-native.h69 else if (likely(cpu_has_feature(CPU_FTR_INDEXED_DCR))) \
80 else if (likely(cpu_has_feature(CPU_FTR_INDEXED_DCR))) \
95 if (cpu_has_feature(CPU_FTR_INDEXED_DCR)) { in __mfdcri()
112 if (cpu_has_feature(CPU_FTR_INDEXED_DCR)) { in __mtdcri()
129 if (cpu_has_feature(CPU_FTR_INDEXED_DCR)) { in __dcri_clrset()
Drunlatch.h19 if (cpu_has_feature(CPU_FTR_CTRL) && \
31 if (cpu_has_feature(CPU_FTR_CTRL) && \
Dswitch_to.h21 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in save_early_sprs()
23 if (cpu_has_feature(CPU_FTR_DSCR)) in save_early_sprs()
Dtime.h51 #define __USE_RTC() (!cpu_has_feature(CPU_FTR_USE_TB))
108 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in get_vtb()
Dmman.h37 if ((prot & PROT_SAO) && !cpu_has_feature(CPU_FTR_SAO)) in arch_validate_prot()
Dxor.h48 if (cpu_has_feature(CPU_FTR_ALTIVEC)) \
Ddbell.h42 if (cpu_has_feature(CPU_FTR_HVMODE)) in _ppc_msgsnd()
Dmmu_context.h71 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in switch_mm()
Dptrace.h150 #define arch_has_block_step() (!cpu_has_feature(CPU_FTR_601))
Dcputime.h60 if (cpu_has_feature(CPU_FTR_SPURR) && in cputime_to_scaled()
Dkvm_book3s_64.h287 cpu_has_feature(CPU_FTR_ARCH_206)) in hpte_cache_flags_ok()
Dcputable.h557 static inline int cpu_has_feature(unsigned long feature) in cpu_has_feature() function
Dreg.h1215 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in mfvtb()
/linux-4.1.27/arch/powerpc/mm/
Dicswx.c89 if (!cpu_has_feature(CPU_FTR_ICSWX)) in use_cop()
133 if (!cpu_has_feature(CPU_FTR_ICSWX)) in drop_cop()
203 if (!cpu_has_feature(CPU_FTR_ICSWX)) { in acop_handle_fault()
Dpgtable.c75 if (pte_looks_normal(pte) && !(cpu_has_feature(CPU_FTR_COHERENT_ICACHE) || in set_pte_filter()
76 cpu_has_feature(CPU_FTR_NOEXECUTE))) { in set_pte_filter()
Dhugetlbpage-hash64.c67 if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) in __hash_page_huge()
Dhugepage-hash64.c71 if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) { in __hash_page_thp()
Dppc_mmu_32.c124 (cpu_has_feature(CPU_FTR_NEED_COHERENT) == 0)) in setbat()
Dfault.c403 (cpu_has_feature(CPU_FTR_NOEXECUTE) || in do_page_fault()
Dhash_utils_64.c464 return !cpu_has_feature(CPU_FTR_ARCH_207S); in might_have_hea()
1319 if (local && cpu_has_feature(CPU_FTR_TM) && in flush_hash_page()
1390 if (local && cpu_has_feature(CPU_FTR_TM) && in flush_hash_hugepage()
Dmem.c401 if (cpu_has_feature(CPU_FTR_COHERENT_ICACHE)) in flush_dcache_page()
/linux-4.1.27/arch/powerpc/xmon/
Dppc-dis.c41 if (cpu_has_feature(CPU_FTRS_POWER5)) in print_insn_powerpc()
44 if (cpu_has_feature(CPU_FTRS_CELL)) in print_insn_powerpc()
47 if (cpu_has_feature(CPU_FTRS_POWER6)) in print_insn_powerpc()
Dxmon.c282 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in write_ciabr()
285 if (cpu_has_feature(CPU_FTR_HVMODE)) { in write_ciabr()
303 if (cpu_has_feature(CPU_FTR_HVMODE)) in set_ciabr()
1207 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) { in bpt_cmds()
1558 if (TRAP(fp) != 0xc00 && cpu_has_feature(CPU_FTR_CFAR)) { in prregs()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dsmp.c53 if (cpu_has_feature(CPU_FTR_DBELL)) in pnv_smp_setup_cpu()
166 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in pnv_smp_cpu_kill_self()
229 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in pnv_cpu_bootable()
Dsubcore.c410 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) in subcore_init()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dsmp.c147 if (cpu_has_feature(CPU_FTR_DBELL)) in smp_xics_setup_cpu()
204 if (cpu_has_feature(CPU_FTR_DBELL)) { in pSeries_smp_probe()
242 if (cpu_has_feature(CPU_FTR_SMT)) { in smp_init_pseries()
DhvCall_inst.c62 if (cpu_has_feature(CPU_FTR_PURR)) in hc_show()
Dlpar.c78 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in vpa_init()
81 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in vpa_init()
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_hv_builtin.c83 if (!cpu_has_feature(CPU_FTR_HVMODE)) in kvm_cma_reserve()
208 if (cpu_has_feature(CPU_FTR_ARCH_207S) && in kvmhv_rm_send_ipi()
Dbook3s_pr.c105 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_core_vcpu_load_pr()
106 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_vcpu_load_pr()
137 if (cpu_has_feature(CPU_FTR_HVMODE) && in kvmppc_core_vcpu_put_pr()
138 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_vcpu_put_pr()
176 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_copy_to_svcpu()
230 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_copy_from_svcpu()
727 if (!cpu_has_feature(CPU_FTR_VSX)) in kvmppc_handle_ext()
831 BUG_ON(!cpu_has_feature(CPU_FTR_ARCH_207S)); in kvmppc_handle_fac()
Dpowerpc.c258 if (!cpu_has_feature(CPU_FTR_EMB_HV)) in kvmppc_sanity_check()
914 if (!cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvm_vcpu_ioctl_get_one_reg()
921 if (!cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvm_vcpu_ioctl_get_one_reg()
965 if (!cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvm_vcpu_ioctl_set_one_reg()
972 if (!cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvm_vcpu_ioctl_set_one_reg()
979 if (!cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvm_vcpu_ioctl_set_one_reg()
Dbook3s_hv.c91 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in kvmppc_ipi_thread()
252 if (!cpu_has_feature(CPU_FTR_ARCH_207S)) { in kvmppc_set_arch_compat()
599 cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_power8_compatible()
1013 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_set_lpcr()
1164 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_hv()
1193 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_get_one_reg_hv()
1372 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_set_one_reg_hv()
1400 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_set_one_reg_hv()
1443 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_vcore_create()
2550 if (cpu_has_feature(CPU_FTR_ARCH_207S)) in kvmppc_core_init_vm_hv()
[all …]
Dbooke.c180 if (cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvmppc_load_guest_altivec()
198 if (cpu_has_feature(CPU_FTR_ALTIVEC)) { in kvmppc_save_guest_altivec()
363 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) { in set_guest_dsrr()
465 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) in kvmppc_booke_irqprio_deliver()
753 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_vcpu_run()
Dbook3s.c556 if (cpu_has_feature(CPU_FTR_VSX)) { in kvmppc_get_one_reg()
632 if (cpu_has_feature(CPU_FTR_VSX)) { in kvmppc_set_one_reg()
Dbook3s_xics.c1342 if (cpu_has_feature(CPU_FTR_ARCH_206)) { in kvmppc_xics_create()
Dbook3s_64_mmu_hv.c229 if (!cpu_has_feature(CPU_FTR_HVMODE)) in kvmppc_mmu_hv_init()
/linux-4.1.27/arch/powerpc/platforms/85xx/
Dsmp.c210 if (WARN_ON_ONCE(!cpu_has_feature(CPU_FTR_SMT))) in smp_85xx_kick_cpu()
439 if (cpu_has_feature(CPU_FTR_DBELL)) in smp_85xx_basic_setup()
472 if (cpu_has_feature(CPU_FTR_DBELL)) { in mpc85xx_smp_init()
/linux-4.1.27/drivers/cpufreq/
Dpmac32-cpufreq.c267 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in pmu_set_cpu_speed()
340 cpu_has_feature(CPU_FTR_L3CR)) { in do_set_cpu_speed()
349 cpu_has_feature(CPU_FTR_L3CR)) { in do_set_cpu_speed()
/linux-4.1.27/arch/powerpc/platforms/cell/
Dpervasive.c118 if (!cpu_has_feature(CPU_FTR_PAUSE_ZERO)) in cbe_pervasive_init()
Dsmp.c151 if (cpu_has_feature(CPU_FTR_SMT)) { in smp_init_cell()
/linux-4.1.27/include/linux/raid/
Dpq.h60 #define cpu_has_feature(x) 1 macro
/linux-4.1.27/drivers/misc/cxl/
Dmain.c194 if (!cpu_has_feature(CPU_FTR_HVMODE)) in init_cxl()
Dcxl.h528 WARN_ON(!cpu_has_feature(CPU_FTR_HVMODE)); in _cxl_p1_addr()
539 WARN_ON(!cpu_has_feature(CPU_FTR_HVMODE)); in _cxl_p1n_addr()
/linux-4.1.27/arch/powerpc/sysdev/xics/
Dicp-native.c150 if (cpu_has_feature(CPU_FTR_DBELL) && in icp_native_cause_ipi()
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dsmp.c673 if (!cpu_has_feature(CPU_FTR_L2CR)) in core99_init_caches()
686 if (!cpu_has_feature(CPU_FTR_L3CR)) in core99_init_caches()
Dsetup.c251 if (cpu_has_feature(CPU_FTR_L2CR)) { in l2cr_init()
/linux-4.1.27/arch/powerpc/perf/
Dpower8-pmu.c489 if (cpu_has_feature(CPU_FTR_HVMODE)) in power8_compute_mmcr()
839 if (cpu_has_feature(CPU_FTR_PMAO_BUG)) in init_power8_pmu()
Dcore-book3s.c609 if (!cpu_has_feature(CPU_FTR_PMAO_BUG)) in pmao_restore_workaround()
/linux-4.1.27/lib/raid6/
Daltivec.uc113 return cpu_has_feature(CPU_FTR_ALTIVEC);
/linux-4.1.27/arch/powerpc/lib/
Dsstep.c1987 cpu_has_feature(CPU_FTR_REAL_LE)) { in emulate_step()
/linux-4.1.27/drivers/macintosh/
Dvia-pmu.c2219 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in powerbook_sleep()