Lines Matching refs:len
94 static void *fdt_grab_space_(void *fdt, size_t len) in fdt_grab_space_() argument
102 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_()
105 fdt_set_size_dt_struct(fdt, offset + len); in fdt_grab_space_()
254 unsigned int len = strlen(s) + 1; in fdt_add_string_() local
257 offset = strtabsize + len; in fdt_add_string_()
262 memcpy(strtab - offset, s, len); in fdt_add_string_()
263 fdt_set_size_dt_strings(fdt, strtabsize + len); in fdt_add_string_()
271 int len = strlen(s) + 1; in fdt_del_last_string_() local
273 fdt_set_size_dt_strings(fdt, strtabsize - len); in fdt_del_last_string_()
293 int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp) in fdt_property_placeholder() argument
311 prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property_placeholder()
320 prop->len = cpu_to_fdt32(len); in fdt_property_placeholder()
325 int fdt_property(void *fdt, const char *name, const void *val, int len) in fdt_property() argument
330 ret = fdt_property_placeholder(fdt, name, len, &ptr); in fdt_property()
333 memcpy(ptr, val, len); in fdt_property()