Lines Matching +full:num +full:- +full:strings

1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
109 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
111 node->fwnode.ops = &of_fwnode_ops; in of_node_init()
115 #define of_node_kobj(n) (&(n)->kobj)
124 /* Dummy ref counting routines - to be implemented later */
150 #define OF_BAD_ADDR ((u64)-1)
157 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &of_fwnode_ops; in is_of_node()
175 &__of_fwnode_handle_node->fwnode : NULL; \
185 return node && (node->parent == NULL); in of_node_is_root()
190 return test_bit(flag, &n->_flags); in of_node_check_flag()
196 return test_and_set_bit(flag, &n->_flags); in of_node_test_and_set_flag()
201 set_bit(flag, &n->_flags); in of_node_set_flag()
206 clear_bit(flag, &n->_flags); in of_node_clear_flag()
212 return test_bit(flag, &p->_flags); in of_property_check_flag()
217 set_bit(flag, &p->_flags); in of_property_set_flag()
222 clear_bit(flag, &p->_flags); in of_property_clear_flag()
237 for (; size--; cell++) in of_read_number()
253 #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags)
254 #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags)
261 return np ? np->full_name : "<no-node>"; in of_node_full_name()
358 for (pp = dn->properties; pp != NULL; pp = pp->next)
419 * of_property_read_u8_array - Find and read an array of u8 from a property.
426 * Search for a property in a device node and read 8-bit value(s) from
427 * it. Returns 0 on success, -EINVAL if the property does not exist,
428 * -ENODATA if property does not have a value, and -EOVERFLOW if the
449 * of_property_read_u16_array - Find and read an array of u16 from a property.
456 * Search for a property in a device node and read 16-bit value(s) from
457 * it. Returns 0 on success, -EINVAL if the property does not exist,
458 * -ENODATA if property does not have a value, and -EOVERFLOW if the
479 * of_property_read_u32_array - Find and read an array of 32 bit integers
487 * Search for a property in a device node and read 32-bit value(s) from
488 * it. Returns 0 on success, -EINVAL if the property does not exist,
489 * -ENODATA if property does not have a value, and -EOVERFLOW if the
507 * of_property_read_u64_array - Find and read an array of 64 bit integers
515 * Search for a property in a device node and read 64-bit value(s) from
516 * it. Returns 0 on success, -EINVAL if the property does not exist,
517 * -ENODATA if property does not have a value, and -EOVERFLOW if the
589 return "<no-node>"; in of_node_full_name()
716 return -ENOSYS; in of_property_count_elems_of_size()
722 return -ENOSYS; in of_property_read_u8_array()
728 return -ENOSYS; in of_property_read_u16_array()
735 return -ENOSYS; in of_property_read_u32_array()
742 return -ENOSYS; in of_property_read_u64_array()
748 return -ENOSYS; in of_property_read_u32_index()
754 return -ENOSYS; in of_property_read_u64_index()
795 return -ENOSYS; in of_property_read_variable_u8_array()
802 return -ENOSYS; in of_property_read_variable_u16_array()
811 return -ENOSYS; in of_property_read_variable_u32_array()
817 return -ENOSYS; in of_property_read_u64()
826 return -ENOSYS; in of_property_read_variable_u64_array()
833 return -ENOSYS; in of_property_read_string()
840 return -ENOSYS; in of_property_match_string()
847 return -ENOSYS; in of_property_read_string_helper()
863 return -ENOSYS; in of_parse_phandle_with_args()
872 return -ENOSYS; in of_parse_phandle_with_args_map()
879 return -ENOSYS; in of_parse_phandle_with_fixed_args()
886 return -ENOSYS; in of_count_phandle_with_args()
895 return -ENOSYS; in of_phandle_iterator_init()
900 return -ENOSYS; in of_phandle_iterator_next()
912 return -ENOSYS; in of_alias_get_id()
917 return -ENOSYS; in of_alias_get_highest_id()
924 return -ENOSYS; in of_alias_get_alias_list()
988 return -ENODEV; in of_cpu_node_to_id()
995 return -EINVAL; in of_map_id()
1011 return p1->length == p2->length && in of_prop_val_eq()
1012 !memcmp(p1->value, p2->value, (size_t)p1->length); in of_prop_val_eq()
1029 return -ENOSYS; in of_numa_init()
1053 * of_property_count_u8_elems - Count the number of u8 elements in a property
1059 * in it. Returns number of elements on sucess, -EINVAL if the property does
1060 * not exist or its length does not match a multiple of u8 and -ENODATA if the
1070 * of_property_count_u16_elems - Count the number of u16 elements in a property
1076 * in it. Returns number of elements on sucess, -EINVAL if the property does
1077 * not exist or its length does not match a multiple of u16 and -ENODATA if the
1087 * of_property_count_u32_elems - Count the number of u32 elements in a property
1093 * in it. Returns number of elements on sucess, -EINVAL if the property does
1094 * not exist or its length does not match a multiple of u32 and -ENODATA if the
1104 * of_property_count_u64_elems - Count the number of u64 elements in a property
1110 * in it. Returns number of elements on sucess, -EINVAL if the property does
1111 * not exist or its length does not match a multiple of u64 and -ENODATA if the
1121 * of_property_read_string_array() - Read an array of strings from a multiple
1122 * strings property.
1131 * If @out_strs is NULL, the number of strings in the property is returned.
1141 * of_property_count_strings() - Find and return the number of strings from a
1142 * multiple strings property.
1147 * terminated string contain in it. Returns the number of strings on
1148 * success, -EINVAL if the property does not exist, -ENODATA if property
1149 * does not have a value, and -EILSEQ if the string is not null-terminated
1159 * of_property_read_string_index() - Find and read a string from a multiple
1160 * strings property.
1163 * @index: index of the string in the list of strings
1168 * terminated string value (pointer to data, not a copy) in the list of strings
1170 * Returns 0 on success, -EINVAL if the property does not exist, -ENODATA if
1171 * property does not have a value, and -EILSEQ if the string is not
1172 * null-terminated within the length of the property data.
1185 * of_property_read_bool - Find a property
1280 int num = 0; in of_get_child_count() local
1283 num++; in of_get_child_count()
1285 return num; in of_get_child_count()
1291 int num = 0; in of_get_available_child_count() local
1294 num++; in of_get_available_child_count()
1296 return num; in of_get_available_child_count()
1325 * struct of_changeset_entry - Holds a changeset entry
1347 * struct of_changeset - changeset tracker structure
1352 * live tree. In case of an error, changes are rolled-back.
1413 return -EINVAL; in of_reconfig_notifier_register()
1417 return -EINVAL; in of_reconfig_notifier_unregister()
1422 return -EINVAL; in of_reconfig_notify()
1427 return -EINVAL; in of_reconfig_get_state_change()
1432 * of_device_is_system_power_controller - Tells if system-power-controller is found for device_node
1439 return of_property_read_bool(np, "system-power-controller"); in of_device_is_system_power_controller()
1473 return -ENOTSUPP; in of_overlay_fdt_apply()
1478 return -ENOTSUPP; in of_overlay_remove()
1483 return -ENOTSUPP; in of_overlay_remove_all()