Lines Matching refs:device

264 static ssize_t rrtime_store(struct device *dev,
278 static ssize_t rrtime_show(struct device *dev,
285 static ssize_t idlepct_store(struct device *dev,
299 static ssize_t idlepct_show(struct device *dev,
306 static ssize_t idlecpus_store(struct device *dev,
318 static ssize_t idlecpus_show(struct device *dev,
327 static int acpi_pad_add_sysfs(struct acpi_device *device)
331 result = device_create_file(&device->dev, &dev_attr_idlecpus);
334 result = device_create_file(&device->dev, &dev_attr_idlepct);
336 device_remove_file(&device->dev, &dev_attr_idlecpus);
339 result = device_create_file(&device->dev, &dev_attr_rrtime);
341 device_remove_file(&device->dev, &dev_attr_idlecpus);
342 device_remove_file(&device->dev, &dev_attr_idlepct);
348 static void acpi_pad_remove_sysfs(struct acpi_device *device)
350 device_remove_file(&device->dev, &dev_attr_idlecpus);
351 device_remove_file(&device->dev, &dev_attr_idlepct);
352 device_remove_file(&device->dev, &dev_attr_rrtime);
407 struct acpi_device *device = data;
412 acpi_bus_generate_netlink_event(device->pnp.device_class,
413 dev_name(&device->dev), event, 0);
421 static int acpi_pad_add(struct acpi_device *device)
425 strcpy(acpi_device_name(device), ACPI_PROCESSOR_AGGREGATOR_DEVICE_NAME);
426 strcpy(acpi_device_class(device), ACPI_PROCESSOR_AGGREGATOR_CLASS);
428 if (acpi_pad_add_sysfs(device))
431 status = acpi_install_notify_handler(device->handle,
432 ACPI_DEVICE_NOTIFY, acpi_pad_notify, device);
434 acpi_pad_remove_sysfs(device);
441 static int acpi_pad_remove(struct acpi_device *device)
447 acpi_remove_notify_handler(device->handle,
449 acpi_pad_remove_sysfs(device);