Searched refs:pcpu (Results 1 - 25 of 52) sorted by relevance

123

/linux-master/arch/arm/common/
H A Dmcpm_platsmp.c20 unsigned int *pcpu, unsigned int *pcluster)
25 *pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0);
31 unsigned int pcpu, pcluster, ret; local
34 cpu_to_pcpu(cpu, &pcpu, &pcluster);
37 __func__, cpu, pcpu, pcluster);
39 mcpm_set_entry_vector(pcpu, pcluster, NULL);
40 ret = mcpm_cpu_power_up(pcpu, pcluster);
43 mcpm_set_entry_vector(pcpu, pcluster, secondary_startup);
58 unsigned int pcpu, pcluster; local
60 cpu_to_pcpu(cpu, &pcpu,
19 cpu_to_pcpu(unsigned int cpu, unsigned int *pcpu, unsigned int *pcluster) argument
73 unsigned int mpidr, pcpu, pcluster; local
[all...]
/linux-master/drivers/xen/
H A Dpcpu.c2 * pcpu.c
3 * Management physical cpu in dom0, get pcpu info and provide sys interface
60 struct pcpu { struct
103 struct pcpu *cpu = container_of(dev, struct pcpu, dev);
112 struct pcpu *pcpu = container_of(dev, struct pcpu, dev); local
124 ret = xen_pcpu_down(pcpu->cpu_id);
127 ret = xen_pcpu_up(pcpu
171 pcpu_online_status(struct xenpf_pcpuinfo *info, struct pcpu *pcpu) argument
189 struct pcpu *pcpu; local
201 struct pcpu *pcpu = container_of(dev, struct pcpu, dev); local
207 unregister_and_remove_pcpu(struct pcpu *pcpu) argument
219 register_pcpu(struct pcpu *pcpu) argument
244 struct pcpu *pcpu; local
277 struct pcpu *pcpu = NULL; local
323 struct pcpu *pcpu, *tmp; local
393 const struct pcpu *pcpu; local
[all...]
H A DMakefile15 dom0-$(CONFIG_X86) += pcpu.o
/linux-master/arch/s390/kernel/
H A Dsmp.c79 struct pcpu { struct
88 static struct pcpu pcpu_devices[NR_CPUS];
119 * member of a pcpu data structure within the pcpu_devices array.
138 static int pcpu_sigp_retry(struct pcpu *pcpu, u8 order, u32 parm) argument
143 cc = __pcpu_sigp(pcpu->address, order, parm, NULL);
152 static inline int pcpu_stopped(struct pcpu *pcpu) argument
156 if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
162 static inline int pcpu_running(struct pcpu *pcp argument
184 pcpu_ec_call(struct pcpu *pcpu, int ec_bit) argument
195 pcpu_alloc_lowcore(struct pcpu *pcpu, int cpu) argument
235 pcpu_free_lowcore(struct pcpu *pcpu) argument
256 pcpu_prepare_secondary(struct pcpu *pcpu, int cpu) argument
282 pcpu_attach_task(struct pcpu *pcpu, struct task_struct *tsk) argument
301 pcpu_start_fn(struct pcpu *pcpu, void (*func)(void *), void *data) argument
325 pcpu_delegate(struct pcpu *pcpu, pcpu_delegate_fn *func, void *data, unsigned long stack) argument
392 struct pcpu *pcpu; local
468 struct pcpu *pcpu = pcpu_devices + cpu; local
577 struct pcpu *pcpu; local
727 struct pcpu *pcpu; local
876 struct pcpu *pcpu = pcpu_devices + cpu; local
937 struct pcpu *pcpu; local
980 struct pcpu *pcpu = pcpu_devices; local
1022 struct pcpu *pcpu; local
[all...]
/linux-master/arch/s390/include/asm/
H A Dsmp.h44 u16 pcpu = stap(); local
47 __pcpu_sigp(pcpu, SIGP_STOP, 0, NULL);
/linux-master/arch/powerpc/platforms/pseries/
H A Dsmp.c55 int smp_query_cpu_stopped(unsigned int pcpu) argument
66 status = rtas_call(qcss_tok, 1, 2, &cpu_status, pcpu);
92 unsigned int pcpu; local
99 pcpu = get_hard_smp_processor_id(lcpu);
102 if (smp_query_cpu_stopped(pcpu) == QCSS_NOT_STOPPED){
115 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, pcpu);
H A Dpseries.h30 int smp_query_cpu_stopped(unsigned int pcpu);
/linux-master/include/xen/interface/
H A Dsched.h109 * A negative pcpu value will undo a previous pin override and restore the
141 int32_t pcpu; member in struct:sched_pin_override
/linux-master/arch/alpha/kernel/
H A Derr_common.c244 cdl_process_console_data_log(int cpu, struct percpu_struct *pcpu)
247 (IDENT_ADDR | pcpu->console_data_log_pa);
258 pcpu->console_data_log_pa = 0;
268 struct percpu_struct *pcpu;
272 pcpu = (struct percpu_struct *)
275 if (pcpu->console_data_log_pa)
276 cdl_process_console_data_log(cpu, pcpu);
242 cdl_process_console_data_log(int cpu, struct percpu_struct *pcpu) argument
266 struct percpu_struct *pcpu; local
/linux-master/arch/powerpc/platforms/cell/
H A Dsmp.c71 unsigned int pcpu; local
78 pcpu = get_hard_smp_processor_id(lcpu);
88 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, lcpu);
/linux-master/arch/x86/events/amd/
H A Dibs.c95 struct cpu_perf_ibs __percpu *pcpu; member in struct:perf_ibs
429 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); local
449 set_bit(IBS_STARTED, pcpu->state);
450 clear_bit(IBS_STOPPING, pcpu->state);
460 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); local
464 if (test_and_set_bit(IBS_STOPPING, pcpu->state))
467 stopping = test_bit(IBS_STARTED, pcpu->state);
481 set_bit(IBS_STOPPED, pcpu
513 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); local
531 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); local
1024 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); local
1178 struct cpu_perf_ibs __percpu *pcpu; local
[all...]
/linux-master/tools/testing/selftests/kvm/
H A Darch_timer.c85 uint32_t pcpu; local
94 pcpu = rand() % nproc_conf;
95 } while (!CPU_ISSET(pcpu, &online_cpuset));
97 return pcpu;
/linux-master/arch/powerpc/platforms/powernv/
H A Dsmp.c66 unsigned int pcpu; local
75 pcpu = get_hard_smp_processor_id(nr);
89 rc = opal_query_cpu_status(pcpu, &status);
106 pr_devel("OPAL: Starting CPU %d (HW 0x%x)...\n", nr, pcpu);
107 rc = opal_start_cpu(pcpu, start_here);
120 " (status %d)...\n", nr, pcpu, status);
/linux-master/kernel/
H A Dpadata.c54 target_cpu = cpumask_first(pd->cpumask.pcpu);
56 target_cpu = cpumask_next(target_cpu, pd->cpumask.pcpu);
67 int cpu_index = seq_nr % cpumask_weight(pd->cpumask.pcpu);
277 pd->cpu = cpumask_next_wrap(cpu, pd->cpumask.pcpu, -1, false);
433 /* Restrict parallel_wq workers to pd->cpumask.pcpu. */
434 cpumask_copy(attrs->cpumask, pinst->cpumask.pcpu);
569 for_each_cpu(cpu, pd->cpumask.pcpu) {
595 if (!alloc_cpumask_var(&pd->cpumask.pcpu, GFP_KERNEL))
600 cpumask_and(pd->cpumask.pcpu, pinst->cpumask.pcpu, cpu_online_mas
[all...]
/linux-master/lib/
H A Dtest_vmalloc.c292 void __percpu **pcpu; local
296 pcpu = vmalloc(sizeof(void __percpu *) * 35000);
297 if (!pcpu)
308 pcpu[i] = __alloc_percpu(size, align);
309 if (!pcpu[i])
314 free_percpu(pcpu[i]);
316 vfree(pcpu);
/linux-master/include/linux/
H A Dnotifier.h107 #define SRCU_NOTIFIER_INIT(name, pcpu) \
112 .srcu = __SRCU_STRUCT_INIT(name.srcu, name.srcuu, pcpu), \
H A Dpsi_types.h170 struct psi_group_cpu __percpu *pcpu; member in struct:psi_group
H A Dpadata.h73 * @pcpu: cpumask for the parallel workers.
77 cpumask_var_t pcpu; member in struct:padata_cpumask
/linux-master/drivers/crypto/caam/
H A Dqi.c443 int *pcpu = &get_cpu_var(last_cpu); local
445 *pcpu = cpumask_next(*pcpu, cpus);
446 if (*pcpu >= nr_cpu_ids)
447 *pcpu = cpumask_first(cpus);
448 *cpu = *pcpu;
/linux-master/arch/powerpc/kvm/
H A Dbook3s_hv_builtin.c241 int cpu = vc->pcpu;
620 void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu) argument
622 if (cpumask_test_cpu(pcpu, &kvm->arch.need_tlb_flush)) {
626 cpumask_clear_cpu(pcpu, &kvm->arch.need_tlb_flush);
H A Dbook3s_hv_rm_xics.c718 int pcpu = raw_smp_processor_id(); local
720 pcpu = cpu_first_thread_sibling(pcpu);
722 if (state->intr_cpu != pcpu) {
724 xics_opal_set_server(state->host_irq, pcpu);
H A Dbook3s_hv.c791 unsigned int pcpu, u64 now,
803 dt->processor_id = cpu_to_be16(pcpu + vcpu->arch.ptid);
848 __kvmppc_create_dtl_entry(vcpu, vpa, vc->pcpu, now + kvmppc_get_tb_offset(vcpu), stolen);
871 __kvmppc_create_dtl_entry(vcpu, vpa, vc->pcpu, now, stolen_delta);
1501 int thr, cpu, pcpu, nthreads; local
1517 pcpu = READ_ONCE(v->cpu);
1518 if (pcpu >= 0)
1519 smp_call_function_single(pcpu, do_nothing, NULL, 1);
3291 static void kvmppc_prepare_radix_vcpu(struct kvm_vcpu *vcpu, int pcpu) argument
3312 * a vcpu moves from one pcpu t
789 __kvmppc_create_dtl_entry(struct kvm_vcpu *vcpu, struct lppaca *vpa, unsigned int pcpu, u64 now, unsigned long stolen) argument
3787 int pcpu, thr; local
4717 int trap, r, pcpu; local
[all...]
/linux-master/arch/loongarch/kernel/
H A Dacpi.c309 int acpi_map_cpu(acpi_handle handle, phys_cpuid_t physid, u32 acpi_id, int *pcpu) argument
321 *pcpu = cpu;
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c559 struct stmmac_pcpu_stats *pcpu; local
563 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu);
565 start = u64_stats_fetch_begin(&pcpu->syncp);
566 irq_n = u64_stats_read(&pcpu->rx_normal_irq_n[q]);
567 } while (u64_stats_fetch_retry(&pcpu->syncp, start));
580 struct stmmac_pcpu_stats *pcpu; local
584 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu);
586 start = u64_stats_fetch_begin(&pcpu->syncp);
587 irq_n = u64_stats_read(&pcpu->tx_normal_irq_n[q]);
588 } while (u64_stats_fetch_retry(&pcpu
[all...]
/linux-master/kernel/sched/
H A Dpsi.c172 .pcpu = &system_group_pcpu,
185 seqcount_init(&per_cpu_ptr(group->pcpu, cpu)->seq);
249 struct psi_group_cpu *groupc = per_cpu_ptr(group->pcpu, cpu);
776 groupc = per_cpu_ptr(group->pcpu, cpu);
932 if (per_cpu_ptr(group->pcpu, cpu)->state_mask &
1014 groupc = per_cpu_ptr(group->pcpu, cpu);
1101 cgroup->psi->pcpu = alloc_percpu(struct psi_group_cpu);
1102 if (!cgroup->psi->pcpu) {
1117 free_percpu(cgroup->psi->pcpu);

Completed in 372 milliseconds

123