Lines Matching refs:sector0
48 check_signature(uint8_t sector0[512])
51 if (sector0[510] == 0x55 && sector0[511] == 0xaa)
54 if (sector0[510] == 0 && sector0[511] == 0 &&
55 sector0[0] == 0xeb && sector0[1] == 0x3c && sector0[2] == 0x90)
66 uint8_t *sector0, *sector;
69 sector0 = NULL;
73 sector0 = (uint8_t *)read_buf(fp, 0, 512);
74 if (sector0 == NULL)
77 if (!check_signature(sector0)) {
85 pfat_bsbpb = (FAT_BSBPB *)sector0;
86 pfat32_bsbpb = (FAT32_BSBPB *)sector0;
186 free(sector0);
192 free(sector0);