Lines Matching refs:eh
73 void PrintEccHeader(EccHeader *eh)
78 strncpy(buf, (char*)eh->cookie, 12); buf[12] = 0;
80 strncpy(buf, (char*)eh->method, 4); buf[4] = 0;
82 print_hex("methodFlags ", (guint8*)eh->methodFlags, 4);
83 print_hex("mediumFP ", eh->mediumFP, 16);
84 print_hex("mediumSum ", eh->mediumSum, 16);
85 print_hex("eccSum ", eh->eccSum, 16);
86 print_hex("sectors ", eh->sectors, 8);
87 PrintCLI("sectors (native) %lld\n", uchar_to_gint64(eh->sectors));
88 PrintCLI("dataBytes %8x\n", eh->dataBytes);
89 PrintCLI("eccBytes %8x\n", eh->eccBytes);
90 PrintCLI("creatorVersion %8x\n", eh->creatorVersion);
91 PrintCLI("neededVersion %8x\n", eh->neededVersion);
92 PrintCLI("fpSector %8x\n", eh->fpSector);
93 PrintCLI("selfCRC %8x\n", eh->selfCRC);
94 print_hex("crcSum ", eh->crcSum, 16);
95 PrintCLI("inLast %8x\n", eh->inLast);
96 PrintCLI("sectorsPerLayer %lld\n", eh->sectorsPerLayer);
97 PrintCLI("sectorsAddedByEcc %lld\n", eh->sectorsAddedByEcc);
132 void SwapEccHeaderBytes(EccHeader *eh)
136 print_ecc_header(eh);
139 eh->dataBytes = SwapBytes32(eh->dataBytes);
140 eh->eccBytes = SwapBytes32(eh->eccBytes);
141 eh->creatorVersion = SwapBytes32(eh->creatorVersion);
142 eh->neededVersion = SwapBytes32(eh->neededVersion);
143 eh->fpSector = SwapBytes32(eh->fpSector);
144 eh->inLast = SwapBytes32(eh->inLast);
145 eh->sectorsPerLayer = SwapBytes64(eh->sectorsPerLayer);
146 eh->sectorsAddedByEcc = SwapBytes64(eh->sectorsAddedByEcc);
149 print_ecc_header(eh);