Lines Matching refs:device
14 #include <linux/device.h>
43 * device on the network and w1_max_slave_count is set to 1, the device id can
59 static int w1_master_match(struct device *dev, struct device_driver *drv)
64 static int w1_master_probe(struct device *dev)
69 static void w1_master_release(struct device *dev)
78 static void w1_slave_release(struct device *dev)
88 static ssize_t name_show(struct device *dev, struct device_attribute *attr, char *buf)
96 static ssize_t id_show(struct device *dev,
171 static int w1_uevent(struct device *dev, struct kobj_uevent_env *env);
185 struct device w1_master_device = {
199 struct device w1_slave_device = {
208 static ssize_t w1_master_attribute_show_name(struct device *dev, struct device_attribute *attr, char *buf)
220 static ssize_t w1_master_attribute_store_search(struct device * dev,
242 static ssize_t w1_master_attribute_show_search(struct device *dev,
256 static ssize_t w1_master_attribute_store_pullup(struct device *dev,
275 static ssize_t w1_master_attribute_show_pullup(struct device *dev,
289 static ssize_t w1_master_attribute_show_pointer(struct device *dev, struct device_attribute *attr, char *buf)
300 static ssize_t w1_master_attribute_show_timeout(struct device *dev, struct device_attribute *attr, char *buf)
307 static ssize_t w1_master_attribute_show_timeout_us(struct device *dev,
315 static ssize_t w1_master_attribute_store_max_slave_count(struct device *dev,
333 static ssize_t w1_master_attribute_show_max_slave_count(struct device *dev, struct device_attribute *attr, char *buf)
344 static ssize_t w1_master_attribute_show_attempts(struct device *dev, struct device_attribute *attr, char *buf)
355 static ssize_t w1_master_attribute_show_slave_count(struct device *dev, struct device_attribute *attr, char *buf)
366 static ssize_t w1_master_attribute_show_slaves(struct device *dev,
389 static ssize_t w1_master_attribute_show_add(struct device *dev,
394 "write device id xx-xxxxxxxxxxxx to add slave\n");
398 static int w1_atoreg_num(struct device *dev, const char *buf, size_t count,
430 dev_info(dev, "With CRC device is %02x.%012llx.%02x.\n",
457 static ssize_t w1_master_attribute_store_add(struct device *dev,
472 * for the new device to see if it is out there or not. But the
486 static ssize_t w1_master_attribute_show_remove(struct device *dev,
491 "write device id xx-xxxxxxxxxxxx to remove slave\n");
495 static ssize_t w1_master_attribute_store_remove(struct device *dev,
578 static int w1_uevent(struct device *dev, struct kobj_uevent_env *env)
646 struct device *hwmon
653 "could not create hwmon device\n");
728 "%s: failed to allocate new slave device.\n",
883 dev_dbg(&dev->dev, "Reconnecting slaves in device %s "
908 dev_dbg(&dev->dev, "Reconnecting slaves in device %s "
939 * @dev: The master device to search
942 * @cb: Function to call when a device is found
975 * Reset bus and all 1-wire device state machines
978 * Return 0 - device(s) present, 1 - no devices present.
1014 /* quit if no device responded */
1022 /* extract the direction taken & update the device number */
1097 * @dev: w1_master device