Lines Matching refs:fat

220 resetDosDirSection(struct fat_descriptor *fat)  in resetDosDirSection()  argument
227 boot = fat_get_boot(fat); in resetDosDirSection()
252 if (!fat_is_cl_head(fat, boot->bpbRootClust)) { in resetDosDirSection()
296 delete(struct fat_descriptor *fat, cl_t startcl, in delete() argument
304 boot = fat_get_boot(fat); in delete()
305 fd = fat_get_fd(fat); in delete()
310 while (fat_is_valid_cl(fat, startcl)) { in delete()
341 startcl = fat_get_cl_next(fat, startcl); in delete()
348 removede(struct fat_descriptor *fat, u_char *start, in removede() argument
366 if (delete(fat, in removede()
386 checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) in checksize() argument
393 boot = fat_get_boot(fat); in checksize()
401 if (!fat_is_valid_cl(fat, dir->head) || !fat_is_cl_head(fat, dir->head)) { in checksize()
416 ret = checkchain(fat, dir->head, &chainsize); in checksize()
456 cl = fat_get_cl_next(fat, cl); in checksize()
457 clearchain(fat, fat_get_cl_next(fat, cl)); in checksize()
458 ret = fat_set_cl_next(fat, cl, CLUST_EOF); in checksize()
475 check_subdirectory(struct fat_descriptor *fat, struct dosDirEntry *dir) in check_subdirectory() argument
484 boot = fat_get_boot(fat); in check_subdirectory()
485 fd = fat_get_fd(fat); in check_subdirectory()
488 if (dir->parent && !fat_is_valid_cl(fat, cl)) { in check_subdirectory()
547 readDosDirSection(struct fat_descriptor *fat, struct dosDirEntry *dir) in readDosDirSection() argument
563 boot = fat_get_boot(fat); in readDosDirSection()
564 fd = fat_get_fd(fat); in readDosDirSection()
567 if (dir->parent && (!fat_is_valid_cl(fat, cl))) { in readDosDirSection()
592 mod |= checkchain(fat, dir->head, &dirclusters); in readDosDirSection()
641 if (delete(fat, in readDosDirSection()
770 mod |= removede(fat, in readDosDirSection()
810 mod |= k = removede(fat, in readDosDirSection()
849 ((!fat_is_valid_cl(fat, dirent.head) || in readDosDirSection()
850 !fat_is_cl_head(fat, dirent.head)))) { in readDosDirSection()
851 if (!fat_is_valid_cl(fat, dirent.head)) { in readDosDirSection()
963 } else if ((check_subdirectory(fat, in readDosDirSection()
999 mod |= k = checksize(fat, p, &dirent); in readDosDirSection()
1021 } while (fat_is_valid_cl(fat, (cl = fat_get_cl_next(fat, cl)))); in readDosDirSection()
1023 mod |= removede(fat, in readDosDirSection()
1045 handleDirTree(struct fat_descriptor *fat) in handleDirTree() argument
1049 mod = readDosDirSection(fat, rootDir); in handleDirTree()
1070 mod |= readDosDirSection(fat, dir); in handleDirTree()
1086 reconnect(struct fat_descriptor *fat, cl_t head, size_t length) in reconnect() argument
1088 struct bootblock *boot = fat_get_boot(fat); in reconnect()
1093 dosfs = fat_get_fd(fat); in reconnect()
1125 lfcl = p ? fat_get_cl_next(fat, lfcl) : lostDir->head; in reconnect()