Home
last modified time | relevance | path

Searched refs:cpu_data (Results 1 – 25 of 142) sorted by relevance

123456

/linux-3.4.99/arch/mips/include/asm/
Dcpu-features.h25 #define cpu_has_tlb (cpu_data[0].options & MIPS_CPU_TLB)
28 #define cpu_has_4kex (cpu_data[0].options & MIPS_CPU_4KEX)
31 #define cpu_has_3k_cache (cpu_data[0].options & MIPS_CPU_3K_CACHE)
36 #define cpu_has_4k_cache (cpu_data[0].options & MIPS_CPU_4K_CACHE)
39 #define cpu_has_tx39_cache (cpu_data[0].options & MIPS_CPU_TX39_CACHE)
51 #define cpu_has_32fpr (cpu_data[0].options & MIPS_CPU_32FPR)
54 #define cpu_has_counter (cpu_data[0].options & MIPS_CPU_COUNTER)
57 #define cpu_has_watch (cpu_data[0].options & MIPS_CPU_WATCH)
60 #define cpu_has_divec (cpu_data[0].options & MIPS_CPU_DIVEC)
63 #define cpu_has_vce (cpu_data[0].options & MIPS_CPU_VCE)
[all …]
Dcpu-info.h84 extern struct cpuinfo_mips cpu_data[];
85 #define current_cpu_data cpu_data[smp_processor_id()]
86 #define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
Dmmu_context.h97 #define asid_cache(cpu) (cpu_data[cpu].asid_cache)
156 int mytlb = (smtc_status & SMTC_TLB_SHARED) ? 0 : cpu_data[cpu].vpe_id; in switch_mm()
228 int mytlb = (smtc_status & SMTC_TLB_SHARED) ? 0 : cpu_data[cpu].vpe_id; in activate_mm()
274 int mytlb = (smtc_status & SMTC_TLB_SHARED) ? 0 : cpu_data[cpu].vpe_id; in drop_mmu_context()
308 || (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id)) in drop_mmu_context()
/linux-3.4.99/arch/sh/mm/
Dtlb-sh5.c23 cpu_data->dtlb.entries = 64; in sh64_tlb_init()
24 cpu_data->dtlb.step = 0x10; in sh64_tlb_init()
26 cpu_data->dtlb.first = DTLB_FIXED | cpu_data->dtlb.step; in sh64_tlb_init()
27 cpu_data->dtlb.next = cpu_data->dtlb.first; in sh64_tlb_init()
29 cpu_data->dtlb.last = DTLB_FIXED | in sh64_tlb_init()
30 ((cpu_data->dtlb.entries - 1) * in sh64_tlb_init()
31 cpu_data->dtlb.step); in sh64_tlb_init()
34 cpu_data->itlb.entries = 64; in sh64_tlb_init()
35 cpu_data->itlb.step = 0x10; in sh64_tlb_init()
37 cpu_data->itlb.first = ITLB_FIXED | cpu_data->itlb.step; in sh64_tlb_init()
[all …]
Dcache-sh5.c249 cpu_data->dcache.entry_mask) >> in sh64_dcache_purge_sets()
250 cpu_data->dcache.entry_shift; in sh64_dcache_purge_sets()
254 set_offset &= (cpu_data->dcache.sets - 1); in sh64_dcache_purge_sets()
256 (set_offset << cpu_data->dcache.entry_shift); in sh64_dcache_purge_sets()
265 eaddr1 = eaddr0 + cpu_data->dcache.way_size * in sh64_dcache_purge_sets()
266 cpu_data->dcache.ways; in sh64_dcache_purge_sets()
269 eaddr += cpu_data->dcache.way_size) { in sh64_dcache_purge_sets()
274 eaddr1 = eaddr0 + cpu_data->dcache.way_size * in sh64_dcache_purge_sets()
275 cpu_data->dcache.ways; in sh64_dcache_purge_sets()
278 eaddr += cpu_data->dcache.way_size) { in sh64_dcache_purge_sets()
[all …]
/linux-3.4.99/tools/perf/util/
Dtrace-event-read.c281 struct cpu_data { struct
292 static struct cpu_data *cpu_data; argument
296 cpu_data[cpu].offset += page_size; in update_cpu_data_index()
297 cpu_data[cpu].size -= page_size; in update_cpu_data_index()
298 cpu_data[cpu].index = 0; in update_cpu_data_index()
306 if (!cpu_data[cpu].page) in get_next_page()
310 if (cpu_data[cpu].size <= page_size) { in get_next_page()
311 free(cpu_data[cpu].page); in get_next_page()
312 cpu_data[cpu].page = NULL; in get_next_page()
321 ret = lseek(input_fd, cpu_data[cpu].offset, SEEK_SET); in get_next_page()
[all …]
/linux-3.4.99/arch/mips/kernel/
Dproc.c22 unsigned int version = cpu_data[n].processor_id; in show_cpuinfo()
23 unsigned int fp_vers = cpu_data[n].fpu_id; in show_cpuinfo()
44 cpu_data[n].options & MIPS_CPU_FPU ? " FPU V%d.%d" : ""); in show_cpuinfo()
49 cpu_data[n].udelay_val / (500000/HZ), in show_cpuinfo()
50 (cpu_data[n].udelay_val / (5000/HZ)) % 100); in show_cpuinfo()
54 seq_printf(m, "tlb_entries\t\t: %d\n", cpu_data[n].tlbsize); in show_cpuinfo()
61 cpu_data[n].watch_reg_count); in show_cpuinfo()
62 for (i = 0; i < cpu_data[n].watch_reg_count; i++) in show_cpuinfo()
64 cpu_data[n].watch_reg_masks[i]); in show_cpuinfo()
76 cpu_data[n].srsets); in show_cpuinfo()
[all …]
Dsmtc.c267 cpu_data[0].tlbsize = current_cpu_data.tlbsize = tlbsiz; in smtc_configure_tlb()
349 memcpy(&cpu_data[cpu], &cpu_data[0], sizeof(struct cpuinfo_mips)); in smtc_tc_setup()
351 if (cpu_data[0].cputype == CPU_34K || in smtc_tc_setup()
352 cpu_data[0].cputype == CPU_1004K) in smtc_tc_setup()
353 cpu_data[cpu].options &= ~MIPS_CPU_FPU; in smtc_tc_setup()
354 cpu_data[cpu].vpe_id = vpe; in smtc_tc_setup()
355 cpu_data[cpu].tc_id = tc; in smtc_tc_setup()
357 cpu_data[cpu].core = (read_vpe_c0_ebase() >> 1) & 0xff; in smtc_tc_setup()
396 cpu_data[cpu].vpe_id = 0; in smtc_prepare_cpus()
397 cpu_data[cpu].tc_id = 0; in smtc_prepare_cpus()
[all …]
/linux-3.4.99/arch/sparc/kernel/
Dprom_64.c472 cpu_data(cpuid).clock_tick = in fill_in_one_cpu()
476 cpu_data(cpuid).dcache_size = in fill_in_one_cpu()
479 cpu_data(cpuid).dcache_line_size = in fill_in_one_cpu()
482 cpu_data(cpuid).icache_size = in fill_in_one_cpu()
485 cpu_data(cpuid).icache_line_size = in fill_in_one_cpu()
488 cpu_data(cpuid).ecache_size = in fill_in_one_cpu()
490 cpu_data(cpuid).ecache_line_size = in fill_in_one_cpu()
492 if (!cpu_data(cpuid).ecache_size || in fill_in_one_cpu()
493 !cpu_data(cpuid).ecache_line_size) { in fill_in_one_cpu()
494 cpu_data(cpuid).ecache_size = in fill_in_one_cpu()
[all …]
Dsmp_32.c56 cpu_data(id).udelay_val = loops_per_jiffy; in smp_store_cpu_info()
59 cpu_data(id).clock_tick = prom_getintdefault(cpu_node, in smp_store_cpu_info()
61 cpu_data(id).prom_node = cpu_node; in smp_store_cpu_info()
68 cpu_data(id).mid = mid; in smp_store_cpu_info()
80 bogosum += cpu_data(cpu).udelay_val; in smp_cpus_done()
468 cpu_data(i).udelay_val/(500000/HZ), in smp_bogo()
469 (cpu_data(i).udelay_val/(5000/HZ))%100); in smp_bogo()
/linux-3.4.99/arch/sh/include/asm/
Dtlb_64.h29 for (tlb = cpu_data->dtlb.first; \
30 tlb <= cpu_data->dtlb.last; \
31 tlb += cpu_data->dtlb.step)
39 for (tlb = cpu_data->itlb.first; \
40 tlb <= cpu_data->itlb.last; \
41 tlb += cpu_data->itlb.step)
Dprocessor.h96 extern struct sh_cpuinfo cpu_data[];
97 #define boot_cpu_data cpu_data[0]
98 #define current_cpu_data cpu_data[smp_processor_id()]
99 #define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
/linux-3.4.99/arch/um/kernel/
Dsmp.c29 struct cpuinfo_um cpu_data[NR_CPUS]; variable
39 os_write_file(cpu_data[cpu].ipi_pipe[1], "R", 1); in smp_send_reschedule()
51 os_write_file(cpu_data[i].ipi_pipe[1], "S", 1); in smp_send_stop()
63 err = os_pipe(cpu_data[cpu].ipi_pipe, 1, 1); in idle_proc()
67 os_set_fd_async(cpu_data[cpu].ipi_pipe[0]); in idle_proc()
116 err = os_pipe(cpu_data[me].ipi_pipe, 1, 1); in smp_prepare_cpus()
120 os_set_fd_async(cpu_data[me].ipi_pipe[0]); in smp_prepare_cpus()
164 fd = cpu_data[cpu].ipi_pipe[0]; in IPI_handler()
225 os_write_file(cpu_data[i].ipi_pipe[1], "C", 1); in smp_call_function()
/linux-3.4.99/kernel/trace/
Dtrace_functions_graph.c30 struct fgraph_cpu_data __percpu *cpu_data; member
476 last_pid = &(per_cpu_ptr(data->cpu_data, cpu)->last_pid); in verif_pid()
784 struct fgraph_cpu_data *cpu_data; in print_graph_entry_leaf() local
787 cpu_data = per_cpu_ptr(data->cpu_data, cpu); in print_graph_entry_leaf()
794 cpu_data->depth = call->depth - 1; in print_graph_entry_leaf()
798 cpu_data->enter_funcs[call->depth] = 0; in print_graph_entry_leaf()
831 struct fgraph_cpu_data *cpu_data; in print_graph_entry_nested() local
834 cpu_data = per_cpu_ptr(data->cpu_data, cpu); in print_graph_entry_nested()
835 cpu_data->depth = call->depth; in print_graph_entry_nested()
839 cpu_data->enter_funcs[call->depth] = call->func; in print_graph_entry_nested()
[all …]
/linux-3.4.99/arch/alpha/include/asm/
Dmmu_context.h89 #define cpu_last_asn(cpuid) (cpu_data[cpuid].last_asn)
141 cpu_data[cpu].asn_lock = 1; in ev5_switch_mm()
152 cpu_data[cpu].need_new_asn = 1; in ev5_switch_mm()
187 cpu_data[cpu].asn_lock = 0; \
189 if (cpu_data[cpu].need_new_asn) { \
191 cpu_data[cpu].need_new_asn = 0; \
/linux-3.4.99/arch/um/include/asm/
Dprocessor-generic.h124 #define my_cpu_data cpu_data[smp_processor_id()]
127 extern struct cpuinfo_um cpu_data[];
128 #define current_cpu_data cpu_data[smp_processor_id()]
130 #define cpu_data (&boot_cpu_data) macro
/linux-3.4.99/arch/ia64/kernel/
Dsmpboot.c438 last_cpuinfo = cpu_data(cpuid - 1); in smp_callin()
656 if (cpu_data(cpu)->threads_per_core == 1 && in remove_siblinginfo()
657 cpu_data(cpu)->cores_per_socket == 1) { in remove_siblinginfo()
771 bogosum += cpu_data(cpu)->loops_per_jiffy; in smp_cpus_done()
784 if ((cpu_data(cpu)->socket_id == cpu_data(i)->socket_id)) { in set_cpu_sibling_map()
787 if (cpu_data(cpu)->core_id == cpu_data(i)->core_id) { in set_cpu_sibling_map()
818 if (cpu_data(cpu)->threads_per_core == 1 && in __cpu_up()
819 cpu_data(cpu)->cores_per_socket == 1) { in __cpu_up()
915 if ((cpu_data(j)->socket_id == cpu_data(i)->socket_id)) { in is_multithreading_enabled()
916 if (cpu_data(j)->core_id == cpu_data(i)->core_id) in is_multithreading_enabled()
Dtopology.c35 if (cpu_data(num)->socket_id == -1) in arch_fix_phys_package_id()
36 cpu_data(num)->socket_id = slot; in arch_fix_phys_package_id()
149 if (cpu_data(cpu)->threads_per_core <= 1 && in cache_shared_cpu_map_setup()
150 cpu_data(cpu)->cores_per_socket <= 1) { in cache_shared_cpu_map_setup()
164 if (cpu_data(cpu)->socket_id == cpu_data(j)->socket_id in cache_shared_cpu_map_setup()
165 && cpu_data(j)->core_id == csi.log1_cid in cache_shared_cpu_map_setup()
166 && cpu_data(j)->thread_id == csi.log1_tid) in cache_shared_cpu_map_setup()
/linux-3.4.99/arch/alpha/kernel/
Dsmp.c55 struct cpuinfo_alpha cpu_data[NR_CPUS]; variable
56 EXPORT_SYMBOL(cpu_data);
84 cpu_data[cpuid].loops_per_jiffy = loops_per_jiffy; in smp_store_cpu_info()
85 cpu_data[cpuid].last_asn = ASN_FIRST_VERSION; in smp_store_cpu_info()
86 cpu_data[cpuid].need_new_asn = 0; in smp_store_cpu_info()
87 cpu_data[cpuid].asn_lock = 0; in smp_store_cpu_info()
96 cpu_data[cpuid].prof_counter = 1; in smp_setup_percpu_timer()
97 cpu_data[cpuid].prof_multiplier = 1; in smp_setup_percpu_timer()
505 bogosum += cpu_data[cpu].loops_per_jiffy; in smp_cpus_done()
521 struct cpuinfo_alpha *data = &cpu_data[cpu]; in smp_percpu_timer_interrupt()
[all …]
/linux-3.4.99/arch/parisc/kernel/
Dprocessor.c48 DEFINE_PER_CPU(struct cpuinfo_parisc, cpu_data);
81 p = &per_cpu(cpu_data, cpunum); in init_percpu_prof()
172 p = &per_cpu(cpu_data, cpuid); in processor_probe()
316 per_cpu(cpu_data, cpunum).fp_rev = coproc_cfg.revision; in init_per_cpu()
317 per_cpu(cpu_data, cpunum).fp_model = coproc_cfg.model; in init_per_cpu()
356 const struct cpuinfo_parisc *cpuinfo = &per_cpu(cpu_data, cpu); in show_cpuinfo()
/linux-3.4.99/arch/ia64/mm/
Dcontig.c153 static void *cpu_data; variable
178 memcpy(cpu_data, src, __per_cpu_end - __per_cpu_start); in per_cpu_init()
179 __per_cpu_offset[cpu] = (char *)cpu_data - __per_cpu_start; in per_cpu_init()
192 ia64_set_kr(IA64_KR_PER_CPU_DATA, __pa(cpu_data) - in per_cpu_init()
195 cpu_data += PERCPU_PAGE_SIZE; in per_cpu_init()
204 cpu_data = __alloc_bootmem(PERCPU_PAGE_SIZE * num_possible_cpus(), in alloc_per_cpu_data()
/linux-3.4.99/arch/m32r/include/asm/
Dprocessor.h47 extern struct cpuinfo_m32r cpu_data[];
48 #define current_cpu_data cpu_data[smp_processor_id()]
50 #define cpu_data (&boot_cpu_data) macro
/linux-3.4.99/arch/mips/sgi-ip27/
Dip27-irq.c70 struct slice_data *si = cpu_data[cpu].data; in alloc_level()
88 struct slice_data *si = cpu_data[cpu].data; in find_level()
163 struct slice_data *si = cpu_data[cpu].data; in ip27_do_irq_mask0()
178 struct slice_data *si = cpu_data[cpu].data; in ip27_do_irq_mask1()
210 struct slice_data *si = cpu_data[cpu].data; in intr_connect_level()
228 struct slice_data *si = cpu_data[cpu].data; in intr_disconnect_level()
401 struct slice_data *si = cpu_data[cpu].data; in install_ipi()
/linux-3.4.99/arch/x86/kernel/
Dsmpboot.c227 cpu_data(cpuid).loops_per_jiffy = loops_per_jiffy; in smp_callin()
312 struct cpuinfo_x86 *c = &cpu_data(id); in smp_store_cpu_info()
334 struct cpuinfo_x86 *c = &cpu_data(cpu); in set_cpu_sibling_map()
340 struct cpuinfo_x86 *o = &cpu_data(i); in set_cpu_sibling_map()
370 if (c->phys_proc_id == cpu_data(i).phys_proc_id) { in set_cpu_sibling_map()
388 cpu_data(i).booted_cores++; in set_cpu_sibling_map()
390 c->booted_cores = cpu_data(i).booted_cores; in set_cpu_sibling_map()
398 struct cpuinfo_x86 *c = &cpu_data(cpu); in cpu_coregroup_mask()
420 bogosum += cpu_data(cpu).loops_per_jiffy; in impress_friends()
779 print_cpu_msr(&cpu_data(cpu)); in do_boot_cpu()
[all …]
/linux-3.4.99/arch/mn10300/include/asm/
Dprocessor.h61 extern struct mn10300_cpuinfo cpu_data[];
62 #define current_cpu_data cpu_data[smp_processor_id()]
64 #define cpu_data &boot_cpu_data macro

123456