/drivers/lguest/ |
H A D | lguest_user.c | 24 * The notification value is in cpu->pending_notify: we return true if it went 27 bool send_notify_to_eventfd(struct lg_cpu *cpu) argument 42 * cpu->lg->eventfds before cpu->lg->eventfds is set. Sounds crazy, 49 map = rcu_dereference(cpu->lg->eventfds); 55 if (map->map[i].addr == cpu->pending_notify) { 57 cpu->pending_notify = 0; 61 /* We're done with the rcu-protected variable cpu->lg->eventfds. */ 65 return cpu->pending_notify == 0; 180 static int user_send_irq(struct lg_cpu *cpu, cons argument 204 struct lg_cpu *cpu; local 251 lg_cpu_start(struct lg_cpu *cpu, unsigned id, unsigned long start_ip) argument [all...] |
/drivers/lguest/x86/ |
H A D | core.c | 38 #include <linux/cpu.h> 65 /* This cpu's struct lguest_pages (after the Switcher text page) */ 66 static struct lguest_pages *lguest_pages(unsigned int cpu) argument 68 return &(((struct lguest_pages *)(switcher_addr + PAGE_SIZE))[cpu]); 84 static void copy_in_guest_info(struct lg_cpu *cpu, struct lguest_pages *pages) argument 92 if (__this_cpu_read(lg_last_cpu) != cpu || cpu->last_pages != pages) { 93 __this_cpu_write(lg_last_cpu, cpu); 94 cpu->last_pages = pages; 95 cpu 132 run_guest_once(struct lg_cpu *cpu, struct lguest_pages *pages) argument 200 lguest_arch_run_guest(struct lg_cpu *cpu) argument 274 emulate_insn(struct lg_cpu *cpu) argument 363 lguest_arch_handle_trap(struct lg_cpu *cpu) argument 614 lguest_arch_do_hcall(struct lg_cpu *cpu, struct hcall_args *args) argument 634 lguest_arch_init_hypercalls(struct lg_cpu *cpu) argument 683 lguest_arch_setup_regs(struct lg_cpu *cpu, unsigned long start) argument [all...] |
/drivers/media/common/ |
H A D | btcx-risc.c | 51 if (NULL == risc->cpu) 58 pci_free_consistent(pci, risc->size, risc->cpu, risc->dma); 66 __le32 *cpu; local 69 if (NULL != risc->cpu && risc->size < size) 71 if (NULL == risc->cpu) { 72 cpu = pci_alloc_consistent(pci, size, &dma); 73 if (NULL == cpu) 75 risc->cpu = cpu; 80 printk("btcx: riscmem alloc [%d] dma=%lx cpu [all...] |
/drivers/sh/intc/ |
H A D | handle.c | 210 unsigned int cpu; local 217 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_E(handle)); cpu++) { 218 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); 223 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_D(handle)); cpu++) { 224 addr = INTC_REG(d, _INTC_ADDR_D(handle), cpu);
|
/drivers/staging/lustre/lustre/libcfs/ |
H A D | libcfs_cpu.c | 54 CERROR("Can't support cpu partition number %d\n", ncpt); 115 cfs_cpt_set_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu) argument 122 cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu) argument 180 cfs_cpu_ht_nsiblings(int cpu) argument 194 cfs_cpt_of_cpu(struct cfs_cpt_table *cptab, int cpu) argument
|
/drivers/tty/hvc/ |
H A D | hvc_tile.c | 84 int cpu = raw_smp_processor_id(); /* Choose an arbitrary cpu */ local 85 HV_Coord coord = { .x = cpu_x(cpu), .y = cpu_y(cpu) };
|
/drivers/base/ |
H A D | cpu.c | 9 #include <linux/cpu.h> 34 static void change_cpu_under_node(struct cpu *cpu, argument 37 int cpuid = cpu->dev.id; 40 cpu->node_id = to_nid; 45 struct cpu *cpu = container_of(dev, struct cpu, dev); local 56 * When hot adding memory to memoryless node and enabling a cpu 57 * on the node, node number of the cpu ma 71 unregister_cpu(struct cpu *cpu) argument 141 struct cpu *cpu = container_of(dev, struct cpu, dev); local 337 register_cpu(struct cpu *cpu, int num) argument 364 get_cpu_device(unsigned cpu) argument 402 cpu_is_hotpluggable(unsigned cpu) argument [all...] |
/drivers/bcma/ |
H A D | driver_mips.c | 235 bcma_err(bus, "No PMU available, need this to get the cpu clock\n"); 351 struct bcma_device *cpu, *pcie, *i2s; local 360 cpu = bcma_find_core(bus, BCMA_CORE_MIPS_74K); 363 if (cpu && pcie && i2s && 364 bcma_aread32(cpu, BCMA_MIPS_OOBSELINA74) == 0x08060504 && 367 bcma_awrite32(cpu, BCMA_MIPS_OOBSELINA74, 0x07060504);
|
/drivers/block/rsxx/ |
H A D | dev.c | 117 int cpu; local 119 cpu = part_stat_lock(); 121 part_round_stats(cpu, part0); 134 int cpu; local 136 cpu = part_stat_lock(); 138 part_stat_add(cpu, part0, sectors[rw], bio_sectors(bio)); 139 part_stat_inc(cpu, part0, ios[rw]); 140 part_stat_add(cpu, part0, ticks[rw], duration); 142 part_round_stats(cpu, part0);
|
/drivers/clk/mvebu/ |
H A D | clk-cpu.c | 36 int cpu; member in struct:cpu_clk 56 div = (reg >> (cpuclk->cpu * 8)) & SYS_CTRL_CLK_DIVIDER_MASK; 85 & (~(SYS_CTRL_CLK_DIVIDER_MASK << (cpuclk->cpu * 8)))) 86 | (div << (cpuclk->cpu * 8)); 89 reload_mask = 1 << (20 + cpuclk->cpu); 149 return mvebu_pmsu_dfs_request(cpuclk->cpu); 185 for_each_node_by_type(dn, "cpu") 196 for_each_node_by_type(dn, "cpu") { 201 int cpu, err; local 206 err = of_property_read_u32(dn, "reg", &cpu); [all...] |
/drivers/clk/sirf/ |
H A D | clk-atlas6.c | 64 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator in enum:atlas6_clk_index 143 clk_register_clkdev(atlas6_clks[cpu], NULL, "cpu");
|
H A D | clk-prima2.c | 63 mf, io, cpu, uart0, uart1, uart2, tsc, i2c0, i2c1, spi0, enumerator in enum:prima2_clk_index 142 clk_register_clkdev(prima2_clks[cpu], NULL, "cpu");
|
/drivers/clocksource/ |
H A D | arm_global_timer.c | 17 #include <linux/cpu.h> 169 int cpu = smp_processor_id(); local 176 clk->cpumask = cpumask_of(cpu); 255 pr_warn("global-timer: non support for this cpu version.\n"); 300 pr_warn("global-timer: unable to register cpu notifier.\n");
|
H A D | dw_apb_timer.c | 200 * @cpu: The CPU the events will be targeted at. 215 dw_apb_clockevent_init(int cpu, const char *name, unsigned rating, argument 233 dw_ced->ced.cpumask = cpumask_of(cpu);
|
H A D | qcom-timer.c | 19 #include <linux/cpu.h> 124 int cpu = smp_processor_id(); local 133 evt->cpumask = cpumask_of(cpu); 160 * Grab cpu pointer in each case to avoid spurious 259 if (of_property_read_u32(np, "cpu-offset", &percpu_offset))
|
H A D | time-armada-370-xp.c | 35 #include <linux/cpu.h> 173 int cpu = smp_processor_id(); local 189 evt->cpumask = cpumask_of(cpu); 207 * Grab cpu pointer in each case to avoid spurious
|
H A D | timer-marco.c | 13 #include <linux/cpu.h> 74 int cpu = smp_processor_id(); local 77 writel_relaxed(BIT(cpu), sirfsoc_timer_base + SIRFSOC_TIMER_INTR_STATUS); 80 sirfsoc_timer_count_disable(cpu); 104 int cpu = smp_processor_id(); local 107 sirfsoc_timer_count_disable(cpu); 110 4 * cpu); 112 4 * cpu); 115 sirfsoc_timer_count_enable(cpu); 184 int cpu local 213 int cpu = smp_processor_id(); local [all...] |
/drivers/cpufreq/ |
H A D | cpufreq-dt.c | 18 #include <linux/cpu.h> 110 static int allocate_resources(int cpu, struct device **cdev, argument 117 char *reg_cpu0 = "cpu0", *reg_cpu = "cpu", *reg; 119 cpu_dev = get_cpu_device(cpu); 121 pr_err("failed to get cpu%d device\n", cpu); 126 if (!cpu) 135 * If cpu's regulator supply node is present, but regulator is 139 dev_dbg(cpu_dev, "cpu%d regulator not ready, retry\n", 140 cpu); [all...] |
H A D | cpufreq-nforce2.c | 232 * @cpu: CPU number 236 static unsigned int nforce2_get(unsigned int cpu) argument 238 if (cpu) 264 freqs.old = nforce2_get(policy->cpu); 316 if (policy->cpu != 0)
|
H A D | cpufreq_conservative.c | 47 static void cs_check_cpu(int cpu, unsigned int load) argument 49 struct cs_cpu_dbs_info_s *dbs_info = &per_cpu(cs_cpu_dbs_info, cpu); 109 unsigned int cpu = dbs_info->cdbs.cur_policy->cpu; local 111 cpu); 121 dbs_check_cpu(dbs_data, cpu); 132 &per_cpu(cs_cpu_dbs_info, freq->cpu);
|
H A D | cpufreq_governor.c | 33 void dbs_check_cpu(struct dbs_data *dbs_data, int cpu) argument 35 struct cpu_dbs_common_info *cdbs = dbs_data->cdata->get_cpu_cdbs(cpu); 46 dbs_data->cdata->get_cpu_dbs_info_s(cpu); 79 * the iowait time to the cpu idle time. 159 dbs_data->cdata->gov_check_cpu(cpu, max_load); 163 static inline void __gov_queue_work(int cpu, struct dbs_data *dbs_data, argument 166 struct cpu_dbs_common_info *cdbs = dbs_data->cdata->get_cpu_cdbs(cpu); 168 mod_delayed_work_on(cpu, system_wq, &cdbs->work, delay); 211 /* Will return if we need to evaluate cpu load again or not */ 252 unsigned int sampling_rate, latency, ignore_nice, j, cpu local [all...] |
H A D | e_powersaver.c | 90 static unsigned int eps_get(unsigned int cpu) argument 95 if (cpu) 97 centaur = eps_cpu[cpu]; 157 unsigned int cpu = policy->cpu; local 161 if (unlikely(eps_cpu[cpu] == NULL)) 163 centaur = eps_cpu[cpu]; 193 if (policy->cpu != 0) 299 if (!acpi_processor_get_bios_limit(policy->cpu, &limit)) { 334 /* Allocate private data and frequency table for current cpu */ 382 unsigned int cpu = policy->cpu; local [all...] |
H A D | maple-cpufreq.c | 137 static unsigned int maple_cpufreq_get_speed(unsigned int cpu) argument
|
H A D | powernv-cpufreq.c | 240 pr_debug("cpu %d pmsr %016lX pstate_id %d frequency %d kHz\n", 247 * firmware for CPU 'cpu'. This value is reported through the sysfs 250 static unsigned int powernv_cpufreq_get(unsigned int cpu) argument 254 smp_call_function_any(cpu_sibling_mask(cpu), powernv_read_cpu_freq, 283 pr_debug("Setting cpu %d pmcr to %016lX\n", 326 base = cpu_first_thread_sibling(policy->cpu); 337 int cpu; local 341 for_each_online_cpu(cpu) { 342 cpufreq_get_policy(&cpu_policy, cpu); 358 smp_call_function_single(policy->cpu, set_pstat [all...] |
H A D | pxa3xx-cpufreq.c | 153 static unsigned int pxa3xx_cpufreq_get(unsigned int cpu) argument 163 if (policy->cpu != 0)
|