Home
last modified time | relevance | path

Searched refs:pcpu (Results 1 – 25 of 55) sorted by relevance

123

/openbmc/linux/drivers/xen/
H A Dpcpu.c112 struct pcpu *pcpu = container_of(dev, struct pcpu, dev); in online_store() local
172 struct pcpu *pcpu) in pcpu_online_status() argument
189 struct pcpu *pcpu; in get_pcpu() local
201 struct pcpu *pcpu = container_of(dev, struct pcpu, dev); in pcpu_release() local
211 if (!pcpu) in unregister_and_remove_pcpu()
219 static int register_pcpu(struct pcpu *pcpu) in register_pcpu() argument
244 struct pcpu *pcpu; in create_and_register_pcpu() local
250 pcpu = kzalloc(sizeof(struct pcpu), GFP_KERNEL); in create_and_register_pcpu()
277 struct pcpu *pcpu = NULL; in sync_pcpu() local
323 struct pcpu *pcpu, *tmp; in xen_sync_pcpus() local
[all …]
/openbmc/linux/arch/arm/common/
H A Dmcpm_platsmp.c20 unsigned int *pcpu, unsigned int *pcluster) in cpu_to_pcpu() argument
25 *pcpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in cpu_to_pcpu()
31 unsigned int pcpu, pcluster, ret; in mcpm_boot_secondary() local
34 cpu_to_pcpu(cpu, &pcpu, &pcluster); in mcpm_boot_secondary()
37 __func__, cpu, pcpu, pcluster); in mcpm_boot_secondary()
39 mcpm_set_entry_vector(pcpu, pcluster, NULL); in mcpm_boot_secondary()
40 ret = mcpm_cpu_power_up(pcpu, pcluster); in mcpm_boot_secondary()
58 unsigned int pcpu, pcluster; in mcpm_cpu_kill() local
60 cpu_to_pcpu(cpu, &pcpu, &pcluster); in mcpm_cpu_kill()
73 unsigned int mpidr, pcpu, pcluster; in mcpm_cpu_die() local
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Ddc_fpu.c63 int *pcpu, depth = 0; in dc_assert_fp_enabled() local
65 pcpu = get_cpu_ptr(&fpu_recursion_depth); in dc_assert_fp_enabled()
66 depth = *pcpu; in dc_assert_fp_enabled()
87 int *pcpu; in dc_fpu_begin() local
89 pcpu = get_cpu_ptr(&fpu_recursion_depth); in dc_fpu_begin()
90 *pcpu += 1; in dc_fpu_begin()
92 if (*pcpu == 1) { in dc_fpu_begin()
128 int *pcpu; in dc_fpu_end() local
130 pcpu = get_cpu_ptr(&fpu_recursion_depth); in dc_fpu_end()
131 *pcpu -= 1; in dc_fpu_end()
[all …]
/openbmc/linux/arch/s390/kernel/
H A Dsmp.c150 static inline int pcpu_stopped(struct pcpu *pcpu) in pcpu_stopped() argument
160 static inline int pcpu_running(struct pcpu *pcpu) in pcpu_running() argument
323 static void pcpu_delegate(struct pcpu *pcpu, in pcpu_delegate() argument
390 struct pcpu *pcpu; in smp_call_online_cpu() local
466 struct pcpu *pcpu = pcpu_devices + cpu; in smp_emergency_stop() local
623 struct pcpu *pcpu; in smp_store_status() local
773 struct pcpu *pcpu; in smp_add_core() local
922 struct pcpu *pcpu = pcpu_devices + cpu; in __cpu_up() local
983 struct pcpu *pcpu; in __cpu_die() local
1026 struct pcpu *pcpu = pcpu_devices; in smp_prepare_boot_cpu() local
[all …]
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dsmp.c55 int smp_query_cpu_stopped(unsigned int pcpu) in smp_query_cpu_stopped() argument
66 status = rtas_call(qcss_tok, 1, 2, &cpu_status, pcpu); in smp_query_cpu_stopped()
92 unsigned int pcpu; in smp_startup_cpu() local
99 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu()
102 if (smp_query_cpu_stopped(pcpu) == QCSS_NOT_STOPPED){ in smp_startup_cpu()
115 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, pcpu); in smp_startup_cpu()
/openbmc/linux/arch/x86/events/amd/
H A Dibs.c426 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_start() local
457 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_stop() local
510 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_add() local
517 pcpu->event = event; in perf_ibs_add()
528 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_del() local
535 pcpu->event = NULL; in perf_ibs_del()
1021 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_handle_irq() local
1179 if (!pcpu) in perf_ibs_pmu_init()
1182 perf_ibs->pcpu = pcpu; in perf_ibs_pmu_init()
1186 perf_ibs->pcpu = NULL; in perf_ibs_pmu_init()
[all …]
/openbmc/linux/kernel/
H A Dpadata.c54 target_cpu = cpumask_first(pd->cpumask.pcpu); in padata_index_to_cpu()
570 for_each_cpu(cpu, pd->cpumask.pcpu) { in padata_init_reorder_list()
601 cpumask_and(pd->cpumask.pcpu, pinst->cpumask.pcpu, cpu_online_mask); in padata_alloc_pd()
609 pd->cpu = cpumask_first(pd->cpumask.pcpu); in padata_alloc_pd()
615 free_cpumask_var(pd->cpumask.pcpu); in padata_alloc_pd()
628 free_cpumask_var(pd->cpumask.pcpu); in padata_free_pd()
756 parallel_mask = pinst->cpumask.pcpu; in padata_set_cpumask()
854 free_cpumask_var(pinst->cpumask.pcpu); in __padata_free()
889 cpumask = pinst->cpumask.pcpu; in show_cpumask()
1016 free_cpumask_var(pinst->cpumask.pcpu); in padata_alloc()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Derr_common.c242 cdl_process_console_data_log(int cpu, struct percpu_struct *pcpu) in cdl_process_console_data_log() argument
245 (IDENT_ADDR | pcpu->console_data_log_pa); in cdl_process_console_data_log()
256 pcpu->console_data_log_pa = 0; in cdl_process_console_data_log()
266 struct percpu_struct *pcpu; in cdl_check_console_data_log() local
270 pcpu = (struct percpu_struct *) in cdl_check_console_data_log()
273 if (pcpu->console_data_log_pa) in cdl_check_console_data_log()
274 cdl_process_console_data_log(cpu, pcpu); in cdl_check_console_data_log()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dsmp.c66 unsigned int pcpu; in pnv_smp_kick_cpu() local
75 pcpu = get_hard_smp_processor_id(nr); in pnv_smp_kick_cpu()
89 rc = opal_query_cpu_status(pcpu, &status); in pnv_smp_kick_cpu()
106 pr_devel("OPAL: Starting CPU %d (HW 0x%x)...\n", nr, pcpu); in pnv_smp_kick_cpu()
107 rc = opal_start_cpu(pcpu, start_here); in pnv_smp_kick_cpu()
120 " (status %d)...\n", nr, pcpu, status); in pnv_smp_kick_cpu()
/openbmc/linux/arch/powerpc/platforms/cell/
H A Dsmp.c71 unsigned int pcpu; in smp_startup_cpu() local
78 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu()
88 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, lcpu); in smp_startup_cpu()
/openbmc/linux/lib/
H A Dtest_vmalloc.c292 void __percpu **pcpu; in pcpu_alloc_test() local
296 pcpu = vmalloc(sizeof(void __percpu *) * 35000); in pcpu_alloc_test()
297 if (!pcpu) in pcpu_alloc_test()
308 pcpu[i] = __alloc_percpu(size, align); in pcpu_alloc_test()
309 if (!pcpu[i]) in pcpu_alloc_test()
314 free_percpu(pcpu[i]); in pcpu_alloc_test()
316 vfree(pcpu); in pcpu_alloc_test()
/openbmc/linux/arch/s390/include/asm/
H A Dsmp.h44 u16 pcpu = stap(); in smp_stop_cpu() local
47 __pcpu_sigp(pcpu, SIGP_STOP, 0, NULL); in smp_stop_cpu()
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Darch_timer.c259 uint32_t pcpu; in test_get_pcpu() local
268 pcpu = rand() % nproc_conf; in test_get_pcpu()
269 } while (!CPU_ISSET(pcpu, &online_cpuset)); in test_get_pcpu()
271 return pcpu; in test_get_pcpu()
/openbmc/linux/drivers/crypto/caam/
H A Dqi.c443 int *pcpu = &get_cpu_var(last_cpu); in caam_drv_ctx_init() local
445 *pcpu = cpumask_next(*pcpu, cpus); in caam_drv_ctx_init()
446 if (*pcpu >= nr_cpu_ids) in caam_drv_ctx_init()
447 *pcpu = cpumask_first(cpus); in caam_drv_ctx_init()
448 *cpu = *pcpu; in caam_drv_ctx_init()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_builtin.c237 int cpu = vc->pcpu; in kvmhv_interrupt_vcore()
616 void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu) in kvmppc_check_need_tlb_flush() argument
618 if (cpumask_test_cpu(pcpu, &kvm->arch.need_tlb_flush)) { in kvmppc_check_need_tlb_flush()
622 cpumask_clear_cpu(pcpu, &kvm->arch.need_tlb_flush); in kvmppc_check_need_tlb_flush()
H A Dbook3s_hv_rm_xics.c718 int pcpu = raw_smp_processor_id(); in ics_rm_eoi() local
720 pcpu = cpu_first_thread_sibling(pcpu); in ics_rm_eoi()
722 if (state->intr_cpu != pcpu) { in ics_rm_eoi()
724 xics_opal_set_server(state->host_irq, pcpu); in ics_rm_eoi()
H A Dbook3s_hv.c1462 pcpu = READ_ONCE(v->cpu); in kvmppc_read_dpdes()
1463 if (pcpu >= 0) in kvmppc_read_dpdes()
3251 if (prev_cpu != pcpu) { in kvmppc_prepare_radix_vcpu()
3272 cpu = vc->pcpu; in kvmppc_start_thread()
3279 vcpu->cpu = vc->pcpu; in kvmppc_start_thread()
3722 int pcpu, thr; in kvmppc_run_core() local
3774 pcpu = smp_processor_id(); in kvmppc_run_core()
3892 pvc->pcpu = pcpu + thr; in kvmppc_run_core()
4599 int trap, r, pcpu; in kvmhv_run_single_vcpu() local
4649 vcpu->cpu = pcpu; in kvmhv_run_single_vcpu()
[all …]
/openbmc/linux/include/linux/
H A Dnotifier.h107 #define SRCU_NOTIFIER_INIT(name, pcpu) \ argument
112 .srcu = __SRCU_STRUCT_INIT(name.srcu, name.srcuu, pcpu), \
/openbmc/linux/include/xen/interface/
H A Dsched.h141 int32_t pcpu; member
/openbmc/linux/net/core/
H A Dpage_pool.c89 const struct page_pool_recycle_stats *pcpu = in page_pool_get_stats() local
92 stats->recycle_stats.cached += pcpu->cached; in page_pool_get_stats()
93 stats->recycle_stats.cache_full += pcpu->cache_full; in page_pool_get_stats()
94 stats->recycle_stats.ring += pcpu->ring; in page_pool_get_stats()
95 stats->recycle_stats.ring_full += pcpu->ring_full; in page_pool_get_stats()
96 stats->recycle_stats.released_refcnt += pcpu->released_refcnt; in page_pool_get_stats()
/openbmc/qemu/include/hw/xen/interface/
H A Dsched.h147 int32_t pcpu; member
/openbmc/linux/kernel/sched/
H A Dpsi.c172 .pcpu = &system_group_pcpu,
185 seqcount_init(&per_cpu_ptr(group->pcpu, cpu)->seq); in group_init()
249 struct psi_group_cpu *groupc = per_cpu_ptr(group->pcpu, cpu); in get_recent_times()
789 groupc = per_cpu_ptr(group->pcpu, cpu); in psi_group_change()
942 if (per_cpu_ptr(group->pcpu, cpu)->state_mask & in psi_task_switch()
1032 groupc = per_cpu_ptr(group->pcpu, cpu); in psi_account_irqtime()
1120 cgroup->psi->pcpu = alloc_percpu(struct psi_group_cpu); in psi_cgroup_alloc()
1121 if (!cgroup->psi->pcpu) { in psi_cgroup_alloc()
1136 free_percpu(cgroup->psi->pcpu); in psi_cgroup_free()
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ethtool.c549 struct stmmac_pcpu_stats *pcpu; in stmmac_get_rx_normal_irq_n() local
553 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu); in stmmac_get_rx_normal_irq_n()
555 start = u64_stats_fetch_begin(&pcpu->syncp); in stmmac_get_rx_normal_irq_n()
556 irq_n = u64_stats_read(&pcpu->rx_normal_irq_n[q]); in stmmac_get_rx_normal_irq_n()
557 } while (u64_stats_fetch_retry(&pcpu->syncp, start)); in stmmac_get_rx_normal_irq_n()
570 struct stmmac_pcpu_stats *pcpu; in stmmac_get_tx_normal_irq_n() local
574 pcpu = per_cpu_ptr(priv->xstats.pcpu_stats, cpu); in stmmac_get_tx_normal_irq_n()
576 start = u64_stats_fetch_begin(&pcpu->syncp); in stmmac_get_tx_normal_irq_n()
577 irq_n = u64_stats_read(&pcpu->tx_normal_irq_n[q]); in stmmac_get_tx_normal_irq_n()
578 } while (u64_stats_fetch_retry(&pcpu->syncp, start)); in stmmac_get_tx_normal_irq_n()
/openbmc/linux/tools/perf/Documentation/
H A Dperf-lock.txt190 rtmutex, rwlock-rt, rwlock-rt:R, rwlock-rt:W, pcpu-sem, pcpu-sem:R, pcpu-sem:W,
/openbmc/linux/drivers/base/
H A Ddevres.c1200 void __percpu *pcpu; in __devm_alloc_percpu() local
1202 pcpu = __alloc_percpu(size, align); in __devm_alloc_percpu()
1203 if (!pcpu) in __devm_alloc_percpu()
1208 free_percpu(pcpu); in __devm_alloc_percpu()
1212 *(void __percpu **)p = pcpu; in __devm_alloc_percpu()
1216 return pcpu; in __devm_alloc_percpu()

123