Lines Matching refs:prop

46 				const char *prop, const u32 dflt)  in fdt_getprop_u32_default_node()  argument
51 val = fdt_getprop(fdt, off, prop, &len); in fdt_getprop_u32_default_node()
76 const char *prop, const u32 dflt) in fdt_getprop_u32_default() argument
84 return fdt_getprop_u32_default_node(fdt, off, 0, prop, dflt); in fdt_getprop_u32_default()
99 int fdt_find_and_setprop(void *fdt, const char *node, const char *prop, in fdt_find_and_setprop() argument
107 if ((!create) && (fdt_get_property(fdt, nodeoff, prop, NULL) == NULL)) in fdt_find_and_setprop()
110 return fdt_setprop(fdt, nodeoff, prop, val, len); in fdt_find_and_setprop()
402 void do_fixup_by_path(void *fdt, const char *path, const char *prop, in do_fixup_by_path() argument
407 debug("Updating property '%s/%s' = ", path, prop); in do_fixup_by_path()
412 int rc = fdt_find_and_setprop(fdt, path, prop, val, len, create); in do_fixup_by_path()
415 path, prop, fdt_strerror(rc)); in do_fixup_by_path()
418 void do_fixup_by_path_u32(void *fdt, const char *path, const char *prop, in do_fixup_by_path_u32() argument
422 do_fixup_by_path(fdt, path, prop, &tmp, sizeof(tmp), create); in do_fixup_by_path_u32()
427 const char *prop, const void *val, int len, in do_fixup_by_prop() argument
433 debug("Updating property '%s' = ", prop); in do_fixup_by_prop()
440 if (create || (fdt_get_property(fdt, off, prop, NULL) != NULL)) in do_fixup_by_prop()
441 fdt_setprop(fdt, off, prop, val, len); in do_fixup_by_prop()
448 const char *prop, u32 val, int create) in do_fixup_by_prop_u32() argument
451 do_fixup_by_prop(fdt, pname, pval, plen, prop, &tmp, 4, create); in do_fixup_by_prop_u32()
455 const char *prop, const void *val, int len, int create) in do_fixup_by_compat() argument
460 debug("Updating property '%s' = ", prop); in do_fixup_by_compat()
466 if (create || (fdt_get_property(fdt, off, prop, NULL) != NULL)) in do_fixup_by_compat()
467 fdt_setprop(fdt, off, prop, val, len); in do_fixup_by_compat()
471 const char *prop, u32 val, int create) in do_fixup_by_compat_u32() argument
474 do_fixup_by_compat(fdt, compat, prop, &tmp, 4, create); in do_fixup_by_compat_u32()
625 int i = 0, j, prop; in fdt_fixup_ethernet() local
640 for (prop = 0; ; prop++) { in fdt_fixup_ethernet()
647 for (j = 0; j < prop; j++) in fdt_fixup_ethernet()
921 const void *prop; in fdt_del_partitions() local
928 prop = fdt_getprop(blob, off, "label", NULL); in fdt_del_partitions()
929 if (prop == NULL) { in fdt_del_partitions()
1089 const char *prop; in fdt_fixup_mtdparts() local
1091 prop = fdt_getprop(blob, noff, "status", NULL); in fdt_fixup_mtdparts()
1092 if (prop && !strcmp(prop, "disabled")) in fdt_fixup_mtdparts()
1269 const fdt32_t *prop; in fdt_support_default_count_cells() local
1275 prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL); in fdt_support_default_count_cells()
1276 if (prop) in fdt_support_default_count_cells()
1277 *sizec = be32_to_cpup(prop); in fdt_support_default_count_cells()
1935 const fdt32_t *prop; in fdt_get_base_address() local
1937 prop = fdt_getprop(fdt, node, "reg", &size); in fdt_get_base_address()
1939 return prop ? fdt_translate_address(fdt, node, prop) : OF_BAD_ADDR; in fdt_get_base_address()
1946 static int fdt_read_prop(const fdt32_t *prop, int prop_len, int cell_off, in fdt_read_prop() argument
1955 prop32 = &prop[cell_off]; in fdt_read_prop()
1965 prop64 = (const fdt64_t *)&prop[cell_off]; in fdt_read_prop()