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()
309 extern int of_find_last_cache_level(unsigned int cpu);
313 extern struct property *of_find_property(const struct device_node *np,
315 int *lenp);
317 extern int of_property_count_elems_of_size(const struct device_node *np,
318 const char *propname, int elem_size);
319 extern int of_property_read_u16_index(const struct device_node *np,
322 extern int of_property_read_u32_index(const struct device_node *np,
325 extern int of_property_read_u64_index(const struct device_node *np,
328 extern int of_property_read_variable_u8_array(const struct device_node *np,
331 extern int of_property_read_variable_u16_array(const struct device_node *np,
334 extern int of_property_read_variable_u32_array(const struct device_node *np,
339 extern int of_property_read_u64(const struct device_node *np,
341 extern int of_property_read_variable_u64_array(const struct device_node *np,
347 extern int of_property_read_string(const struct device_node *np,
350 extern int of_property_match_string(const struct device_node *np,
353 extern int of_property_read_string_helper(const struct device_node *np,
355 const char **out_strs, size_t sz, int index);
356 extern int of_device_is_compatible(const struct device_node *device,
358 extern int of_device_compatible_match(const struct device_node *device,
364 int *lenp);
365 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
366 extern struct device_node *of_cpu_device_node_get(int cpu);
367 extern int of_cpu_node_to_id(struct device_node *np);
370 int index);
371 extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
373 extern int of_n_addr_cells(struct device_node *np);
374 extern int of_n_size_cells(struct device_node *np);
378 extern int of_alias_from_compatible(const struct device_node *node, char *alias,
379 int len);
381 extern int __of_parse_phandle_with_args(const struct device_node *np,
382 const char *list_name, const char *cells_name, int cell_count,
383 int index, struct of_phandle_args *out_args);
384 extern int of_parse_phandle_with_args_map(const struct device_node *np,
385 const char *list_name, const char *stem_name, int index,
387 extern int of_count_phandle_with_args(const struct device_node *np,
392 extern int of_request_module(const struct device_node *np);
395 extern int of_phandle_iterator_init(struct of_phandle_iterator *it,
399 int cell_count);
401 extern int of_phandle_iterator_next(struct of_phandle_iterator *it);
402 extern int of_phandle_iterator_args(struct of_phandle_iterator *it,
404 int size);
406 extern int of_alias_get_id(const struct device_node *np, const char *stem);
407 extern int of_alias_get_highest_id(const char *stem);
412 * of_machine_is_compatible - Test root of device tree for a given compatible value
413 * @compat: compatible string to look for in root node's compatible property.
415 * Return: true if the root node has the given value in its compatible property.
424 extern int of_add_property(struct device_node *np, struct property *prop);
425 extern int of_remove_property(struct device_node *np, struct property *prop);
426 extern int of_update_property(struct device_node *np, struct property *newprop);
435 extern int of_attach_node(struct device_node *);
436 extern int of_detach_node(struct device_node *);
446 const __be32 *of_prop_next_u32(const struct property *prop, const __be32 *cur,
449 * struct property *prop;
455 const char *of_prop_next_string(const struct property *prop, const char *cur);
457 bool of_console_check(const struct device_node *dn, char *name, int index);
459 int of_map_id(const struct device_node *np, u32 id,
498 return "<no-node>"; in of_node_full_name()
593 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
599 static inline int of_device_compatible_match(const struct device_node *device, in of_device_compatible_match()
615 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
617 int *lenp) in of_find_property()
636 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
637 const char *propname, int elem_size) in of_property_count_elems_of_size()
639 return -ENOSYS; in of_property_count_elems_of_size()
642 static inline int of_property_read_u16_index(const struct device_node *np, in of_property_read_u16_index()
645 return -ENOSYS; in of_property_read_u16_index()
648 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
651 return -ENOSYS; in of_property_read_u32_index()
654 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
657 return -ENOSYS; in of_property_read_u64_index()
662 int *lenp) in of_get_property()
667 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
668 unsigned int *thread) in of_get_cpu_node()
673 static inline struct device_node *of_cpu_device_node_get(int cpu) in of_cpu_device_node_get()
678 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
680 return -ENODEV; in of_cpu_node_to_id()
689 int index) in of_get_cpu_state_node()
694 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
699 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
704 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
708 return -ENOSYS; in of_property_read_variable_u8_array()
711 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
715 return -ENOSYS; in of_property_read_variable_u16_array()
718 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
724 return -ENOSYS; in of_property_read_variable_u32_array()
727 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
730 return -ENOSYS; in of_property_read_u64()
733 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
739 return -ENOSYS; in of_property_read_variable_u64_array()
742 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
746 return -ENOSYS; in of_property_read_string()
749 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
753 return -ENOSYS; in of_property_match_string()
756 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
758 const char **out_strs, size_t sz, int index) in of_property_read_string_helper()
760 return -ENOSYS; in of_property_read_string_helper()
763 static inline int __of_parse_phandle_with_args(const struct device_node *np, in __of_parse_phandle_with_args()
766 int cell_count, in __of_parse_phandle_with_args()
767 int index, in __of_parse_phandle_with_args()
770 return -ENOSYS; in __of_parse_phandle_with_args()
773 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
776 int index, in of_parse_phandle_with_args_map()
779 return -ENOSYS; in of_parse_phandle_with_args_map()
782 static inline int of_count_phandle_with_args(const struct device_node *np, in of_count_phandle_with_args()
786 return -ENOSYS; in of_count_phandle_with_args()
792 return -ENODEV; in of_modalias()
795 static inline int of_request_module(const struct device_node *np) in of_request_module()
797 return -ENODEV; in of_request_module()
800 static inline int of_phandle_iterator_init(struct of_phandle_iterator *it, in of_phandle_iterator_init()
804 int cell_count) in of_phandle_iterator_init()
806 return -ENOSYS; in of_phandle_iterator_init()
809 static inline int of_phandle_iterator_next(struct of_phandle_iterator *it) in of_phandle_iterator_next()
811 return -ENOSYS; in of_phandle_iterator_next()
814 static inline int of_phandle_iterator_args(struct of_phandle_iterator *it, in of_phandle_iterator_args()
816 int size) in of_phandle_iterator_args()
821 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
823 return -ENOSYS; in of_alias_get_id()
826 static inline int of_alias_get_highest_id(const char *stem) in of_alias_get_highest_id()
828 return -ENOSYS; in of_alias_get_highest_id()
831 static inline int of_machine_is_compatible(const char *compat) in of_machine_is_compatible()
836 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
841 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
851 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
856 static inline const __be32 *of_prop_next_u32(const struct property *prop, in of_prop_next_u32()
862 static inline const char *of_prop_next_string(const struct property *prop, in of_prop_next_string()
868 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
873 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
887 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
893 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
897 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
901 static inline int of_map_id(const struct device_node *np, u32 id, in of_map_id()
905 return -EINVAL; in of_map_id()
930 for (pp = dn->properties; pp != NULL; pp = pp->next)
933 extern int of_node_to_nid(struct device_node *np);
935 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
942 extern int of_numa_init(void);
944 static inline int of_numa_init(void) in of_numa_init()
946 return -ENOSYS; in of_numa_init()
970 * of_parse_phandle - Resolve a phandle property to a device_node pointer
971 * @np: Pointer to device node holding phandle property
972 * @phandle_name: Name of property holding a phandle value
981 int index) in of_parse_phandle()
993 * of_parse_phandle_with_args() - Find a node pointed by phandle in a list
995 * @list_name: property name that contains a list
996 * @cells_name: property name that specifies phandles' arguments count
1004 * Caller is responsible to call of_node_put() on the returned out_args->np
1010 * #list-cells = <2>;
1014 * #list-cells = <1>;
1022 * of_parse_phandle_with_args(node3, "list", "#list-cells", 1, &args);
1024 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
1027 int index, in of_parse_phandle_with_args()
1030 int cell_count = -1; in of_parse_phandle_with_args()
1041 * of_parse_phandle_with_fixed_args() - Find a node pointed by phandle in a list
1043 * @list_name: property name that contains a list
1052 * Caller is responsible to call of_node_put() on the returned out_args->np
1070 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
1072 int cell_count, in of_parse_phandle_with_fixed_args()
1073 int index, in of_parse_phandle_with_fixed_args()
1081 * of_parse_phandle_with_optional_args() - Find a node pointed by phandle in a list
1083 * @list_name: property name that contains a list
1084 * @cells_name: property name that specifies phandles' arguments count
1088 * Same as of_parse_phandle_with_args() except that if the cells_name property
1092 * before and thus doesn't have a '#*-cells' property but is now migrated to
1095 static inline int of_parse_phandle_with_optional_args(const struct device_node *np, in of_parse_phandle_with_optional_args()
1098 int index, in of_parse_phandle_with_optional_args()
1106 * of_phandle_args_equal() - Compare two of_phandle_args
1116 return a1->np == a2->np && in of_phandle_args_equal()
1117 a1->args_count == a2->args_count && in of_phandle_args_equal()
1118 !memcmp(a1->args, a2->args, sizeof(a1->args[0]) * a1->args_count); in of_phandle_args_equal()
1122 * of_property_count_u8_elems - Count the number of u8 elements in a property
1124 * @np: device node from which the property value is to be read.
1125 * @propname: name of the property to be searched.
1127 * Search for a property in a device node and count the number of u8 elements
1130 * Return: The number of elements on sucess, -EINVAL if the property does
1131 * not exist or its length does not match a multiple of u8 and -ENODATA if the
1132 * property does not have a value.
1134 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1141 * of_property_count_u16_elems - Count the number of u16 elements in a property
1143 * @np: device node from which the property value is to be read.
1144 * @propname: name of the property to be searched.
1146 * Search for a property in a device node and count the number of u16 elements
1149 * Return: The number of elements on sucess, -EINVAL if the property does
1150 * not exist or its length does not match a multiple of u16 and -ENODATA if the
1151 * property does not have a value.
1153 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1160 * of_property_count_u32_elems - Count the number of u32 elements in a property
1162 * @np: device node from which the property value is to be read.
1163 * @propname: name of the property to be searched.
1165 * Search for a property in a device node and count the number of u32 elements
1168 * Return: The number of elements on sucess, -EINVAL if the property does
1169 * not exist or its length does not match a multiple of u32 and -ENODATA if the
1170 * property does not have a value.
1172 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1179 * of_property_count_u64_elems - Count the number of u64 elements in a property
1181 * @np: device node from which the property value is to be read.
1182 * @propname: name of the property to be searched.
1184 * Search for a property in a device node and count the number of u64 elements
1187 * Return: The number of elements on sucess, -EINVAL if the property does
1188 * not exist or its length does not match a multiple of u64 and -ENODATA if the
1189 * property does not have a value.
1191 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1198 * of_property_read_string_array() - Read an array of strings from a multiple
1199 * strings property.
1200 * @np: device node from which the property value is to be read.
1201 * @propname: name of the property to be searched.
1205 * Search for a property in a device tree node and retrieve a list of
1206 * terminated string values (pointer to data, not a copy) in that property.
1208 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1210 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1218 * of_property_count_strings() - Find and return the number of strings from a
1219 * multiple strings property.
1220 * @np: device node from which the property value is to be read.
1221 * @propname: name of the property to be searched.
1223 * Search for a property in a device tree node and retrieve the number of null
1226 * Return: The number of strings on success, -EINVAL if the property does not
1227 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1228 * is not null-terminated within the length of the property data.
1230 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1237 * of_property_read_string_index() - Find and read a string from a multiple
1238 * strings property.
1239 * @np: device node from which the property value is to be read.
1240 * @propname: name of the property to be searched.
1245 * Search for a property in a device tree node and retrieve a null
1247 * contained in that property.
1249 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1250 * property does not have a value, and -EILSEQ if the string is not
1251 * null-terminated within the length of the property data.
1255 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1257 int index, const char **output) in of_property_read_string_index()
1259 int rc = of_property_read_string_helper(np, propname, output, 1, index); in of_property_read_string_index()
1264 * of_property_present - Test if a property is present in a node
1265 * @np: device node to search for the property.
1266 * @propname: name of the property to be searched.
1268 * Test for a property present in a device node.
1270 * Return: true if the property exists false otherwise.
1274 struct property *prop = of_find_property(np, propname, NULL); in of_property_present()
1280 * of_property_read_u8_array - Find and read an array of u8 from a property.
1282 * @np: device node from which the property value is to be read.
1283 * @propname: name of the property to be searched.
1287 * Search for a property in a device node and read 8-bit value(s) from
1291 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1293 * Return: 0 on success, -EINVAL if the property does not exist,
1294 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1295 * property data isn't large enough.
1299 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
1303 int ret = of_property_read_variable_u8_array(np, propname, out_values, in of_property_read_u8_array()
1312 * of_property_read_u16_array - Find and read an array of u16 from a property.
1314 * @np: device node from which the property value is to be read.
1315 * @propname: name of the property to be searched.
1319 * Search for a property in a device node and read 16-bit value(s) from
1323 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
1325 * Return: 0 on success, -EINVAL if the property does not exist,
1326 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1327 * property data isn't large enough.
1331 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
1335 int ret = of_property_read_variable_u16_array(np, propname, out_values, in of_property_read_u16_array()
1344 * of_property_read_u32_array - Find and read an array of 32 bit integers
1345 * from a property.
1347 * @np: device node from which the property value is to be read.
1348 * @propname: name of the property to be searched.
1352 * Search for a property in a device node and read 32-bit value(s) from
1355 * Return: 0 on success, -EINVAL if the property does not exist,
1356 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1357 * property data isn't large enough.
1361 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
1365 int ret = of_property_read_variable_u32_array(np, propname, out_values, in of_property_read_u32_array()
1374 * of_property_read_u64_array - Find and read an array of 64 bit integers
1375 * from a property.
1377 * @np: device node from which the property value is to be read.
1378 * @propname: name of the property to be searched.
1382 * Search for a property in a device node and read 64-bit value(s) from
1385 * Return: 0 on success, -EINVAL if the property does not exist,
1386 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1387 * property data isn't large enough.
1391 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
1395 int ret = of_property_read_variable_u64_array(np, propname, out_values, in of_property_read_u64_array()
1403 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1410 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1417 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1424 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1438 for (struct {const struct property *prop; const __be32 *item; } _it = \
1503 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1506 int num = 0; in of_get_child_count()
1514 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1517 int num = 0; in of_get_available_child_count()
1543 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1544 typedef int (*of_init_fn_1_ret)(struct device_node *);
1555 * struct of_changeset_entry - Holds a changeset entry
1560 * @prop: pointer to the property affected
1561 * @old_prop: hold a pointer to the original property
1572 struct property *prop;
1573 struct property *old_prop;
1577 * struct of_changeset - changeset tracker structure
1582 * live tree. In case of an error, changes are rolled-back.
1599 extern int of_reconfig_notifier_register(struct notifier_block *);
1600 extern int of_reconfig_notifier_unregister(struct notifier_block *);
1601 extern int of_reconfig_notify(unsigned long, struct of_reconfig_data *rd);
1602 extern int of_reconfig_get_state_change(unsigned long action,
1607 extern int of_changeset_apply(struct of_changeset *ocs);
1608 extern int of_changeset_revert(struct of_changeset *ocs);
1609 extern int of_changeset_action(struct of_changeset *ocs,
1611 struct property *prop);
1613 static inline int of_changeset_attach_node(struct of_changeset *ocs, in of_changeset_attach_node()
1619 static inline int of_changeset_detach_node(struct of_changeset *ocs, in of_changeset_detach_node()
1625 static inline int of_changeset_add_property(struct of_changeset *ocs, in of_changeset_add_property()
1626 struct device_node *np, struct property *prop) in of_changeset_add_property()
1631 static inline int of_changeset_remove_property(struct of_changeset *ocs, in of_changeset_remove_property()
1632 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1637 static inline int of_changeset_update_property(struct of_changeset *ocs, in of_changeset_update_property()
1638 struct device_node *np, struct property *prop) in of_changeset_update_property()
1646 int of_changeset_add_prop_string(struct of_changeset *ocs,
1649 int of_changeset_add_prop_string_array(struct of_changeset *ocs,
1653 int of_changeset_add_prop_u32_array(struct of_changeset *ocs,
1657 static inline int of_changeset_add_prop_u32(struct of_changeset *ocs, in of_changeset_add_prop_u32()
1665 int of_changeset_update_prop_string(struct of_changeset *ocs,
1669 int of_changeset_add_prop_bool(struct of_changeset *ocs, struct device_node *np,
1673 static inline int of_reconfig_notifier_register(struct notifier_block *nb) in of_reconfig_notifier_register()
1675 return -EINVAL; in of_reconfig_notifier_register()
1677 static inline int of_reconfig_notifier_unregister(struct notifier_block *nb) in of_reconfig_notifier_unregister()
1679 return -EINVAL; in of_reconfig_notifier_unregister()
1681 static inline int of_reconfig_notify(unsigned long action, in of_reconfig_notify()
1684 return -EINVAL; in of_reconfig_notify()
1686 static inline int of_reconfig_get_state_change(unsigned long action, in of_reconfig_get_state_change()
1689 return -EINVAL; in of_reconfig_get_state_change()
1694 * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node
1701 return of_property_read_bool(np, "system-power-controller"); in of_device_is_system_power_controller()
1705 * of_have_populated_dt() - Has DT been populated by bootloader
1735 "pre-apply", in of_overlay_action_name()
1736 "post-apply", in of_overlay_action_name()
1737 "pre-remove", in of_overlay_action_name()
1738 "post-remove", in of_overlay_action_name()
1751 int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size,
1752 int *ovcs_id, const struct device_node *target_base);
1753 int of_overlay_remove(int *ovcs_id);
1754 int of_overlay_remove_all(void);
1756 int of_overlay_notifier_register(struct notifier_block *nb);
1757 int of_overlay_notifier_unregister(struct notifier_block *nb);
1761 static inline int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size, in of_overlay_fdt_apply()
1762 int *ovcs_id, const struct device_node *target_base) in of_overlay_fdt_apply()
1764 return -ENOTSUPP; in of_overlay_fdt_apply()
1767 static inline int of_overlay_remove(int *ovcs_id) in of_overlay_remove()
1769 return -ENOTSUPP; in of_overlay_remove()
1772 static inline int of_overlay_remove_all(void) in of_overlay_remove_all()
1774 return -ENOTSUPP; in of_overlay_remove_all()
1777 static inline int of_overlay_notifier_register(struct notifier_block *nb) in of_overlay_notifier_register()
1782 static inline int of_overlay_notifier_unregister(struct notifier_block *nb) in of_overlay_notifier_unregister()