Lines Matching refs:infoSector
455 InfoSector_t *infoSector; in fat_write() local
456 infoSector = (InfoSector_t *) safe_malloc(This->sector_size); in fat_write()
457 if(forceReadSector(This, (char *)infoSector, in fat_write()
461 memset(infoSector->filler1, 0, sizeof(infoSector->filler1)); in fat_write()
462 memset(infoSector->filler2, 0, sizeof(infoSector->filler2)); in fat_write()
464 set_dword(infoSector->signature1, INFOSECT_SIGNATURE1); in fat_write()
465 set_dword(infoSector->signature2, INFOSECT_SIGNATURE2); in fat_write()
466 set_dword(infoSector->pos, This->last); in fat_write()
467 set_dword(infoSector->count, This->freeSpace); in fat_write()
468 set_word(infoSector->signature3, 0xaa55); in fat_write()
469 if(forceWriteSector(This, (char *)infoSector, This->infoSectorLoc, 1) != in fat_write()
472 free(infoSector); in fat_write()
684 This->infoSectorLoc = WORD(ext.fat32.infoSector); in fat_32_read()
687 InfoSector_t *infoSector; in fat_32_read() local
688 infoSector = (InfoSector_t *) safe_malloc(size); in fat_32_read()
689 if(forceReadSector(This, (char *)infoSector, in fat_32_read()
692 _DWORD(infoSector->signature1) == INFOSECT_SIGNATURE1 && in fat_32_read()
693 _DWORD(infoSector->signature2) == INFOSECT_SIGNATURE2) { in fat_32_read()
694 This->freeSpace = _DWORD(infoSector->count); in fat_32_read()
695 This->last = _DWORD(infoSector->pos); in fat_32_read()
697 free(infoSector); in fat_32_read()