/drivers/cpufreq/ |
H A D | s3c2416-cpufreq.c | 90 static unsigned int s3c2416_cpufreq_get_speed(unsigned int cpu) argument 94 if (cpu != 0) 319 * could lead to undervolting the cpu when the clock is reset. 344 if (policy->cpu != 0)
|
H A D | sparc-us2e-cpufreq.c | 1 /* us2e_cpufreq.c: UltraSPARC-IIe cpu frequency support 28 /* Indexed by cpu number. */ 232 static unsigned int us2e_freq_get(unsigned int cpu) argument 238 set_cpus_allowed_ptr(current, cpumask_of(cpu)); 240 clock_tick = sparc64_get_clock_tick(cpu) / 1000; 250 unsigned int cpu = policy->cpu; local 256 set_cpus_allowed_ptr(current, cpumask_of(cpu)); 258 new_freq = clock_tick = sparc64_get_clock_tick(cpu) / 1000; 278 unsigned int cpu local [all...] |
H A D | speedstep-centrino.c | 234 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); local 238 if (centrino_verify_cpu_id(cpu, model->cpu_id) && 240 strcmp(cpu->x86_model_id, model->model_name) == 0)) 247 cpu->x86_model_id); 254 cpu->x86_model_id); 259 per_cpu(centrino_model, policy->cpu) = model; 285 static unsigned extract_clock(unsigned msr, unsigned int cpu, int failsafe) argument 294 if ((per_cpu(centrino_cpu, cpu) == &cpu_ids[CPU_BANIAS]) || 295 (per_cpu(centrino_cpu, cpu) 321 get_cur_freq(unsigned int cpu) argument 345 struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu); local 404 unsigned int cpu = policy->cpu; local 423 unsigned int msr, oldmsr = 0, h = 0, cpu = policy->cpu; local [all...] |
/drivers/cpuidle/ |
H A D | coupled.c | 20 #include <linux/cpu.h> 34 * sequencing restrictions (on Tegra 2, cpu 0 must be the last to 35 * power down), or due to HW bugs (on OMAP4460, a cpu powering up 36 * will corrupt the gic state unless the other cpu runs a work 37 * around). Each cpu has a power state that it can enter without 38 * coordinating with the other cpu (usually Wait For Interrupt, or 44 * This file implements a solution, where each cpu will wait in the 54 * each cpu will increment the ready counter, and continue once the 56 * cpu exits idle, the other cpus will decrement their counter and 59 * requested_state stores the deepest coupled idle state each cpu 304 int cpu = (unsigned long)info; local 321 cpuidle_coupled_poke(int cpu) argument 339 int cpu; local 355 cpuidle_coupled_set_waiting(int cpu, struct cpuidle_coupled *coupled, int next_state) argument 374 cpuidle_coupled_set_not_waiting(int cpu, struct cpuidle_coupled *coupled) argument 397 cpuidle_coupled_set_done(int cpu, struct cpuidle_coupled *coupled) argument 416 cpuidle_coupled_clear_pokes(int cpu) argument 633 int cpu; local 701 int cpu = get_cpu(); local 720 int cpu = get_cpu(); local 745 int cpu = (unsigned long)hcpu; local [all...] |
H A D | cpuidle.c | 17 #include <linux/cpu.h> 47 * cpuidle_play_dead - cpu off-lining 109 * @dev: cpuidle device for this cpu 110 * @drv: cpuidle driver for this cpu 122 trace_cpu_idle_rcuidle(index, dev->cpu); 128 trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, dev->cpu); 178 * @drv: the cpuidle driver tied with the cpu 359 per_cpu(cpuidle_devices, dev->cpu) = NULL; 372 * @dev: the cpu 384 per_cpu(cpuidle_devices, dev->cpu) 475 int cpu; local 501 int ret, cpu; local [all...] |
/drivers/dca/ |
H A D | dca-core.c | 271 * @cpu - the cpuid as returned by get_cpu() 273 u8 dca_common_get_tag(struct device *dev, int cpu) argument 286 tag = dca->ops->get_tag(dca, dev, cpu); 294 * for the given cpu (new api) 296 * @cpu - the cpuid as returned by get_cpu() 298 u8 dca3_get_tag(struct device *dev, int cpu) argument 303 return dca_common_get_tag(dev, cpu); 308 * dca_get_tag - return the dca tag for the given cpu (old api) 309 * @cpu - the cpuid as returned by get_cpu() 311 u8 dca_get_tag(int cpu) argument [all...] |
/drivers/hv/ |
H A D | connection.c | 239 * per-cpu list of channels that have been affinitized to this CPU. 247 int cpu = smp_processor_id(); local 248 struct list_head *pcpu_head = &hv_context.percpu_list[cpu]; 367 int cpu = smp_processor_id(); local 381 page_addr = hv_context.synic_event_page[cpu];
|
H A D | hv.c | 265 int cpu; local 267 for_each_online_cpu(cpu) { 268 hv_context.event_dpc[cpu] = kmalloc(size, GFP_ATOMIC); 269 if (hv_context.event_dpc[cpu] == NULL) { 273 tasklet_init(hv_context.event_dpc[cpu], vmbus_on_event, cpu); 275 hv_context.synic_message_page[cpu] = 278 if (hv_context.synic_message_page[cpu] == NULL) { 283 hv_context.synic_event_page[cpu] = 286 if (hv_context.synic_event_page[cpu] 305 hv_synic_free_cpu(int cpu) argument 318 int cpu; local 340 int cpu = smp_processor_id(); local 402 int cpu = smp_processor_id(); local [all...] |
/drivers/hwmon/ |
H A D | via-cputemp.c | 37 #include <linux/cpu.h> 218 unsigned int cpu; member in struct:pdev_entry 224 static int via_cputemp_device_add(unsigned int cpu) argument 230 pdev = platform_device_alloc(DRVNAME, cpu); 250 pdev_entry->cpu = cpu; 265 static void via_cputemp_device_remove(unsigned int cpu) argument 271 if (p->cpu == cpu) { 285 unsigned int cpu local [all...] |
/drivers/infiniband/hw/qib/ |
H A D | qib_cq.c | 499 int cpu; local 515 cpu = cpumask_first(cpumask_of_node(dd->assigned_node_id)); 516 kthread_bind(task, cpu);
|
/drivers/irqchip/ |
H A D | irq-hip04.c | 25 * registers are banked per-cpu for these sources. 34 #include <linux/cpu.h> 146 unsigned int cpu, shift = (hip04_irq(d) % 2) * 16; local 150 cpu = cpumask_any_and(mask_val, cpu_online_mask); 152 cpu = cpumask_first(mask_val); 154 if (cpu >= NR_HIP04_CPU_IF || cpu >= nr_cpu_ids) 160 bit = hip04_cpu_map[cpu] << shift; 249 unsigned int cpu_mask, cpu = smp_processor_id(); local 255 BUG_ON(cpu > 276 int cpu; local [all...] |
/drivers/isdn/pcbit/ |
H A D | layer2.c | 327 u_char cpu, local 361 cpu = pcbit_readb(dev); 365 if (cpu != 0x06 && cpu != 0x02) { 366 printk(KERN_DEBUG "pcbit: invalid cpu value\n"); 372 * we discard cpu & proc on receiving
|
/drivers/lguest/ |
H A D | interrupts_and_traps.c | 51 static void push_guest_stack(struct lg_cpu *cpu, unsigned long *gstack, u32 val) argument 55 lgwrite(cpu, *gstack, u32, val); 72 static void set_guest_interrupt(struct lg_cpu *cpu, u32 lo, u32 hi, argument 84 if ((cpu->regs->ss&0x3) != GUEST_PL) { 89 virtstack = cpu->esp1; 90 ss = cpu->ss1; 92 origstack = gstack = guest_pa(cpu, virtstack); 99 push_guest_stack(cpu, &gstack, cpu->regs->ss); 100 push_guest_stack(cpu, 168 interrupt_pending(struct lg_cpu *cpu, bool *more) argument 197 try_deliver_interrupt(struct lg_cpu *cpu, unsigned int irq, bool more) argument 266 set_interrupt(struct lg_cpu *cpu, unsigned int irq) argument 341 deliver_trap(struct lg_cpu *cpu, unsigned int num) argument 420 pin_stack_pages(struct lg_cpu *cpu) argument 448 guest_set_stack(struct lg_cpu *cpu, u32 seg, u32 esp, unsigned int pages) argument 475 set_trap(struct lg_cpu *cpu, struct desc_struct *trap, unsigned int num, u32 lo, u32 hi) argument 509 load_guest_idt_entry(struct lg_cpu *cpu, unsigned int num, u32 lo, u32 hi) argument 577 copy_traps(const struct lg_cpu *cpu, struct desc_struct *idt, const unsigned long *def) argument 623 guest_set_clockevent(struct lg_cpu *cpu, unsigned long delta) argument 645 struct lg_cpu *cpu = container_of(timer, struct lg_cpu, hrt); local 653 init_clockdev(struct lg_cpu *cpu) argument [all...] |
/drivers/macintosh/ |
H A D | windfarm_ad7417_sensor.c | 31 u8 cpu; member in struct:wf_ad7417_priv 184 pv->sensors[index].name = kasprintf(GFP_KERNEL, "%s-%d", name, pv->cpu); 272 pv->cpu = cpu_nr; 284 wf_ad7417_add_sensor(pv, 0, "cpu-amb-temp", &wf_ad7417_temp_ops); 285 wf_ad7417_add_sensor(pv, 1, "cpu-diode-temp", &wf_ad7417_adc_ops); 286 wf_ad7417_add_sensor(pv, 2, "cpu-12v-current", &wf_ad7417_adc_ops); 287 wf_ad7417_add_sensor(pv, 3, "cpu-voltage", &wf_ad7417_adc_ops); 288 wf_ad7417_add_sensor(pv, 4, "cpu-current", &wf_ad7417_adc_ops);
|
H A D | windfarm_mpu.h | 75 static inline const struct mpu_data *wf_get_mpu(int cpu) argument 87 sprintf(nodename, "/u3@0,f8000000/i2c@f8001000/cpuid@a%d", cpu ? 2 : 0);
|
H A D | windfarm_smu_sat.c | 214 int shift, cpu, index; local 254 cpu = 2 * chip + core; 264 name = "cpu-voltage"; 268 name = "cpu-current"; 272 name = "cpu-temp"; 277 /* the +16 is enough for "cpu-voltage-n" */ 281 "%s sensor %d (no memory)\n", name, cpu); 290 snprintf((char *)sens->sens.name, 16, "%s-%d", name, cpu); 304 cpu = 2 * sat->nr + core; 308 "sensor %d (no memory)\n", cpu); [all...] |
/drivers/media/common/saa7146/ |
H A D | saa7146_core.c | 225 if (NULL == pt->cpu) 227 pci_free_consistent(pci, pt->size, pt->cpu, pt->dma); 228 pt->cpu = NULL; 233 __le32 *cpu; local 236 cpu = pci_alloc_consistent(pci, PAGE_SIZE, &dma_addr); 237 if (NULL == cpu) { 241 pt->cpu = cpu; 261 ptr = pt->cpu; 282 ptr = pt->cpu; [all...] |
H A D | saa7146_vbi.c | 9 u32 *cpu; local 24 cpu = pci_alloc_consistent(dev->pci, 4096, &dma_addr); 25 if (NULL == cpu) 125 pci_free_consistent(dev->pci, 4096, cpu, dma_addr); 130 pci_free_consistent(dev->pci, 4096, cpu, dma_addr);
|
/drivers/oprofile/ |
H A D | cpu_buffer.c | 85 b->cpu = i; 105 * Spread the work by 1 jiffy per cpu so they dont all 124 /* these works are per-cpu, no need for flush_sync */ 130 * This function prepares the cpu buffer to write a sample. 161 struct op_sample *op_cpu_buffer_read_entry(struct op_entry *entry, int cpu) argument 164 e = ring_buffer_consume(op_ring_buffer, cpu, NULL, NULL); 176 unsigned long op_cpu_buffer_entries(int cpu) argument 178 return ring_buffer_entries_cpu(op_ring_buffer, cpu); 444 * This serves to avoid cpu buffer overflow, and makes sure 448 * we guarantee this will stay on the correct cpu [all...] |
H A D | oprofile_perf.c | 39 u32 cpu = smp_processor_id(); local 42 if (per_cpu(perf_events, cpu)[id] == event) 49 "on cpu %u\n", cpu); 74 static int op_create_counter(int cpu, int event) argument 78 if (!counter_config[event].enabled || per_cpu(perf_events, cpu)[event]) 82 cpu, NULL, 91 "on CPU %d\n", event, cpu); 95 per_cpu(perf_events, cpu)[event] = pevent; 100 static void op_destroy_counter(int cpu, in argument 116 int cpu, event, ret = 0; local 134 int cpu, event; local 256 int cpu, id; local 275 int cpu, ret = 0; local [all...] |
/drivers/scsi/bnx2i/ |
H A D | bnx2i_init.c | 418 * @cpu: cpu index for the online cpu 420 static void bnx2i_percpu_thread_create(unsigned int cpu) argument 425 p = &per_cpu(bnx2i_percpu, cpu); 428 cpu_to_node(cpu), 429 "bnx2i_thread/%d", cpu); 430 /* bind thread to the cpu */ 432 kthread_bind(thread, cpu); 439 static void bnx2i_percpu_thread_destroy(unsigned int cpu) argument 479 unsigned cpu = (unsigned long)hcpu; local 510 unsigned cpu = 0; local 572 unsigned cpu = 0; local [all...] |
/drivers/scsi/ |
H A D | sgiwd93.c | 37 void *cpu; member in struct:ip22_hostdata 76 hcp = hd->cpu; 98 dma_cache_sync(hd->dev, hd->cpu, 99 (unsigned long)(hcp + 1) - (unsigned long)hd->cpu, 109 pr_debug("dma_setup: datainp<%d> hcp<%p> ", datainp, hdata->cpu); 178 struct hpc_chunk *hcp = (struct hpc_chunk *)hdata->cpu; 252 hdata->cpu = dma_alloc_noncoherent(&pdev->dev, HPC_DMA_SIZE, 254 if (!hdata->cpu) { 292 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdata->dma); 308 dma_free_noncoherent(&pdev->dev, HPC_DMA_SIZE, hdata->cpu, hdat [all...] |
/drivers/staging/lustre/lustre/libcfs/ |
H A D | tracefile.h | 192 #define cfs_tcd_for_each_type_lock(tcd, i, cpu) \ 194 (tcd = &(*cfs_trace_data[i])[cpu].tcd) && \ 247 * cpu that owns this page 249 unsigned short cpu; member in struct:cfs_trace_page
|
/drivers/staging/octeon/ |
H A D | ethernet-rx.c | 86 int cpu = smp_processor_id(); local 87 napi_schedule(&cvm_oct_napi[cpu].napi); 93 int cpu; local 101 for_each_online_cpu(cpu) { 102 if (!cpu_test_and_set(cpu, core_state.cpu_state)) { 103 v = smp_call_function_single(cpu, cvm_oct_enable_napi, 114 int cpu = smp_processor_id(); local 116 if (cpu == cvm_irq_cpu) { 121 cpu_clear(cpu, core_state.cpu_state);
|
/drivers/thermal/ |
H A D | cpu_cooling.c | 28 #include <linux/cpu.h> 102 * @cpu: cpu for which check is needed. 105 * it is capable of changing the frequency for a given @cpu. 108 * the frequency of given cpu. !0 in case the frequency is changeable. 110 static int is_cpufreq_valid(int cpu) argument 114 return !cpufreq_get_policy(&policy, cpu); 124 * get_property - fetch a property of interest for a give cpu. 125 * @cpu: cpu fo 142 get_property(unsigned int cpu, unsigned long input, unsigned int *output, enum cpufreq_cooling_property property) argument 224 cpufreq_cooling_get_level(unsigned int cpu, unsigned int freq) argument 247 get_cpu_frequency(unsigned int cpu, unsigned long level) argument 276 unsigned int cpu = cpumask_any(mask); local 358 unsigned int cpu; local [all...] |