Lines Matching refs:device
14 int (*probe) (struct device * dev);
15 int (*remove) (struct device * dev);
17 int (*suspend) (struct device * dev, pm_message_t state);
18 int (*resume) (struct device * dev);
29 device instance).
61 The most common example of this are device ID structures. A driver
62 typically defines an array of device IDs that it supports. The format
63 of these structures and the semantics for comparing device IDs are
110 used by the device model core or the bus driver.
135 int (*callback)(struct device * dev, void * data));
140 node access, and does proper reference counting on each device as it
161 int (*probe) (struct device * dev);
164 and the driver partially bound to the device. Drivers commonly use
166 and other routines. That type often provides device resource data, such
171 given device. That includes verifying that the device is present, that
175 When the driver has successfully bound itself to that device, then probe()
177 the driver to that device.
180 the driver did not bind to this device, in which case it should have
183 int (*remove) (struct device * dev);
185 remove is called to unbind a driver from a device. This may be
186 called if a device is physically removed from the system, if the
190 It is up to the driver to determine if the device is present or
192 device; i.e. anything in the device's driver_data field.
194 If the device is still present, it should quiesce the device and place
197 int (*suspend) (struct device * dev, pm_message_t state);
199 suspend is called to put the device in a low power state.
201 int (*resume) (struct device * dev);
203 Resume is used to bring a device back from a low power state.