Lines Matching refs:device

20 #include <linux/device/bus.h>
23 * enum probe_type - device driver probe type to try
35 * device registration (with the exception of -EPROBE_DEFER
51 * struct device_driver - The basic device driver structure
52 * @name: Name of the device driver.
53 * @bus: The bus which the device of this driver belongs to.
60 * @probe: Called to query the existence of a specific device,
62 * to a specific device.
63 * @sync_state: Called to sync device state to software state after all the
64 * state tracking consumers linked to this device (present at
66 * driver. If the device has no consumers, this function will
67 * be called at late_initcall_sync level. If the device has
70 * @remove: Called when the device is removed from the system to
71 * unbind a device from this driver.
72 * @shutdown: Called at shut-down time to quiesce the device.
73 * @suspend: Called to put the device to sleep mode. Usually to a
75 * @resume: Called to bring a device from sleep mode.
78 * @dev_groups: Additional attributes attached to device instance once the
80 * @pm: Power management operations of the device which matched
82 * @coredump: Called when sysfs entry is written to. The device driver
88 * The device driver-model tracks all of the drivers known to the system.
93 * of any specific device.
108 int (*probe) (struct device *dev);
109 void (*sync_state)(struct device *dev);
110 int (*remove) (struct device *dev);
111 void (*shutdown) (struct device *dev);
112 int (*suspend) (struct device *dev, pm_message_t state);
113 int (*resume) (struct device *dev);
118 void (*coredump) (struct device *dev);
153 int driver_set_override(struct device *dev, const char **override,
156 struct device *start,
158 int (*fn)(struct device *dev,
160 struct device *driver_find_device(struct device_driver *drv,
161 struct device *start, const void *data,
162 int (*match)(struct device *dev, const void *data));
165 * driver_find_device_by_name - device iterator for locating a particular device
168 * @name: name of the device to match
170 static inline struct device *driver_find_device_by_name(struct device_driver *drv,
177 * driver_find_device_by_of_node- device iterator for locating a particular device
182 static inline struct device *
190 * driver_find_device_by_fwnode- device iterator for locating a particular device
195 static inline struct device *
203 * driver_find_device_by_devt- device iterator for locating a particular device
208 static inline struct device *driver_find_device_by_devt(struct device_driver *drv,
214 static inline struct device *driver_find_next_device(struct device_driver *drv,
215 struct device *start)
222 * driver_find_device_by_acpi_dev : device iterator for locating a particular
223 * device matching the ACPI_COMPANION device.
225 * @adev: ACPI_COMPANION device to match.
227 static inline struct device *
234 static inline struct device *
242 void driver_deferred_probe_add(struct device *dev);
243 int driver_deferred_probe_check_state(struct device *dev);