Lines Matching full:device
58 * @post_bind: Called after a new device is bound to this uclass
59 * @pre_unbind: Called before a device is unbound from this uclass
60 * @pre_probe: Called before a new device is probed
61 * @post_probe: Called after a new device is probed
62 * @pre_remove: Called before a device is removed
63 * @child_post_bind: Called after a child is bound to a device in this uclass
71 * @per_device_auto_alloc_size: Each device can hold private data owned
74 * @per_device_platdata_auto_alloc_size: Each device can hold platform data
77 * @per_child_auto_alloc_size: Each child device (of a parent in this
78 * uclass) can hold parent data for the device/uclass. This value is only
82 * in the child device's parent_platdata pointer. This value is only used as
144 * uclass_get_device() - Get a uclass device based on an ID and index
146 * The device is probed to activate it ready for use.
149 * @index: Device number within that uclass (0=first)
150 * @devp: Returns pointer to device (there is only one per for each ID)
156 * uclass_get_device_by_name() - Get a uclass device by its name
160 * The device is probed to activate it ready for use.
163 * @name: name of a device to get
164 * @devp: Returns pointer to device (the first one with the name)
171 * uclass_get_device_by_seq() - Get a uclass device based on an ID and sequence
173 * If an active device has this sequence it will be returned. If there is no
174 * such device then this will check for a device that is requesting this
177 * The device is probed to activate it ready for use.
181 * @devp: Returns pointer to device (there is only one for each seq)
187 * uclass_get_device_by_of_offset() - Get a uclass device by device tree node
190 * device tree node.
192 * The device is probed to activate it ready for use.
195 * @node: Device tree offset to search for (if -ve then -ENODEV is returned)
196 * @devp: Returns pointer to device (there is only one for each node)
203 * uclass_get_device_by_ofnode() - Get a uclass device by device tree node
206 * device tree node.
208 * The device is probed to activate it ready for use.
211 * @np: Device tree node to search for (if NULL then -ENODEV is returned)
212 * @devp: Returns pointer to device (there is only one for each node)
219 * uclass_get_device_by_phandle_id() - Get a uclass device by phandle id
223 * The device is probed to activate it ready for use.
227 * @devp: Returns pointer to device (there is only one for each node)
228 * @return 0 if OK, -ENODEV if there is no device match the phandle, other
235 * uclass_get_device_by_phandle() - Get a uclass device by phandle
239 * The device is probed to activate it ready for use.
242 * @parent: Parent device containing the phandle pointer
243 * @name: Name of property in the parent device node
244 * @devp: Returns pointer to device (there is only one for each node)
252 * uclass_get_device_by_driver() - Get a uclass device for a driver
258 * The device is probed to activate it ready for use.
262 * @devp: Returns pointer to the first device with that driver
269 * uclass_first_device() - Get the first device in a uclass
271 * The device returned is probed if necessary, and ready for use
277 * @devp: Returns pointer to the first device in that uclass if no error
278 * occurred, or NULL if there is no first device, or an error occurred with
279 * that device.
285 * uclass_first_device_err() - Get the first device in a uclass
287 * The device returned is probed if necessary, and ready for use
290 * @devp: Returns pointer to the first device in that uclass, or NULL if none
296 * uclass_next_device() - Get the next device in a uclass
298 * The device returned is probed if necessary, and ready for use
303 * @devp: On entry, pointer to device to lookup. On exit, returns pointer
304 * to the next device in the uclass if no error occurred, or NULL if there is
305 * no next device, or an error occurred with that next device.
311 * uclass_next_device_err() - Get the next device in a uclass
313 * The device returned is probed if necessary, and ready for use
315 * @devp: On entry, pointer to device to lookup. On exit, returns pointer
316 * to the next device in the uclass if no error occurred, or -ENODEV if
317 * there is no next device.
323 * uclass_first_device_check() - Get the first device in a uclass
325 * The device returned is probed if necessary, and ready for use
331 * @devp: Returns pointer to the first device in that uclass, or NULL if there
332 * is no first device
334 * it is still possible to move to the next device.
339 * uclass_next_device_check() - Get the next device in a uclass
341 * The device returned is probed if necessary, and ready for use
346 * @devp: On entry, pointer to device to lookup. On exit, returns pointer
347 * to the next device in the uclass if any
349 * it is still possible to move to the next device.
354 * uclass_resolve_seq() - Resolve a device's sequence number
358 * If the requested sequence number is in use, then this device will
361 * Note that the device's seq value is not changed by this function.
363 * @dev: Device for which to allocate sequence number
374 * @pos: struct udevice * to hold the current device. Set to NULL when there
388 * @pos: struct udevice * to hold the current device. Set to NULL when there
405 * @dev: struct udevice * to hold the current device. Set to NULL when there