Lines Matching refs:vi
252 struct version_info *vi) in flatten_tree() argument
263 if (vi->flags & FTF_FULLPATH) in flatten_tree()
282 if ((vi->flags & FTF_VARALIGN) && (prop->val.len >= 8)) in flatten_tree()
289 if ((vi->flags & FTF_NAMEPROPS) && !seen_name_prop) { in flatten_tree()
294 if ((vi->flags & FTF_VARALIGN) && ((tree->basenamelen+1) >= 8)) in flatten_tree()
302 flatten_tree(child, emit, etarget, strbuf, vi); in flatten_tree()
309 struct version_info *vi) in flatten_reserve_list() argument
329 struct version_info *vi, in make_fdt_header() argument
340 fdt->version = cpu_to_fdt32(vi->version); in make_fdt_header()
341 fdt->last_comp_version = cpu_to_fdt32(vi->last_comp_version); in make_fdt_header()
344 reserve_off = ALIGN(vi->hdr_size, 8); in make_fdt_header()
352 if (vi->flags & FTF_BOOTCPUID) in make_fdt_header()
354 if (vi->flags & FTF_STRTABSIZE) in make_fdt_header()
356 if (vi->flags & FTF_STRUCTSIZE) in make_fdt_header()
362 struct version_info *vi = NULL; in dt_to_blob() local
373 vi = &version_table[i]; in dt_to_blob()
375 if (!vi) in dt_to_blob()
378 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob()
381 reservebuf = flatten_reserve_list(dti->reservelist, vi); in dt_to_blob()
384 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
419 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob()
463 struct version_info *vi = NULL; in dt_to_asm() local
471 vi = &version_table[i]; in dt_to_asm()
473 if (!vi) in dt_to_asm()
495 asm_emit_cell(f, vi->version); in dt_to_asm()
497 asm_emit_cell(f, vi->last_comp_version); in dt_to_asm()
499 if (vi->flags & FTF_BOOTCPUID) { in dt_to_asm()
504 if (vi->flags & FTF_STRTABSIZE) { in dt_to_asm()
510 if (vi->flags & FTF_STRUCTSIZE) { in dt_to_asm()
551 flatten_tree(dti->dt, &asm_emitter, f, &strbuf, vi); in dt_to_asm()