Lines Matching +full:int +full:- +full:property

1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
20 #include <linux/property.h>
28 struct property { struct
30 int length;
32 struct property *next; argument
37 unsigned int unique_id;
54 struct property *properties; argument
55 struct property *deadprops; /* removed properties */
65 unsigned int unique_id;
73 int args_count;
80 int cell_count;
96 struct property *prop;
97 struct property *old_prop;
104 * of_node_init - initialize a devicetree node
110 * whether to free the memory will be done by node->release(), which is
116 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
118 fwnode_init(&node->fwnode, &of_fwnode_ops); in of_node_init()
122 #define of_node_kobj(n) (&(n)->kobj)
131 /* Dummy ref counting routines - to be implemented later */
157 #define OF_BAD_ADDR ((u64)-1)
164 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node()
182 &__of_fwnode_handle_node->fwnode : NULL; \
187 return node && (node->parent == NULL); in of_node_is_root()
190 static inline int of_node_check_flag(const struct device_node *n, unsigned long flag) in of_node_check_flag()
192 return test_bit(flag, &n->_flags); in of_node_check_flag()
195 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
198 return test_and_set_bit(flag, &n->_flags); in of_node_test_and_set_flag()
203 set_bit(flag, &n->_flags); in of_node_set_flag()
208 clear_bit(flag, &n->_flags); in of_node_clear_flag()
212 static inline int of_property_check_flag(const struct property *p, unsigned long flag) in of_property_check_flag()
214 return test_bit(flag, &p->_flags); in of_property_check_flag()
217 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
219 set_bit(flag, &p->_flags); in of_property_set_flag()
222 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
224 clear_bit(flag, &p->_flags); in of_property_clear_flag()
236 static inline u64 of_read_number(const __be32 *cell, int size) in of_read_number()
239 for (; size--; cell++) in of_read_number()
245 static inline unsigned long of_read_ulong(const __be32 *cell, int size) in of_read_ulong()
255 #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
256 #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)
263 return np ? np->full_name : "<no-node>"; in of_node_full_name()
307 extern int of_find_last_cache_level(unsigned int cpu);
311 extern struct property *of_find_property(const struct device_node *np,
313 int *lenp);
315 extern int of_property_count_elems_of_size(const struct device_node *np,
316 const char *propname, int elem_size);
317 extern int of_property_read_u32_index(const struct device_node *np,
320 extern int of_property_read_u64_index(const struct device_node *np,
323 extern int of_property_read_variable_u8_array(const struct device_node *np,
326 extern int of_property_read_variable_u16_array(const struct device_node *np,
329 extern int of_property_read_variable_u32_array(const struct device_node *np,
334 extern int of_property_read_u64(const struct device_node *np,
336 extern int of_property_read_variable_u64_array(const struct device_node *np,
342 extern int of_property_read_string(const struct device_node *np,
345 extern int of_property_match_string(const struct device_node *np,
348 extern int of_property_read_string_helper(const struct device_node *np,
350 const char **out_strs, size_t sz, int index);
351 extern int of_device_is_compatible(const struct device_node *device,
353 extern int of_device_compatible_match(const struct device_node *device,
359 int *lenp);
360 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
361 extern struct device_node *of_cpu_device_node_get(int cpu);
362 extern int of_cpu_node_to_id(struct device_node *np);
365 int index);
366 extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
368 extern int of_n_addr_cells(struct device_node *np);
369 extern int of_n_size_cells(struct device_node *np);
373 extern int of_alias_from_compatible(const struct device_node *node, char *alias,
374 int len);
376 extern int __of_parse_phandle_with_args(const struct device_node *np,
377 const char *list_name, const char *cells_name, int cell_count,
378 int index, struct of_phandle_args *out_args);
379 extern int of_parse_phandle_with_args_map(const struct device_node *np,
380 const char *list_name, const char *stem_name, int index,
382 extern int of_count_phandle_with_args(const struct device_node *np,
387 extern int of_request_module(const struct device_node *np);
390 extern int of_phandle_iterator_init(struct of_phandle_iterator *it,
394 int cell_count);
396 extern int of_phandle_iterator_next(struct of_phandle_iterator *it);
397 extern int of_phandle_iterator_args(struct of_phandle_iterator *it,
399 int size);
401 extern int of_alias_get_id(const struct device_node *np, const char *stem);
402 extern int of_alias_get_highest_id(const char *stem);
407 * of_machine_is_compatible - Test root of device tree for a given compatible value
408 * @compat: compatible string to look for in root node's compatible property.
410 * Return: true if the root node has the given value in its compatible property.
419 extern int of_add_property(struct device_node *np, struct property *prop);
420 extern int of_remove_property(struct device_node *np, struct property *prop);
421 extern int of_update_property(struct device_node *np, struct property *newprop);
430 extern int of_attach_node(struct device_node *);
431 extern int of_detach_node(struct device_node *);
441 const __be32 *of_prop_next_u32(const struct property *prop, const __be32 *cur,
444 * struct property *prop;
450 const char *of_prop_next_string(const struct property *prop, const char *cur);
452 bool of_console_check(const struct device_node *dn, char *name, int index);
454 int of_map_id(const struct device_node *np, u32 id,
493 return "<no-node>"; in of_node_full_name()
581 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
587 static inline int of_device_compatible_match(const struct device_node *device, in of_device_compatible_match()
603 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
605 int *lenp) in of_find_property()
624 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
625 const char *propname, int elem_size) in of_property_count_elems_of_size()
627 return -ENOSYS; in of_property_count_elems_of_size()
630 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
633 return -ENOSYS; in of_property_read_u32_index()
636 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
639 return -ENOSYS; in of_property_read_u64_index()
644 int *lenp) in of_get_property()
649 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
650 unsigned int *thread) in of_get_cpu_node()
655 static inline struct device_node *of_cpu_device_node_get(int cpu) in of_cpu_device_node_get()
660 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
662 return -ENODEV; in of_cpu_node_to_id()
671 int index) in of_get_cpu_state_node()
676 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
681 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
686 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
690 return -ENOSYS; in of_property_read_variable_u8_array()
693 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
697 return -ENOSYS; in of_property_read_variable_u16_array()
700 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
706 return -ENOSYS; in of_property_read_variable_u32_array()
709 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
712 return -ENOSYS; in of_property_read_u64()
715 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
721 return -ENOSYS; in of_property_read_variable_u64_array()
724 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
728 return -ENOSYS; in of_property_read_string()
731 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
735 return -ENOSYS; in of_property_match_string()
738 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
740 const char **out_strs, size_t sz, int index) in of_property_read_string_helper()
742 return -ENOSYS; in of_property_read_string_helper()
745 static inline int __of_parse_phandle_with_args(const struct device_node *np, in __of_parse_phandle_with_args()
748 int cell_count, in __of_parse_phandle_with_args()
749 int index, in __of_parse_phandle_with_args()
752 return -ENOSYS; in __of_parse_phandle_with_args()
755 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
758 int index, in of_parse_phandle_with_args_map()
761 return -ENOSYS; in of_parse_phandle_with_args_map()
764 static inline int of_count_phandle_with_args(const struct device_node *np, in of_count_phandle_with_args()
768 return -ENOSYS; in of_count_phandle_with_args()
774 return -ENODEV; in of_modalias()
777 static inline int of_request_module(const struct device_node *np) in of_request_module()
779 return -ENODEV; in of_request_module()
782 static inline int of_phandle_iterator_init(struct of_phandle_iterator *it, in of_phandle_iterator_init()
786 int cell_count) in of_phandle_iterator_init()
788 return -ENOSYS; in of_phandle_iterator_init()
791 static inline int of_phandle_iterator_next(struct of_phandle_iterator *it) in of_phandle_iterator_next()
793 return -ENOSYS; in of_phandle_iterator_next()
796 static inline int of_phandle_iterator_args(struct of_phandle_iterator *it, in of_phandle_iterator_args()
798 int size) in of_phandle_iterator_args()
803 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
805 return -ENOSYS; in of_alias_get_id()
808 static inline int of_alias_get_highest_id(const char *stem) in of_alias_get_highest_id()
810 return -ENOSYS; in of_alias_get_highest_id()
813 static inline int of_machine_is_compatible(const char *compat) in of_machine_is_compatible()
818 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
823 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
833 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
838 static inline const __be32 *of_prop_next_u32(const struct property *prop, in of_prop_next_u32()
844 static inline const char *of_prop_next_string(const struct property *prop, in of_prop_next_string()
850 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
855 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
869 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
875 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
879 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
883 static inline int of_map_id(const struct device_node *np, u32 id, in of_map_id()
887 return -EINVAL; in of_map_id()
911 static inline int of_prop_val_eq(const struct property *p1, const struct property *p2) in of_prop_val_eq()
913 return p1->length == p2->length && in of_prop_val_eq()
914 !memcmp(p1->value, p2->value, (size_t)p1->length); in of_prop_val_eq()
918 for (pp = dn->properties; pp != NULL; pp = pp->next)
921 extern int of_node_to_nid(struct device_node *np);
923 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
930 extern int of_numa_init(void);
932 static inline int of_numa_init(void) in of_numa_init()
934 return -ENOSYS; in of_numa_init()
958 * of_parse_phandle - Resolve a phandle property to a device_node pointer
959 * @np: Pointer to device node holding phandle property
960 * @phandle_name: Name of property holding a phandle value
969 int index) in of_parse_phandle()
981 * of_parse_phandle_with_args() - Find a node pointed by phandle in a list
983 * @list_name: property name that contains a list
984 * @cells_name: property name that specifies phandles' arguments count
992 * Caller is responsible to call of_node_put() on the returned out_args->np
998 * #list-cells = <2>;
1002 * #list-cells = <1>;
1010 * of_parse_phandle_with_args(node3, "list", "#list-cells", 1, &args);
1012 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
1015 int index, in of_parse_phandle_with_args()
1018 int cell_count = -1; in of_parse_phandle_with_args()
1029 * of_parse_phandle_with_fixed_args() - Find a node pointed by phandle in a list
1031 * @list_name: property name that contains a list
1040 * Caller is responsible to call of_node_put() on the returned out_args->np
1058 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
1060 int cell_count, in of_parse_phandle_with_fixed_args()
1061 int index, in of_parse_phandle_with_fixed_args()
1069 * of_parse_phandle_with_optional_args() - Find a node pointed by phandle in a list
1071 * @list_name: property name that contains a list
1072 * @cells_name: property name that specifies phandles' arguments count
1076 * Same as of_parse_phandle_with_args() except that if the cells_name property
1080 * before and thus doesn't have a '#*-cells' property but is now migrated to
1083 static inline int of_parse_phandle_with_optional_args(const struct device_node *np, in of_parse_phandle_with_optional_args()
1086 int index, in of_parse_phandle_with_optional_args()
1094 * of_phandle_args_equal() - Compare two of_phandle_args
1104 return a1->np == a2->np && in of_phandle_args_equal()
1105 a1->args_count == a2->args_count && in of_phandle_args_equal()
1106 !memcmp(a1->args, a2->args, sizeof(a1->args[0]) * a1->args_count); in of_phandle_args_equal()
1110 * of_property_count_u8_elems - Count the number of u8 elements in a property
1112 * @np: device node from which the property value is to be read.
1113 * @propname: name of the property to be searched.
1115 * Search for a property in a device node and count the number of u8 elements
1118 * Return: The number of elements on sucess, -EINVAL if the property does
1119 * not exist or its length does not match a multiple of u8 and -ENODATA if the
1120 * property does not have a value.
1122 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1129 * of_property_count_u16_elems - Count the number of u16 elements in a property
1131 * @np: device node from which the property value is to be read.
1132 * @propname: name of the property to be searched.
1134 * Search for a property in a device node and count the number of u16 elements
1137 * Return: The number of elements on sucess, -EINVAL if the property does
1138 * not exist or its length does not match a multiple of u16 and -ENODATA if the
1139 * property does not have a value.
1141 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1148 * of_property_count_u32_elems - Count the number of u32 elements in a property
1150 * @np: device node from which the property value is to be read.
1151 * @propname: name of the property to be searched.
1153 * Search for a property in a device node and count the number of u32 elements
1156 * Return: The number of elements on sucess, -EINVAL if the property does
1157 * not exist or its length does not match a multiple of u32 and -ENODATA if the
1158 * property does not have a value.
1160 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1167 * of_property_count_u64_elems - Count the number of u64 elements in a property
1169 * @np: device node from which the property value is to be read.
1170 * @propname: name of the property to be searched.
1172 * Search for a property in a device node and count the number of u64 elements
1175 * Return: The number of elements on sucess, -EINVAL if the property does
1176 * not exist or its length does not match a multiple of u64 and -ENODATA if the
1177 * property does not have a value.
1179 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1186 * of_property_read_string_array() - Read an array of strings from a multiple
1187 * strings property.
1188 * @np: device node from which the property value is to be read.
1189 * @propname: name of the property to be searched.
1193 * Search for a property in a device tree node and retrieve a list of
1194 * terminated string values (pointer to data, not a copy) in that property.
1196 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1198 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1206 * of_property_count_strings() - Find and return the number of strings from a
1207 * multiple strings property.
1208 * @np: device node from which the property value is to be read.
1209 * @propname: name of the property to be searched.
1211 * Search for a property in a device tree node and retrieve the number of null
1214 * Return: The number of strings on success, -EINVAL if the property does not
1215 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1216 * is not null-terminated within the length of the property data.
1218 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1225 * of_property_read_string_index() - Find and read a string from a multiple
1226 * strings property.
1227 * @np: device node from which the property value is to be read.
1228 * @propname: name of the property to be searched.
1233 * Search for a property in a device tree node and retrieve a null
1235 * contained in that property.
1237 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1238 * property does not have a value, and -EILSEQ if the string is not
1239 * null-terminated within the length of the property data.
1243 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1245 int index, const char **output) in of_property_read_string_index()
1247 int rc = of_property_read_string_helper(np, propname, output, 1, index); in of_property_read_string_index()
1252 * of_property_present - Test if a property is present in a node
1253 * @np: device node to search for the property.
1254 * @propname: name of the property to be searched.
1256 * Test for a property present in a device node.
1258 * Return: true if the property exists false otherwise.
1262 struct property *prop = of_find_property(np, propname, NULL); in of_property_present()
1268 * of_property_read_u8_array - Find and read an array of u8 from a property.
1270 * @np: device node from which the property value is to be read.
1271 * @propname: name of the property to be searched.
1275 * Search for a property in a device node and read 8-bit value(s) from
1279 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1281 * Return: 0 on success, -EINVAL if the property does not exist,
1282 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1283 * property data isn't large enough.
1287 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
1291 int ret = of_property_read_variable_u8_array(np, propname, out_values, in of_property_read_u8_array()
1300 * of_property_read_u16_array - Find and read an array of u16 from a property.
1302 * @np: device node from which the property value is to be read.
1303 * @propname: name of the property to be searched.
1307 * Search for a property in a device node and read 16-bit value(s) from
1311 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
1313 * Return: 0 on success, -EINVAL if the property does not exist,
1314 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1315 * property data isn't large enough.
1319 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
1323 int ret = of_property_read_variable_u16_array(np, propname, out_values, in of_property_read_u16_array()
1332 * of_property_read_u32_array - Find and read an array of 32 bit integers
1333 * from a property.
1335 * @np: device node from which the property value is to be read.
1336 * @propname: name of the property to be searched.
1340 * Search for a property in a device node and read 32-bit value(s) from
1343 * Return: 0 on success, -EINVAL if the property does not exist,
1344 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1345 * property data isn't large enough.
1349 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
1353 int ret = of_property_read_variable_u32_array(np, propname, out_values, in of_property_read_u32_array()
1362 * of_property_read_u64_array - Find and read an array of 64 bit integers
1363 * from a property.
1365 * @np: device node from which the property value is to be read.
1366 * @propname: name of the property to be searched.
1370 * Search for a property in a device node and read 64-bit value(s) from
1373 * Return: 0 on success, -EINVAL if the property does not exist,
1374 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1375 * property data isn't large enough.
1379 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
1383 int ret = of_property_read_variable_u64_array(np, propname, out_values, in of_property_read_u64_array()
1391 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1398 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1405 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1412 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1426 for (struct {const struct property *prop; const __be32 *item; } _it = \
1491 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1494 int num = 0; in of_get_child_count()
1502 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1505 int num = 0; in of_get_available_child_count()
1531 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1532 typedef int (*of_init_fn_1_ret)(struct device_node *);
1543 * struct of_changeset_entry - Holds a changeset entry
1548 * @prop: pointer to the property affected
1549 * @old_prop: hold a pointer to the original property
1560 struct property *prop;
1561 struct property *old_prop;
1565 * struct of_changeset - changeset tracker structure
1570 * live tree. In case of an error, changes are rolled-back.
1587 extern int of_reconfig_notifier_register(struct notifier_block *);
1588 extern int of_reconfig_notifier_unregister(struct notifier_block *);
1589 extern int of_reconfig_notify(unsigned long, struct of_reconfig_data *rd);
1590 extern int of_reconfig_get_state_change(unsigned long action,
1595 extern int of_changeset_apply(struct of_changeset *ocs);
1596 extern int of_changeset_revert(struct of_changeset *ocs);
1597 extern int of_changeset_action(struct of_changeset *ocs,
1599 struct property *prop);
1601 static inline int of_changeset_attach_node(struct of_changeset *ocs, in of_changeset_attach_node()
1607 static inline int of_changeset_detach_node(struct of_changeset *ocs, in of_changeset_detach_node()
1613 static inline int of_changeset_add_property(struct of_changeset *ocs, in of_changeset_add_property()
1614 struct device_node *np, struct property *prop) in of_changeset_add_property()
1619 static inline int of_changeset_remove_property(struct of_changeset *ocs, in of_changeset_remove_property()
1620 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1625 static inline int of_changeset_update_property(struct of_changeset *ocs, in of_changeset_update_property()
1626 struct device_node *np, struct property *prop) in of_changeset_update_property()
1634 int of_changeset_add_prop_string(struct of_changeset *ocs,
1637 int of_changeset_add_prop_string_array(struct of_changeset *ocs,
1641 int of_changeset_add_prop_u32_array(struct of_changeset *ocs,
1645 static inline int of_changeset_add_prop_u32(struct of_changeset *ocs, in of_changeset_add_prop_u32()
1653 int of_changeset_update_prop_string(struct of_changeset *ocs,
1657 int of_changeset_add_prop_bool(struct of_changeset *ocs, struct device_node *np,
1661 static inline int of_reconfig_notifier_register(struct notifier_block *nb) in of_reconfig_notifier_register()
1663 return -EINVAL; in of_reconfig_notifier_register()
1665 static inline int of_reconfig_notifier_unregister(struct notifier_block *nb) in of_reconfig_notifier_unregister()
1667 return -EINVAL; in of_reconfig_notifier_unregister()
1669 static inline int of_reconfig_notify(unsigned long action, in of_reconfig_notify()
1672 return -EINVAL; in of_reconfig_notify()
1674 static inline int of_reconfig_get_state_change(unsigned long action, in of_reconfig_get_state_change()
1677 return -EINVAL; in of_reconfig_get_state_change()
1682 * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node
1689 return of_property_read_bool(np, "system-power-controller"); in of_device_is_system_power_controller()
1693 * of_have_populated_dt() - Has DT been populated by bootloader
1723 "pre-apply", in of_overlay_action_name()
1724 "post-apply", in of_overlay_action_name()
1725 "pre-remove", in of_overlay_action_name()
1726 "post-remove", in of_overlay_action_name()
1739 int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size,
1740 int *ovcs_id, const struct device_node *target_base);
1741 int of_overlay_remove(int *ovcs_id);
1742 int of_overlay_remove_all(void);
1744 int of_overlay_notifier_register(struct notifier_block *nb);
1745 int of_overlay_notifier_unregister(struct notifier_block *nb);
1749 static inline int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size, in of_overlay_fdt_apply()
1750 int *ovcs_id, const struct device_node *target_base) in of_overlay_fdt_apply()
1752 return -ENOTSUPP; in of_overlay_fdt_apply()
1755 static inline int of_overlay_remove(int *ovcs_id) in of_overlay_remove()
1757 return -ENOTSUPP; in of_overlay_remove()
1760 static inline int of_overlay_remove_all(void) in of_overlay_remove_all()
1762 return -ENOTSUPP; in of_overlay_remove_all()
1765 static inline int of_overlay_notifier_register(struct notifier_block *nb) in of_overlay_notifier_register()
1770 static inline int of_overlay_notifier_unregister(struct notifier_block *nb) in of_overlay_notifier_unregister()