Lines Matching defs:device

367 	struct device *dev = &asus->platform_device->dev;
377 dev_err(dev, "This device has tablet-mode-switch quirk but got ENODEV checking it. This is a bug.");
385 struct device *dev = &asus->platform_device->dev;
498 static ssize_t dgpu_disable_show(struct device *dev,
511 * the device and bus are powered.
513 static ssize_t dgpu_disable_store(struct device *dev,
542 static ssize_t charge_control_end_threshold_store(struct device *dev,
569 static ssize_t charge_control_end_threshold_show(struct device *device,
962 "but the pci device is %s\n",
1370 /* Hwmon device ***************************************************************/
1487 static ssize_t pwm1_show(struct device *dev,
1501 * we read a current value through the (now-deprecated) FAN_CTRL device.
1523 static ssize_t pwm1_store(struct device *dev,
1546 static ssize_t fan1_input_show(struct device *dev,
1583 static ssize_t pwm1_enable_show(struct device *dev,
1592 * For the CPU_FAN device, the spec indicates that we should be
1593 * able to read the device status and consult bit 19 to see if we
1601 static ssize_t pwm1_enable_store(struct device *dev,
1655 static ssize_t fan1_label_show(struct device *dev,
1662 static ssize_t asus_hwmon_temp1(struct device *dev,
1700 struct device *dev = container_of(kobj, struct device, kobj);
1739 struct device *dev = &asus->platform_device->dev;
1740 struct device *hwmon;
1746 pr_err("Could not register asus hwmon device\n");
1843 static ssize_t fan_boost_mode_show(struct device *dev,
1851 static ssize_t fan_boost_mode_store(struct device *dev,
1953 static ssize_t throttle_thermal_policy_show(struct device *dev,
1962 static ssize_t throttle_thermal_policy_store(struct device *dev,
2130 pr_err("Could not register backlight device\n");
2366 static ssize_t show_##_name(struct device *dev, \
2374 static ssize_t store_##_name(struct device *dev, \
2396 static ssize_t cpufv_store(struct device *dev, struct device_attribute *attr,
2433 struct device *dev = container_of(kobj, struct device, kobj);
2466 static void asus_wmi_sysfs_exit(struct platform_device *device)
2468 sysfs_remove_group(&device->dev.kobj, &platform_attribute_group);
2471 static int asus_wmi_sysfs_init(struct platform_device *device)
2473 return sysfs_create_group(&device->dev.kobj, &platform_attribute_group);
2476 /* Platform device ************************************************************/
2480 struct device *dev = &asus->platform_device->dev;
2821 static int asus_wmi_remove(struct platform_device *device)
2825 asus = platform_get_drvdata(device);
2844 static int asus_hotk_thaw(struct device *device)
2846 struct asus_wmi *asus = dev_get_drvdata(device);
2863 static int asus_hotk_resume(struct device *device)
2865 struct asus_wmi *asus = dev_get_drvdata(device);
2877 static int asus_hotk_restore(struct device *device)
2879 struct asus_wmi *asus = dev_get_drvdata(device);