/openbmc/linux/arch/powerpc/perf/ |
H A D | isa207-common.c | 58 if (cpu_has_feature(CPU_FTR_ARCH_31)) 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() 371 if (cpu_has_feature(CPU_FTR_ARCH_31)) in isa207_get_mem_weight() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | dc_fpu.c | 97 if (cpu_has_feature(CPU_FTR_VSX_COMP)) { in dc_fpu_begin() 100 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) { in dc_fpu_begin() 103 } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) { in dc_fpu_begin() 137 if (cpu_has_feature(CPU_FTR_VSX_COMP)) { in dc_fpu_end() 140 } else if (cpu_has_feature(CPU_FTR_ALTIVEC_COMP)) { in dc_fpu_end() 143 } else if (!cpu_has_feature(CPU_FTR_FPU_UNAVAILABLE)) { in dc_fpu_end()
|
/openbmc/linux/arch/powerpc/kernel/ptrace/ |
H A D | ptrace-tm.c | 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() 442 if (!cpu_has_feature(CPU_FTR_TM)) in tm_cvsx_active() [all …]
|
/openbmc/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | kexec.h | 11 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()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | setup_32.c | 105 if (cpu_has_feature(CPU_FTR_L2CR)) { in ppc_setup_l2cr() 118 if (cpu_has_feature(CPU_FTR_L3CR)) { in ppc_setup_l3cr() 205 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in setup_power_save() 206 cpu_has_feature(CPU_FTR_CAN_NAP)) in setup_power_save() 211 if (cpu_has_feature(CPU_FTR_CAN_DOZE) || in setup_power_save() 212 cpu_has_feature(CPU_FTR_CAN_NAP)) in setup_power_save()
|
H A D | process.c | 160 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_fpu() 243 if (cpu_has_feature(CPU_FTR_VSX)) in __giveup_altivec() 412 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in init_msr_all_available() 414 if (cpu_has_feature(CPU_FTR_VSX)) in init_msr_all_available() 416 if (cpu_has_feature(CPU_FTR_SPE)) in init_msr_all_available() 494 if (cpu_has_feature(CPU_FTR_VSX)) in should_restore_vsx() 1053 if (!cpu_has_feature(CPU_FTR_TM)) in tm_recheckpoint_new_task() 1092 if (cpu_has_feature(CPU_FTR_TM)) { in __switch_to_tm() 1163 if (cpu_has_feature(CPU_FTR_SPE)) in save_sprs() 1167 if (cpu_has_feature(CPU_FTR_DSCR)) in save_sprs() [all …]
|
H A D | sysfs.c | 73 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() 847 if (cpu_has_feature(CPU_FTR_SMT)) in register_cpu_online() 890 if (cpu_has_feature(CPU_FTR_MMCRA)) in register_cpu_online() 893 if (cpu_has_feature(CPU_FTR_ARCH_31)) in register_cpu_online() 897 if (cpu_has_feature(CPU_FTR_PURR)) { in register_cpu_online() 909 if (cpu_has_feature(CPU_FTR_DSCR)) in register_cpu_online() 945 if (cpu_has_feature(CPU_FTR_SMT)) in unregister_cpu_online() 988 if (cpu_has_feature(CPU_FTR_MMCRA)) in unregister_cpu_online() 995 if (cpu_has_feature(CPU_FTR_PURR)) { in unregister_cpu_online() [all …]
|
H A D | idle.c | 74 if (!cpu_has_feature(CPU_FTR_CAN_NAP)) in power4_idle() 83 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in power4_idle()
|
H A D | hw_breakpoint_constraints.c | 41 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 D | setup_64.c | 275 if (cpu_has_feature(CPU_FTR_HVMODE)) { in cpu_ready_for_interrupts() 279 if (cpu_has_feature(CPU_FTR_ARCH_31)) { in cpu_ready_for_interrupts() 286 } else if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in cpu_ready_for_interrupts() 302 if (cpu_has_feature(CPU_FTR_HVMODE)) { in cpu_ready_for_interrupts() 303 if (cpu_has_feature(CPU_FTR_TM_COMP)) in cpu_ready_for_interrupts() 768 if (cpu_has_feature(CPU_FTR_DEBUG_LVL_EXC)) in exc_lvl_early_init()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | cputhreads.h | 76 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 D | dcr-native.h | 58 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 D | runlatch.h | 20 if (cpu_has_feature(CPU_FTR_CTRL) && \ 31 if (cpu_has_feature(CPU_FTR_CTRL) && \
|
H A D | cpu_has_feature.h | 23 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
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_p9_entry.c | 17 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() 127 if (cpu_has_feature(CPU_FTR_TM) || 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() 503 if (cpu_has_feature(CPU_FTR_ALTIVEC)) in kvmppc_msr_hard_disable_set_facilities() 505 if (cpu_has_feature(CPU_FTR_VSX)) in kvmppc_msr_hard_disable_set_facilities() [all …]
|
H A D | book3s_hv_p9_perf.c | 14 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 D | book3s_hv.c | 192 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_ipi_thread() 200 if (cpu_has_feature(CPU_FTR_ARCH_207S)) { in kvmppc_ipi_thread() 324 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_vcpu_load_hv() 400 if (cpu_has_feature(CPU_FTR_ARCH_31)) in kvmppc_set_arch_compat() 833 if (cpu_has_feature(CPU_FTR_ARCH_300)) in kvmppc_doorbell_pending() 890 if (!cpu_has_feature(CPU_FTR_DAWR1)) in kvmppc_h_set_mode() 2952 if (cpu_has_feature(CPU_FTR_ARCH_31)) in kvmppc_core_vcpu_create_hv() 2963 if (cpu_has_feature(CPU_FTR_TM_COMP)) in kvmppc_core_vcpu_create_hv() 4857 if (cpu_has_feature(CPU_FTR_VSX)) in kvmppc_vcpu_run_hv() 4859 if ((cpu_has_feature(CPU_FTR_TM) || in kvmppc_vcpu_run_hv() [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | test_emulate_step.c | 578 if (!cpu_has_feature(CPU_FTR_VSX)) in test_lxvd2x_stxvd2x() 597 cpu_has_feature(CPU_FTR_VSX)) { in test_lxvd2x_stxvd2x() 600 if (!cpu_has_feature(CPU_FTR_VSX)) in test_lxvd2x_stxvd2x() 656 if (!cpu_has_feature(CPU_FTR_VSX)) in test_lxvp_stxvp() 684 cpu_has_feature(CPU_FTR_VSX)) { in test_lxvp_stxvp() 687 if (!cpu_has_feature(CPU_FTR_VSX)) in test_lxvp_stxvp() 744 if (!cpu_has_feature(CPU_FTR_VSX)) in test_lxvpx_stxvpx() 772 cpu_has_feature(CPU_FTR_VSX)) { in test_lxvpx_stxvpx() 775 if (!cpu_has_feature(CPU_FTR_VSX)) in test_lxvpx_stxvpx() 832 if (!cpu_has_feature(CPU_FTR_VSX)) in test_plxvp_pstxvp() [all …]
|
H A D | sstep.c | 1159 if (cpu_has_feature(CPU_FTR_ARCH_300)) { in set_ca32() 1392 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr() 1492 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in analyse_instr() 1531 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr() 1618 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr() 1784 if (!cpu_has_feature(CPU_FTR_ARCH_300)) in analyse_instr() 2584 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in analyse_instr() 2626 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in analyse_instr() 2894 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in analyse_instr() 2981 if (!cpu_has_feature(CPU_FTR_ARCH_31)) in analyse_instr() [all …]
|
H A D | pmem.c | 39 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()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | idle.c | 92 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() 997 if (cpu_has_feature(CPU_FTR_ARCH_31)) in arch300_offline_stop() 1019 if (cpu_has_feature(CPU_FTR_ARCH_31)) in arch300_idle_type() 1278 if (cpu_has_feature(CPU_FTR_ARCH_300) && in pnv_disable_deep_states() 1308 if (cpu_has_feature(CPU_FTR_ARCH_300)) in pnv_probe_idle_states() [all …]
|
H A D | smp.c | 154 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()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | smp.c | 203 if (!cpu_has_feature(CPU_FTR_DBELL)) in pSeries_smp_probe() 207 if (!cpu_has_feature(CPU_FTR_SMT)) in pSeries_smp_probe() 270 if (cpu_has_feature(CPU_FTR_SMT)) { in smp_init_pseries()
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | radix_tlb.c | 210 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() 281 if (cpu_has_feature(CPU_FTR_P9_TLBIE_STQ_BUG)) { in fixup_tlbie_lpid() 316 if (!cpu_has_feature(CPU_FTR_ARCH_31)) { in _tlbiel_pid() [all …]
|
H A D | hash_64k.c | 79 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()
|