Searched refs:propname (Results 1 - 25 of 25) sorted by relevance

/u-boot/arch/x86/cpu/apollolake/
H A Dfsp_bindings.c198 * The end of the list is declared by a NULL pointer in propname
213 for (int i = 0; fsp_bindings[i].propname; i++) {
218 read_u8_prop(node, fspb->propname, fspb->count,
222 ret = read_u16_prop(node, fspb->propname, fspb->count,
228 read_u32_prop(node, fspb->propname, fspb->count,
232 ret = read_u64_prop(node, fspb->propname, fspb->count,
238 read_string_prop(node, fspb->propname, fspb->count,
242 read_swizzle_prop(node, fspb->propname, fspb->count,
256 .propname = "fspm,serial-debug-port-address",
260 .propname
[all...]
/u-boot/test/dm/
H A Dofread.c13 const char *propname; local
20 value = ofprop_get_property(&prop, &propname, &len);
24 ut_asserteq_str("image-pos", propname);
28 ut_asserteq_str("size", propname);
32 ut_asserteq_str("erase-value", propname);
37 ut_asserteq_str("name", propname);
H A Dofnode.c157 const char *propname, const char *propval,
166 node = ofnode_by_prop_value(start, propname, propval, proplen);
168 str = ofnode_read_string(node, propname);
174 node = ofnode_by_prop_value(node, propname, propval, proplen);
177 str = ofnode_read_string(node, propname);
1504 const char *propname = "missing-bool-value"; local
1509 ut_assert(!ofnode_read_bool(node, propname));
1510 ut_assert(!ofnode_has_property(node, propname));
1512 ut_assertok(ofnode_write_bool(node, propname, true));
1513 ut_assert(ofnode_read_bool(node, propname));
156 check_prop_values(struct unit_test_state *uts, ofnode start, const char *propname, const char *propval, int expect_count) argument
[all...]
/u-boot/tools/dtoc/
H A Dfdt_util.py103 def GetInt(node, propname, default=None):
108 propname: property name to read
114 prop = node.props.get(propname)
119 "a single integer" % (node.name, propname))
123 def GetInt64(node, propname, default=None):
128 propname (str): property name to read
137 prop = node.props.get(propname)
142 (node.name, propname))
146 def GetString(node, propname, default=None):
151 propname
[all...]
/u-boot/include/dm/
H A Dread.h38 * @propname: name of the property to read from
42 int dev_read_u8(const struct udevice *dev, const char *propname, u8 *outp);
48 * @propname: name of the property to read from
52 u8 dev_read_u8_default(const struct udevice *dev, const char *propname, u8 def);
58 * @propname: name of the property to read from
62 int dev_read_u16(const struct udevice *dev, const char *propname, u16 *outp);
68 * @propname: name of the property to read from
72 u16 dev_read_u16_default(const struct udevice *dev, const char *propname,
79 * @propname: name of the property to read from
83 int dev_read_u32(const struct udevice *dev, const char *propname, u3
868 dev_read_u8(const struct udevice *dev, const char *propname, u8 *outp) argument
874 dev_read_u8_default(const struct udevice *dev, const char *propname, u8 def) argument
880 dev_read_u16(const struct udevice *dev, const char *propname, u16 *outp) argument
886 dev_read_u16_default(const struct udevice *dev, const char *propname, u16 def) argument
892 dev_read_u32(const struct udevice *dev, const char *propname, u32 *outp) argument
898 dev_read_u32_default(const struct udevice *dev, const char *propname, int def) argument
904 dev_read_u32_index(struct udevice *dev, const char *propname, int index, u32 *outp) argument
910 dev_read_u32_index_default(struct udevice *dev, const char *propname, int index, u32 def) argument
918 dev_read_s32(const struct udevice *dev, const char *propname, s32 *outp) argument
924 dev_read_s32_default(const struct udevice *dev, const char *propname, int def) argument
930 dev_read_u32u(const struct udevice *dev, const char *propname, uint *outp) argument
944 dev_read_u64(const struct udevice *dev, const char *propname, u64 *outp) argument
950 dev_read_u64_default(const struct udevice *dev, const char *propname, u64 def) argument
956 dev_read_string(const struct udevice *dev, const char *propname) argument
962 dev_read_bool(const struct udevice *dev, const char *propname) argument
974 dev_read_size(const struct udevice *dev, const char *propname) argument
1074 dev_read_stringlist_search(const struct udevice *dev, const char *propname, const char *string) argument
1081 dev_read_string_index(const struct udevice *dev, const char *propname, int index, const char **outp) argument
1088 dev_read_string_count(const struct udevice *dev, const char *propname) argument
1094 dev_read_string_list(const struct udevice *dev, const char *propname, const char ***listp) argument
1146 dev_read_prop(const struct udevice *dev, const char *propname, int *lenp) argument
1162 dev_read_prop_by_prop(struct ofprop *prop, const char **propname, int *lenp) argument
1179 dev_read_u32_array(const struct udevice *dev, const char *propname, u32 *out_values, size_t sz) argument
1196 dev_read_u8_array_ptr(const struct udevice *dev, const char *propname, size_t sz) argument
[all...]
H A Dof_access.h249 * @propname: property name to check
255 const char *propname,
276 * @propname: name of the property to be searched.
283 int of_read_u8(const struct device_node *np, const char *propname, u8 *outp);
292 * @propname: name of the property to be searched.
299 int of_read_u16(const struct device_node *np, const char *propname, u16 *outp);
308 * @propname: name of the property to be searched.
315 int of_read_u32(const struct device_node *np, const char *propname, u32 *outp);
325 * @propname: name of the property to be searched.
333 int of_read_u32_index(const struct device_node *np, const char *propname,
428 of_property_read_string_index(const struct device_node *np, const char *propname, int index, const char **output) argument
450 of_property_count_strings(const struct device_node *np, const char *propname) argument
[all...]
H A Dofnode.h402 * @propname: name of the property to read from
406 int ofnode_read_u8(ofnode node, const char *propname, u8 *outp);
412 * @propname: name of the property to read from
416 u8 ofnode_read_u8_default(ofnode node, const char *propname, u8 def);
422 * @propname: name of the property to read from
426 int ofnode_read_u16(ofnode node, const char *propname, u16 *outp);
432 * @propname: name of the property to read from
436 u16 ofnode_read_u16_default(ofnode node, const char *propname, u16 def);
442 * @propname: name of the property to read from
446 int ofnode_read_u32(ofnode node, const char *propname, u3
480 ofnode_read_s32(ofnode node, const char *propname, s32 *outp) argument
[all...]
/u-boot/drivers/core/
H A Dread.c16 int dev_read_u8(const struct udevice *dev, const char *propname, u8 *outp) argument
18 return ofnode_read_u8(dev_ofnode(dev), propname, outp);
21 u8 dev_read_u8_default(const struct udevice *dev, const char *propname, u8 def) argument
23 return ofnode_read_u8_default(dev_ofnode(dev), propname, def);
26 int dev_read_u16(const struct udevice *dev, const char *propname, u16 *outp) argument
28 return ofnode_read_u16(dev_ofnode(dev), propname, outp);
31 u16 dev_read_u16_default(const struct udevice *dev, const char *propname, argument
34 return ofnode_read_u16_default(dev_ofnode(dev), propname, def);
37 int dev_read_u32(const struct udevice *dev, const char *propname, u32 *outp) argument
39 return ofnode_read_u32(dev_ofnode(dev), propname, out
42 dev_read_u32_default(const struct udevice *dev, const char *propname, int def) argument
48 dev_read_u32_index(struct udevice *dev, const char *propname, int index, u32 *outp) argument
54 dev_read_u32_index_default(struct udevice *dev, const char *propname, int index, u32 def) argument
61 dev_read_s32(const struct udevice *dev, const char *propname, s32 *outp) argument
66 dev_read_s32_default(const struct udevice *dev, const char *propname, int def) argument
72 dev_read_u32u(const struct udevice *dev, const char *propname, uint *outp) argument
85 dev_read_u64(const struct udevice *dev, const char *propname, u64 *outp) argument
90 dev_read_u64_default(const struct udevice *dev, const char *propname, u64 def) argument
96 dev_read_string(const struct udevice *dev, const char *propname) argument
101 dev_read_bool(const struct udevice *dev, const char *propname) argument
121 dev_read_size(const struct udevice *dev, const char *propname) argument
262 dev_read_string_index(const struct udevice *dev, const char *propname, int index, const char **outp) argument
268 dev_read_string_count(const struct udevice *dev, const char *propname) argument
273 dev_read_string_list(const struct udevice *dev, const char *propname, const char ***listp) argument
326 dev_read_prop(const struct udevice *dev, const char *propname, int *lenp) argument
342 dev_read_prop_by_prop(struct ofprop *prop, const char **propname, int *lenp) argument
370 dev_read_u32_array(const struct udevice *dev, const char *propname, u32 *out_values, size_t sz) argument
376 dev_read_u8_array_ptr(const struct udevice *dev, const char *propname, size_t sz) argument
[all...]
H A Dofnode.c312 int ofnode_read_u8(ofnode node, const char *propname, u8 *outp) argument
318 debug("%s: %s: ", __func__, propname);
321 return of_read_u8(ofnode_to_np(node), propname, outp);
323 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), propname,
335 u8 ofnode_read_u8_default(ofnode node, const char *propname, u8 def) argument
338 ofnode_read_u8(node, propname, &def);
343 int ofnode_read_u16(ofnode node, const char *propname, u16 *outp) argument
349 debug("%s: %s: ", __func__, propname);
352 return of_read_u16(ofnode_to_np(node), propname, outp);
354 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), propname,
366 ofnode_read_u16_default(ofnode node, const char *propname, u16 def) argument
374 ofnode_read_u32(ofnode node, const char *propname, u32 *outp) argument
379 ofnode_read_u32_default(ofnode node, const char *propname, u32 def) argument
387 ofnode_read_u32_index(ofnode node, const char *propname, int index, u32 *outp) argument
418 ofnode_read_u64_index(ofnode node, const char *propname, int index, u64 *outp) argument
448 ofnode_read_u32_index_default(ofnode node, const char *propname, int index, u32 def) argument
457 ofnode_read_s32_default(ofnode node, const char *propname, s32 def) argument
465 ofnode_read_u64(ofnode node, const char *propname, u64 *outp) argument
489 ofnode_read_u64_default(ofnode node, const char *propname, u64 def) argument
497 ofnode_read_bool(ofnode node, const char *propname) argument
511 ofnode_read_prop(ofnode node, const char *propname, int *sizep) argument
543 ofnode_read_string(ofnode node, const char *propname) argument
561 ofnode_read_size(ofnode node, const char *propname) argument
597 ofnode_read_u32_array(ofnode node, const char *propname, u32 *out_values, size_t sz) argument
974 ofnode_read_chosen_prop(const char *propname, int *sizep) argument
983 ofnode_read_chosen_string(const char *propname) argument
1017 ofnode_read_aliases_prop(const char *propname, int *sizep) argument
1185 ofnode_get_property(ofnode node, const char *propname, int *lenp) argument
1194 ofnode_has_property(ofnode node, const char *propname) argument
1239 ofprop_get_property(const struct ofprop *prop, const char **propname, int *lenp) argument
1277 ofnode_read_u8_array_ptr(ofnode node, const char *propname, size_t sz) argument
1295 ofnode_read_pci_addr(ofnode node, enum fdt_pci_space type, const char *propname, struct fdt_pci_addr *addr, fdt_size_t *size) argument
1591 ofnode_by_prop_value(ofnode from, const char *propname, const void *propval, int proplen) argument
1606 ofnode_write_prop(ofnode node, const char *propname, const void *value, int len, bool copy) argument
1630 ofnode_write_string(ofnode node, const char *propname, const char *value) argument
1640 ofnode_write_u32(ofnode node, const char *propname, u32 value) argument
1655 ofnode_write_u64(ofnode node, const char *propname, u64 value) argument
1670 ofnode_write_bool(ofnode node, const char *propname, bool value) argument
1678 ofnode_delete_prop(ofnode node, const char *propname) argument
[all...]
H A Dof_access.c422 const char *propname, const void *propval,
425 struct property *prop = of_find_property(device, propname, NULL);
433 const char *propname,
439 if (of_device_has_prop_value(np, propname, propval, proplen) &&
470 * @propname: name of the property to be searched.
477 const char *propname, u32 len)
479 struct property *prop = of_find_property(np, propname, NULL);
489 int of_read_u8(const struct device_node *np, const char *propname, u8 *outp) argument
493 debug("%s: %s: ", __func__, propname);
496 val = of_find_property_value_of_size(np, propname, sizeo
421 of_device_has_prop_value(const struct device_node *device, const char *propname, const void *propval, int proplen) argument
432 of_find_node_by_prop_value(struct device_node *from, const char *propname, const void *propval, int proplen) argument
476 of_find_property_value_of_size(const struct device_node *np, const char *propname, u32 len) argument
508 of_read_u16(const struct device_node *np, const char *propname, u16 *outp) argument
527 of_read_u32(const struct device_node *np, const char *propname, u32 *outp) argument
532 of_read_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz) argument
551 of_read_u32_index(const struct device_node *np, const char *propname, int index, u32 *outp) argument
573 of_read_u64_index(const struct device_node *np, const char *propname, int index, u64 *outp) argument
596 of_read_u64(const struct device_node *np, const char *propname, u64 *outp) argument
601 of_property_match_string(const struct device_node *np, const char *propname, const char *string) argument
643 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int skip) argument
938 of_write_prop(struct device_node *np, const char *propname, int len, const void *value) argument
[all...]
/u-boot/drivers/pinctrl/
H A Dpinctrl-generic.c274 const char *propname; local
287 value = dev_read_prop_by_prop(&property, &propname, &len);
295 !strcmp(propname, function_propname)) {
307 param = pinconf_prop_name_to_param(dev, propname,
347 const char *propname; local
349 propname = alloc_name_with_prefix("pins", prefix);
350 if (!propname)
352 *count = dev_read_string_count(config, propname);
353 free_name_with_prefix(propname, prefix);
357 propname
394 const char *propname; local
[all...]
H A Dpinctrl-uclass.c58 char propname[32]; /* long enough */ local
76 snprintf(propname, sizeof(propname), "pinctrl-%d", state);
77 list = dev_read_prop(dev, propname, &size);
H A Dpinctrl-single.c511 const char *propname = "pinctrl-single,gpio-range"; local
518 ret = ofnode_parse_phandle_with_args(dev_ofnode(dev), propname,
/u-boot/drivers/reboot-mode/
H A Dreboot-mode-uclass.c71 const char *propname; local
80 propvalue = dev_read_prop_by_prop(&property, &propname, NULL);
83 propname);
87 if (!strncmp(propname, mode_prefix, mode_prefix_len))
97 propvalue = dev_read_prop_by_prop(&property, &propname, NULL);
100 propname);
104 if (!strncmp(propname, mode_prefix, mode_prefix_len)) {
105 next->mode_name = &propname[mode_prefix_len];
/u-boot/drivers/bootcount/
H A Dbootcount-uclass.c40 const char *propname = "u-boot,bootcount-device"; local
48 node = ofnode_get_chosen_node(propname);
67 const char *propname = "u-boot,bootcount-device"; local
76 node = ofnode_get_chosen_node(propname);
/u-boot/arch/x86/include/asm/arch-apollolake/
H A Dfsp_bindings.h28 * @propname: Name of property to read
40 char *propname; member in struct:fsp_binding
/u-boot/scripts/dtc/
H A Dchecks.c183 char *propname = c->data; local
185 prop = get_property(node, propname);
192 #define WARNING_IF_NOT_STRING(nm, propname) \
193 WARNING(nm, check_is_string, (propname))
194 #define ERROR_IF_NOT_STRING(nm, propname) \
195 ERROR(nm, check_is_string, (propname))
202 char *propname = c->data; local
205 prop = get_property(node, propname);
221 #define WARNING_IF_NOT_STRING_LIST(nm, propname) \
222 WARNING(nm, check_is_string_list, (propname))
230 char *propname = c->data; local
443 check_phandle_prop(struct check *c, struct dt_info *dti, struct node *node, const char *propname) argument
[all...]
H A Ddtc.h223 struct property *get_property(struct node *node, const char *propname);
H A Dlivetree.c425 struct property *get_property(struct node *node, const char *propname) argument
430 if (streq(prop->name, propname))
/u-boot/drivers/clk/
H A Dclk_pic32.c328 char propname[50]; local
336 snprintf(propname, sizeof(propname),
338 rate = fdtdec_get_int(blob, dev_of_offset(dev), propname, 0);
/u-boot/env/
H A Dmmc.c109 const char *propname; local
140 propname = dt_prop.offset;
144 propname = dt_prop.offset_redund;
147 return ofnode_conf_read_int(propname, defvalue);
/u-boot/scripts/dtc/libfdt/
H A Dfdt_ro.c654 const char *propname,
671 val = fdt_getprop(fdt, offset, propname, &len);
869 const char *propname; local
929 prop = fdt_getprop_by_offset(fdt, offset, &propname,
653 fdt_node_offset_by_prop_value(const void *fdt, int startoffset, const char *propname, const void *propval, int proplen) argument
H A Dlibfdt.h912 * @propname: property name to check
917 * node after startoffset, which has a property named propname whose
923 * offset = fdt_node_offset_by_prop_value(fdt, -1, propname,
927 * offset = fdt_node_offset_by_prop_value(fdt, offset, propname,
947 const char *propname,
/u-boot/drivers/gpio/
H A Dgpio-uclass.c1465 char *propname; local
1468 propname = malloc(strlen(id) + sizeof(suffix));
1469 if (!propname) {
1474 strcpy(propname, id);
1475 strcat(propname, suffix);
1484 rc = gpio_request_by_name(dev, propname, index, desc, flags);
1487 if (propname)
1488 free(propname);
/u-boot/drivers/net/fsl-mc/
H A Dmc.c171 const char *propname, struct udevice *eth_dev,
197 if (fdt_get_property(blob, nodeoffset, propname, NULL)) {
203 size = MC_DT_INCREASE_SIZE + strlen(propname) + len;
213 err = fdt_setprop(blob, nodeoffset, propname, val, len);
170 mc_fixup_mac_addr(void *blob, int nodeoffset, const char *propname, struct udevice *eth_dev, enum mc_fixup_type type) argument

Completed in 268 milliseconds