Lines Matching refs:cdev

26 static ACPIOSTInfo *acpi_cpu_device_status(int idx, AcpiCpuStatus *cdev)  in acpi_cpu_device_status()  argument
32 info->source = cdev->ost_event; in acpi_cpu_device_status()
33 info->status = cdev->ost_status; in acpi_cpu_device_status()
34 if (cdev->cpu) { in acpi_cpu_device_status()
35 DeviceState *dev = DEVICE(cdev->cpu); in acpi_cpu_device_status()
57 AcpiCpuStatus *cdev; in cpu_hotplug_rd() local
63 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_rd()
66 val |= cdev->cpu ? 1 : 0; in cpu_hotplug_rd()
67 val |= cdev->is_inserting ? 2 : 0; in cpu_hotplug_rd()
68 val |= cdev->is_removing ? 4 : 0; in cpu_hotplug_rd()
69 val |= cdev->fw_remove ? 16 : 0; in cpu_hotplug_rd()
78 val = cdev->arch_id & 0xFFFFFFFF; in cpu_hotplug_rd()
91 val = cdev->arch_id >> 32; in cpu_hotplug_rd()
108 AcpiCpuStatus *cdev; in cpu_hotplug_wr() local
126 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_wr()
128 cdev->is_inserting = false; in cpu_hotplug_wr()
131 cdev->is_removing = false; in cpu_hotplug_wr()
137 if (!cdev->cpu || cdev->cpu == first_cpu) { in cpu_hotplug_wr()
143 dev = DEVICE(cdev->cpu); in cpu_hotplug_wr()
147 cdev->fw_remove = false; in cpu_hotplug_wr()
149 if (!cdev->cpu || cdev->cpu == first_cpu) { in cpu_hotplug_wr()
154 cdev->fw_remove = true; in cpu_hotplug_wr()
165 cdev = &cpu_st->devs[iter]; in cpu_hotplug_wr()
166 if (cdev->is_inserting || cdev->is_removing || in cpu_hotplug_wr()
167 cdev->fw_remove) { in cpu_hotplug_wr()
170 cdev->is_inserting, cdev->is_removing); in cpu_hotplug_wr()
181 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_wr()
182 cdev->ost_event = data; in cpu_hotplug_wr()
183 trace_cpuhp_acpi_write_ost_ev(cpu_st->selector, cdev->ost_event); in cpu_hotplug_wr()
187 cdev = &cpu_st->devs[cpu_st->selector]; in cpu_hotplug_wr()
188 cdev->ost_status = data; in cpu_hotplug_wr()
189 info = acpi_cpu_device_status(cpu_st->selector, cdev); in cpu_hotplug_wr()
193 cdev->ost_status); in cpu_hotplug_wr()
253 AcpiCpuStatus *cdev; in acpi_cpu_plug_cb() local
255 cdev = get_cpu_status(cpu_st, dev); in acpi_cpu_plug_cb()
256 if (!cdev) { in acpi_cpu_plug_cb()
260 cdev->cpu = CPU(dev); in acpi_cpu_plug_cb()
262 cdev->is_inserting = true; in acpi_cpu_plug_cb()
271 AcpiCpuStatus *cdev; in acpi_cpu_unplug_request_cb() local
273 cdev = get_cpu_status(cpu_st, dev); in acpi_cpu_unplug_request_cb()
274 if (!cdev) { in acpi_cpu_unplug_request_cb()
278 cdev->is_removing = true; in acpi_cpu_unplug_request_cb()
285 AcpiCpuStatus *cdev; in acpi_cpu_unplug_cb() local
287 cdev = get_cpu_status(cpu_st, dev); in acpi_cpu_unplug_cb()
288 if (!cdev) { in acpi_cpu_unplug_cb()
292 cdev->cpu = NULL; in acpi_cpu_unplug_cb()