Searched defs:cpu (Results 126 - 150 of 240) sorted by relevance

12345678910

/drivers/net/
H A Dveth.c149 int cpu; local
153 for_each_possible_cpu(cpu) {
154 struct pcpu_vstats *stats = per_cpu_ptr(dev->vstats, cpu);
/drivers/oprofile/
H A Dbuffer_sync.c452 static void mark_done(int cpu) argument
456 cpumask_set_cpu(cpu, marked_cpus);
489 void sync_buffer(int cpu) argument
506 add_cpu_switch(cpu);
508 op_cpu_buffer_reset(cpu);
509 available = op_cpu_buffer_entries(cpu);
512 sample = op_cpu_buffer_read_entry(&entry, cpu);
560 mark_done(cpu);
/drivers/pnp/pnpbios/
H A Dbioscalls.c55 #define Q2_SET_SEL(cpu, selname, address, size) \
57 struct desc_struct *gdt = get_cpu_gdt_table((cpu)); \
88 int cpu; local
97 cpu = get_cpu();
98 save_desc_40 = get_cpu_gdt_table(cpu)[0x40 / 8];
99 get_cpu_gdt_table(cpu)[0x40 / 8] = bad_bios_desc;
137 get_cpu_gdt_table(cpu)[0x40 / 8] = save_desc_40;
/drivers/s390/char/
H A Dsclp_early.c105 u16 boot_cpu_address, cpu; local
130 for (cpu = 0; cpu < sccb->ncpurl; cpue++, cpu++) {
/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-cpu.c36 #include <linux/cpu.h>
81 static void cfs_cpu_core_siblings(int cpu, cpumask_t *mask) argument
84 cpumask_copy(mask, topology_core_cpumask(cpu));
88 static void cfs_cpu_ht_siblings(int cpu, cpumask_t *mask) argument
90 cpumask_copy(mask, topology_thread_cpumask(cpu));
280 cfs_cpt_set_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu) argument
286 if (cpu < 0 || cpu >= NR_CPUS || !cpu_online(cpu)) {
287 CDEBUG(D_INFO, "CPU %d is invalid or it's offline\n", cpu);
320 cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu) argument
538 int cpu = smp_processor_id(); local
555 cfs_cpt_of_cpu(struct cfs_cpt_table *cptab, int cpu) argument
616 int cpu; local
954 unsigned int cpu = (unsigned long)hcpu; local
[all...]
/drivers/thermal/
H A Dx86_pkg_temp_thermal.c26 #include <linux/cpu.h>
120 *pkg_temp_thermal_get_phy_entry(unsigned int cpu) argument
122 u16 phys_proc_id = topology_physical_package_id(cpu);
142 static int get_tj_max(int cpu, u32 *tj_max) argument
148 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &eax, &edx);
289 /* Enable threshold interrupt on local package/cpu */
306 /* Disable threshold interrupt on local package/cpu */
319 int cpu = smp_processor_id(); local
320 int phy_id = topology_physical_package_id(cpu);
321 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu);
358 int cpu = smp_processor_id(); local
384 find_siblings_cpu(int cpu) argument
396 pkg_temp_thermal_device_add(unsigned int cpu) argument
477 pkg_temp_thermal_device_remove(unsigned int cpu) argument
517 get_core_online(unsigned int cpu) argument
544 put_core_offline(unsigned int cpu) argument
556 unsigned int cpu = (unsigned long) hcpu; local
[all...]
/drivers/tty/serial/
H A Dtilegx.c304 int cpu; local
311 cpu = tile_uart->irq_cpu;
312 err = gxio_uart_cfg_interrupt(context, cpu_x(cpu), cpu_y(cpu),
334 int cpu = raw_smp_processor_id(); /* pick an arbitrary cpu */ local
365 tile_uart->irq_cpu = cpu;
366 ret = gxio_uart_cfg_interrupt(context, cpu_x(cpu), cpu_y(cpu),
409 int cpu; local
[all...]
/drivers/xen/
H A Dballoon.c41 #include <linux/cpu.h>
608 static int alloc_balloon_scratch_page(int cpu) argument
610 if (per_cpu(balloon_scratch_page, cpu) != NULL)
613 per_cpu(balloon_scratch_page, cpu) = alloc_page(GFP_KERNEL);
614 if (per_cpu(balloon_scratch_page, cpu) == NULL) {
615 pr_warn("Failed to allocate balloon_scratch_page for cpu %d\n", cpu);
626 int cpu = (long)hcpu; local
629 if (alloc_balloon_scratch_page(cpu))
644 int i, cpu; local
701 int cpu; local
[all...]
/drivers/acpi/
H A Dprocessor_throttling.c55 unsigned int cpu; /* cpu nr */ member in struct:throttling_tstate
98 * If tsd package for one cpu is invalid, the coordination
229 unsigned int cpu ; local
234 cpu = p_tstate->cpu;
235 pr = per_cpu(processors, cpu);
242 "unsupported on CPU %d\n", cpu));
268 cpu, target_state));
278 cpu, target_stat
[all...]
/drivers/block/drbd/
H A Ddrbd_req.c40 int cpu; local
41 cpu = part_stat_lock();
42 part_round_stats(cpu, &device->vdisk->part0);
43 part_stat_inc(cpu, &device->vdisk->part0, ios[rw]);
44 part_stat_add(cpu, &device->vdisk->part0, sectors[rw], req->i.size >> 9);
45 (void) cpu; /* The macro invocations above want the cpu argument, I do not like
46 the compiler warning about cpu only assigned but never used... */
56 int cpu; local
57 cpu
[all...]
/drivers/char/
H A Dmmtimer.c103 static void mmtimer_setup_int_0(int cpu, u64 expires) argument
117 ((u64)cpu_physical_id(cpu) <<
133 static void mmtimer_setup_int_1(int cpu, u64 expires) argument
144 ((u64)cpu_physical_id(cpu) <<
155 static void mmtimer_setup_int_2(int cpu, u64 expires) argument
166 ((u64)cpu_physical_id(cpu) <<
181 static int mmtimer_setup(int cpu, int comparator, unsigned long expires, argument
186 mmtimer_setup_int_0(cpu, expires);
189 mmtimer_setup_int_1(cpu, expires);
192 mmtimer_setup_int_2(cpu, expire
239 int cpu; member in struct:mmtimer
[all...]
/drivers/cpufreq/
H A Dacpi-cpufreq.c85 static bool boost_state(unsigned int cpu) argument
92 rdmsr_on_cpu(cpu, MSR_IA32_MISC_ENABLE, &lo, &hi);
96 rdmsr_on_cpu(cpu, MSR_K7_HWCR, &lo, &hi);
105 u32 cpu; local
124 for_each_cpu(cpu, cpumask) {
125 struct msr *reg = per_cpu_ptr(msrs, cpu);
147 struct acpi_cpufreq_data *data = per_cpu(acfreq_data, policy->cpu);
188 struct cpuinfo_x86 *cpu = &cpu_data(cpuid); local
190 return cpu_has(cpu, X86_FEATURE_EST);
195 struct cpuinfo_x86 *cpu local
365 get_cur_freq_on_cpu(unsigned int cpu) argument
483 acpi_cpufreq_guess_freq(struct acpi_cpufreq_data *data, unsigned int cpu) argument
524 unsigned cpu = (long)hcpu; local
647 unsigned int cpu = policy->cpu; local
[all...]
H A Dcpufreq_ondemand.c15 #include <linux/cpu.h>
40 static void ondemand_powersave_bias_init_cpu(int cpu) argument
42 struct od_cpu_dbs_info_s *dbs_info = &per_cpu(od_cpu_dbs_info, cpu);
44 dbs_info->freq_table = cpufreq_frequency_get_table(cpu);
84 policy->cpu);
155 static void od_check_cpu(int cpu, unsigned int load) argument
157 struct od_cpu_dbs_info_s *dbs_info = &per_cpu(od_cpu_dbs_info, cpu);
198 unsigned int cpu = dbs_info->cdbs.cur_policy->cpu; local
200 cpu);
256 int cpu; local
482 int cpu; local
551 unsigned int cpu; local
[all...]
H A Dcpufreq_stats.c12 #include <linux/cpu.h>
24 unsigned int cpu; member in struct:cpufreq_stats
65 static int cpufreq_stats_update(unsigned int cpu) argument
73 stat = per_cpu(cpufreq_stats_table, cpu);
74 all_stat = per_cpu(all_cpufreq_stats, cpu);
93 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu);
97 per_cpu(cpufreq_stats_table, stat->cpu)->total_trans);
104 struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, policy->cpu);
107 cpufreq_stats_update(stat->cpu);
152 unsigned int i, cpu; local
175 unsigned int i, cpu, freq, index; local
307 cpufreq_stats_free_table(unsigned int cpu) argument
323 int cpu; local
346 int cpu; local
367 unsigned int cpu = policy->cpu; local
430 cpufreq_powerstats_create(unsigned int cpu, struct cpufreq_frequency_table *table, int count) argument
519 cpufreq_allstats_create(unsigned int cpu, struct cpufreq_frequency_table *table, int count) argument
565 cpufreq_stats_create_table(unsigned int cpu) argument
600 unsigned int cpu_num, cpu = policy->cpu; local
677 unsigned int cpu; local
714 unsigned int cpu; local
[all...]
H A Dexynos5440-cpufreq.c15 #include <linux/cpu.h>
168 unsigned int tmp, cpu; local
199 for (cpu = 0; cpu < CONFIG_NR_CPUS; cpu++) {
200 tmp = __raw_readl(dvfs_info->base + XMU_C0_3_PSTATE + cpu * 4);
203 __raw_writel(tmp, dvfs_info->base + XMU_C0_3_PSTATE + cpu * 4);
384 dev_err(dvfs_info->dev, "Failed to get cpu clock\n");
H A Dlonghaul.c670 static unsigned int longhaul_get(unsigned int cpu) argument
672 if (cpu)
H A Dpcc-cpufreq.c140 static unsigned int pcc_get_freq(unsigned int cpu) argument
151 pr_debug("get: get_freq for CPU %d\n", cpu);
152 pcc_cpu_data = per_cpu_ptr(pcc_cpu_info, cpu);
170 cpu, status);
177 pr_debug("get: SUCCESS: (virtual) output_offset for cpu %d is "
179 cpu, (pcch_virt_addr + pcc_cpu_data->output_offset),
184 pr_debug("get: frequency for cpu %d is being temporarily"
185 " capped at %d\n", cpu, curr_freq);
205 int cpu; local
207 cpu
248 pcc_get_offset(int cpu) argument
539 unsigned int cpu = policy->cpu; local
[all...]
H A Dpmac64-cpufreq.c318 static unsigned int g5_cpufreq_get_speed(unsigned int cpu) argument
364 valp = of_get_property(cpunode, "cpu-version", NULL);
366 DBG("No cpu-version property !\n");
H A Dpowernow-k7.c562 static unsigned int powernow_get(unsigned int cpu) argument
567 if (cpu)
611 if (policy->cpu != 0)
H A Dpowernow-k8.c61 static inline const struct cpumask *cpu_core_mask(int cpu) argument
142 /* need to init the control msr to a safe value (for each cpu) */
153 pr_debug("cpu%d, init lo 0x%x, hi 0x%x\n", smp_processor_id(), lo, hi);
279 pr_err("failed (cpu%d): req 0x%x 0x%x, curr 0x%x 0x%x\n",
285 pr_debug("transitioned (cpu%d): new fid 0x%x, vid 0x%x\n",
299 pr_debug("ph1 (cpu%d): start, currfid 0x%x, currvid 0x%x, reqvid 0x%x, rvo 0x%x\n",
357 pr_debug("ph2 (cpu%d): starting, currfid 0x%x, currvid 0x%x, reqfid 0x%x\n",
424 pr_debug("ph3 (cpu%d): starting, currfid 0x%x, currvid 0x%x\n",
623 if (cpumask_first(cpu_core_mask(data->cpu)) == data->cpu)
1046 int rc, cpu; local
1125 int cpu; local
1148 powernowk8_get(unsigned int cpu) argument
[all...]
H A Dpowernow-k8.h9 unsigned int cpu; member in struct:powernow_k8_data
/drivers/dma/
H A Ddmaengine.c386 * dma_chan_is_local - returns true if the channel is in the same numa-node as the cpu
388 static bool dma_chan_is_local(struct dma_chan *chan, int cpu) argument
391 return node == -1 || cpumask_test_cpu(cpu, cpumask_of_node(node));
395 * min_chan - returns the channel with min count and in the same numa-node as the cpu
397 * @cpu: cpu index which the channel should be close to
399 * If some channels are close to the given cpu, the one with the lowest
400 * reference count is returned. Otherwise, cpu is ignored and only the
404 static struct dma_chan *min_chan(enum dma_transaction_type cap, int cpu) argument
421 if (dma_chan_is_local(chan, cpu))
448 int cpu; local
[all...]
/drivers/gpio/
H A Dgpio-mvebu.c62 #define GPIO_EDGE_MASK_MV78200_OFF(cpu) ((cpu) ? 0x30 : 0x18)
63 #define GPIO_LEVEL_MASK_MV78200_OFF(cpu) ((cpu) ? 0x34 : 0x1C)
68 #define GPIO_EDGE_CAUSE_ARMADAXP_OFF(cpu) ((cpu) * 0x4)
69 #define GPIO_EDGE_MASK_ARMADAXP_OFF(cpu) (0x10 + (cpu) * 0x4)
70 #define GPIO_LEVEL_MASK_ARMADAXP_OFF(cpu) (0x20 + (cpu) *
119 int cpu; local
135 int cpu; local
153 int cpu; local
568 int i, cpu, id; local
[all...]
/drivers/hv/
H A Dchannel_mgmt.c195 int cpu = smp_processor_id(); local
197 list_add_tail(&channel->percpu_list, &hv_context.percpu_list[cpu]);
412 * We will bind channels that are not performance critical to cpu 0 and
434 * delivered on cpu 0.
436 * channel, bind it to cpu 0.
H A Dvmbus_drv.c583 int cpu = smp_processor_id(); local
584 void *page_addr = hv_context.synic_message_page[cpu];
626 int cpu = smp_processor_id(); local
632 page_addr = hv_context.synic_event_page[cpu];
663 tasklet_schedule(hv_context.event_dpc[cpu]);
666 page_addr = hv_context.synic_message_page[cpu];
706 * Initialize the per-cpu interrupt state and

Completed in 377 milliseconds

12345678910