/openbmc/u-boot/include/dm/ |
H A D | read.h | 55 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp); 65 int dev_read_u32_default(struct udevice *dev, const char *propname, int def); 75 int dev_read_s32(struct udevice *dev, const char *propname, s32 *outp); 85 int dev_read_s32_default(struct udevice *dev, const char *propname, int def); 97 int dev_read_u32u(struct udevice *dev, const char *propname, uint *outp); 106 const char *dev_read_string(struct udevice *dev, const char *propname); 115 bool dev_read_bool(struct udevice *dev, const char *propname); 134 int dev_read_size(struct udevice *dev, const char *propname); 224 fdt_addr_t dev_read_addr_size(struct udevice *dev, const char *propname, 267 int dev_read_string_index(struct udevice *dev, const char *propname, int index, [all …]
|
H A D | ofnode.h | 203 int ofnode_read_u32(ofnode node, const char *propname, u32 *outp); 213 static inline int ofnode_read_s32(ofnode node, const char *propname, in ofnode_read_s32() argument 216 return ofnode_read_u32(node, propname, (u32 *)out_value); in ofnode_read_s32() 227 int ofnode_read_u32_default(ofnode ref, const char *propname, u32 def); 237 int ofnode_read_s32_default(ofnode node, const char *propname, s32 def); 247 int ofnode_read_u64(ofnode node, const char *propname, u64 *outp); 257 int ofnode_read_u64_default(ofnode node, const char *propname, u64 def); 266 const char *ofnode_read_string(ofnode node, const char *propname); 284 int ofnode_read_u32_array(ofnode node, const char *propname, 294 bool ofnode_read_bool(ofnode node, const char *propname); [all …]
|
H A D | of_access.h | 209 const char *propname, 235 int of_read_u32(const struct device_node *np, const char *propname, u32 *outp); 251 int of_read_u64(const struct device_node *np, const char *propname, u64 *outp); 266 int of_read_u32_array(const struct device_node *np, const char *propname, 281 int of_property_match_string(const struct device_node *np, const char *propname, 285 const char *propname, const char **out_strs, 307 const char *propname, in of_property_read_string_index() argument 310 int rc = of_property_read_string_helper(np, propname, output, 1, index); in of_property_read_string_index() 327 const char *propname) in of_property_count_strings() argument 329 return of_property_read_string_helper(np, propname, NULL, 0, 0); in of_property_count_strings()
|
/openbmc/linux/include/linux/ |
H A D | property.h | 43 bool device_property_present(const struct device *dev, const char *propname); 44 int device_property_read_u8_array(const struct device *dev, const char *propname, 46 int device_property_read_u16_array(const struct device *dev, const char *propname, 48 int device_property_read_u32_array(const struct device *dev, const char *propname, 50 int device_property_read_u64_array(const struct device *dev, const char *propname, 52 int device_property_read_string_array(const struct device *dev, const char *propname, 54 int device_property_read_string(const struct device *dev, const char *propname, 57 const char *propname, const char *string); 60 const char *propname); 62 const char *propname, u8 *val, [all …]
|
H A D | of.h | 315 const char *propname, int elem_size); 317 const char *propname, 320 const char *propname, 323 const char *propname, u8 *out_values, 326 const char *propname, u16 *out_values, 329 const char *propname, 334 const char *propname, u64 *out_value); 336 const char *propname, 342 const char *propname, 345 const char *propname, [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | read.c | 14 int dev_read_u32(struct udevice *dev, const char *propname, u32 *outp) in dev_read_u32() argument 16 return ofnode_read_u32(dev_ofnode(dev), propname, outp); in dev_read_u32() 19 int dev_read_u32_default(struct udevice *dev, const char *propname, int def) in dev_read_u32_default() argument 21 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_u32_default() 24 int dev_read_s32(struct udevice *dev, const char *propname, s32 *outp) in dev_read_s32() argument 26 return ofnode_read_u32(dev_ofnode(dev), propname, (u32 *)outp); in dev_read_s32() 29 int dev_read_s32_default(struct udevice *dev, const char *propname, int def) in dev_read_s32_default() argument 31 return ofnode_read_u32_default(dev_ofnode(dev), propname, def); in dev_read_s32_default() 34 int dev_read_u32u(struct udevice *dev, const char *propname, uint *outp) in dev_read_u32u() argument 39 ret = ofnode_read_u32(dev_ofnode(dev), propname, &val); in dev_read_u32u() [all …]
|
H A D | ofnode.c | 18 int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) in ofnode_read_u32() argument 21 debug("%s: %s: ", __func__, propname); in ofnode_read_u32() 24 return of_read_u32(ofnode_to_np(node), propname, outp); in ofnode_read_u32() 30 propname, &len); in ofnode_read_u32() 42 int ofnode_read_u32_default(ofnode node, const char *propname, u32 def) in ofnode_read_u32_default() argument 45 ofnode_read_u32(node, propname, &def); in ofnode_read_u32_default() 50 int ofnode_read_s32_default(ofnode node, const char *propname, s32 def) in ofnode_read_s32_default() argument 53 ofnode_read_u32(node, propname, (u32 *)&def); in ofnode_read_s32_default() 58 int ofnode_read_u64(ofnode node, const char *propname, u64 *outp) in ofnode_read_u64() argument 64 debug("%s: %s: ", __func__, propname); in ofnode_read_u64() [all …]
|
H A D | of_access.c | 380 const char *propname, const void *propval, in of_device_has_prop_value() argument 383 struct property *prop = of_find_property(device, propname, NULL); in of_device_has_prop_value() 391 const char *propname, in of_find_node_by_prop_value() argument 397 if (of_device_has_prop_value(np, propname, propval, proplen) && in of_find_node_by_prop_value() 435 const char *propname, u32 len) in of_find_property_value_of_size() argument 437 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 449 int of_read_u32(const struct device_node *np, const char *propname, u32 *outp) in of_read_u32() argument 453 debug("%s: %s: ", __func__, propname); in of_read_u32() 456 val = of_find_property_value_of_size(np, propname, sizeof(*outp)); in of_read_u32() 468 int of_read_u32_array(const struct device_node *np, const char *propname, in of_read_u32_array() argument [all …]
|
/openbmc/qemu/hw/core/ |
H A D | gpio.c | 59 gchar *propname = g_strdup_printf("%s[%u]", name, i); in qdev_init_gpio_in_named_with_opaque() local 61 object_property_add_child(OBJECT(dev), propname, in qdev_init_gpio_in_named_with_opaque() 63 g_free(propname); in qdev_init_gpio_in_named_with_opaque() 87 gchar *propname = g_strdup_printf("%s[%u]", name, in qdev_init_gpio_out_named() local 90 object_property_add_link(OBJECT(dev), propname, TYPE_IRQ, in qdev_init_gpio_out_named() 94 g_free(propname); in qdev_init_gpio_out_named() 120 char *propname = g_strdup_printf("%s[%d]", in qdev_connect_gpio_out_named() local 128 object_property_set_link(OBJECT(dev), propname, in qdev_connect_gpio_out_named() 130 g_free(propname); in qdev_connect_gpio_out_named() 135 g_autofree char *propname = g_strdup_printf("%s[%d]", in qdev_get_gpio_out_connector() local [all …]
|
/openbmc/u-boot/tools/dtoc/ |
H A D | fdt_util.py | 95 def GetInt(node, propname, default=None): argument 106 prop = node.props.get(propname) 111 "a single integer" % (node.name, propname)) 115 def GetString(node, propname, default=None): argument 126 prop = node.props.get(propname) 132 "a single string" % (node.name, propname)) 135 def GetBool(node, propname, default=False): argument 147 if propname in node.props: 151 def GetByte(node, propname, default=None): argument 162 prop = node.props.get(propname) [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-swnode.c | 20 static void swnode_format_propname(const char *con_id, char *propname, in swnode_format_propname() argument 29 snprintf(propname, max_size, "%s-gpios", con_id); in swnode_format_propname() 31 strscpy(propname, "gpios", max_size); in swnode_format_propname() 60 char propname[32]; /* 32 is max size of property name */ in swnode_find_gpio() local 67 swnode_format_propname(con_id, propname, sizeof(propname)); in swnode_find_gpio() 73 error = fwnode_property_get_reference_args(fwnode, propname, NULL, 2, idx, &args); in swnode_find_gpio() 76 __func__, propname, fwnode, idx); in swnode_find_gpio() 89 __func__, propname, fwnode, idx, PTR_ERR_OR_ZERO(desc)); in swnode_find_gpio() 107 char propname[32]; in swnode_gpio_count() local 110 swnode_format_propname(con_id, propname, sizeof(propname)); in swnode_gpio_count() [all …]
|
H A D | gpiolib-of.c | 64 const char *propname) in of_gpio_named_count() argument 66 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count() 99 char propname[32]; in of_gpio_get_count() local 108 snprintf(propname, sizeof(propname), "%s-%s", in of_gpio_get_count() 111 snprintf(propname, sizeof(propname), "%s", in of_gpio_get_count() 114 ret = of_gpio_named_count(dev->of_node, propname); in of_gpio_get_count() 179 const char *propname, in of_gpio_try_fixup_polarity() argument 184 const char *propname; in of_gpio_try_fixup_polarity() member 219 !strcmp(propname, gpios[i].propname)) { in of_gpio_try_fixup_polarity() 227 const char *propname, in of_gpio_set_polarity_by_property() argument [all …]
|
H A D | gpiolib-acpi.c | 851 const char *propname, int index, in acpi_gpio_property_lookup() argument 859 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, in acpi_gpio_property_lookup() 865 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, &quirks)) in acpi_gpio_property_lookup() 910 const char *propname, in acpi_get_gpiod_by_index() argument 923 if (propname) { in acpi_get_gpiod_by_index() 924 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index() 927 propname, index, &lookup); in acpi_get_gpiod_by_index() 958 const char *propname, in acpi_get_gpiod_from_data() argument 968 if (!propname) in acpi_get_gpiod_from_data() 974 ret = acpi_gpio_property_lookup(fwnode, propname, index, &lookup); in acpi_get_gpiod_from_data() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | property.c | 43 bool device_property_present(const struct device *dev, const char *propname) in device_property_present() argument 45 return fwnode_property_present(dev_fwnode(dev), propname); in device_property_present() 57 const char *propname) in fwnode_property_present() argument 64 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present() 68 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present() 93 int device_property_read_u8_array(const struct device *dev, const char *propname, in device_property_read_u8_array() argument 96 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 121 int device_property_read_u16_array(const struct device *dev, const char *propname, in device_property_read_u16_array() argument 124 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 149 int device_property_read_u32_array(const struct device *dev, const char *propname, in device_property_read_u32_array() argument [all …]
|
H A D | swnode.c | 131 const char *propname, size_t length) in property_entry_find() argument 136 prop = property_entry_get(props, propname); in property_entry_find() 149 const char *propname, size_t length) in property_entry_count_elems_of_size() argument 153 prop = property_entry_get(props, propname); in property_entry_count_elems_of_size() 186 const char *propname, in property_entry_read_string_array() argument 194 array_len = property_entry_count_elems_of_size(props, propname, in property_entry_read_string_array() 206 pointer = property_entry_find(props, propname, length); in property_entry_read_string_array() 383 const char *propname) in software_node_property_present() argument 387 return !!property_entry_get(swnode->node->properties, propname); in software_node_property_present() 391 const char *propname, in software_node_read_int_array() argument [all …]
|
/openbmc/linux/drivers/of/ |
H A D | property.c | 72 const char *propname, int elem_size) in of_property_count_elems_of_size() argument 74 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() 83 propname, np, elem_size); in of_property_count_elems_of_size() 108 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() argument 110 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 145 const char *propname, in of_property_read_u32_index() argument 148 const u32 *val = of_find_property_value_of_size(np, propname, in of_property_read_u32_index() 179 const char *propname, in of_property_read_u64_index() argument 182 const u64 *val = of_find_property_value_of_size(np, propname, in of_property_read_u64_index() 219 const char *propname, u8 *out_values, in of_property_read_variable_u8_array() argument [all …]
|
/openbmc/linux/drivers/input/ |
H A D | matrix-keymap.c | 69 static int matrix_keypad_parse_keymap(const char *propname, in matrix_keypad_parse_keymap() argument 81 if (!propname) in matrix_keypad_parse_keymap() 82 propname = "linux,keymap"; in matrix_keypad_parse_keymap() 84 size = device_property_count_u32(dev, propname); in matrix_keypad_parse_keymap() 87 propname, size); in matrix_keypad_parse_keymap() 93 propname, size, max_keys); in matrix_keypad_parse_keymap() 101 retval = device_property_read_u32_array(dev, propname, keys, size); in matrix_keypad_parse_keymap() 104 propname, retval); in matrix_keypad_parse_keymap()
|
/openbmc/u-boot/test/dm/ |
H A D | ofnode.c | 22 const char propname[] = "compatible"; in dm_test_ofnode_by_prop_value() local 28 node = ofnode_by_prop_value(node, propname, propval, sizeof(propval)); in dm_test_ofnode_by_prop_value() 30 str = ofnode_read_string(node, propname); in dm_test_ofnode_by_prop_value() 35 node = ofnode_by_prop_value(node, propname, propval, in dm_test_ofnode_by_prop_value() 39 str = ofnode_read_string(node, propname); in dm_test_ofnode_by_prop_value()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_vof.c | 112 bool spapr_vof_setprop(MachineState *ms, const char *path, const char *propname, in spapr_vof_setprop() argument 124 if (strcmp(propname, "linux,rtas-base") == 0 || in spapr_vof_setprop() 125 strcmp(propname, "linux,rtas-entry") == 0) { in spapr_vof_setprop() 132 if (strcmp(propname, "bootargs") == 0) { in spapr_vof_setprop() 139 if (strcmp(propname, "linux,initrd-start") == 0) { in spapr_vof_setprop() 150 if (strcmp(propname, "linux,initrd-end") == 0) { in spapr_vof_setprop()
|
H A D | vof.c | 176 static const void *getprop(const void *fdt, int nodeoff, const char *propname, in getprop() argument 180 const void *ret = fdt_getprop(fdt, nodeoff, propname, proplen); in getprop() 189 if (strcmp(propname, "name")) { in getprop() 221 char propname[OF_PROPNAME_LEN_MAX + 1]; in vof_getprop() local 232 if (readstr(pname, propname, sizeof(propname))) { in vof_getprop() 235 prop = getprop(fdt, nodeoff, propname, &proplen, &write0); in vof_getprop() 262 trace_vof_getprop(nodeph, propname, ret, trval); in vof_getprop() 269 char propname[OF_PROPNAME_LEN_MAX + 1]; in vof_getproplen() local 278 if (readstr(pname, propname, sizeof(propname))) { in vof_getproplen() 281 prop = getprop(fdt, nodeoff, propname, &proplen, NULL); in vof_getproplen() [all …]
|
/openbmc/u-boot/drivers/bootcount/ |
H A D | bootcount-uclass.c | 36 const char *propname = "u-boot,bootcount-device"; in bootcount_store() local 44 node = ofnode_get_chosen_node(propname); in bootcount_store() 63 const char *propname = "u-boot,bootcount-device"; in bootcount_load() local 72 node = ofnode_get_chosen_node(propname); in bootcount_load()
|
/openbmc/linux/drivers/acpi/ |
H A D | property.c | 667 const union acpi_object *propname, *propvalue; in acpi_data_get_property() local 672 propname = &property->package.elements[0]; in acpi_data_get_property() 675 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property() 724 const char *propname, void **valptr) in acpi_node_prop_get() argument 727 propname, ACPI_TYPE_ANY, in acpi_node_prop_get() 884 const char *propname, size_t index, size_t num_args, in __acpi_node_get_property_reference() argument 897 ret = acpi_data_get_property(data, propname, ACPI_TYPE_ANY, &obj); in __acpi_node_get_property_reference() 974 const char *propname, in acpi_data_prop_read_single() argument 981 ret = acpi_data_get_property(data, propname, ACPI_TYPE_INTEGER, &obj); in acpi_data_prop_read_single() 983 ret = acpi_data_get_property(data, propname, ACPI_TYPE_STRING, &obj); in acpi_data_prop_read_single() [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | ops.h | 47 const char *propname, 145 const char *propname, in find_node_by_prop_value() argument 149 return dt_ops.find_node_by_prop_value(prev, propname, in find_node_by_prop_value() 156 const char *propname, in find_node_by_prop_value_str() argument 159 return find_node_by_prop_value(prev, propname, propval, in find_node_by_prop_value_str()
|
/openbmc/u-boot/scripts/dtc/ |
H A D | checks.c | 183 char *propname = c->data; in check_is_string() local 185 prop = get_property(node, propname); in check_is_string() 192 #define WARNING_IF_NOT_STRING(nm, propname) \ argument 193 WARNING(nm, check_is_string, (propname)) 194 #define ERROR_IF_NOT_STRING(nm, propname) \ argument 195 ERROR(nm, check_is_string, (propname)) 202 char *propname = c->data; in check_is_string_list() local 205 prop = get_property(node, propname); in check_is_string_list() 221 #define WARNING_IF_NOT_STRING_LIST(nm, propname) \ argument 222 WARNING(nm, check_is_string_list, (propname)) [all …]
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-uclass.c | 88 char propname[32]; /* long enough */ in pinctrl_select_state_full() local 106 snprintf(propname, sizeof(propname), "pinctrl-%d", state); in pinctrl_select_state_full() 107 list = dev_read_prop(dev, propname, &size); in pinctrl_select_state_full()
|