Lines Matching full:node

169 	int node;  member
175 * fdtdec_parse_phandle_with_args() - Find a node pointed by phandle in a list
193 * To get a device_node of the `node2' node you may call this:
201 * @src_node: Offset of device tree node containing a list
225 * this function will return a pointer to the node the alias points to, and
226 * then update *upto to 1. Next time you call this function, the next node
235 * @return offset of next compatible node, or -FDT_ERR_NOTFOUND if no more
241 * Find the compatible ID for a given node.
243 * Generally each node has at least one compatible string attached to it.
248 * @param node Node containing compatible string to find
251 enum fdt_compat_id fdtdec_lookup(const void *blob, int node);
254 * Find the next compatible node for a peripheral.
256 * Do the first call with node = 0. This function will return a pointer to
257 * the next compatible node. Next time you call this function, pass the
258 * value returned, and the next node will be provided.
261 * @param node Start node for search
263 * @return offset of next compatible node, or -FDT_ERR_NOTFOUND if no more
265 int fdtdec_next_compatible(const void *blob, int node,
271 * Do the first call with node set to the parent and depth = 0. This
272 * function will return the offset of the next compatible node. Next time
273 * you call this function, pass the node value returned last time, with
274 * depth unchanged, and the next node will be provided.
277 * @param node Start node for search
280 * @return offset of next compatible node, or -FDT_ERR_NOTFOUND if no more
282 int fdtdec_next_compatible_subnode(const void *blob, int node,
286 * Look up an address property in a node and return the parsed address, and
295 * #address-cells and #size-cells properties in the parent node.
298 * @param node node to examine
305 * using the parent node's ranges property.
308 fdt_addr_t fdtdec_get_addr_size_fixed(const void *blob, int node,
313 * Look up an address property in a node and return the parsed address, and
317 * the address and size by parsing the provided parent node's #address-cells
321 * @param parent parent node of @node
322 * @param node node to examine
327 * using the parent node's ranges property.
331 int node, const char *prop_name, int index, fdt_size_t *sizep,
335 * Look up an address property in a node and return the parsed address, and
339 * the address and size by parsing the parent node's #address-cells
340 * and #size-cells properties. The parent node is automatically found.
347 * @param parent parent node of @node
348 * @param node node to examine
353 * using the parent node's ranges property.
356 fdt_addr_t fdtdec_get_addr_size_auto_noparent(const void *blob, int node,
361 * Look up an address property in a node and return the parsed address.
379 * @param node node to examine
383 fdt_addr_t fdtdec_get_addr(const void *blob, int node,
387 * Look up an address property in a node and return the parsed address, and
406 * @param node node to examine
411 fdt_addr_t fdtdec_get_addr_size(const void *blob, int node,
415 * Look at an address property in a node and return the pci address which
420 * @param node node to examine
428 int fdtdec_get_pci_addr(const void *blob, int node, enum fdt_pci_space type,
432 * Look at the compatible property of a device node that represents a PCI
436 * @param node node to examine
441 int fdtdec_get_pci_vendev(const void *blob, int node,
445 * Look at the pci address of a device node that represents a PCI device
457 * Look up a 32-bit integer property in a node and return it. The property
462 * @param node node to examine
467 s32 fdtdec_get_int(const void *blob, int node, const char *prop_name,
475 * @param node node to examine
480 unsigned int fdtdec_get_uint(const void *blob, int node, const char *prop_name,
495 * Look up a 64-bit integer property in a node and return it. The property
501 * @param node node to examine
506 uint64_t fdtdec_get_uint64(const void *blob, int node, const char *prop_name,
510 * Checks whether a node is enabled.
517 * @param node node to examine
520 int fdtdec_get_is_enabled(const void *blob, int node);
545 * To use this, optionally set up a /aliases node with alias properties for
559 * If no alias node is found, then the node list will be returned in the
560 * order found in the fdt. If the aliases mention a node which doesn't
564 * If there is a gap in the aliases, then this function return a 0 node at
567 * This function checks node properties and will not return nodes which are
604 * Get the alias sequence number of a node
606 * This works out whether a node is pointed to by an alias, and if so, the
613 * @param node Node to look up
618 int fdtdec_get_alias_seq(const void *blob, const char *base, int node,
635 * Get a property from the /chosen node
644 * Get the offset of the given /chosen node
646 * This looks up a property in /chosen containing the path to another node,
647 * then finds the offset of that node.
651 * @return Node offset referred to by that chosen node, or -ve FDT_ERR_...
663 /* Look up a phandle and follow it to its node. Then return the offset
664 * of that node.
667 * @param node node to examine
669 * @return node offset if found, -ve error code on error
671 int fdtdec_lookup_phandle(const void *blob, int node, const char *prop_name);
674 * Look up a property in a node and return its contents in an integer
679 * @param node node to examine
686 int fdtdec_get_int_array(const void *blob, int node, const char *prop_name,
690 * Look up a property in a node and return its contents in an integer
695 * @param node node to examine
702 int fdtdec_get_int_array_count(const void *blob, int node,
706 * Look up a property in a node and return a pointer to its contents as a
715 * @param node node to examine
721 const u32 *fdtdec_locate_array(const void *blob, int node,
725 * Look up a boolean property in a node and return it.
731 * @param node node to examine
735 int fdtdec_get_bool(const void *blob, int node, const char *prop_name);
738 * Count child nodes of one parent node.
741 * @param node parent node
742 * @return number of child node; 0 if there is not child node
744 int fdtdec_get_child_count(const void *blob, int node);
752 * @param prop_name Node property name
780 * Look up a property in a node and return its contents in a byte
785 * @param node node to examine
792 int fdtdec_get_byte_array(const void *blob, int node, const char *prop_name,
796 * Look up a property in a node and return a pointer to its contents as a
802 * @param node node to examine
808 const u8 *fdtdec_locate_byte_array(const void *blob, int node,
815 * @param node node to examine
821 int fdt_get_resource(const void *fdt, int node, const char *property,
831 * @param node node to examine
837 int fdt_get_named_resource(const void *fdt, int node, const char *property,
907 * Decode display timings from the supplied 'display-timings' node.
912 * @param node 'display-timing' node containing the timing subnodes
917 int fdtdec_decode_display_timing(const void *blob, int node, int index,
933 * @return 0 if OK, -EINVAL if the /memory node or reg property is missing or
950 * @return 0 if OK, -EINVAL if the /memory node or reg property is missing or
991 * RAM size is normally set in a /memory node and consists of a list of
1011 * @param area Name of node to check (NULL means "/memory")