Lines Matching refs:dt_device_node
79 struct dt_device_node { struct
87 struct dt_device_node *parent; argument
88 struct dt_device_node *child; argument
89 struct dt_device_node *sibling; argument
90 struct dt_device_node *next; /* TODO: Remove it. Only use to know the last children */ argument
91 struct dt_device_node *allnext; argument
102 static inline struct dt_device_node *dev_to_dt(struct device *dev) in dev_to_dt() argument
106 return container_of(dev, struct dt_device_node, dev); in dev_to_dt()
111 struct dt_device_node *np;
172 const struct dt_device_node *controller;
213 extern struct dt_device_node *dt_host;
223 extern const struct dt_device_node *dt_interrupt_controller;
232 struct dt_device_node * __init
282 static inline const char *dt_node_full_name(const struct dt_device_node *np) in dt_node_full_name()
287 static inline const char *dt_node_name(const struct dt_device_node *np) in dt_node_name()
292 static inline bool_t dt_node_name_is_equal(const struct dt_device_node *np, in dt_node_name_is_equal()
298 static inline bool_t dt_node_path_is_equal(const struct dt_device_node *np, in dt_node_path_is_equal()
305 dt_device_type_is_equal(const struct dt_device_node *device, in dt_device_type_is_equal()
311 static inline void dt_device_set_used_by(struct dt_device_node *device, in dt_device_set_used_by()
318 static inline domid_t dt_device_used_by(const struct dt_device_node *device) in dt_device_used_by()
323 static inline void dt_device_set_protected(struct dt_device_node *device) in dt_device_set_protected()
328 static inline bool dt_device_is_protected(const struct dt_device_node *device) in dt_device_is_protected()
352 struct dt_device_node *dt_find_compatible_node(struct dt_device_node *from,
360 const void *dt_get_property(const struct dt_device_node *np,
363 const struct dt_property *dt_find_property(const struct dt_device_node *np,
375 bool_t dt_property_read_u32(const struct dt_device_node *np,
385 bool_t dt_property_read_u64(const struct dt_device_node *np,
396 static inline bool_t dt_property_read_bool(const struct dt_device_node *np, in dt_property_read_bool()
419 int dt_property_read_string(const struct dt_device_node *np,
426 bool_t dt_device_is_compatible(const struct dt_device_node *device,
449 struct dt_device_node *dt_find_node_by_name(struct dt_device_node *node,
455 struct dt_device_node *dt_find_node_by_type(struct dt_device_node *from,
464 struct dt_device_node *dt_find_node_by_alias(const char *alias);
472 struct dt_device_node *dt_find_node_by_path(const char *path);
486 struct dt_device_node **node);
494 const struct dt_device_node *dt_get_parent(const struct dt_device_node *node);
506 int dt_device_get_address(const struct dt_device_node *dev, unsigned int index,
516 unsigned int dt_number_of_irq(const struct dt_device_node *device);
525 unsigned int dt_number_of_address(const struct dt_device_node *device);
536 int dt_device_get_irq(const struct dt_device_node *device, unsigned int index,
548 int dt_device_get_raw_irq(const struct dt_device_node *device,
565 int dt_for_each_irq_map(const struct dt_device_node *dev,
566 int (*cb)(const struct dt_device_node *,
577 int dt_for_each_range(const struct dt_device_node *dev,
578 int (*cb)(const struct dt_device_node *,
590 int dt_n_size_cells(const struct dt_device_node *np);
599 int dt_n_addr_cells(const struct dt_device_node *np);
608 int dt_child_n_size_cells(const struct dt_device_node *parent);
618 int dt_child_n_addr_cells(const struct dt_device_node *parent);
628 bool_t dt_device_is_available(const struct dt_device_node *device);
639 bool_t dt_device_for_passthrough(const struct dt_device_node *device);
650 const struct dt_device_node *node);
661 struct dt_device_node *
662 dt_find_matching_node(struct dt_device_node *from,
688 void dt_set_range(__be32 **cellp, const struct dt_device_node *np,
702 void dt_child_set_range(__be32 **cellp, const struct dt_device_node *parent,
717 void dt_get_range(const __be32 **cellp, const struct dt_device_node *np,
729 struct dt_device_node *dt_parse_phandle(const struct dt_device_node *np,
762 int dt_parse_phandle_with_args(const struct dt_device_node *np,