• Home
  • Raw
  • Download

Lines Matching refs:len

52 static void bin_emit_string(void *e, const char *str, int len)  in bin_emit_string()  argument
56 if (len == 0) in bin_emit_string()
57 len = strlen(str); in bin_emit_string()
59 *dtbuf = data_append_data(*dtbuf, str, len); in bin_emit_string()
74 *dtbuf = data_append_data(*dtbuf, d.val, d.len); in bin_emit_data()
132 static void asm_emit_string(void *e, const char *str, int len) in asm_emit_string() argument
136 if (len != 0) in asm_emit_string()
137 fprintf(f, "\t.string\t\"%.*s\"\n", len, str); in asm_emit_string()
158 while ((d.len - off) >= sizeof(uint32_t)) { in asm_emit_data()
163 while ((d.len - off) >= 1) { in asm_emit_data()
168 assert(off == d.len); in asm_emit_data()
226 for (i = 0; i < d->len; i++) { in stringtable_insert()
264 emit->cell(etarget, prop->val.len); in flatten_tree()
267 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree()
369 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
417 if (fwrite(blob.val, blob.len, 1, f) != 1) { in dt_to_blob()
435 int len; in dump_stringtable_asm() local
439 while (p < (strbuf.val + strbuf.len)) { in dump_stringtable_asm()
440 len = strlen(p); in dump_stringtable_asm()
442 p += len+1; in dump_stringtable_asm()
576 static void flat_read_chunk(struct inbuf *inb, void *p, int len) in flat_read_chunk() argument
578 if ((inb->ptr + len) > inb->limit) in flat_read_chunk()
581 memcpy(p, inb->ptr, len); in flat_read_chunk()
583 inb->ptr += len; in flat_read_chunk()
608 int len = 0; in flat_read_string() local
615 len++; in flat_read_string()
620 inb->ptr += len; in flat_read_string()
627 static struct data flat_read_data(struct inbuf *inb, int len) in flat_read_data() argument
631 if (len == 0) in flat_read_data()
634 d = data_grow_for(d, len); in flat_read_data()
635 d.len = len; in flat_read_data()
637 flat_read_chunk(inb, d.val, len); in flat_read_data()