Lines Matching refs:PBYTE
117 static CHAR FindValidBlocks(char bBegin, char bLen, PBYTE pblockState) in FindValidBlocks()
138 static bool MakeSector0(PBYTE pSector) in MakeSector0()
155 static void MakeSector1(PBYTE pSector) in MakeSector1()
205 static bool MakeSector2(PBYTE pSector) in MakeSector2()
221 static bool MakeSector3(PBYTE pSector) in MakeSector3()
229 static int MakeIDBlockData(PBYTE lpIDBlock, PBYTE loaderCodeBuffer, PBYTE loaderDataBuffer) in MakeIDBlockData()
237 MakeSector0((PBYTE)§or0Info); in MakeIDBlockData()
238 MakeSector1((PBYTE)§or1Info); in MakeIDBlockData()
239 if (!MakeSector2((PBYTE)§or2Info)) { in MakeIDBlockData()
243 if (!MakeSector3((PBYTE)§or3Info)) { in MakeIDBlockData()
247 sector2Info.usSec0Crc = CRC_16((PBYTE)§or0Info, SECTOR_SIZE); in MakeIDBlockData()
248 sector2Info.usSec1Crc = CRC_16((PBYTE)§or1Info, SECTOR_SIZE); in MakeIDBlockData()
249 sector2Info.usSec3Crc = CRC_16((PBYTE)§or3Info, SECTOR_SIZE); in MakeIDBlockData()
265 …sector2Info.uiBootCodeCrc = CRC_32((PBYTE)(lpIDBlock + SECTOR_SIZE * 4), sector0Info.usBootCodeSiz… in MakeIDBlockData()
306 static int WriteIDBlock(PBYTE lpIDBlock, DWORD dwSectorNum, char *dest_path) in WriteIDBlock()
332 bool download_loader(PBYTE data_buf, int size, char *dest_path) in download_loader()
378 PBYTE pIDBData = NULL; in download_loader()
379 pIDBData = (PBYTE)malloc(uiSecNumPerIDB * SECTOR_SIZE); in download_loader()