Lines Matching refs:dtbuf
47 struct data *dtbuf = e; in bin_emit_cell() local
49 *dtbuf = data_append_cell(*dtbuf, val); in bin_emit_cell()
54 struct data *dtbuf = e; in bin_emit_string() local
59 *dtbuf = data_append_data(*dtbuf, str, len); in bin_emit_string()
60 *dtbuf = data_append_byte(*dtbuf, '\0'); in bin_emit_string()
65 struct data *dtbuf = e; in bin_emit_align() local
67 *dtbuf = data_append_align(*dtbuf, a); in bin_emit_align()
72 struct data *dtbuf = e; in bin_emit_data() local
74 *dtbuf = data_append_data(*dtbuf, d.val, d.len); in bin_emit_data()
352 struct data dtbuf = empty_data; in dt_to_blob() local
364 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
365 bin_emit_cell(&dtbuf, FDT_END); in dt_to_blob()
370 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
409 blob = data_merge(blob, dtbuf); in dt_to_blob()
664 static struct property *flat_read_property(struct inbuf *dtbuf, in flat_read_property() argument
671 proplen = flat_read_word(dtbuf); in flat_read_property()
672 stroff = flat_read_word(dtbuf); in flat_read_property()
677 flat_realign(dtbuf, 8); in flat_read_property()
679 val = flat_read_data(dtbuf, proplen); in flat_read_property()
731 static struct node *unflatten_tree(struct inbuf *dtbuf, in unflatten_tree() argument
741 flatname = flat_read_string(dtbuf); in unflatten_tree()
752 val = flat_read_word(dtbuf); in unflatten_tree()
758 prop = flat_read_property(dtbuf, strbuf, flags); in unflatten_tree()
763 child = unflatten_tree(dtbuf,strbuf, flatname, flags); in unflatten_tree()
806 struct inbuf dtbuf, strbuf; in dt_from_blob() local
906 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize); in dt_from_blob()
910 val = flat_read_word(&dtbuf); in dt_from_blob()
915 tree = unflatten_tree(&dtbuf, &strbuf, "", flags); in dt_from_blob()
917 val = flat_read_word(&dtbuf); in dt_from_blob()