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()
351 struct data dtbuf = empty_data; in dt_to_blob() local
363 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
364 bin_emit_cell(&dtbuf, FDT_END); in dt_to_blob()
369 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
408 blob = data_merge(blob, dtbuf); in dt_to_blob()
663 static struct property *flat_read_property(struct inbuf *dtbuf, in flat_read_property() argument
670 proplen = flat_read_word(dtbuf); in flat_read_property()
671 stroff = flat_read_word(dtbuf); in flat_read_property()
676 flat_realign(dtbuf, 8); in flat_read_property()
678 val = flat_read_data(dtbuf, proplen); in flat_read_property()
730 static struct node *unflatten_tree(struct inbuf *dtbuf, in unflatten_tree() argument
740 flatname = flat_read_string(dtbuf); in unflatten_tree()
751 val = flat_read_word(dtbuf); in unflatten_tree()
757 prop = flat_read_property(dtbuf, strbuf, flags); in unflatten_tree()
762 child = unflatten_tree(dtbuf,strbuf, flatname, flags); in unflatten_tree()
805 struct inbuf dtbuf, strbuf; in dt_from_blob() local
905 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize); in dt_from_blob()
909 val = flat_read_word(&dtbuf); in dt_from_blob()
914 tree = unflatten_tree(&dtbuf, &strbuf, "", flags); in dt_from_blob()
916 val = flat_read_word(&dtbuf); in dt_from_blob()