Lines Matching refs:device

7  * The basic idea here is to enable a device to be attached to an
14 #include <linux/device.h>
28 struct device classdev;
49 * @classdev: the class device created by attribute_container_add_device.
54 attribute_container_classdev_to_container(struct device *classdev)
112 static void attribute_container_release(struct device *classdev)
116 struct device *dev = classdev->parent;
125 * @dev: device to add attributes to
126 * @fn: function to trigger addition of class device.
128 * This function allocates storage for the class device(s) to be
130 * fn is provided, the code will simply register the class device via
132 * the class device at the appropriate time. One of the things that
137 * it. Note: after this, the class device contains a reference to dev
141 attribute_container_add_device(struct device *dev,
143 struct device *,
144 struct device *))
191 * attribute_container_remove_device - make device eligible for removal.
193 * @dev: The generic device
194 * @fn: A function to call to remove the device
196 * This routine triggers device removal. If fn is NULL, then it is
201 * device, then you should use this routine with a fn that calls
206 attribute_container_remove_device(struct device *dev,
208 struct device *,
209 struct device *))
240 do_attribute_container_device_trigger_safe(struct device *dev,
243 struct device *, struct device *),
245 struct device *, struct device *))
286 * @dev: The generic device to run the trigger for
297 attribute_container_device_trigger_safe(struct device *dev,
299 struct device *,
300 struct device *),
302 struct device *,
303 struct device *))
345 * @dev: The generic device to run the trigger for
353 attribute_container_device_trigger(struct device *dev,
355 struct device *,
356 struct device *))
384 * @dev: The generic device to activate the trigger for
388 * matching containers (not the classdev) associated with a device.
394 attribute_container_trigger(struct device *dev,
396 struct device *))
411 * @classdev: The class device
413 * This simply creates all the class device sysfs files from the
417 attribute_container_add_attrs(struct device *classdev)
445 * @classdev: the class device to add
452 attribute_container_add_class_device(struct device *classdev)
469 struct device *dev,
470 struct device *classdev)
478 * @classdev: The class device to remove the files from
482 attribute_container_remove_attrs(struct device *classdev)
504 * @classdev: the class device
510 attribute_container_class_device_del(struct device *classdev)
520 * @dev: the generic device
522 * Looks up the device in the container's list of class devices and returns
525 struct device *
527 struct device *dev)
529 struct device *cdev = NULL;