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

12

/scripts/dtc/
H A Ddata.c51 while ((d.len + xlen) > newsize)
59 struct data data_copy_mem(const char *mem, int len) argument
63 d = data_grow_for(empty_data, len);
65 d.len = len;
66 memcpy(d.val, mem, len);
105 struct data data_copy_escape_string(const char *s, int len) argument
114 while (i < len) {
118 q[d.len++] = c;
126 q[d.len
197 data_append_data(struct data d, const void *p, int len) argument
205 data_insert_at_marker(struct data d, struct marker *m, const void *p, int len) argument
277 data_append_zeroes(struct data d, int len) argument
308 int len = d.len; local
[all...]
H A Dutil.h33 static inline void *xmalloc(size_t len) argument
35 void *new = malloc(len);
43 static inline void *xrealloc(void *p, size_t len) argument
45 void *new = realloc(p, len);
48 die("realloc() failed (len=%d)\n", len);
H A Dutil.c29 int len = strlen(s) + 1; local
30 char *dup = xmalloc(len);
32 memcpy(dup, s, len);
41 int len; local
45 len = lenp + lenn + 2;
48 len--;
51 str = xmalloc(len);
H A Dtreesource.c68 assert(str[val.len-1] == '\0');
77 for (i = 0; i < (val.len-1); i++) {
130 assert (m->offset == val.len);
137 void *propend = val.val + val.len;
159 assert (m->offset == val.len);
167 void *propend = val.val + val.len;
187 assert (m->offset == val.len);
195 int len = prop->val.len; local
202 if (len
[all...]
H A Dflattree.c67 static void bin_emit_string(void *e, char *str, int len) argument
71 if (len == 0)
72 len = strlen(str);
74 *dtbuf = data_append_data(*dtbuf, str, len);
89 *dtbuf = data_append_data(*dtbuf, d.val, d.len);
147 static void asm_emit_string(void *e, char *str, int len) argument
152 if (len != 0) {
154 c = str[len];
155 str[len] = '\0';
160 if (len !
449 int len; local
588 flat_read_chunk(struct inbuf *inb, void *p, int len) argument
620 int len = 0; local
639 flat_read_data(struct inbuf *inb, int len) argument
[all...]
H A Dsrcpos.c33 int len = slash - path; local
34 char *dir = xmalloc(len + 1);
36 memcpy(dir, path, len);
37 dir[len] = '\0';
136 void srcpos_update(struct srcpos *pos, const char *text, int len) argument
145 for (i = 0; i < len; i++)
H A Ddtc.h85 int len; member in struct:data
103 struct data data_copy_mem(const char *mem, int len);
104 struct data data_copy_escape_string(const char *s, int len);
105 struct data data_copy_file(FILE *f, size_t len);
107 struct data data_append_data(struct data d, const void *p, int len);
109 const void *p, int len);
115 struct data data_append_zeroes(struct data d, int len);
208 struct reserve_info *build_reserve_entry(uint64_t start, uint64_t len);
H A Dchecks.c206 if (prop->val.len != sizeof(cell_t))
348 if (prop->val.len != sizeof(cell_t)) {
350 node->fullpath, prop->val.len, prop->name);
410 if ((prop->val.len != node->basenamelen+1)
438 assert(m->offset + sizeof(cell_t) <= prop->val.len);
462 assert(m->offset <= prop->val.len);
529 if (prop->val.len == 0)
536 if ((prop->val.len % entrylen) != 0)
539 node->fullpath, prop->val.len, addr_cells, size_cells);
564 if (prop->val.len
[all...]
H A Dsrcpos.h75 extern void srcpos_update(struct srcpos *pos, const char *text, int len);
/scripts/dtc/libfdt/
H A Dfdt_wip.c59 const void *val, int len)
68 if (proplen != len)
71 memcpy(propval, val, len);
75 static void _fdt_nop_region(void *start, int len) argument
79 for (p = start; (char *)p < ((char *)start + len); p++)
86 int len; local
88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
90 return len;
92 _fdt_nop_region(prop, len + sizeof(*prop));
58 fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
H A Dfdt_ro.c59 const char *s, int len)
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1);
67 if (memcmp(p, s, len) != 0)
70 if (p[len] == '\0')
72 else if (!memchr(s, '@', len) && (p[len] == '@'))
161 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) argument
170 if (len)
171 *len = strlen(nh->name);
176 if (len)
58 _fdt_nodename_eq(const void *fdt, int offset, const char *s, int len) argument
218 int len = fdt32_to_cpu(prop->len); local
259 int len; local
384 int len; local
416 int len = strlen(str); local
435 int len; local
[all...]
H A Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, int len) argument
82 if (((offset + len) < offset)
83 || ((offset + len) > fdt_size_dt_struct(fdt)))
88 if (p + len < p)
182 int len = strlen(s) + 1; local
183 const char *last = strtab + tabsize - len;
187 if (memcmp(p, s, len) == 0)
H A Dfdt_sw.c73 static void *_fdt_grab_space(void *fdt, int len) argument
81 if ((offset + len < offset) || (offset + len > spaceleft))
84 fdt_set_size_dt_struct(fdt, offset + len);
85 return fdt_offset_ptr_w(fdt, offset, len);
173 int len = strlen(s) + 1; local
181 offset = -strtabsize - len;
186 memcpy(strtab + offset, s, len);
187 fdt_set_size_dt_strings(fdt, strtabsize + len);
191 int fdt_property(void *fdt, const char *name, const void *val, int len) argument
[all...]
H A Dfdt_rw.c155 int len = strlen(s) + 1; local
164 err = _fdt_splice_string(fdt, len);
168 memcpy(new, s, len);
206 int len, struct fdt_property **prop)
216 FDT_TAGALIGN(len))))
219 (*prop)->len = cpu_to_fdt32(len);
224 int len, struct fdt_property **prop)
239 proplen = sizeof(**prop) + FDT_TAGALIGN(len);
247 (*prop)->len
205 _fdt_resize_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
223 _fdt_add_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
274 fdt_setprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
295 int len, proplen; local
[all...]
H A Dfdt.h37 uint32_t len; member in struct:fdt_property
/scripts/
H A Dkallsyms.c34 unsigned int len; member in struct:sym_entry
147 s->len = strlen(str) + 1;
148 s->sym = malloc(s->len + 1);
263 static int expand_symbol(unsigned char *data, int len, char *result) argument
267 while (len) {
281 len--;
347 printf("\t.byte 0x%02x", table[i].len);
348 for (k = 0; k < table[i].len; k++)
352 off += table[i].len + 1;
383 static void learn_symbol(unsigned char *symbol, int len) argument
392 forget_symbol(unsigned char *symbol, int len) argument
417 find_token(unsigned char *str, int len, unsigned char *token) argument
432 unsigned int i, len, size; local
553 int len = se->len - 1; local
[all...]
H A Dbloat-o-meter12 if len(sys.argv) != 3:
/scripts/mod/
H A Dsumversion.c170 const unsigned char *data, unsigned int len)
174 mctx->byte_count += len;
176 if (avail > len) {
178 data, len);
187 len -= avail;
189 while (len >= sizeof(mctx->block)) {
193 len -= sizeof(mctx->block);
196 memcpy(mctx->block, data, len);
199 static void md4_final_ascii(struct md4_ctx *mctx, char *out, unsigned int len) argument
221 snprintf(out, len, "
169 md4_update(struct md4_ctx *mctx, const unsigned char *data, unsigned int len) argument
230 parse_string(const char *file, unsigned long len, struct md4_ctx *md) argument
244 parse_comment(const char *file, unsigned long len) argument
259 unsigned long i, len; local
296 int len = strlen(objfile); local
403 unsigned long len; local
484 unsigned int len, full_len; local
[all...]
/scripts/basic/
H A Dfixdep.c143 unsigned int len; member in struct:item
164 static int is_defined_config(const char *name, int len, unsigned int hash) argument
169 if (aux->hash == hash && aux->len == len &&
170 memcmp(aux->name, name, len) == 0)
179 static void define_config(const char *name, int len, unsigned int hash) argument
181 struct item *aux = malloc(sizeof(*aux) + len);
187 memcpy(aux->name, name, len);
188 aux->len = len;
236 parse_config_file(const char *map, size_t len) argument
317 parse_dep_file(void *map, size_t len) argument
[all...]
/scripts/kconfig/
H A Dutil.c85 gs.len = 64;
96 gs.len = strlen(s) + 1;
107 gs->len = 0;
116 if (l > gs->len) {
118 gs->len = l;
H A Dnconf.gui.c226 int len = get_line_length(line); local
227 strncpy(tmp, line, min(len, x));
228 tmp[len] = '\0';
272 int len = get_line_length(line); local
273 if (msg_width < len)
274 msg_width = len;
382 int len = get_line_length(line); local
383 prompt_width = max(prompt_width, len);
427 int len = strlen(result); local
440 len
563 int len = get_line_length(line); local
[all...]
H A Dkxgettext.c12 static char *escape(const char* text, char *bf, int len) argument
23 --len;
29 len -= 3;
32 while (*text != '\0' && len > 1) {
41 len -= 5;
47 len--;
51 --len;
H A Dlkc.h91 static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) argument
93 assert(len != 0);
95 if (fwrite(str, len, count, out) != count)
121 size_t len; member in struct:gstr
/scripts/rt-tester/
H A Drt-tester.py137 if not len(line):
143 if not parts or len(parts) < 1:
146 if len(parts[0]) == 0:
/scripts/tracing/
H A Ddraw_functrace.py79 while i < len(self._children):
80 if i != len(self._children) - 1:

Completed in 211 milliseconds

12