Lines Matching refs:pcpu_devices
84 static struct pcpu pcpu_devices[NR_CPUS]; variable
174 if (pcpu_devices[cpu].address == address) in pcpu_find_address()
175 return pcpu_devices + cpu; in pcpu_find_address()
195 if (pcpu != &pcpu_devices[0]) { in pcpu_alloc_lowcore()
231 if (pcpu != &pcpu_devices[0]) { in pcpu_alloc_lowcore()
247 lowcore_ptr[pcpu - pcpu_devices] = NULL; in pcpu_free_lowcore()
251 if (pcpu == &pcpu_devices[0]) in pcpu_free_lowcore()
323 struct lowcore *lc = lowcore_ptr[pcpu - pcpu_devices]; in pcpu_delegate()
363 pcpu_devices[0].address = stap(); in pcpu_set_smt()
379 pcpu = pcpu_devices + cpumask_first(cpu_online_mask); in smp_call_online_cpu()
388 struct lowcore *lc = pcpu_devices->lowcore; in smp_call_ipl_cpu()
390 if (pcpu_devices[0].address == stap()) in smp_call_ipl_cpu()
393 pcpu_delegate(&pcpu_devices[0], func, data, in smp_call_ipl_cpu()
402 if (pcpu_devices[cpu].address == address) in smp_find_processor_id()
409 pcpu_ec_call(pcpu_devices + smp_processor_id(), ec_mcck_pending); in schedule_mcck_handler()
416 if (pcpu_running(pcpu_devices + cpu)) in arch_vcpu_is_preempted()
428 : : "d" (pcpu_devices[cpu].address)); in smp_yield_cpu()
446 struct pcpu *pcpu = pcpu_devices + cpu; in smp_emergency_stop()
455 if (pcpu_stopped(pcpu_devices + cpu)) in smp_emergency_stop()
484 pcpu_sigp_retry(pcpu_devices + cpu, SIGP_STOP, 0); in smp_send_stop()
485 while (!pcpu_stopped(pcpu_devices + cpu)) in smp_send_stop()
499 bits = xchg(&pcpu_devices[smp_processor_id()].ec_mask, 0); in smp_handle_ext_call()
522 pcpu_ec_call(pcpu_devices + cpu, ec_call_function_single); in arch_send_call_function_ipi_mask()
527 pcpu_ec_call(pcpu_devices + cpu, ec_call_function_single); in arch_send_call_function_single_ipi()
537 pcpu_ec_call(pcpu_devices + cpu, ec_schedule); in smp_send_reschedule()
588 struct pcpu *pcpu = pcpu_devices + cpu; in smp_store_status()
706 pcpu_devices[cpu].polarization = val; in smp_cpu_set_polarization()
711 return pcpu_devices[cpu].polarization; in smp_cpu_get_polarization()
716 return pcpu_devices[cpu].address; in smp_cpu_get_cpu_address()
757 pcpu = pcpu_devices + cpu; in smp_add_core()
790 core_id = pcpu_devices[0].address >> smp_cpu_mt_shift; in __smp_rescan_cpus()
902 pcpu = pcpu_devices + cpu; in __cpu_up()
916 pcpu_sigp_retry(pcpu_devices + base, SIGP_INITIAL_CPU_RESET, 0) != in __cpu_up()
966 pcpu = pcpu_devices + cpu; in __cpu_die()
978 pcpu_sigp_retry(pcpu_devices + smp_processor_id(), SIGP_STOP, 0); in cpu_die()
1007 struct pcpu *pcpu = pcpu_devices; in smp_prepare_boot_cpu()
1018 pcpu_devices[0].address = stap(); in smp_setup_processor_id()
1041 count = sprintf(buf, "%d\n", pcpu_devices[dev->id].state); in cpu_configure_show()
1069 pcpu = pcpu_devices + cpu; in cpu_configure_store()
1115 return sprintf(buf, "%d\n", pcpu_devices[dev->id].address); in show_cpu_address()