Lines Matching refs:pcpu_devices
83 static struct pcpu pcpu_devices[NR_CPUS]; variable
173 if (pcpu_devices[cpu].address == address) in pcpu_find_address()
174 return pcpu_devices + cpu; in pcpu_find_address()
194 if (pcpu != &pcpu_devices[0]) { in pcpu_alloc_lowcore()
228 if (pcpu != &pcpu_devices[0]) { in pcpu_alloc_lowcore()
244 lowcore_ptr[pcpu - pcpu_devices] = NULL; in pcpu_free_lowcore()
248 if (pcpu == &pcpu_devices[0]) in pcpu_free_lowcore()
317 struct lowcore *lc = lowcore_ptr[pcpu - pcpu_devices]; in pcpu_delegate()
357 pcpu_devices[0].address = stap(); in pcpu_set_smt()
373 pcpu = pcpu_devices + cpumask_first(cpu_online_mask); in smp_call_online_cpu()
382 struct lowcore *lc = pcpu_devices->lowcore; in smp_call_ipl_cpu()
384 if (pcpu_devices[0].address == stap()) in smp_call_ipl_cpu()
387 pcpu_delegate(&pcpu_devices[0], func, data, in smp_call_ipl_cpu()
396 if (pcpu_devices[cpu].address == address) in smp_find_processor_id()
405 if (pcpu_running(pcpu_devices + cpu)) in arch_vcpu_is_preempted()
416 : : "d" (pcpu_devices[cpu].address)); in smp_yield_cpu()
438 struct pcpu *pcpu = pcpu_devices + cpu; in smp_emergency_stop()
447 if (pcpu_stopped(pcpu_devices + cpu)) in smp_emergency_stop()
476 pcpu_sigp_retry(pcpu_devices + cpu, SIGP_STOP, 0); in smp_send_stop()
477 while (!pcpu_stopped(pcpu_devices + cpu)) in smp_send_stop()
491 bits = xchg(&pcpu_devices[smp_processor_id()].ec_mask, 0); in smp_handle_ext_call()
512 pcpu_ec_call(pcpu_devices + cpu, ec_call_function_single); in arch_send_call_function_ipi_mask()
517 pcpu_ec_call(pcpu_devices + cpu, ec_call_function_single); in arch_send_call_function_single_ipi()
527 pcpu_ec_call(pcpu_devices + cpu, ec_schedule); in smp_send_reschedule()
578 struct pcpu *pcpu = pcpu_devices + cpu; in smp_store_status()
696 pcpu_devices[cpu].polarization = val; in smp_cpu_set_polarization()
701 return pcpu_devices[cpu].polarization; in smp_cpu_get_polarization()
744 pcpu = pcpu_devices + cpu; in __smp_rescan_cpus()
855 pcpu = pcpu_devices + cpu; in __cpu_up()
869 pcpu_sigp_retry(pcpu_devices + base, SIGP_INITIAL_CPU_RESET, 0) != in __cpu_up()
918 pcpu = pcpu_devices + cpu; in __cpu_die()
930 pcpu_sigp_retry(pcpu_devices + smp_processor_id(), SIGP_STOP, 0); in cpu_die()
959 struct pcpu *pcpu = pcpu_devices; in smp_prepare_boot_cpu()
974 pcpu_devices[0].address = stap(); in smp_setup_processor_id()
997 count = sprintf(buf, "%d\n", pcpu_devices[dev->id].state); in cpu_configure_show()
1025 pcpu = pcpu_devices + cpu; in cpu_configure_store()
1071 return sprintf(buf, "%d\n", pcpu_devices[dev->id].address); in show_cpu_address()