Lines Matching refs:hdr

22 	const struct dt_table_header *hdr;  in android_dt_check_header()  local
25 hdr = map_sysmem(hdr_addr, sizeof(*hdr)); in android_dt_check_header()
26 magic = fdt32_to_cpu(hdr->magic); in android_dt_check_header()
27 unmap_sysmem(hdr); in android_dt_check_header()
45 const struct dt_table_header *hdr; in android_dt_get_fdt_by_index() local
51 hdr = map_sysmem(hdr_addr, sizeof(*hdr)); in android_dt_get_fdt_by_index()
52 entry_count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_get_fdt_by_index()
53 entries_offset = fdt32_to_cpu(hdr->dt_entries_offset); in android_dt_get_fdt_by_index()
54 entry_size = fdt32_to_cpu(hdr->dt_entry_size); in android_dt_get_fdt_by_index()
55 unmap_sysmem(hdr); in android_dt_get_fdt_by_index()
105 const struct dt_table_header *hdr; in android_dt_print_contents() local
109 hdr = map_sysmem(hdr_addr, sizeof(*hdr)); in android_dt_print_contents()
110 entry_count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_print_contents()
111 entries_offset = fdt32_to_cpu(hdr->dt_entries_offset); in android_dt_print_contents()
112 entry_size = fdt32_to_cpu(hdr->dt_entry_size); in android_dt_print_contents()
116 printf(" magic = %08x\n", fdt32_to_cpu(hdr->magic)); in android_dt_print_contents()
117 printf(" total_size = %d\n", fdt32_to_cpu(hdr->total_size)); in android_dt_print_contents()
118 printf(" header_size = %d\n", fdt32_to_cpu(hdr->header_size)); in android_dt_print_contents()
122 printf(" page_size = %d\n", fdt32_to_cpu(hdr->page_size)); in android_dt_print_contents()
123 printf(" version = %08x\n", fdt32_to_cpu(hdr->version)); in android_dt_print_contents()
125 unmap_sysmem(hdr); in android_dt_print_contents()
166 const struct dt_table_header *hdr; in android_dt_get_count() local
169 hdr = map_sysmem(hdr_addr, sizeof(*hdr)); in android_dt_get_count()
170 count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_get_count()
171 unmap_sysmem(hdr); in android_dt_get_count()