Lines Matching +full:int +full:- +full:property
1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
19 #include <linux/property.h>
27 struct property { struct
29 int length;
31 struct property *next; argument
36 unsigned int unique_id;
53 struct property *properties; argument
54 struct property *deadprops; /* removed properties */
64 unsigned int unique_id;
72 int args_count;
79 int cell_count;
95 struct property *prop;
96 struct property *old_prop;
103 * of_node_init - initialize a devicetree node
109 * whether to free the memory will be done by node->release(), which is
115 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
117 fwnode_init(&node->fwnode, &of_fwnode_ops); in of_node_init()
121 #define of_node_kobj(n) (&(n)->kobj)
130 /* Dummy ref counting routines - to be implemented later */
155 #define OF_BAD_ADDR ((u64)-1)
162 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node()
180 &__of_fwnode_handle_node->fwnode : NULL; \
190 return node && (node->parent == NULL); in of_node_is_root()
193 static inline int of_node_check_flag(const struct device_node *n, unsigned long flag) in of_node_check_flag()
195 return test_bit(flag, &n->_flags); in of_node_check_flag()
198 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
201 return test_and_set_bit(flag, &n->_flags); in of_node_test_and_set_flag()
206 set_bit(flag, &n->_flags); in of_node_set_flag()
211 clear_bit(flag, &n->_flags); in of_node_clear_flag()
215 static inline int of_property_check_flag(const struct property *p, unsigned long flag) in of_property_check_flag()
217 return test_bit(flag, &p->_flags); in of_property_check_flag()
220 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
222 set_bit(flag, &p->_flags); in of_property_set_flag()
225 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
227 clear_bit(flag, &p->_flags); in of_property_clear_flag()
239 static inline u64 of_read_number(const __be32 *cell, int size) in of_read_number()
242 for (; size--; cell++) in of_read_number()
248 static inline unsigned long of_read_ulong(const __be32 *cell, int size) in of_read_ulong()
258 #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
259 #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)
266 return np ? np->full_name : "<no-node>"; in of_node_full_name()
305 extern int of_find_last_cache_level(unsigned int cpu);
309 extern struct property *of_find_property(const struct device_node *np,
311 int *lenp);
312 extern int of_property_count_elems_of_size(const struct device_node *np,
313 const char *propname, int elem_size);
314 extern int of_property_read_u32_index(const struct device_node *np,
317 extern int of_property_read_u64_index(const struct device_node *np,
320 extern int of_property_read_variable_u8_array(const struct device_node *np,
323 extern int of_property_read_variable_u16_array(const struct device_node *np,
326 extern int of_property_read_variable_u32_array(const struct device_node *np,
331 extern int of_property_read_u64(const struct device_node *np,
333 extern int of_property_read_variable_u64_array(const struct device_node *np,
339 extern int of_property_read_string(const struct device_node *np,
342 extern int of_property_match_string(const struct device_node *np,
345 extern int of_property_read_string_helper(const struct device_node *np,
347 const char **out_strs, size_t sz, int index);
348 extern int of_device_is_compatible(const struct device_node *device,
350 extern int of_device_compatible_match(const struct device_node *device,
356 int *lenp);
357 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
358 extern struct device_node *of_cpu_device_node_get(int cpu);
359 extern int of_cpu_node_to_id(struct device_node *np);
362 int index);
363 extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
366 for (pp = dn->properties; pp != NULL; pp = pp->next)
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);
402 extern int of_alias_get_id(struct device_node *np, const char *stem);
403 extern int of_alias_get_highest_id(const char *stem);
405 extern int of_machine_is_compatible(const char *compat);
407 extern int of_add_property(struct device_node *np, struct property *prop);
408 extern int of_remove_property(struct device_node *np, struct property *prop);
409 extern int of_update_property(struct device_node *np, struct property *newprop);
418 extern int of_attach_node(struct device_node *);
419 extern int of_detach_node(struct device_node *);
424 * struct property *prop;
431 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
434 * struct property *prop;
440 const char *of_prop_next_string(struct property *prop, const char *cur);
442 bool of_console_check(struct device_node *dn, char *name, int index);
444 int of_map_id(struct device_node *np, u32 id,
483 return "<no-node>"; in of_node_full_name()
570 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
576 static inline int of_device_compatible_match(const struct device_node *device, in of_device_compatible_match()
592 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
594 int *lenp) in of_find_property()
607 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
608 const char *propname, int elem_size) in of_property_count_elems_of_size()
610 return -ENOSYS; in of_property_count_elems_of_size()
613 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
616 return -ENOSYS; in of_property_read_u32_index()
619 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
622 return -ENOSYS; in of_property_read_u64_index()
627 int *lenp) in of_get_property()
632 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
633 unsigned int *thread) in of_get_cpu_node()
638 static inline struct device_node *of_cpu_device_node_get(int cpu) in of_cpu_device_node_get()
643 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
645 return -ENODEV; in of_cpu_node_to_id()
654 int index) in of_get_cpu_state_node()
659 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
664 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
669 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
673 return -ENOSYS; in of_property_read_variable_u8_array()
676 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
680 return -ENOSYS; in of_property_read_variable_u16_array()
683 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
689 return -ENOSYS; in of_property_read_variable_u32_array()
692 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
695 return -ENOSYS; in of_property_read_u64()
698 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
704 return -ENOSYS; in of_property_read_variable_u64_array()
707 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
711 return -ENOSYS; in of_property_read_string()
714 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
718 return -ENOSYS; in of_property_match_string()
721 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
723 const char **out_strs, size_t sz, int index) in of_property_read_string_helper()
725 return -ENOSYS; in of_property_read_string_helper()
728 static inline int __of_parse_phandle_with_args(const struct device_node *np, in __of_parse_phandle_with_args()
731 int cell_count, in __of_parse_phandle_with_args()
732 int index, in __of_parse_phandle_with_args()
735 return -ENOSYS; in __of_parse_phandle_with_args()
738 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
741 int index, in of_parse_phandle_with_args_map()
744 return -ENOSYS; in of_parse_phandle_with_args_map()
747 static inline int of_count_phandle_with_args(const struct device_node *np, in of_count_phandle_with_args()
751 return -ENOSYS; in of_count_phandle_with_args()
757 return -ENODEV; in of_modalias()
760 static inline int of_request_module(const struct device_node *np) in of_request_module()
762 return -ENODEV; in of_request_module()
765 static inline int of_phandle_iterator_init(struct of_phandle_iterator *it, in of_phandle_iterator_init()
769 int cell_count) in of_phandle_iterator_init()
771 return -ENOSYS; in of_phandle_iterator_init()
774 static inline int of_phandle_iterator_next(struct of_phandle_iterator *it) in of_phandle_iterator_next()
776 return -ENOSYS; in of_phandle_iterator_next()
779 static inline int of_phandle_iterator_args(struct of_phandle_iterator *it, in of_phandle_iterator_args()
781 int size) in of_phandle_iterator_args()
786 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
788 return -ENOSYS; in of_alias_get_id()
791 static inline int of_alias_get_highest_id(const char *stem) in of_alias_get_highest_id()
793 return -ENOSYS; in of_alias_get_highest_id()
796 static inline int of_machine_is_compatible(const char *compat) in of_machine_is_compatible()
801 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
806 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
811 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
816 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
822 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
828 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
833 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
847 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
853 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
857 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
861 static inline int of_map_id(struct device_node *np, u32 id, in of_map_id()
865 return -EINVAL; in of_map_id()
889 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
891 return p1->length == p2->length && in of_prop_val_eq()
892 !memcmp(p1->value, p2->value, (size_t)p1->length); in of_prop_val_eq()
896 extern int of_node_to_nid(struct device_node *np);
898 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
905 extern int of_numa_init(void);
907 static inline int of_numa_init(void) in of_numa_init()
909 return -ENOSYS; in of_numa_init()
933 * of_parse_phandle - Resolve a phandle property to a device_node pointer
934 * @np: Pointer to device node holding phandle property
935 * @phandle_name: Name of property holding a phandle value
944 int index) in of_parse_phandle()
956 * of_parse_phandle_with_args() - Find a node pointed by phandle in a list
958 * @list_name: property name that contains a list
959 * @cells_name: property name that specifies phandles' arguments count
967 * Caller is responsible to call of_node_put() on the returned out_args->np
973 * #list-cells = <2>;
977 * #list-cells = <1>;
985 * of_parse_phandle_with_args(node3, "list", "#list-cells", 1, &args);
987 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
990 int index, in of_parse_phandle_with_args()
993 int cell_count = -1; in of_parse_phandle_with_args()
1004 * of_parse_phandle_with_fixed_args() - Find a node pointed by phandle in a list
1006 * @list_name: property name that contains a list
1015 * Caller is responsible to call of_node_put() on the returned out_args->np
1033 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
1035 int cell_count, in of_parse_phandle_with_fixed_args()
1036 int index, in of_parse_phandle_with_fixed_args()
1044 * of_parse_phandle_with_optional_args() - Find a node pointed by phandle in a list
1046 * @list_name: property name that contains a list
1047 * @cells_name: property name that specifies phandles' arguments count
1051 * Same as of_parse_phandle_with_args() except that if the cells_name property
1055 * before and thus doesn't have a '#*-cells' property but is now migrated to
1058 static inline int of_parse_phandle_with_optional_args(const struct device_node *np, in of_parse_phandle_with_optional_args()
1061 int index, in of_parse_phandle_with_optional_args()
1069 * of_property_count_u8_elems - Count the number of u8 elements in a property
1071 * @np: device node from which the property value is to be read.
1072 * @propname: name of the property to be searched.
1074 * Search for a property in a device node and count the number of u8 elements
1077 * Return: The number of elements on sucess, -EINVAL if the property does
1078 * not exist or its length does not match a multiple of u8 and -ENODATA if the
1079 * property does not have a value.
1081 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1088 * of_property_count_u16_elems - Count the number of u16 elements in a property
1090 * @np: device node from which the property value is to be read.
1091 * @propname: name of the property to be searched.
1093 * Search for a property in a device node and count the number of u16 elements
1096 * Return: The number of elements on sucess, -EINVAL if the property does
1097 * not exist or its length does not match a multiple of u16 and -ENODATA if the
1098 * property does not have a value.
1100 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1107 * of_property_count_u32_elems - Count the number of u32 elements in a property
1109 * @np: device node from which the property value is to be read.
1110 * @propname: name of the property to be searched.
1112 * Search for a property in a device node and count the number of u32 elements
1115 * Return: The number of elements on sucess, -EINVAL if the property does
1116 * not exist or its length does not match a multiple of u32 and -ENODATA if the
1117 * property does not have a value.
1119 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1126 * of_property_count_u64_elems - Count the number of u64 elements in a property
1128 * @np: device node from which the property value is to be read.
1129 * @propname: name of the property to be searched.
1131 * Search for a property in a device node and count the number of u64 elements
1134 * Return: The number of elements on sucess, -EINVAL if the property does
1135 * not exist or its length does not match a multiple of u64 and -ENODATA if the
1136 * property does not have a value.
1138 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1145 * of_property_read_string_array() - Read an array of strings from a multiple
1146 * strings property.
1147 * @np: device node from which the property value is to be read.
1148 * @propname: name of the property to be searched.
1152 * Search for a property in a device tree node and retrieve a list of
1153 * terminated string values (pointer to data, not a copy) in that property.
1155 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1157 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1165 * of_property_count_strings() - Find and return the number of strings from a
1166 * multiple strings property.
1167 * @np: device node from which the property value is to be read.
1168 * @propname: name of the property to be searched.
1170 * Search for a property in a device tree node and retrieve the number of null
1173 * Return: The number of strings on success, -EINVAL if the property does not
1174 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1175 * is not null-terminated within the length of the property data.
1177 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1184 * of_property_read_string_index() - Find and read a string from a multiple
1185 * strings property.
1186 * @np: device node from which the property value is to be read.
1187 * @propname: name of the property to be searched.
1192 * Search for a property in a device tree node and retrieve a null
1194 * contained in that property.
1196 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1197 * property does not have a value, and -EILSEQ if the string is not
1198 * null-terminated within the length of the property data.
1202 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1204 int index, const char **output) in of_property_read_string_index()
1206 int rc = of_property_read_string_helper(np, propname, output, 1, index); in of_property_read_string_index()
1211 * of_property_read_bool - Find a property
1212 * @np: device node from which the property value is to be read.
1213 * @propname: name of the property to be searched.
1215 * Search for a boolean property in a device node. Usage on non-boolean
1216 * property types is deprecated.
1218 * Return: true if the property exists false otherwise.
1223 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1229 * of_property_present - Test if a property is present in a node
1230 * @np: device node to search for the property.
1231 * @propname: name of the property to be searched.
1233 * Test for a property present in a device node.
1235 * Return: true if the property exists false otherwise.
1243 * of_property_read_u8_array - Find and read an array of u8 from a property.
1245 * @np: device node from which the property value is to be read.
1246 * @propname: name of the property to be searched.
1250 * Search for a property in a device node and read 8-bit value(s) from
1254 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1256 * Return: 0 on success, -EINVAL if the property does not exist,
1257 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1258 * property data isn't large enough.
1262 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
1266 int ret = of_property_read_variable_u8_array(np, propname, out_values, in of_property_read_u8_array()
1275 * of_property_read_u16_array - Find and read an array of u16 from a property.
1277 * @np: device node from which the property value is to be read.
1278 * @propname: name of the property to be searched.
1282 * Search for a property in a device node and read 16-bit value(s) from
1286 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
1288 * Return: 0 on success, -EINVAL if the property does not exist,
1289 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1290 * property data isn't large enough.
1294 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
1298 int ret = of_property_read_variable_u16_array(np, propname, out_values, in of_property_read_u16_array()
1307 * of_property_read_u32_array - Find and read an array of 32 bit integers
1308 * from a property.
1310 * @np: device node from which the property value is to be read.
1311 * @propname: name of the property to be searched.
1315 * Search for a property in a device node and read 32-bit value(s) from
1318 * Return: 0 on success, -EINVAL if the property does not exist,
1319 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1320 * property data isn't large enough.
1324 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
1328 int ret = of_property_read_variable_u32_array(np, propname, out_values, in of_property_read_u32_array()
1337 * of_property_read_u64_array - Find and read an array of 64 bit integers
1338 * from a property.
1340 * @np: device node from which the property value is to be read.
1341 * @propname: name of the property to be searched.
1345 * Search for a property in a device node and read 64-bit value(s) from
1348 * Return: 0 on success, -EINVAL if the property does not exist,
1349 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1350 * property data isn't large enough.
1354 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
1358 int ret = of_property_read_variable_u64_array(np, propname, out_values, in of_property_read_u64_array()
1366 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1373 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1380 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1387 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1443 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1446 int num = 0; in of_get_child_count()
1454 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1457 int num = 0; in of_get_available_child_count()
1483 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1484 typedef int (*of_init_fn_1_ret)(struct device_node *);
1495 * struct of_changeset_entry - Holds a changeset entry
1500 * @prop: pointer to the property affected
1501 * @old_prop: hold a pointer to the original property
1512 struct property *prop;
1513 struct property *old_prop;
1517 * struct of_changeset - changeset tracker structure
1522 * live tree. In case of an error, changes are rolled-back.
1539 extern int of_reconfig_notifier_register(struct notifier_block *);
1540 extern int of_reconfig_notifier_unregister(struct notifier_block *);
1541 extern int of_reconfig_notify(unsigned long, struct of_reconfig_data *rd);
1542 extern int of_reconfig_get_state_change(unsigned long action,
1547 extern int of_changeset_apply(struct of_changeset *ocs);
1548 extern int of_changeset_revert(struct of_changeset *ocs);
1549 extern int of_changeset_action(struct of_changeset *ocs,
1551 struct property *prop);
1553 static inline int of_changeset_attach_node(struct of_changeset *ocs, in of_changeset_attach_node()
1559 static inline int of_changeset_detach_node(struct of_changeset *ocs, in of_changeset_detach_node()
1565 static inline int of_changeset_add_property(struct of_changeset *ocs, in of_changeset_add_property()
1566 struct device_node *np, struct property *prop) in of_changeset_add_property()
1571 static inline int of_changeset_remove_property(struct of_changeset *ocs, in of_changeset_remove_property()
1572 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1577 static inline int of_changeset_update_property(struct of_changeset *ocs, in of_changeset_update_property()
1578 struct device_node *np, struct property *prop) in of_changeset_update_property()
1586 int of_changeset_add_prop_string(struct of_changeset *ocs,
1589 int of_changeset_add_prop_string_array(struct of_changeset *ocs,
1593 int of_changeset_add_prop_u32_array(struct of_changeset *ocs,
1597 static inline int of_changeset_add_prop_u32(struct of_changeset *ocs, in of_changeset_add_prop_u32()
1606 static inline int of_reconfig_notifier_register(struct notifier_block *nb) in of_reconfig_notifier_register()
1608 return -EINVAL; in of_reconfig_notifier_register()
1610 static inline int of_reconfig_notifier_unregister(struct notifier_block *nb) in of_reconfig_notifier_unregister()
1612 return -EINVAL; in of_reconfig_notifier_unregister()
1614 static inline int of_reconfig_notify(unsigned long action, in of_reconfig_notify()
1617 return -EINVAL; in of_reconfig_notify()
1619 static inline int of_reconfig_get_state_change(unsigned long action, in of_reconfig_get_state_change()
1622 return -EINVAL; in of_reconfig_get_state_change()
1627 * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node
1634 return of_property_read_bool(np, "system-power-controller"); in of_device_is_system_power_controller()
1653 "pre-apply", in of_overlay_action_name()
1654 "post-apply", in of_overlay_action_name()
1655 "pre-remove", in of_overlay_action_name()
1656 "post-remove", in of_overlay_action_name()
1669 int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size,
1670 int *ovcs_id, struct device_node *target_base);
1671 int of_overlay_remove(int *ovcs_id);
1672 int of_overlay_remove_all(void);
1674 int of_overlay_notifier_register(struct notifier_block *nb);
1675 int of_overlay_notifier_unregister(struct notifier_block *nb);
1679 static inline int of_overlay_fdt_apply(const void *overlay_fdt, u32 overlay_fdt_size, in of_overlay_fdt_apply()
1680 int *ovcs_id, struct device_node *target_base) in of_overlay_fdt_apply()
1682 return -ENOTSUPP; in of_overlay_fdt_apply()
1685 static inline int of_overlay_remove(int *ovcs_id) in of_overlay_remove()
1687 return -ENOTSUPP; in of_overlay_remove()
1690 static inline int of_overlay_remove_all(void) in of_overlay_remove_all()
1692 return -ENOTSUPP; in of_overlay_remove_all()
1695 static inline int of_overlay_notifier_register(struct notifier_block *nb) in of_overlay_notifier_register()
1700 static inline int of_overlay_notifier_unregister(struct notifier_block *nb) in of_overlay_notifier_unregister()