Lines Matching refs:udevice
165 struct udevice { struct
172 struct udevice *parent; argument
199 static inline u32 dev_get_flags(const struct udevice *dev) in dev_get_flags() argument
204 static inline void dev_or_flags(struct udevice *dev, u32 or) in dev_or_flags()
209 static inline void dev_bic_flags(struct udevice *dev, u32 bic) in dev_bic_flags()
220 static inline ofnode dev_ofnode(const struct udevice *dev) in dev_ofnode()
240 static inline int dev_of_offset(const struct udevice *dev) in dev_of_offset()
249 static inline bool dev_has_ofnode(const struct udevice *dev) in dev_has_ofnode()
258 static inline void dev_set_ofnode(struct udevice *dev, ofnode node) in dev_set_ofnode()
265 static inline int dev_seq(const struct udevice *dev) in dev_seq()
338 int (*bind)(struct udevice *dev);
339 int (*probe)(struct udevice *dev);
340 int (*remove)(struct udevice *dev);
341 int (*unbind)(struct udevice *dev);
342 int (*of_to_plat)(struct udevice *dev);
343 int (*child_post_bind)(struct udevice *dev);
344 int (*child_pre_probe)(struct udevice *dev);
345 int (*child_post_remove)(struct udevice *dev);
380 void *dev_get_plat(const struct udevice *dev);
390 void *dev_get_parent_plat(const struct udevice *dev);
400 void *dev_get_uclass_plat(const struct udevice *dev);
410 void *dev_get_priv(const struct udevice *dev);
424 void *dev_get_parent_priv(const struct udevice *dev);
434 void *dev_get_uclass_priv(const struct udevice *dev);
442 struct udevice *dev_get_parent(const struct udevice *child);
469 ulong dev_get_driver_data(const struct udevice *dev);
480 const void *dev_get_driver_ops(const struct udevice *dev);
488 enum uclass_id device_get_uclass_id(const struct udevice *dev);
498 const char *dev_get_uclass_name(const struct udevice *dev);
512 int device_get_child(const struct udevice *parent, int index,
513 struct udevice **devp);
522 int device_get_child_count(const struct udevice *parent);
535 int device_find_child_by_seq(const struct udevice *parent, int seq,
536 struct udevice **devp);
553 int device_get_child_by_seq(const struct udevice *parent, int seq,
554 struct udevice **devp);
566 int device_find_child_by_of_offset(const struct udevice *parent, int of_offset,
567 struct udevice **devp);
581 int device_get_child_by_of_offset(const struct udevice *parent, int of_offset,
582 struct udevice **devp);
597 int device_find_global_by_ofnode(ofnode node, struct udevice **devp);
611 int device_get_global_by_ofnode(ofnode node, struct udevice **devp);
626 struct udevice **devp);
640 int device_get_by_driver_info_idx(uint idx, struct udevice **devp);
649 int device_find_first_child(const struct udevice *parent,
650 struct udevice **devp);
659 int device_find_next_child(struct udevice **devp);
674 int device_find_first_inactive_child(const struct udevice *parent,
676 struct udevice **devp);
686 int device_find_first_child_by_uclass(const struct udevice *parent,
688 struct udevice **devp);
698 int device_find_child_by_name(const struct udevice *parent, const char *name,
699 struct udevice **devp);
711 int device_first_child_ofdata_err(struct udevice *parent,
712 struct udevice **devp);
724 int device_next_child_ofdata_err(struct udevice **devp);
735 int device_first_child_err(struct udevice *parent, struct udevice **devp);
746 int device_next_child_err(struct udevice **devp);
754 bool device_has_children(const struct udevice *dev);
763 bool device_has_active_children(const struct udevice *dev);
776 bool device_is_last_sibling(const struct udevice *dev);
794 int device_set_name(struct udevice *dev, const char *name);
804 void device_set_name_alloced(struct udevice *dev);
816 bool device_is_compatible(const struct udevice *dev, const char *compat);
851 static inline bool device_is_on_pci_bus(const struct udevice *dev) in device_is_on_pci_bus()
925 int dm_scan_fdt_dev(struct udevice *dev);