Home
last modified time | relevance | path

Searched refs:Fs_t (Results 1 – 10 of 10) sorted by relevance

/external/mtools/
DfsP.h29 typedef struct Fs_t { struct
41 unsigned int (*fat_decode)(struct Fs_t *This, unsigned int num); argument
42 void (*fat_encode)(struct Fs_t *This, unsigned int num, argument
80 } Fs_t; argument
84 void set_fat12(Fs_t *Fs);
85 void set_fat16(Fs_t *Fs);
86 void set_fat32(Fs_t *Fs);
87 unsigned int get_next_free_cluster(Fs_t *Fs, unsigned int last);
88 unsigned int fatDecode(Fs_t *This, unsigned int pos);
89 void fatAppend(Fs_t *This, unsigned int pos, unsigned int newpos);
[all …]
Dfat.c40 static __inline__ int readSector(Fs_t *This, char *buf, unsigned int off, in readSector()
48 static __inline__ int forceReadSector(Fs_t *This, char *buf, unsigned int off, in forceReadSector()
56 static __inline__ int forceWriteSector(Fs_t *This, char *buf, unsigned int off, in forceWriteSector()
64 static FatMap_t *GetFatMap(Fs_t *Stream) in GetFatMap()
85 static __inline__ int locate(Fs_t *Stream, size_t offset, int *slot, int *bit) in locate()
94 static __inline__ int fatReadSector(Fs_t *This, int sector, int slot, in fatReadSector()
133 static int fatWriteSector(Fs_t *This, int sector, int slot, int bit, int dupe) in fatWriteSector()
149 static unsigned char *loadSector(Fs_t *This, in loadSector()
224 static unsigned char *getAddress(Fs_t *Stream, in getAddress()
249 static int readByte(Fs_t *Stream, int start) in readByte()
[all …]
Dmbadblocks.c50 static void mark(Fs_t *Fs, long offset, unsigned int badClus) { in mark()
51 unsigned int old = Fs->fat_decode((Fs_t*)Fs, offset); in mark()
53 fatEncode((Fs_t*)Fs, offset, badClus); in mark()
73 static int scan(Fs_t *Fs, Stream_t *dev, in scan()
81 if(Fs->fat_decode((Fs_t*)Fs, cluster)) in scan()
106 fatEncode((Fs_t*)Fs, cluster, badClus); in scan()
119 Fs_t *Fs; in mbadblocks()
171 Fs = (Fs_t *)GetFs(Dir); in mbadblocks()
Dfile.c30 struct Fs_t *Fs; /* Filesystem that this fat file belongs to */
66 Fs_t *getFs(Stream_t *Stream) in getFs()
87 Fs_t *Fs = This->Fs; in recalcPreallocSize()
135 static unsigned int _countBlocks(Fs_t *This, unsigned int block) in _countBlocks()
157 DeclareThis(Fs_t); in countBlocks()
168 DeclareThis(Fs_t); in countBytes()
255 Fs_t *Fs = This->Fs; in normal_map()
359 Fs_t *Fs = This->Fs; in root_map()
504 Fs_t *Fs = This->Fs; in free_file()
604 DeclareThis(Fs_t); in _internalFileOpen()
[all …]
Dinit.c64 DeclareThis(Fs_t); in fs_flush()
72 DeclareThis(Fs_t); in get_dosConvert()
264 Fs_t *This; in fs_init()
266 This = New(Fs_t); in fs_init()
425 DeclareThis(Fs_t); in getDrive()
433 int fsPreallocateClusters(Fs_t *Fs, long size) in fsPreallocateClusters()
Dmdoctorfat.c41 Fs_t *Fs;
46 Fs_t *Fs = getFs(mp->File); in dos_doctorfat()
Dmformat.c162 static int comp_fat_bits(Fs_t *Fs, int estimate, in comp_fat_bits()
230 static void calc_fat_bits2(Fs_t *Fs, unsigned long tot_sectors, int fat_bits, in calc_fat_bits2()
288 static __inline__ void format_root(Fs_t *Fs, char *label, union bootsector *boot) in format_root()
334 static void xdf_calc_fat_size(Fs_t *Fs, unsigned long tot_sectors, in xdf_calc_fat_size()
362 static void calc_fat_size(Fs_t *Fs, unsigned long tot_sectors) in calc_fat_size()
524 static void calc_cluster_size(struct Fs_t *Fs, unsigned long tot_sectors, in calc_cluster_size()
611 struct Fs_t *Fs, union bootsector *boot) in calc_fs_parameters()
671 struct Fs_t *Fs, union bootsector *boot) in calc_fs_parameters_32()
877 Fs_t Fs; in mformat()
Dfat_free.c33 DeclareThis(Fs_t); in fat_free()
Dllong.c50 DeclareThis(Fs_t); in sectorsToBytes()
Dmdir.c262 ((Fs_t*)GetFs(RootDir))->freeSpace = 0; in leaveDrive()