Lines Matching refs:device_node

36 struct device_node *of_root;
38 struct device_node *of_chosen;
39 struct device_node *of_aliases;
40 struct device_node *of_stdout;
54 * or parent members of struct device_node.
58 bool of_node_name_eq(const struct device_node *np, const char *name)
73 bool of_node_name_prefix(const struct device_node *np, const char *prefix)
82 static bool __of_node_is_type(const struct device_node *np, const char *type)
89 int of_bus_n_addr_cells(struct device_node *np)
101 int of_n_addr_cells(struct device_node *np)
110 int of_bus_n_size_cells(struct device_node *np)
122 int of_n_size_cells(struct device_node *np)
132 int __weak of_node_to_nid(struct device_node *np)
141 static struct device_node *phandle_cache[OF_PHANDLE_CACHE_SZ];
154 struct device_node *np;
168 struct device_node *np;
191 static struct property *__of_find_property(const struct device_node *np,
210 struct property *of_find_property(const struct device_node *np,
225 struct device_node *__of_find_all_nodes(struct device_node *prev)
227 struct device_node *np;
250 struct device_node *of_find_all_nodes(struct device_node *prev)
252 struct device_node *np;
268 const void *__of_get_property(const struct device_node *np,
280 const void *of_get_property(const struct device_node *np, const char *name,
313 static bool __of_find_n_match_cpu_property(struct device_node *cpun,
345 bool __weak arch_find_n_match_cpu_physical_id(struct device_node *cpun,
380 struct device_node *of_get_cpu_node(int cpu, unsigned int *thread)
382 struct device_node *cpun;
393 * of_cpu_node_to_id: Get the logical CPU number for a given device_node
395 * @cpu_node: Pointer to the device_node for CPU.
397 * Return: The logical CPU number of the given CPU device_node or -ENODEV if the
400 int of_cpu_node_to_id(struct device_node *cpu_node)
404 struct device_node *np;
433 struct device_node *of_get_cpu_state_node(struct device_node *cpu_node,
442 struct device_node *state_node =
484 static int __of_device_is_compatible(const struct device_node *device,
525 int of_device_is_compatible(const struct device_node *device,
542 int of_device_compatible_match(struct device_node *device,
569 struct device_node *root;
589 static bool __of_device_is_available(const struct device_node *device)
617 bool of_device_is_available(const struct device_node *device)
642 bool of_device_is_big_endian(const struct device_node *device)
660 struct device_node *of_get_parent(const struct device_node *node)
662 struct device_node *np;
686 struct device_node *of_get_next_parent(struct device_node *node)
688 struct device_node *parent;
702 static struct device_node *__of_get_next_child(const struct device_node *node,
703 struct device_node *prev)
705 struct device_node *next;
730 struct device_node *of_get_next_child(const struct device_node *node,
731 struct device_node *prev)
733 struct device_node *next;
751 struct device_node *of_get_next_available_child(const struct device_node *node,
752 struct device_node *prev)
754 struct device_node *next;
782 struct device_node *of_get_next_cpu_node(struct device_node *prev)
784 struct device_node *next = NULL;
786 struct device_node *node;
822 struct device_node *of_get_compatible_child(const struct device_node *parent,
825 struct device_node *child;
847 struct device_node *of_get_child_by_name(const struct device_node *node,
850 struct device_node *child;
859 struct device_node *__of_find_node_by_path(struct device_node *parent,
862 struct device_node *child;
877 struct device_node *__of_find_node_by_full_path(struct device_node *node,
883 struct device_node *tmp = node;
913 struct device_node *of_find_node_opts_by_path(const char *path, const char **opts)
915 struct device_node *np = NULL;
971 struct device_node *of_find_node_by_name(struct device_node *from,
974 struct device_node *np;
999 struct device_node *of_find_node_by_type(struct device_node *from,
1002 struct device_node *np;
1029 struct device_node *of_find_compatible_node(struct device_node *from,
1032 struct device_node *np;
1058 struct device_node *of_find_node_with_property(struct device_node *from,
1061 struct device_node *np;
1083 const struct device_node *node)
1104 * of_match_node - Tell if a device_node has a matching of_match structure
1111 const struct device_node *node)
1136 struct device_node *of_find_matching_node_and_match(struct device_node *from,
1140 struct device_node *np;
1175 int of_modalias_node(struct device_node *node, char *modalias, int len)
1196 struct device_node *of_find_node_by_phandle(phandle handle)
1198 struct device_node *np = NULL;
1241 const struct device_node *np,
1375 static int __of_parse_phandle_with_args(const struct device_node *np,
1428 * of_parse_phandle - Resolve a phandle property to a device_node pointer
1434 * Return: The device_node pointer with refcount incremented. Use
1437 struct device_node *of_parse_phandle(const struct device_node *np,
1482 * To get a device_node of the ``node2`` node you may call this:
1485 int of_parse_phandle_with_args(const struct device_node *np, const char *list_name,
1542 * To get a device_node of the ``node2`` node you may call this:
1545 int of_parse_phandle_with_args_map(const struct device_node *np,
1552 struct device_node *cur, *new = NULL;
1715 * To get a device_node of the ``node2`` node you may call this:
1718 int of_parse_phandle_with_fixed_args(const struct device_node *np,
1744 int of_count_phandle_with_args(const struct device_node *np, const char *list_name,
1786 int __of_add_property(struct device_node *np, struct property *prop)
1809 int of_add_property(struct device_node *np, struct property *prop)
1831 int __of_remove_property(struct device_node *np, struct property *prop)
1860 int of_remove_property(struct device_node *np, struct property *prop)
1886 int __of_update_property(struct device_node *np, struct property *newprop,
1921 int of_update_property(struct device_node *np, struct property *newprop)
1947 static void of_alias_add(struct alias_prop *ap, struct device_node *np,
1996 struct device_node *np;
2030 * of_alias_get_id - Get alias id for the given device_node
2031 * @np: Pointer to the given device_node
2032 * @stem: Alias stem of the given device_node
2035 * device_node and alias stem.
2039 int of_alias_get_id(struct device_node *np, const char *stem)
2063 * @stem: Alias stem of the given device_node
2150 bool of_console_check(struct device_node *dn, char *name, int index)
2171 struct device_node *of_find_next_cache_node(const struct device_node *np)
2173 struct device_node *child, *cache_node;
2205 struct device_node *prev = NULL, *np = of_cpu_device_node_get(cpu);
2237 int of_map_id(struct device_node *np, u32 id,
2239 struct device_node **target, u32 *id_out)
2275 struct device_node *phandle_node;