Lines Matching refs:dh
967 DiskDumpHeader32 *dh = NULL; in create_header32() local
978 dh = g_malloc0(size); in create_header32()
980 memcpy(dh->signature, KDUMP_SIGNATURE, SIG_LEN); in create_header32()
981 dh->header_version = cpu_to_dump32(s, 6); in create_header32()
983 dh->block_size = cpu_to_dump32(s, block_size); in create_header32()
986 dh->sub_hdr_size = cpu_to_dump32(s, sub_hdr_size); in create_header32()
988 dh->max_mapnr = cpu_to_dump32(s, MIN(s->max_mapnr, UINT_MAX)); in create_header32()
989 dh->nr_cpus = cpu_to_dump32(s, s->nr_cpus); in create_header32()
991 dh->bitmap_blocks = cpu_to_dump32(s, bitmap_blocks); in create_header32()
992 strncpy(dh->utsname.machine, ELF_MACHINE_UNAME, sizeof(dh->utsname.machine)); in create_header32()
1007 dh->status = cpu_to_dump32(s, status); in create_header32()
1009 if (write_buffer(s, 0, dh, size) < 0) { in create_header32()
1069 g_free(dh); in create_header32()
1078 DiskDumpHeader64 *dh = NULL; in create_header64() local
1089 dh = g_malloc0(size); in create_header64()
1091 memcpy(dh->signature, KDUMP_SIGNATURE, SIG_LEN); in create_header64()
1092 dh->header_version = cpu_to_dump32(s, 6); in create_header64()
1094 dh->block_size = cpu_to_dump32(s, block_size); in create_header64()
1097 dh->sub_hdr_size = cpu_to_dump32(s, sub_hdr_size); in create_header64()
1099 dh->max_mapnr = cpu_to_dump32(s, MIN(s->max_mapnr, UINT_MAX)); in create_header64()
1100 dh->nr_cpus = cpu_to_dump32(s, s->nr_cpus); in create_header64()
1102 dh->bitmap_blocks = cpu_to_dump32(s, bitmap_blocks); in create_header64()
1103 strncpy(dh->utsname.machine, ELF_MACHINE_UNAME, sizeof(dh->utsname.machine)); in create_header64()
1118 dh->status = cpu_to_dump32(s, status); in create_header64()
1120 if (write_buffer(s, 0, dh, size) < 0) { in create_header64()
1181 g_free(dh); in create_header64()