Lines Matching refs:length
119 static char * parse_next_property(char *buf, char *end, char **name, int *length, in parse_next_property() argument
141 *length = -1; in parse_next_property()
142 *length = simple_strtoul(tmp, &tmp, 10); in parse_next_property()
143 if (*length == -1) { in parse_next_property()
156 tmp += *length; in parse_next_property()
173 static struct property *new_property(const char *name, const int length, in new_property() argument
183 if (!(new->value = kmalloc(length + 1, GFP_KERNEL))) in new_property()
186 memcpy(new->value, value, length); in new_property()
187 *(((char *)new->value) + length) = 0; in new_property()
188 new->length = length; in new_property()
205 int length, rv = 0; in do_add_node() local
222 (buf = parse_next_property(buf, end, &name, &length, &value))) { in do_add_node()
225 prop = new_property(name, length, value, last); in do_add_node()
283 int length; in do_add_property() local
290 if (parse_next_property(buf, end, &name, &length, &value) == NULL) in do_add_property()
293 prop = new_property(name, length, value, NULL); in do_add_property()
329 int length; in do_update_property() local
337 next_prop = parse_next_property(buf, end, &name, &length, &value); in do_update_property()
344 newprop = new_property(name, length, value, NULL); in do_update_property()