Lines Matching refs:hdr
67 struct verify_state_hdr *hdr = buf; in show_verify_state() local
71 hdr->version = le64_to_cpu(hdr->version); in show_verify_state()
72 hdr->size = le64_to_cpu(hdr->size); in show_verify_state()
73 hdr->crc = le64_to_cpu(hdr->crc); in show_verify_state()
75 printf("Version:\t0x%x\n", (unsigned int) hdr->version); in show_verify_state()
76 printf("Size:\t\t%u\n", (unsigned int) hdr->size); in show_verify_state()
77 printf("CRC:\t\t0x%x\n", (unsigned int) hdr->crc); in show_verify_state()
79 size -= sizeof(*hdr); in show_verify_state()
80 if (hdr->size != size) { in show_verify_state()
85 s = buf + sizeof(*hdr); in show_verify_state()
86 crc = fio_crc32c((unsigned char *) s, hdr->size); in show_verify_state()
87 if (crc != hdr->crc) { in show_verify_state()
88 log_err("crc mismatch %x != %x\n", crc, (unsigned int) hdr->crc); in show_verify_state()
92 if (hdr->version == 0x03) in show_verify_state()
95 log_err("Unsupported version %d\n", (int) hdr->version); in show_verify_state()