Home
last modified time | relevance | path

Searched refs:current_cpu_data (Results 1 – 70 of 70) sorted by relevance

/linux-4.4.14/arch/sh/kernel/cpu/
Dinit.c131 waysize = current_cpu_data.dcache.sets; in cache_init()
142 waysize <<= current_cpu_data.dcache.entry_shift; in cache_init()
150 ways = current_cpu_data.dcache.ways; in cache_init()
158 addr += current_cpu_data.dcache.linesz) in cache_init()
161 addrstart += current_cpu_data.dcache.way_incr; in cache_init()
173 if (current_cpu_data.dcache.ways > 1) in cache_init()
207 l1d_cache_shape = CACHE_DESC_SHAPE(current_cpu_data.dcache); in detect_cache_shape()
209 if (current_cpu_data.dcache.flags & SH_CACHE_COMBINED) in detect_cache_shape()
212 l1i_cache_shape = CACHE_DESC_SHAPE(current_cpu_data.icache); in detect_cache_shape()
214 if (current_cpu_data.flags & CPU_HAS_L2_CACHE) in detect_cache_shape()
[all …]
/linux-4.4.14/arch/mips/mm/
Dc-tx39.c294 unsigned long ic_lsize = current_cpu_data.icache.linesz; in tx39_flush_cache_sigtramp()
295 unsigned long dc_lsize = current_cpu_data.dcache.linesz; in tx39_flush_cache_sigtramp()
322 current_cpu_data.icache.linesz = 16; in tx39_probe_cache()
325 current_cpu_data.icache.ways = 1; in tx39_probe_cache()
326 current_cpu_data.dcache.ways = 1; in tx39_probe_cache()
327 current_cpu_data.dcache.linesz = 4; in tx39_probe_cache()
331 current_cpu_data.icache.ways = 2; in tx39_probe_cache()
332 current_cpu_data.dcache.ways = 2; in tx39_probe_cache()
333 current_cpu_data.dcache.linesz = 16; in tx39_probe_cache()
338 current_cpu_data.icache.ways = 1; in tx39_probe_cache()
[all …]
Dtlb-r4k.c68 if (current_cpu_data.tlbsizevtlb) { in local_flush_tlb_all()
73 ftlbhighset = current_cpu_data.tlbsizevtlb + in local_flush_tlb_all()
74 current_cpu_data.tlbsizeftlbsets; in local_flush_tlb_all()
75 for (entry = current_cpu_data.tlbsizevtlb; in local_flush_tlb_all()
83 while (entry < current_cpu_data.tlbsize) { in local_flush_tlb_all()
130 if (size <= (current_cpu_data.tlbsizeftlbsets ? in local_flush_tlb_range()
131 current_cpu_data.tlbsize / 8 : in local_flush_tlb_range()
132 current_cpu_data.tlbsize / 2)) { in local_flush_tlb_range()
173 if (size <= (current_cpu_data.tlbsizeftlbsets ? in local_flush_tlb_kernel_range()
174 current_cpu_data.tlbsize / 8 : in local_flush_tlb_kernel_range()
[all …]
Dc-r4k.c231 unsigned long end = start + current_cpu_data.icache.waysize; in tx49_blast_icache32()
232 unsigned long ws_inc = 1UL << current_cpu_data.icache.waybit; in tx49_blast_icache32()
233 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32()
234 current_cpu_data.icache.waybit; in tx49_blast_icache32()
260 unsigned long indexmask = current_cpu_data.icache.waysize - 1; in tx49_blast_icache32_page_indexed()
263 unsigned long ws_inc = 1UL << current_cpu_data.icache.waybit; in tx49_blast_icache32_page_indexed()
264 unsigned long ws_end = current_cpu_data.icache.ways << in tx49_blast_icache32_page_indexed()
265 current_cpu_data.icache.waybit; in tx49_blast_icache32_page_indexed()
955 struct cpuinfo_mips *c = &current_cpu_data; in probe_pcache()
1340 struct cpuinfo_mips *c = &current_cpu_data; in probe_scache()
[all …]
Dtlb-r3k.c48 while (entry < current_cpu_data.tlbsize) { in local_flush_tlb_from()
96 if (size <= current_cpu_data.tlbsize) { in local_flush_tlb_range()
133 if (size <= current_cpu_data.tlbsize) { in local_flush_tlb_kernel_range()
Dsc-mips.c158 struct cpuinfo_mips *c = &current_cpu_data; in mips_sc_probe_cm3()
195 struct cpuinfo_mips *c = &current_cpu_data; in mips_sc_probe()
Dsc-rm7k.c230 struct cpuinfo_mips *c = &current_cpu_data; in rm7k_sc_init()
Dtlb-r8k.c217 struct cpuinfo_mips *c = &current_cpu_data; in probe_tlb()
Dc-octeon.c190 struct cpuinfo_mips *c = &current_cpu_data; in probe_octeon()
Dtlbex.c154 return (current_cpu_data.processor_id & 0xffff00) == in m4kc_tlbp_war()
2306 current_cpu_data.options &= ~MIPS_CPU_HTW; in config_htw_params()
2402 check_for_high_segbits = current_cpu_data.vmbits > (PGDIR_SHIFT + PGD_ORDER + PAGE_SHIFT - 3); in build_tlb_refill_handler()
Dpage.c182 (current_cpu_data.processor_id & 0xff) < 0x02) { in set_prefetch_parameters()
/linux-4.4.14/arch/sh/mm/
Dcache-sh7705.c36 ways = current_cpu_data.dcache.ways; in cache_wback_all()
37 waysize = current_cpu_data.dcache.sets; in cache_wback_all()
38 waysize <<= current_cpu_data.dcache.entry_shift; in cache_wback_all()
47 addr += current_cpu_data.dcache.linesz) { in cache_wback_all()
58 addrstart += current_cpu_data.dcache.way_incr; in cache_wback_all()
104 ways = current_cpu_data.dcache.ways; in __flush_dcache_page()
105 waysize = current_cpu_data.dcache.sets; in __flush_dcache_page()
106 waysize <<= current_cpu_data.dcache.entry_shift; in __flush_dcache_page()
115 addr += current_cpu_data.dcache.linesz) { in __flush_dcache_page()
125 addrstart += current_cpu_data.dcache.way_incr; in __flush_dcache_page()
Dcache-sh3.c47 for (j = 0; j < current_cpu_data.dcache.ways; j++) { in sh3__flush_wback_region()
51 addr = addrstart | (v & current_cpu_data.dcache.entry_mask); in sh3__flush_wback_region()
63 addrstart += current_cpu_data.dcache.way_incr; in sh3__flush_wback_region()
88 (v & current_cpu_data.dcache.entry_mask) | SH_CACHE_ASSOC; in sh3__flush_purge_region()
Dcache-sh4.c154 (current_cpu_data.dcache.sets << in flush_dcache_all()
155 current_cpu_data.dcache.entry_shift) * in flush_dcache_all()
156 current_cpu_data.dcache.ways; in flush_dcache_all()
158 entry_offset = 1 << current_cpu_data.dcache.entry_shift; in flush_dcache_all()
242 map_coherent = (current_cpu_data.dcache.n_aliases && in sh4_flush_cache_page()
Dcache-sh2a.c61 nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_wback_region()
69 end = begin + (nr_ways * current_cpu_data.dcache.way_size); in sh2a__flush_wback_region()
108 int nr_ways = current_cpu_data.dcache.ways; in sh2a__flush_purge_region()
Dcache-debugfs.c49 cache = &current_cpu_data.dcache; in cache_seq_show()
52 cache = &current_cpu_data.icache; in cache_seq_show()
Dtlb-sh3.c71 if ((current_cpu_data.flags & CPU_HAS_MMU_PAGE_ASSOC)) { in local_flush_tlb_one()
/linux-4.4.14/arch/sh/include/asm/
Dbugs.h26 current_cpu_data.loops_per_jiffy = loops_per_jiffy; in check_bugs()
28 switch (current_cpu_data.family) { in check_bugs()
68 printk("CPU: %s\n", get_cpu_subtype(&current_cpu_data)); in check_bugs()
Dprocessor.h95 #define current_cpu_data cpu_data[smp_processor_id()] macro
/linux-4.4.14/arch/mips/kernel/
Dwatch.c21 switch (current_cpu_data.watch_reg_use_cnt) { in mips_install_watch_registers()
50 switch (current_cpu_data.watch_reg_use_cnt) { in mips_read_watch_registers()
62 if (current_cpu_data.watch_reg_use_cnt == 1 && in mips_read_watch_registers()
80 switch (current_cpu_data.watch_reg_count) { in mips_clear_watch_registers()
Dsmp-cps.c170 atomic_set(&mips_cps_core_bootcfg[current_cpu_data.core].vpe_mask, in cps_prepare_cpus()
171 1 << cpu_vpe_id(&current_cpu_data)); in cps_prepare_cpus()
276 if (core != current_cpu_data.core) { in cps_boot_secondary()
337 core_cfg = &mips_cps_core_bootcfg[current_cpu_data.core]; in cps_cpu_disable()
338 atomic_sub(1 << cpu_vpe_id(&current_cpu_data), &core_cfg->vpe_mask); in cps_cpu_disable()
Dmips-cpc.c75 curr_core = current_cpu_data.core; in mips_cpc_lock_other()
89 unsigned curr_core = current_cpu_data.core; in mips_cpc_unlock_other()
Dtime.c108 if ((current_cpu_data.processor_id & 0xff) <= 0x30) in cpu_has_mfc0_count_bug()
Dsmp-gic.c47 if (mips_cpc_present() && (core != current_cpu_data.core)) { in gic_send_ipi_single()
Dmips-cm.c268 curr_core = current_cpu_data.core; in mips_cm_lock_other()
291 unsigned curr_core = current_cpu_data.core; in mips_cm_unlock_other()
Dsmp-cmp.c44 struct cpuinfo_mips *c __maybe_unused = &current_cpu_data; in cmp_init_secondary()
Didle.c130 struct cpuinfo_mips *c = &current_cpu_data; in check_wait()
Dpm-cps.c122 unsigned core = current_cpu_data.core; in cps_pm_enter_state()
157 vpe_cfg = &core_cfg->vpe_config[cpu_vpe_id(&current_cpu_data)]; in cps_pm_enter_state()
670 switch (current_cpu_data.cputype) { in cps_pm_init()
Delf.c209 state->overall_fp_mode = ((current_cpu_data.fpu_id & MIPS_FPIR_F64) && in arch_check_elf()
Dtraps.c628 regs->regs[rt] = min(current_cpu_data.dcache.linesz, in simulate_rdhwr()
629 current_cpu_data.icache.linesz); in simulate_rdhwr()
1745 ((current_cpu_data.processor_id & 0xff0000) == PRID_COMP_MIPS)) { in cache_parity_error()
1785 ((current_cpu_data.processor_id & 0xff0000) == PRID_COMP_MIPS)) { in do_ftlb()
1924 int srssets = current_cpu_data.srsets; in set_vi_srs_handler()
2067 if (current_cpu_data.isa_level & MIPS_CPU_ISA_IV) in configure_status()
Dcpu-probe.c253 struct cpuinfo_mips *c = &current_cpu_data; in check_errata()
1445 struct cpuinfo_mips *c = &current_cpu_data; in cpu_probe()
1551 struct cpuinfo_mips *c = &current_cpu_data; in cpu_report()
Dprocess.c597 !(current_cpu_data.fpu_id & MIPS_FPIR_F64)) in mips_set_process_fp_mode()
/linux-4.4.14/arch/avr32/kernel/
Dtraps.c46 if (current_cpu_data.features & AVR32_FEATURE_OCD) { in die()
54 current_cpu_data.arch_type, in die()
55 current_cpu_data.arch_revision, in die()
56 current_cpu_data.cpu_type, in die()
57 current_cpu_data.cpu_revision); in die()
/linux-4.4.14/arch/mips/include/asm/
Dr4kcache.h562 unsigned long end = start + current_cpu_data.desc.waysize; \
563 unsigned long ws_inc = 1UL << current_cpu_data.desc.waybit; \
564 unsigned long ws_end = current_cpu_data.desc.ways << \
565 current_cpu_data.desc.waybit; \
594 unsigned long indexmask = current_cpu_data.desc.waysize - 1; \
597 unsigned long ws_inc = 1UL << current_cpu_data.desc.waybit; \
598 unsigned long ws_end = current_cpu_data.desc.ways << \
599 current_cpu_data.desc.waybit; \
Dcpu-info.h97 #define current_cpu_data cpu_data[smp_processor_id()] macro
Dcpu-type.h216 const int cpu_type = current_cpu_data.cputype; in current_cpu_type()
Dcpu-features.h76 #define cpu_has_fpu (current_cpu_data.options & MIPS_CPU_FPU)
/linux-4.4.14/arch/m32r/lib/
Ddelay.c80 : "r" (current_cpu_data.loops_per_jiffy) in __const_udelay()
107 : "r" (current_cpu_data.loops_per_jiffy) in __const_udelay()
/linux-4.4.14/arch/mips/vr41xx/common/
Dinit.c46 if (current_cpu_data.processor_id == PRID_VR4131_REV2_0 || in plat_time_init()
47 current_cpu_data.processor_id == PRID_VR4131_REV2_1) in plat_time_init()
/linux-4.4.14/arch/m32r/include/asm/
Dprocessor.h48 #define current_cpu_data cpu_data[smp_processor_id()] macro
51 #define current_cpu_data boot_cpu_data macro
Dbugs.h16 current_cpu_data.loops_per_jiffy = loops_per_jiffy; in check_bugs()
/linux-4.4.14/arch/mips/bcm47xx/
Dprom.c60 struct cpuinfo_mips *c = &current_cpu_data; in prom_init_mem()
133 temp_tlb_entry = current_cpu_data.tlbsize - 1; in early_tlb_init()
Dsetup.c185 struct cpuinfo_mips *c = &current_cpu_data; in plat_mem_setup()
/linux-4.4.14/arch/mn10300/include/asm/
Dprocessor.h62 #define current_cpu_data cpu_data[smp_processor_id()] macro
65 #define current_cpu_data boot_cpu_data macro
/linux-4.4.14/arch/mips/kvm/
Dtlb.c83 for (i = 0; i < current_cpu_data.tlbsize; i++) { in kvm_mips_dump_host_tlbs()
216 if (idx > current_cpu_data.tlbsize) { in kvm_mips_host_tlb_write()
479 if (idx >= current_cpu_data.tlbsize) in kvm_mips_host_tlb_inv()
515 if (index >= current_cpu_data.tlbsize) in kvm_mips_host_tlb_inv_index()
553 int maxentry = current_cpu_data.tlbsize; in kvm_mips_flush_host_tlb()
631 while (entry < current_cpu_data.tlbsize) { in kvm_local_flush_tlb_all()
Demulate.c1134 if (!(current_cpu_data.fpu_id & MIPS_FPIR_F64)) in kvm_mips_emulate_CP0()
2358 arch->gprs[rt] = min(current_cpu_data.dcache.linesz, in kvm_mips_handle_ri()
2359 current_cpu_data.icache.linesz); in kvm_mips_handle_ri()
2365 switch (current_cpu_data.cputype) { in kvm_mips_handle_ri()
/linux-4.4.14/arch/mips/loongson32/common/
Dsetup.c21 unsigned int processor_id = (&current_cpu_data)->processor_id; in get_system_type()
/linux-4.4.14/arch/mips/loongson64/common/
Dplatform.c22 struct cpuinfo_mips *c = &current_cpu_data; in loongson2_cpufreq_init()
Denv.c182 processor_id = (&current_cpu_data)->processor_id; in prom_init_env()
/linux-4.4.14/arch/mips/mti-sead3/
Dsead3-int.c36 (current_cpu_data.options & MIPS_CPU_VEIC) ? "on" : "off"); in arch_init_irq()
/linux-4.4.14/arch/avr32/lib/
Ddelay.c45 : "r"(current_cpu_data.loops_per_jiffy * HZ), "r"(xloops)); in __const_udelay()
/linux-4.4.14/arch/mips/netlogic/common/
Dsmp.c124 current_cpu_data.core = hwtid / NLM_THREADS_PER_CORE; in nlm_init_secondary()
125 current_cpu_data.package = nlm_nodeid(); in nlm_init_secondary()
Dtime.c87 if (current_cpu_data.cputype == CPU_XLR) { in nlm_init_pic_timer()
/linux-4.4.14/arch/mips/ath25/
Ddevices.h35 return (current_cpu_data.cputype == CPU_4KEC); in is_ar2315()
Dar5312.c237 if ((current_cpu_data.processor_id & 0xff) == 0x0a) in ar5312_init_devices()
/linux-4.4.14/arch/mips/netlogic/xlp/
Ddt.c51 switch (current_cpu_data.processor_id & PRID_IMP_MASK) { in xlp_dt_init()
Dsetup.c102 current_cpu_data.tlbsize = ((read_c0_config6() >> 16) & 0xffff) + 1; in plat_mem_setup()
/linux-4.4.14/arch/mips/lib/
Dr3k_dump_tlb.c73 dump_tlb(0, current_cpu_data.tlbsize - 1); in dump_tlb_all()
Ddump_tlb.c171 dump_tlb(0, current_cpu_data.tlbsize - 1); in dump_tlb_all()
/linux-4.4.14/arch/um/include/asm/
Dprocessor-generic.h102 #define current_cpu_data boot_cpu_data macro
/linux-4.4.14/arch/avr32/include/asm/
Dprocessor.h87 #define current_cpu_data boot_cpu_data macro
/linux-4.4.14/drivers/cpufreq/
Dloongson2_cpufreq.c40 current_cpu_data.udelay_val = loops_per_jiffy; in loongson2_cpu_freq_notifier()
Dls1x-cpufreq.c37 current_cpu_data.udelay_val = loops_per_jiffy; in ls1x_cpufreq_notifier()
/linux-4.4.14/arch/mips/include/asm/lasat/
Dlasat.h242 #define IS_LASAT_200() (current_cpu_data.cputype == CPU_R5000)
/linux-4.4.14/arch/avr32/oprofile/
Dop_model_avr32.c220 if (!(current_cpu_data.features & AVR32_FEATURE_PCTR)) in oprofile_arch_init()
/linux-4.4.14/arch/mips/oprofile/
Dop_model_mipsxx.c408 if ((current_cpu_data.processor_id & 0xff) == 0x20) in mipsxx_init()
/linux-4.4.14/arch/mips/pci/
Dpci-vr41xx.c150 else if (current_cpu_data.processor_id >= PRID_VR4131_REV2_1 && in vr41xx_pciu_init()
Dpci.c222 struct cpuinfo_mips *c = &current_cpu_data; in pcibios_set_cache_line_size()
/linux-4.4.14/arch/sh/kernel/
Dtraps_32.c579 if (!(current_cpu_data.flags & CPU_HAS_DSP) || (regs->sr & SR_DSP)) in is_dsp_inst()
/linux-4.4.14/arch/mips/cavium-octeon/
Dsetup.c693 if (current_cpu_data.cputype == CPU_CAVIUM_OCTEON3) { in prom_init()