Lines Matching refs:device
16 * misc device: /dev/watchdog.
32 #include <linux/cdev.h> /* For character device */
55 /* Reference to watchdog device behind /dev/watchdog */
92 * device, we take care of feeding the watchdog if it is
181 * @wdd: The watchdog device to ping
186 * We only ping when the watchdog device is running.
241 * @wdd: The watchdog device to start
284 * @wdd: The watchdog device to stop
324 * @wdd: The watchdog device to get the status from
361 * @wdd: The watchdog device to set the timeout for
396 * @wdd: The watchdog device to set the timeout for
422 * @wdd: The watchdog device to get the remaining time from
444 static ssize_t nowayout_show(struct device *dev, struct device_attribute *attr,
453 static ssize_t nowayout_store(struct device *dev, struct device_attribute *attr,
473 static ssize_t status_show(struct device *dev, struct device_attribute *attr,
488 static ssize_t bootstatus_show(struct device *dev,
497 static ssize_t timeleft_show(struct device *dev, struct device_attribute *attr,
515 static ssize_t timeout_show(struct device *dev, struct device_attribute *attr,
524 static ssize_t min_timeout_show(struct device *dev,
533 static ssize_t max_timeout_show(struct device *dev,
542 static ssize_t pretimeout_show(struct device *dev,
551 static ssize_t options_show(struct device *dev, struct device_attribute *attr,
560 static ssize_t fw_version_show(struct device *dev, struct device_attribute *attr,
569 static ssize_t identity_show(struct device *dev, struct device_attribute *attr,
578 static ssize_t state_show(struct device *dev, struct device_attribute *attr,
590 static ssize_t pretimeout_available_governors_show(struct device *dev,
597 static ssize_t pretimeout_governor_show(struct device *dev,
606 static ssize_t pretimeout_governor_store(struct device *dev,
623 struct device *dev = kobj_to_dev(kobj);
667 * @wdd: The watchdog device to do the ioctl on
691 * A write to a watchdog device is defined as a keepalive ping.
739 * watchdog_ioctl - handle the different ioctl's for the watchdog device
740 * @file: File handle to the device
855 * @inode: Inode of device
856 * @file: File handle to device
858 * When the /dev/watchdog* device gets opened, we start the watchdog.
859 * Watch out: the /dev/watchdog device is single open, so we make sure
871 /* Get the corresponding watchdog device */
885 * If the /dev/watchdog device is open, we don't want the module
907 * case the device gets magic-closed or WDIOS_DISABLECARD is
922 static void watchdog_core_data_release(struct device *dev)
932 * watchdog_release - release the watchdog device
933 * @inode: Inode of device
934 * @file: File handle to device
1013 * watchdog_cdev_register - register watchdog character device
1014 * @wdd: Watchdog device
1016 * Register a watchdog character device including handling the legacy
1078 /* Add the device */
1081 pr_err("watchdog%d unable to add device %d:%d\n",
1114 * watchdog_cdev_unregister - unregister watchdog character device
1115 * @wdd: Watchdog device
1117 * Unregister watchdog character device and if needed the legacy
1118 * /dev/watchdog device.
1149 * watchdog_dev_register - register a watchdog device
1150 * @wdd: Watchdog device
1152 * Register a watchdog device including handling the legacy
1174 * watchdog_dev_unregister - unregister a watchdog device
1175 * @wdd: watchdog device
1177 * Unregister watchdog device and if needed the legacy
1178 * /dev/watchdog device.
1188 * @wdd: Watchdog device