Lines Matching refs:d
70 static void bin_emit_data(void *e, struct data d) in bin_emit_data() argument
74 *dtbuf = data_append_data(*dtbuf, d.val, d.len); in bin_emit_data()
149 static void asm_emit_data(void *e, struct data d) in asm_emit_data() argument
153 struct marker *m = d.markers; in asm_emit_data()
158 while ((d.len - off) >= sizeof(uint32_t)) { in asm_emit_data()
159 asm_emit_cell(e, dtb_ld32(d.val + off)); in asm_emit_data()
163 while ((d.len - off) >= 1) { in asm_emit_data()
164 fprintf(f, "\t.byte\t0x%hhx\n", d.val[off]); in asm_emit_data()
168 assert(off == d.len); in asm_emit_data()
220 static int stringtable_insert(struct data *d, const char *str) in stringtable_insert() argument
226 for (i = 0; i < d->len; i++) { in stringtable_insert()
227 if (streq(str, d->val + i)) in stringtable_insert()
231 *d = data_append_data(*d, str, strlen(str)+1); in stringtable_insert()
297 struct data d = empty_data; in flatten_reserve_list() local
301 d = data_append_re(d, re->address, re->size); in flatten_reserve_list()
307 d = data_append_re(d, 0, 0); in flatten_reserve_list()
310 return d; in flatten_reserve_list()
629 struct data d = empty_data; in flat_read_data() local
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()
641 return d; in flat_read_data()