Lines Matching refs:length
149 static char * parse_next_property(char *buf, char *end, char **name, int *length, in parse_next_property() argument
171 *length = -1; in parse_next_property()
172 *length = simple_strtoul(tmp, &tmp, 10); in parse_next_property()
173 if (*length == -1) { in parse_next_property()
186 tmp += *length; in parse_next_property()
203 static struct property *new_property(const char *name, const int length, in new_property() argument
213 if (!(new->value = kmalloc(length + 1, GFP_KERNEL))) in new_property()
216 memcpy(new->value, value, length); in new_property()
217 *(((char *)new->value) + length) = 0; in new_property()
218 new->length = length; in new_property()
235 int length, rv = 0; in do_add_node() local
252 (buf = parse_next_property(buf, end, &name, &length, &value))) { in do_add_node()
255 prop = new_property(name, length, value, last); in do_add_node()
313 int length; in do_add_property() local
320 if (parse_next_property(buf, end, &name, &length, &value) == NULL) in do_add_property()
323 prop = new_property(name, length, value, NULL); in do_add_property()
359 int length; in do_update_property() local
367 next_prop = parse_next_property(buf, end, &name, &length, &value); in do_update_property()
374 newprop = new_property(name, length, value, NULL); in do_update_property()