Lines Matching refs:device

75 MODULE_DESCRIPTION("Sony laptop extras driver (SPIC and SNC ACPI device)");
86 "set this if you don't want to enable the SPIC device");
108 "minor number of the misc device for the SPIC compatibility code, "
182 static int sony_nc_rfkill_setup(struct acpi_device *device,
621 /* the device uses 1-based values, while the backlight subsystem uses
628 static ssize_t sony_nc_sysfs_show(struct device *, struct device_attribute *,
630 static ssize_t sony_nc_sysfs_store(struct device *, struct device_attribute *,
816 static ssize_t sony_nc_handles_show(struct device *dev,
949 static ssize_t sony_nc_sysfs_show(struct device *dev, struct device_attribute *attr,
970 static ssize_t sony_nc_sysfs_store(struct device *dev,
1006 * Backlight device
1182 static void sony_nc_notify(struct acpi_device *device, u32 event)
1224 * update the rfkill device status when the
1291 * ACPI device
1293 static void sony_nc_function_setup(struct acpi_device *device,
1366 result = sony_nc_rfkill_setup(device, handle);
1509 dprintk("Resuming SNC device\n");
1547 static int sony_nc_resume(struct device *dev)
1606 static int sony_nc_setup_rfkill(struct acpi_device *device,
1637 rfk = rfkill_alloc(name, &device->dev, type,
1698 static int sony_nc_rfkill_setup(struct acpi_device *device,
1740 sony_nc_setup_rfkill(device, SONY_WIFI);
1743 sony_nc_setup_rfkill(device, SONY_BLUETOOTH);
1748 sony_nc_setup_rfkill(device, SONY_WWAN);
1751 sony_nc_setup_rfkill(device, SONY_WIMAX);
1791 static ssize_t sony_nc_kbd_backlight_mode_store(struct device *dev,
1811 static ssize_t sony_nc_kbd_backlight_mode_show(struct device *dev,
1835 static ssize_t sony_nc_kbd_backlight_timeout_store(struct device *dev,
1855 static ssize_t sony_nc_kbd_backlight_timeout_show(struct device *dev,
1980 static ssize_t sony_nc_battery_care_limit_store(struct device *dev,
2037 static ssize_t sony_nc_battery_care_limit_show(struct device *dev,
2064 static ssize_t sony_nc_battery_care_health_show(struct device *dev,
2182 static ssize_t sony_nc_thermal_profiles_show(struct device *dev,
2198 static ssize_t sony_nc_thermal_mode_store(struct device *dev,
2222 static ssize_t sony_nc_thermal_mode_show(struct device *dev,
2322 static ssize_t sony_nc_lid_resume_store(struct device *dev,
2363 static ssize_t sony_nc_lid_resume_show(struct device *dev,
2497 static ssize_t sony_nc_gfx_switch_status_show(struct device *dev,
2554 static ssize_t sony_nc_highspeed_charging_store(struct device *dev,
2573 static ssize_t sony_nc_highspeed_charging_show(struct device *dev,
2628 static ssize_t sony_nc_lowbatt_store(struct device *dev,
2647 static ssize_t sony_nc_lowbatt_show(struct device *dev,
2694 static ssize_t sony_nc_hsfan_store(struct device *dev,
2713 static ssize_t sony_nc_hsfan_show(struct device *dev,
2724 static ssize_t sony_nc_fanspeed_show(struct device *dev,
2801 static ssize_t sony_nc_usb_charge_store(struct device *dev,
2820 static ssize_t sony_nc_usb_charge_show(struct device *dev,
2875 static ssize_t sony_nc_panelid_show(struct device *dev,
2922 static ssize_t sony_nc_smart_conn_store(struct device *dev,
2981 static ssize_t sony_nc_touchpad_store(struct device *dev,
3003 static ssize_t sony_nc_touchpad_show(struct device *dev,
3157 pr_warn("unable to register backlight device\n");
3169 static int sony_nc_add(struct acpi_device *device)
3175 sony_nc_acpi_device = device;
3176 strcpy(acpi_device_class(device), "sony/hotkey");
3178 sony_nc_acpi_handle = device->handle;
3180 /* read device status */
3181 result = acpi_bus_get_status(device);
3182 /* bail IFF the above call was successful and the device is not present */
3183 if (!result && !device->status.present) {
3204 result = sony_laptop_setup_input(device);
3221 sony_nc_function_setup(device, sony_pf_device);
3227 /* create sony_pf sysfs attributes related to the SNC device */
3286 static int sony_nc_remove(struct acpi_device *device)
3665 * irq and we can read new data from the device:
3905 static ssize_t sony_pic_wwanpower_store(struct device *dev,
3923 static ssize_t sony_pic_wwanpower_show(struct device *dev,
3944 static ssize_t sony_pic_bluetoothpower_store(struct device *dev,
3962 static ssize_t sony_pic_bluetoothpower_show(struct device *dev,
3985 static ssize_t sony_pic_fanspeed_store(struct device *dev,
4002 static ssize_t sony_pic_fanspeed_show(struct device *dev,
4177 /* sync the backlight device status */
4314 pr_info("device allocated minor is %d\n",
4430 static int sony_pic_possible_resources(struct acpi_device *device)
4435 if (!device)
4438 /* get device status */
4441 result = acpi_bus_get_status(device);
4447 if (!device->status.enabled)
4456 status = acpi_walk_resources(device->handle, METHOD_NAME__PRS,
4467 * Disable the spic device by calling its _DIS method
4469 static int sony_pic_disable(struct acpi_device *device)
4471 acpi_status ret = acpi_evaluate_object(device->handle, "_DIS", NULL,
4487 static int sony_pic_enable(struct acpi_device *device,
4569 status = acpi_set_current_resources(device->handle, &buffer);
4578 /* Necessary device initializations calls (from sonypi) */
4658 static int sony_pic_remove(struct acpi_device *device)
4663 if (sony_pic_disable(device)) {
4664 pr_err("Couldn't disable device\n");
4698 static int sony_pic_add(struct acpi_device *device)
4704 spic_dev.acpi_dev = device;
4705 strcpy(acpi_device_class(device), "sony/hotkey");
4710 result = sony_pic_possible_resources(device);
4717 result = sony_laptop_setup_input(device);
4787 result = sony_pic_enable(device, spic_dev.cur_ioport, spic_dev.cur_irq);
4789 pr_err("Couldn't enable device\n");
4794 /* create device attributes */
4810 sony_pic_disable(device);
4844 static int sony_pic_suspend(struct device *dev)
4851 static int sony_pic_resume(struct device *dev)