Searched refs:cpu (Results 1 - 25 of 154) sorted by relevance

1234567

/external/clang/test/CodeGen/
H A Dpr4349.c10 struct cpu struct
14 extern struct cpu cpu;
19 // CHECK: @svars1 = global [1 x %struct.svar] [%struct.svar { i8* bitcast (%struct.cpu* @cpu to i8*) }]
22 { &((cpu.pc).w[0]) }
24 // CHECK: @svars2 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr (i8* bitcast (%struct.cpu* @cpu to i8*), i64 1) }]
27 { &((cpu.pc).b[0][1]) }
29 // CHECK: @svars3 = global [1 x %struct.svar] [%struct.svar { i8* getelementptr (i8* bitcast (%struct.cpu*
[all...]
/external/kernel-headers/original/linux/
H A Dirq_cpustat.h6 * architecture. Some arch (like s390) have per cpu hardware pages and
21 #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
29 #define nmi_count(cpu) __IRQ_STAT((cpu), __nmi_count) /* i386 */
H A Dcpu.h2 * include/linux/cpu.h - generic cpu definition
5 * basic 'struct cpu' here, which can be embedded in per-arch
8 * Basic handling of the devices is done in drivers/base/cpu.c
11 * CPUs are exported via sysfs in the class/cpu/devices/
14 * Per-cpu interfaces can be implemented using a struct device_interface.
28 struct cpu { struct
34 extern int register_cpu(struct cpu *cpu, int num);
35 extern struct sys_device *get_cpu_sysdev(unsigned cpu);
89 cpu_is_offline(int cpu) argument
[all...]
H A Dnode.h36 extern int register_cpu_under_node(unsigned int cpu, unsigned int nid);
37 extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid);
47 static inline int register_cpu_under_node(unsigned int cpu, unsigned int nid) argument
51 static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) argument
H A Dcpumask.h20 * void cpu_set(cpu, mask) turn on bit 'cpu' in mask
21 * void cpu_clear(cpu, mask) turn off bit 'cpu' in mask
24 * int cpu_isset(cpu, mask) true iff bit 'cpu' set in mask
25 * int cpu_test_and_set(cpu, mask) test and set bit 'cpu' in mask
44 * int next_cpu(cpu, mask) Next cpu pas
92 __cpu_set(int cpu, volatile cpumask_t *dstp) argument
98 __cpu_clear(int cpu, volatile cpumask_t *dstp) argument
119 __cpu_test_and_set(int cpu, cpumask_t *addr) argument
[all...]
H A Dkernel_stat.h35 #define kstat_cpu(cpu) per_cpu(kstat, cpu)
46 int cpu, sum = 0; local
48 for_each_possible_cpu(cpu)
49 sum += kstat_cpu(cpu).irqs[irq];
H A Dpercpu.h25 * Use this to get to a cpu's version of the per-cpu object allocated using
29 #define per_cpu_ptr(ptr, cpu) \
32 (__typeof__(ptr))__p->ptrs[(cpu)]; \
40 #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); (ptr); })
H A Drcupdate.h107 int cpu; member in struct:rcu_data
123 static inline void rcu_qsctr_inc(int cpu) argument
125 struct rcu_data *rdp = &per_cpu(rcu_data, cpu);
128 static inline void rcu_bh_qsctr_inc(int cpu) argument
130 struct rcu_data *rdp = &per_cpu(rcu_bh_data, cpu);
134 extern int rcu_pending(int cpu);
135 extern int rcu_needs_cpu(int cpu);
274 extern void rcu_check_callbacks(int cpu, int user);
275 extern void rcu_restart_cpu(int cpu);
/external/chromium/base/
H A Dcpu_unittest.cc5 #include "base/cpu.h"
17 base::CPU cpu; local
20 ASSERT_TRUE(cpu.has_mmx());
25 if (cpu.has_sse()) {
30 if (cpu.has_sse2()) {
35 if (cpu.has_sse3()) {
40 if (cpu.has_ssse3()) {
45 if (cpu.has_sse41()) {
50 if (cpu.has_sse42()) {
55 ASSERT_TRUE(cpu
[all...]
/external/kernel-headers/original/asm-arm/
H A Dsmp.h23 #define raw_smp_processor_id() (current_thread_info()->cpu)
67 extern int boot_secondary(unsigned int cpu, struct task_struct *);
78 extern void platform_secondary_init(unsigned int cpu);
90 extern int mach_cpu_disable(unsigned int cpu);
92 extern void __cpu_die(unsigned int cpu);
95 extern void platform_cpu_die(unsigned int cpu);
96 extern int platform_cpu_kill(unsigned int cpu);
97 extern void platform_cpu_enable(unsigned int cpu);
103 extern void local_timer_setup(unsigned int cpu);
108 extern void local_timer_stop(unsigned int cpu);
117 local_timer_setup(unsigned int cpu) argument
121 local_timer_stop(unsigned int cpu) argument
[all...]
/external/oprofile/libop/tests/
H A Dcpu_type_tests.c47 static void test(struct cpu_type const * cpu) argument
52 name = op_get_cpu_name(cpu->type);
53 if (cpu->type != CPU_NO_GOOD && strcmp(cpu->name, name)) {
54 printf("for %d expect %s found %s\n", cpu->type, cpu->name,
58 if (cpu->type == CPU_NO_GOOD && strcmp("invalid cpu type", name)) {
59 printf("for %d expect %s found %s\n", cpu->type,
60 "invalid cpu typ
75 struct cpu_type * cpu; local
[all...]
/external/iptables/include/linux/netfilter/
H A Dxt_cpu.h7 __u32 cpu; member in struct:xt_cpu_info
/external/kernel-headers/original/asm-x86/
H A Dirq_32.h28 extern void irq_ctx_init(int cpu);
29 extern void irq_ctx_exit(int cpu);
32 # define irq_ctx_init(cpu) do { } while (0)
33 # define irq_ctx_exit(cpu) do { } while (0)
H A Dsmp_32.h46 #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu)
48 extern void set_cpu_sibling_map(int cpu);
53 extern void remove_siblinginfo(int cpu);
60 int (*cpu_up)(unsigned cpu);
64 void (*smp_send_reschedule)(int cpu);
80 static inline int __cpu_up(unsigned int cpu) argument
82 return smp_ops.cpu_up(cpu);
93 static inline void smp_send_reschedule(int cpu) argument
95 smp_ops.smp_send_reschedule(cpu);
[all...]
H A Dhardirq_32.h23 #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
/external/webrtc/src/system_wrappers/source/
H A Dcpu_mac.cc42 for (unsigned int cpu= 0; cpu < cpuCount; cpu++)
47 ticks += cpuLoadInfo[cpu].cpu_ticks[state];
49 _lastTickCount[cpu] = ticks;
107 for (unsigned int cpu = 0; cpu < cpuCount; cpu++)
112 ticks += cpuLoadInfo[cpu].cpu_ticks[state];
116 _cpuUsage[cpu]
[all...]
/external/valgrind/main/tests/
H A Dx86_amd64_features.c45 static Bool go(char* cpu) argument
50 if ( strcmp( cpu, "x86-fpu" ) == 0 ) {
53 } else if ( strcmp( cpu, "x86-cmov" ) == 0 ) {
56 } else if ( strcmp( cpu, "x86-mmx" ) == 0 ) {
59 } else if ( strcmp( cpu, "x86-mmxext" ) == 0 ) {
62 } else if ( strcmp( cpu, "x86-sse" ) == 0 ) {
65 } else if ( strcmp( cpu, "x86-sse2" ) == 0 ) {
68 } else if ( strcmp( cpu, "x86-sse3" ) == 0 ) {
71 } else if ( strcmp( cpu, "x86-ssse3" ) == 0 ) {
74 } else if ( strcmp( cpu, "x8
120 go(char* cpu) argument
[all...]
/external/blktrace/
H A Dverify_blkparse.c13 int major, minor, cpu, nr, alias; local
36 if (sscanf(p, "%3d,%3d %2d %8d %lf", &major, &minor, &cpu, &seq, &this_time) != 5)
47 if (cpu >= MAX_CPUS) {
48 fprintf(stderr, "cpu%d too large\n", cpu);
52 if (last_seq[cpu] == seq) {
57 last_seq[cpu] = seq;
/external/oprofile/module/x86/
H A Dop_nmi.c48 uint const cpu = op_cpu_id(); local
49 struct op_msrs const * const msrs = &cpu_msrs[cpu];
51 model->check_ctrs(cpu, msrs, regs);
58 uint const cpu = op_cpu_id(); local
59 struct op_msrs const * const msrs = &cpu_msrs[cpu];
75 uint const cpu = op_cpu_id(); local
76 struct op_msrs const * const msrs = &cpu_msrs[cpu];
78 if (info && (*((uint *)info) != cpu))
87 uint const cpu = op_cpu_id(); local
88 struct op_msrs const * const msrs = &cpu_msrs[cpu];
97 pmc_select_start(uint cpu) argument
106 pmc_select_stop(uint cpu) argument
117 int cpu, i; local
190 uint const cpu = op_cpu_id(); local
243 uint const cpu = op_cpu_id(); local
[all...]
H A Dcpu_type.c82 unsigned int cpu;
99 cpu = 0;
101 if (apic_id[cpu] & ~mask) {
105 cpu++;
106 } while (cpu < smp_num_cpus);
/external/webrtc/src/system_wrappers/test/
H A DTest.cpp41 CpuWrapper* cpu = CpuWrapper::CreateCpu(); local
48 WebRtc_Word32 total = cpu->CpuUsageMultiCore(numCores, cores);
51 printf("Total cpu:%d\n", (int)total);
62 delete cpu;
/external/qemu/hw/
H A Darm_gic.c41 for per-cpu interrupts. This seems strange. */
70 #define GIC_GET_PRIORITY(irq, cpu) \
71 (((irq) < 32) ? s->priority1[irq][cpu] : s->priority2[(irq) - 32])
109 int cpu; local
112 for (cpu = 0; cpu < NCPU; cpu++) {
113 cm = 1 << cpu;
114 s->current_pending[cpu] = 1023;
115 if (!s->enabled || !s->cpu_enabled[cpu]) {
142 gic_set_pending_private(gic_state *s, int cpu, int irq) argument
175 gic_set_running_irq(gic_state *s, int cpu, int irq) argument
186 gic_acknowledge_irq(gic_state *s, int cpu) argument
205 gic_complete_irq(gic_state * s, int cpu, int irq) argument
247 int cpu; local
380 int cpu; local
532 int cpu; local
574 gic_cpu_read(gic_state *s, int cpu, int offset) argument
596 gic_cpu_write(gic_state *s, int cpu, int offset, uint32_t value) argument
[all...]
/external/kernel-headers/original/asm-generic/
H A Dpercpu.h17 #define per_cpu(var, cpu) (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]))
34 #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu__##var))
H A Dtopology.h33 #define cpu_to_node(cpu) (0)
/external/oprofile/libpp/
H A Dfilename_spec.cpp38 if (!tid.match(rhs.tid) || !cpu.match(rhs.cpu) ||
72 cpu.set(parsed.cpu);

Completed in 1893 milliseconds

1234567