Home
last modified time | relevance | path

Searched refs:cpumask (Results 1 – 25 of 85) sorted by relevance

1234

/drivers/cpuidle/
Dcpuidle-big_little.c151 struct cpumask *cpumask; in bl_idle_driver_init() local
154 cpumask = kzalloc(cpumask_size(), GFP_KERNEL); in bl_idle_driver_init()
155 if (!cpumask) in bl_idle_driver_init()
160 cpumask_set_cpu(cpu, cpumask); in bl_idle_driver_init()
162 drv->cpumask = cpumask; in bl_idle_driver_init()
226 kfree(bl_idle_big_driver.cpumask); in bl_idle_init()
228 kfree(bl_idle_little_driver.cpumask); in bl_idle_init()
Ddt_idle_states.c94 const cpumask_t *cpumask) in idle_state_valid() argument
107 for (cpu = cpumask_next(cpumask_first(cpumask), cpumask); in idle_state_valid()
108 cpu < nr_cpu_ids; cpu = cpumask_next(cpu, cpumask)) { in idle_state_valid()
153 const cpumask_t *cpumask; in dt_init_idle_driver() local
164 cpumask = drv->cpumask ? : cpu_possible_mask; in dt_init_idle_driver()
165 cpu_node = of_cpu_device_node_get(cpumask_first(cpumask)); in dt_init_idle_driver()
172 if (!idle_state_valid(state_node, i, cpumask)) { in dt_init_idle_driver()
Ddriver.c50 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_unset_driver()
72 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_set_driver()
165 if (!drv->cpumask) in __cpuidle_driver_init()
166 drv->cpumask = (struct cpumask *)cpu_possible_mask; in __cpuidle_driver_init()
242 on_each_cpu_mask(drv->cpumask, cpuidle_setup_broadcast_timer, in __cpuidle_register_driver()
266 on_each_cpu_mask(drv->cpumask, cpuidle_setup_broadcast_timer, in __cpuidle_unregister_driver()
Dcpuidle.c486 for_each_cpu(cpu, drv->cpumask) { in cpuidle_unregister()
507 const struct cpumask *const coupled_cpus) in cpuidle_register()
518 for_each_cpu(cpu, drv->cpumask) { in cpuidle_register()
Dcpuidle-powernv.c173 drv->cpumask = (struct cpumask *)cpu_present_mask; in powernv_cpuidle_driver_init()
/drivers/irqchip/
Dirq-hip04.c142 const struct cpumask *mask_val, in hip04_irq_set_affinity()
226 u32 cpumask; in hip04_irq_dist_init() local
235 cpumask = hip04_get_cpumask(intc); in hip04_irq_dist_init()
236 cpumask |= cpumask << 16; in hip04_irq_dist_init()
238 writel_relaxed(cpumask, base + GIC_DIST_TARGET + ((i * 2) & ~3)); in hip04_irq_dist_init()
274 static void hip04_raise_softirq(const struct cpumask *mask, unsigned int irq) in hip04_raise_softirq()
Dirq-metag.c44 const struct cpumask *cpumask, bool force);
193 const struct cpumask *cpumask, bool force) in metag_internal_irq_set_affinity() argument
204 cpu = cpumask_any_and(cpumask, cpu_online_mask); in metag_internal_irq_set_affinity()
Dirq-gic.c221 static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val, in gic_set_affinity()
381 u32 cpumask; in gic_dist_init() local
390 cpumask = gic_get_cpumask(gic); in gic_dist_init()
391 cpumask |= cpumask << 8; in gic_dist_init()
392 cpumask |= cpumask << 16; in gic_dist_init()
394 writel_relaxed(cpumask, base + GIC_DIST_TARGET + i * 4 / 4); in gic_dist_init()
630 static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) in gic_raise_softirq()
Dirq-gic-v3.c444 static u16 gic_compute_target_list(int *base_cpu, const struct cpumask *mask, in gic_compute_target_list()
495 static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) in gic_raise_softirq()
526 static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val, in gic_set_affinity()
Dirq-metag-ext.c505 const struct cpumask *cpumask, bool force) in meta_intc_set_affinity() argument
518 cpu = cpumask_any_and(cpumask, cpu_online_mask); in meta_intc_set_affinity()
/drivers/thermal/
Dcpu_cooling.c52 struct cpumask allowed_cpus;
275 struct cpumask *mask = &cpufreq_device->allowed_cpus; in cpufreq_apply_cooling()
357 struct cpumask *mask = &cpufreq_device->allowed_cpus; in cpufreq_get_max_state()
437 const struct cpumask *clip_cpus) in __cpufreq_cooling_register()
511 cpufreq_cooling_register(const struct cpumask *clip_cpus) in cpufreq_cooling_register()
532 const struct cpumask *clip_cpus) in of_cpufreq_cooling_register()
Ddb8500_cpufreq_cooling.c31 struct cpumask mask_val; in db8500_cpufreq_cooling_probe()
/drivers/cpufreq/
Dacpi-cpufreq.c103 static void boost_set_msrs(bool enable, const struct cpumask *cpumask) in boost_set_msrs() argument
122 rdmsr_on_cpus(cpumask, msr_addr, msrs); in boost_set_msrs()
124 for_each_cpu(cpu, cpumask) { in boost_set_msrs()
132 wrmsr_on_cpus(cpumask, msr_addr, msrs); in boost_set_msrs()
256 const struct cpumask *mask;
330 static u32 get_cur_val(const struct cpumask *mask) in get_cur_val()
393 static unsigned int check_freqs(const struct cpumask *mask, unsigned int freq, in check_freqs()
525 const struct cpumask *cpumask; in boost_notify() local
527 cpumask = get_cpu_mask(cpu); in boost_notify()
539 boost_set_msrs(acpi_cpufreq_driver.boost_enabled, cpumask); in boost_notify()
[all …]
Dpowernow-k8.h40 struct cpumask *available_cores;
/drivers/sh/intc/
Dchip.c69 const struct cpumask *cpumask, in intc_set_affinity() argument
72 if (!cpumask_intersects(cpumask, cpu_online_mask)) in intc_set_affinity()
75 cpumask_copy(data->affinity, cpumask); in intc_set_affinity()
/drivers/iommu/
Dirq_remapping.h30 struct cpumask;
65 int (*set_affinity)(struct irq_data *data, const struct cpumask *mask,
Dirq_remapping.c32 const struct cpumask *mask,
298 const struct cpumask *mask, bool force) in set_remapped_irq_affinity()
/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c566 cpumask_t *cpumask; in cfs_cpt_bind() local
574 cpumask = cptab->ctb_cpumask; in cfs_cpt_bind()
577 cpumask = cptab->ctb_parts[cpt].cpt_cpumask; in cfs_cpt_bind()
581 if (any_online_cpu(*cpumask) == NR_CPUS) { in cfs_cpt_bind()
589 if (cpu_isset(i, *cpumask)) in cfs_cpt_bind()
592 rc = set_cpus_allowed_ptr(current, cpumask); in cfs_cpt_bind()
/drivers/clocksource/
Ddummy_timer.c39 evt->cpumask = cpumask_of(cpu); in dummy_timer_setup()
Ddw_apb_timer.c120 pr_debug("%s CPU %d mode=%d\n", __func__, first_cpu(*evt->cpumask), in apbt_set_mode()
233 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
Di8253.c181 i8253_clockevent.cpumask = cpumask_of(smp_processor_id()); in clockevent_i8253_init()
/drivers/thermal/samsung/
Dexynos_thermal_common.h65 const struct cpumask *mask_val;
/drivers/staging/android/fiq_debugger/
Dfiq_debugger.c457 struct cpumask cpumask; in fiq_debugger_take_affinity() local
459 cpumask_clear(&cpumask); in fiq_debugger_take_affinity()
460 cpumask_set_cpu(get_cpu(), &cpumask); in fiq_debugger_take_affinity()
462 irq_set_affinity(state->uart_irq, &cpumask); in fiq_debugger_take_affinity()
/drivers/edac/
Dcpc925_edac.c647 u32 cpumask; in cpc925_cpu_init() local
651 cpumask = cpc925_cpu_mask_disabled(); in cpc925_cpu_init()
652 if (apimask & cpumask) { in cpc925_cpu_init()
655 apimask &= ~cpumask; in cpc925_cpu_init()
/drivers/pci/
Dpci-sysfs.c83 const struct cpumask *mask; in pci_dev_show_local_cpu()
123 const struct cpumask *cpumask; in pci_bus_show_cpuaffinity() local
125 cpumask = cpumask_of_pcibus(to_pci_bus(dev)); in pci_bus_show_cpuaffinity()
127 cpulist_scnprintf(buf, PAGE_SIZE-2, cpumask) : in pci_bus_show_cpuaffinity()
128 cpumask_scnprintf(buf, PAGE_SIZE-2, cpumask); in pci_bus_show_cpuaffinity()

1234