Lines Matching refs:dh
303 struct disk_header *dh; in read_header() local
333 dh = ps->header_area; in read_header()
335 if (le32_to_cpu(dh->magic) == 0) { in read_header()
340 if (le32_to_cpu(dh->magic) != SNAP_MAGIC) { in read_header()
347 ps->valid = le32_to_cpu(dh->valid); in read_header()
348 ps->version = le32_to_cpu(dh->version); in read_header()
349 chunk_size = le32_to_cpu(dh->chunk_size); in read_header()
380 struct disk_header *dh; in write_header() local
384 dh = ps->header_area; in write_header()
385 dh->magic = cpu_to_le32(SNAP_MAGIC); in write_header()
386 dh->valid = cpu_to_le32(ps->valid); in write_header()
387 dh->version = cpu_to_le32(ps->version); in write_header()
388 dh->chunk_size = cpu_to_le32(ps->store->chunk_size); in write_header()