• Home
  • Raw
  • Download

Lines Matching refs:pr

27 static acpi_status xen_acpi_cpu_hotadd(struct acpi_processor *pr);
39 struct acpi_processor *pr = acpi_driver_data(device); in xen_acpi_processor_enable() local
43 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in xen_acpi_processor_enable()
49 pr->acpi_id = object.processor.proc_id; in xen_acpi_processor_enable()
52 status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, in xen_acpi_processor_enable()
59 pr->acpi_id = value; in xen_acpi_processor_enable()
62 pr->id = xen_pcpu_id(pr->acpi_id); in xen_acpi_processor_enable()
64 if (invalid_logical_cpuid(pr->id)) in xen_acpi_processor_enable()
66 if (ACPI_FAILURE(xen_acpi_cpu_hotadd(pr))) { in xen_acpi_processor_enable()
68 pr->acpi_id); in xen_acpi_processor_enable()
78 struct acpi_processor *pr; in xen_acpi_processor_add() local
83 pr = kzalloc(sizeof(struct acpi_processor), GFP_KERNEL); in xen_acpi_processor_add()
84 if (!pr) in xen_acpi_processor_add()
87 pr->handle = device->handle; in xen_acpi_processor_add()
90 device->driver_data = pr; in xen_acpi_processor_add()
101 struct acpi_processor *pr; in xen_acpi_processor_remove() local
106 pr = acpi_driver_data(device); in xen_acpi_processor_remove()
107 if (!pr) in xen_acpi_processor_remove()
110 kfree(pr); in xen_acpi_processor_remove()
175 static int xen_hotadd_cpu(struct acpi_processor *pr) in xen_hotadd_cpu() argument
180 apic_id = xen_apic_id(pr->handle); in xen_hotadd_cpu()
183 pr->acpi_id); in xen_hotadd_cpu()
187 pxm = xen_acpi_get_pxm(pr->handle); in xen_hotadd_cpu()
190 pr->acpi_id); in xen_hotadd_cpu()
196 op.u.cpu_add.acpi_id = pr->acpi_id; in xen_hotadd_cpu()
202 pr->acpi_id); in xen_hotadd_cpu()
207 static acpi_status xen_acpi_cpu_hotadd(struct acpi_processor *pr) in xen_acpi_cpu_hotadd() argument
209 if (!is_processor_present(pr->handle)) in xen_acpi_cpu_hotadd()
212 pr->id = xen_hotadd_cpu(pr); in xen_acpi_cpu_hotadd()
213 if (invalid_logical_cpuid(pr->id)) in xen_acpi_cpu_hotadd()
235 struct acpi_processor *pr; in acpi_processor_hotplug_notify() local
279 pr = acpi_driver_data(device); in acpi_processor_hotplug_notify()
280 if (!pr) { in acpi_processor_hotplug_notify()