Lines Matching +full:a +full:- +full:child +full:- +full:node +full:- +full:property
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * property.h - Unified device property interface.
84 if (fwnode_property_present(fwnode, "big-endian")) in fwnode_device_is_big_endian()
87 fwnode_property_present(fwnode, "native-endian")) in fwnode_device_is_big_endian()
99 * device_is_big_endian - check if a device has BE registers
102 * Returns: true if the device has a "big-endian" property, or if the kernel
103 * was compiled for BE *and* the device has a "native-endian" property.
115 * device_is_compatible - match 'compatible' property of the device with a given string
117 * @compat: The string to match 'compatible' property with
162 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
164 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
166 #define fwnode_for_each_child_node(fwnode, child) \ argument
167 for (child = fwnode_get_next_child_node(fwnode, NULL); child; \
168 child = fwnode_get_next_child_node(fwnode, child))
170 #define fwnode_for_each_available_child_node(fwnode, child) \ argument
171 for (child = fwnode_get_next_available_child_node(fwnode, NULL); child;\
172 child = fwnode_get_next_available_child_node(fwnode, child))
175 struct fwnode_handle *child);
177 #define device_for_each_child_node(dev, child) \ argument
178 for (child = device_get_next_child_node(dev, NULL); child; \
179 child = device_get_next_child_node(dev, child))
181 #define device_for_each_child_node_scoped(dev, child) \ argument
182 for (struct fwnode_handle *child __free(fwnode_handle) = \
184 child; child = device_get_next_child_node(dev, child))
194 * fwnode_handle_put - Drop reference to a device node
195 * @fwnode: Pointer to the device node to drop the reference to.
198 * with break or return to prevent stale device node references from being left
321 * struct software_node_ref_args - Reference property with additional arguments
322 * @node: Reference to a software node
327 const struct software_node *node; member
334 .node = _ref_, \
340 * struct property_entry - "Built-in" device property representation.
341 * @name: Name of the property.
343 * @is_inline: True when the property value is stored inline.
345 * @pointer: Pointer to the property when it is not stored inline.
346 * @value: Value of the property when it is stored inline.
367 * crafted to avoid gcc-4.4.4's problems with initialization of anon unions
471 return fwnode_property_present(fwnode, "remote-endpoint"); in fwnode_graph_is_endpoint()
494 #define fwnode_graph_for_each_endpoint(fwnode, child) \ argument
495 for (child = fwnode_graph_get_next_endpoint(fwnode, NULL); child; \
496 child = fwnode_graph_get_next_endpoint(fwnode, child))
520 /* -------------------------------------------------------------------------- */
521 /* Software fwnode support - when HW description is incomplete or missing */
524 * struct software_node - Software node description
525 * @name: Name of the software node
526 * @parent: Parent of the software node
545 struct fwnode_handle *software_node_fwnode(const struct software_node *node);
554 int software_node_register(const struct software_node *node);
555 void software_node_unregister(const struct software_node *node);
562 int device_add_software_node(struct device *dev, const struct software_node *node);