• Home
  • Raw
  • Download

Lines Matching refs:fdt

313 static void make_fdt_header(struct fdt_header *fdt,  in make_fdt_header()  argument
322 memset(fdt, 0xff, sizeof(*fdt)); in make_fdt_header()
324 fdt->magic = cpu_to_fdt32(FDT_MAGIC); in make_fdt_header()
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()
331 fdt->off_mem_rsvmap = cpu_to_fdt32(reserve_off); in make_fdt_header()
332 fdt->off_dt_struct = cpu_to_fdt32(reserve_off + reservesize); in make_fdt_header()
333 fdt->off_dt_strings = cpu_to_fdt32(reserve_off + reservesize in make_fdt_header()
335 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize); in make_fdt_header()
338 fdt->boot_cpuid_phys = cpu_to_fdt32(boot_cpuid_phys); in make_fdt_header()
340 fdt->size_dt_strings = cpu_to_fdt32(strsize); in make_fdt_header()
342 fdt->size_dt_struct = cpu_to_fdt32(dtsize); in make_fdt_header()
353 struct fdt_header fdt; in dt_to_blob() local
369 make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, in dt_to_blob()
376 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
382 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
390 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) in dt_to_blob()
391 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
394 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
396 fdt.totalsize = cpu_to_fdt32(tsize); in dt_to_blob()
404 blob = data_append_data(blob, &fdt, vi->hdr_size); in dt_to_blob()
803 struct fdt_header *fdt; in dt_from_blob() local
846 fdt = (struct fdt_header *)blob; in dt_from_blob()
847 fdt->magic = cpu_to_fdt32(magic); in dt_from_blob()
848 fdt->totalsize = cpu_to_fdt32(totalsize); in dt_from_blob()
867 off_dt = fdt32_to_cpu(fdt->off_dt_struct); in dt_from_blob()
868 off_str = fdt32_to_cpu(fdt->off_dt_strings); in dt_from_blob()
869 off_mem_rsvmap = fdt32_to_cpu(fdt->off_mem_rsvmap); in dt_from_blob()
870 version = fdt32_to_cpu(fdt->version); in dt_from_blob()
871 boot_cpuid_phys = fdt32_to_cpu(fdt->boot_cpuid_phys); in dt_from_blob()
883 uint32_t size_str = fdt32_to_cpu(fdt->size_dt_strings); in dt_from_blob()
892 size_dt = fdt32_to_cpu(fdt->size_dt_struct); in dt_from_blob()