Lines Matching refs:vi
237 struct version_info *vi) in flatten_tree() argument
248 if (vi->flags & FTF_FULLPATH) in flatten_tree()
267 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree()
274 if ((vi->flags & FTF_NAMEPROPS) && !seen_name_prop) { in flatten_tree()
279 if ((vi->flags & FTF_VARALIGN) && ((tree->basenamelen+1) >= 8)) in flatten_tree()
287 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
294 struct version_info *vi) in flatten_reserve_list() argument
314 struct version_info *vi, in make_fdt_header() argument
325 fdt->version = cpu_to_fdt32(vi->version); in make_fdt_header()
326 fdt->last_comp_version = cpu_to_fdt32(vi->last_comp_version); in make_fdt_header()
329 reserve_off = ALIGN(vi->hdr_size, 8); in make_fdt_header()
337 if (vi->flags & FTF_BOOTCPUID) in make_fdt_header()
339 if (vi->flags & FTF_STRTABSIZE) in make_fdt_header()
341 if (vi->flags & FTF_STRUCTSIZE) in make_fdt_header()
347 struct version_info *vi = NULL; in dt_to_blob() local
358 vi = &version_table[i]; in dt_to_blob()
360 if (!vi) in dt_to_blob()
363 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
366 reservebuf = flatten_reserve_list(dti->reservelist, vi); in dt_to_blob()
369 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
404 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob()
448 struct version_info *vi = NULL; in dt_to_asm() local
456 vi = &version_table[i]; in dt_to_asm()
458 if (!vi) in dt_to_asm()
480 asm_emit_cell(f, vi->version); in dt_to_asm()
482 asm_emit_cell(f, vi->last_comp_version); in dt_to_asm()
484 if (vi->flags & FTF_BOOTCPUID) { in dt_to_asm()
489 if (vi->flags & FTF_STRTABSIZE) { in dt_to_asm()
495 if (vi->flags & FTF_STRUCTSIZE) { in dt_to_asm()
536 flatten_tree(dti->dt, &asm_emitter, f, &strbuf, vi); in dt_to_asm()