/arch/arm/common/ |
D | mcpm_platsmp.c | 20 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() 43 mcpm_set_entry_vector(pcpu, pcluster, secondary_startup); 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() [all …]
|
/arch/s390/kernel/ |
D | smp.c | 76 struct pcpu { struct 85 static struct pcpu pcpu_devices[NR_CPUS]; argument 135 static int pcpu_sigp_retry(struct pcpu *pcpu, u8 order, u32 parm) in pcpu_sigp_retry() argument 140 cc = __pcpu_sigp(pcpu->address, order, parm, NULL); in pcpu_sigp_retry() 149 static inline int pcpu_stopped(struct pcpu *pcpu) in pcpu_stopped() argument 153 if (__pcpu_sigp(pcpu->address, SIGP_SENSE, in pcpu_stopped() 159 static inline int pcpu_running(struct pcpu *pcpu) in pcpu_running() argument 161 if (__pcpu_sigp(pcpu->address, SIGP_SENSE_RUNNING, in pcpu_running() 171 static struct pcpu *pcpu_find_address(const struct cpumask *mask, u16 address) in pcpu_find_address() 181 static void pcpu_ec_call(struct pcpu *pcpu, int ec_bit) in pcpu_ec_call() argument [all …]
|
/arch/x86/events/amd/ |
D | ibs.c | 95 struct cpu_perf_ibs __percpu *pcpu; member 414 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_start() local 434 set_bit(IBS_STARTED, pcpu->state); in perf_ibs_start() 435 clear_bit(IBS_STOPPING, pcpu->state); in perf_ibs_start() 445 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_stop() local 449 if (test_and_set_bit(IBS_STOPPING, pcpu->state)) in perf_ibs_stop() 452 stopping = test_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop() 466 set_bit(IBS_STOPPED, pcpu->state); in perf_ibs_stop() 477 clear_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop() 498 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_add() local [all …]
|
/arch/powerpc/platforms/pseries/ |
D | smp.c | 56 int smp_query_cpu_stopped(unsigned int pcpu) in smp_query_cpu_stopped() argument 67 status = rtas_call(qcss_tok, 1, 2, &cpu_status, pcpu); in smp_query_cpu_stopped() 93 unsigned int pcpu; in smp_startup_cpu() local 100 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu() 103 if (smp_query_cpu_stopped(pcpu) == QCSS_NOT_STOPPED){ in smp_startup_cpu() 116 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, pcpu); in smp_startup_cpu()
|
D | pseries.h | 29 int smp_query_cpu_stopped(unsigned int pcpu);
|
D | hotplug-cpu.c | 117 unsigned int pcpu = get_hard_smp_processor_id(cpu); in pseries_cpu_die() local 121 cpu_status = smp_query_cpu_stopped(pcpu); in pseries_cpu_die() 128 cpu, pcpu); in pseries_cpu_die() 137 cpu, pcpu); in pseries_cpu_die()
|
/arch/powerpc/platforms/powernv/ |
D | smp.c | 66 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()
|
/arch/alpha/kernel/ |
D | err_common.c | 242 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()
|
/arch/powerpc/platforms/cell/ |
D | smp.c | 72 unsigned int pcpu; in smp_startup_cpu() local 79 pcpu = get_hard_smp_processor_id(lcpu); in smp_startup_cpu() 89 status = rtas_call(start_cpu, 3, 1, NULL, pcpu, start_here, lcpu); in smp_startup_cpu()
|
/arch/s390/include/asm/ |
D | smp.h | 44 u16 pcpu = stap(); in smp_stop_cpu() local 47 __pcpu_sigp(pcpu, SIGP_STOP, 0, NULL); in smp_stop_cpu()
|
/arch/powerpc/kvm/ |
D | book3s_hv_builtin.c | 237 int cpu = vc->pcpu; in kvmhv_interrupt_vcore() 716 void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu, in kvmppc_check_need_tlb_flush() argument 728 pcpu = cpu_first_tlb_thread_sibling(pcpu); in kvmppc_check_need_tlb_flush() 735 if (cpumask_test_cpu(pcpu, need_tlb_flush)) { in kvmppc_check_need_tlb_flush() 739 cpumask_clear_cpu(pcpu, need_tlb_flush); in kvmppc_check_need_tlb_flush()
|
D | book3s_hv_rm_xics.c | 713 int pcpu = raw_smp_processor_id(); in ics_rm_eoi() local 715 pcpu = cpu_first_thread_sibling(pcpu); in ics_rm_eoi() 717 if (state->intr_cpu != pcpu) { in ics_rm_eoi() 719 xics_opal_set_server(state->host_irq, pcpu); in ics_rm_eoi()
|
D | book3s_hv.c | 711 dt->processor_id = cpu_to_be16(vc->pcpu + vcpu->arch.ptid); in kvmppc_create_dtl_entry() 1337 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local 1353 pcpu = READ_ONCE(v->cpu); in kvmppc_read_dpdes() 1354 if (pcpu >= 0) in kvmppc_read_dpdes() 1355 smp_call_function_single(pcpu, do_nothing, NULL, 1); in kvmppc_read_dpdes() 2973 static void kvmppc_prepare_radix_vcpu(struct kvm_vcpu *vcpu, int pcpu) in kvmppc_prepare_radix_vcpu() argument 2999 if (prev_cpu != pcpu) { in kvmppc_prepare_radix_vcpu() 3002 cpu_first_tlb_thread_sibling(pcpu)) in kvmppc_prepare_radix_vcpu() 3005 nested->prev_cpu[vcpu->arch.nested_vcpu_id] = pcpu; in kvmppc_prepare_radix_vcpu() 3007 vcpu->arch.prev_cpu = pcpu; in kvmppc_prepare_radix_vcpu() [all …]
|
D | book3s_hv_p9_entry.c | 303 kvmppc_check_need_tlb_flush(kvm, vc->pcpu, nested); in kvmhv_vcpu_entry_p9()
|
D | book3s_hv_rm_mmu.c | 57 cpu = local_paca->kvm_hstate.kvm_vcore->pcpu; in global_invalidates()
|
/arch/ia64/kernel/ |
D | acpi.c | 784 static int _acpi_map_lsapic(acpi_handle handle, int physid, int *pcpu) in _acpi_map_lsapic() argument 801 *pcpu = cpu; in _acpi_map_lsapic() 807 int *pcpu) in acpi_map_cpu() argument 809 return _acpi_map_lsapic(handle, physid, pcpu); in acpi_map_cpu()
|
/arch/x86/xen/ |
D | enlighten.c | 370 pin_override.pcpu = cpu; in xen_pin_vcpu()
|
/arch/x86/kernel/acpi/ |
D | boot.c | 752 int *pcpu) in acpi_map_cpu() argument 765 *pcpu = cpu; in acpi_map_cpu()
|
/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 74 u16 pcpu; member
|
D | kvm_ppc.h | 555 extern void kvmppc_check_need_tlb_flush(struct kvm *kvm, int pcpu,
|