Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:hdr

53 	struct ext2_qcow2_hdr *hdr = NULL;
73 hdr = (struct ext2_qcow2_hdr *)(buffer);
75 if ((ext2fs_be32_to_cpu(hdr->magic) != QCOW_MAGIC) ||
76 (ext2fs_be32_to_cpu(hdr->version) != 2)) {
77 ext2fs_free_mem(&hdr);
81 return hdr;
155 struct ext2_qcow2_hdr *hdr)
165 if (hdr->crypt_method)
169 img.hdr = hdr;
172 img.cluster_bits = ext2fs_be32_to_cpu(hdr->cluster_bits);
174 img.l1_size = ext2fs_be32_to_cpu(hdr->l1_size);
175 img.l1_offset = ext2fs_be64_to_cpu(hdr->l1_table_offset);
177 img.image_size = ext2fs_be64_to_cpu(hdr->size);