Home
last modified time | relevance | path

Searched refs:Stream_t (Results 1 – 25 of 52) sorted by relevance

123

/external/mtools/
Dstream.h21 typedef struct Stream_t { struct
24 struct Stream_t *Next; argument
25 struct Stream_t *Buffer; argument
26 } Stream_t; typedef
33 doscp_t *get_dosConvert_pass_through(Stream_t *Stream);
36 int (*read)(Stream_t *, char *, mt_off_t, size_t);
37 int (*write)(Stream_t *, char *, mt_off_t, size_t);
38 int (*flush)(Stream_t *);
39 int (*freeFunc)(Stream_t *);
40 int (*set_geom)(Stream_t *, device_t *, device_t *, int media,
[all …]
Dfs.h27 Stream_t *Next;
28 Stream_t *Buffer;
36 Stream_t *fs_init(char drive, int mode, int *isRop);
37 int fat_free(Stream_t *Dir, unsigned int fat);
38 int fatFreeWithDir(Stream_t *Dir, struct directory *dir);
39 int fat_error(Stream_t *Dir);
40 int fat32RootCluster(Stream_t *Dir);
41 char getDrive(Stream_t *Stream);
Dfile.c31 Stream_t *Buffer;
59 static File_t *getUnbufferedFile(Stream_t *Stream) in getUnbufferedFile()
66 Fs_t *getFs(Stream_t *Stream) in getFs()
71 struct dirCache_t **getDirCacheP(Stream_t *Stream) in getDirCacheP()
76 direntry_t *getDirentry(Stream_t *Stream) in getDirentry()
154 unsigned int countBlocks(Stream_t *Dir, unsigned int block) in countBlocks()
156 Stream_t *Stream = GetFs(Dir); in countBlocks()
165 static size_t countBytes(Stream_t *Dir, unsigned int block) in countBytes()
167 Stream_t *Stream = GetFs(Dir); in countBytes()
174 void printFat(Stream_t *Stream) in printFat()
[all …]
Dfile.h23 Stream_t *OpenFileByDirentry(direntry_t *entry);
24 Stream_t *OpenRoot(Stream_t *Dir);
25 void printFat(Stream_t *Stream);
26 void printFatWithOffset(Stream_t *Stream, off_t offset);
27 direntry_t *getDirentry(Stream_t *Stream);
Dstream.c24 int flush_stream(Stream_t *Stream) in flush_stream()
36 Stream_t *copy_stream(Stream_t *Stream) in copy_stream()
43 int free_stream(Stream_t **Stream) in free_stream()
68 int get_data_pass_through(Stream_t *Stream, time_t *date, mt_size_t *size, in get_data_pass_through()
74 int read_pass_through(Stream_t *Stream, char *buf, mt_off_t start, size_t len) in read_pass_through()
79 int write_pass_through(Stream_t *Stream, char *buf, mt_off_t start, size_t len) in write_pass_through()
84 doscp_t *get_dosConvert_pass_through(Stream_t *Stream) in get_dosConvert_pass_through()
DmtoolsDirentry.h23 struct Stream_t *Dir;
42 void initializeDirentry(direntry_t *entry, struct Stream_t *Dir);
47 void low_level_dir_write_end(Stream_t *Dir, int entry);
53 int isSubdirOf(Stream_t *inside, Stream_t *outside);
57 int write_vfat(Stream_t *, dos_name_t *, char *, int, direntry_t *);
63 int lookupForInsert(Stream_t *Dir,
Dunixdir.c31 Stream_t *Next;
32 Stream_t *Buffer;
44 static int get_dir_data(Stream_t *Stream, time_t *date, mt_size_t *size, in get_dir_data()
60 static int dir_free(Stream_t *Stream) in dir_free()
85 int unix_dir_loop(Stream_t *Stream, MainParam_t *mp);
86 int unix_loop(Stream_t *Stream, MainParam_t *mp, char *arg,
89 int unix_dir_loop(Stream_t *Stream, MainParam_t *mp) in unix_dir_loop()
137 Stream_t *OpenDir(const char *filename) in OpenDir()
167 return (Stream_t *) This; in OpenDir()
Dmtools.h173 int copyfile(Stream_t *Source, Stream_t *Target);
174 int getfreeMinClusters(Stream_t *Stream, size_t ref);
178 int is_dir(Stream_t *Dir, char *path);
179 void bufferize(Stream_t **Dir);
181 int dir_grow(Stream_t *Dir, int size);
188 Stream_t *open_filter(Stream_t *Next,int convertCharset);
239 Stream_t *GetFs(Stream_t *Fs);
332 Stream_t *OpenDir(const char *filename);
336 struct dirCache_t **getDirCacheP(Stream_t *Stream);
337 int isRootDir(Stream_t *Stream);
[all …]
Dmmd.c41 Stream_t *SrcDir;
44 Stream_t *targetDir;
49 Stream_t *Dir;
50 Stream_t *NewDir;
64 Stream_t *Target; in makeit()
92 FLUSH((Stream_t *) Target); in makeit()
118 Stream_t *createDir(Stream_t *Dir, const char *filename, ClashHandling_t *ch, in createDir()
140 Stream_t *ret; in createDirCallback()
Dfilter.c26 Stream_t *Next;
27 Stream_t *Buffer;
42 static int read_filter(Stream_t *Stream, char *buf, mt_off_t iwhere, size_t len) in read_filter()
82 static int write_filter(Stream_t *Stream, char *buf, mt_off_t iwhere, in write_filter()
134 static int free_filter(Stream_t *Stream) in free_filter()
158 Stream_t *open_filter(Stream_t *Next, int convertCharset UNUSEDP) in open_filter()
174 return (Stream_t *) This; in open_filter()
Dinit.c39 static int read_boot(Stream_t *Stream, union bootsector * boot, int size) in read_boot()
62 static int fs_flush(Stream_t *Stream) in fs_flush()
70 static doscp_t *get_dosConvert(Stream_t *Stream) in get_dosConvert()
93 static int get_media_type(Stream_t *St, union bootsector *boot) in get_media_type()
112 Stream_t *GetFs(Stream_t *Fs) in GetFs()
135 Stream_t *find_device(char drive, int mode, struct device *out_dev, in find_device()
141 Stream_t *Stream; in find_device()
251 Stream_t *fs_init(char drive, int mode, int *isRop) in fs_init()
414 fs_free((Stream_t *)This); in fs_init()
420 return (Stream_t *) This; in fs_init()
[all …]
Dplain_io.c42 Stream_t *Next;
43 Stream_t *Buffer;
75 static int file_io(Stream_t *Stream, char *buf, mt_off_t where, int len, in file_io()
123 static int file_read(Stream_t *Stream, char *buf, mt_off_t where, size_t len) in file_read()
134 static int file_write(Stream_t *Stream, char *buf, mt_off_t where, size_t len) in file_write()
153 static int file_flush(Stream_t *Stream UNUSEDP) in file_flush()
163 static int file_free(Stream_t *Stream) in file_free()
173 static int file_geom(Stream_t *Stream, struct device *dev, in file_geom()
260 static int file_data(Stream_t *Stream, time_t *date, mt_size_t *size, in file_data()
276 static int file_discard(Stream_t *Stream) in file_discard()
[all …]
DfsP.h32 Stream_t *Next;
33 Stream_t *Buffer;
45 Stream_t *Direct;
82 int fs_free(Stream_t *Stream);
100 Fs_t *getFs(Stream_t *Stream);
Dforce_io.c30 static int force_io(Stream_t *Stream, in force_io()
32 int (*io)(Stream_t *, char *, mt_off_t, size_t)) in force_io() argument
53 int force_write(Stream_t *Stream, char *buf, mt_off_t start, size_t len) in force_write()
59 int force_read(Stream_t *Stream, char *buf, mt_off_t start, size_t len) in force_read()
Dbuffer.c28 Stream_t *Next;
29 Stream_t *Buffer;
137 static int buf_read(Stream_t *Stream, char *buf, mt_off_t start, size_t len) in buf_read()
184 static int buf_write(Stream_t *Stream, char *buf, mt_off_t start, size_t len) in buf_write()
302 static int buf_flush(Stream_t *Stream) in buf_flush()
316 static int buf_free(Stream_t *Stream) in buf_free()
338 Stream_t *buf_init(Stream_t *Next, int size, in buf_init()
343 Stream_t *Stream; in buf_init()
361 Stream = (Stream_t *) malloc (sizeof(Buffer_t)); in buf_init()
385 Buffer->Next->Buffer = (Stream_t *) Buffer; in buf_init()
Dmainloop.h33 int (*loop)(Stream_t *Dir, struct MainParam_t *mp,
52 Stream_t *File;
58 Stream_t *targetDir; /* directory where to place files */
82 Stream_t *open_root_dir(unsigned char drivename, int flags, int *isRop);
Dplain_io.h31 Stream_t *SimpleFileOpen(struct device *dev, struct device *orig_dev,
36 int get_fd(Stream_t *Stream);
37 void *get_extra_data(Stream_t *Stream);
Dfat_free.c30 int fat_free(Stream_t *Dir, unsigned int fat) in fat_free()
32 Stream_t *Stream = GetFs(Dir); in fat_free()
51 int fatFreeWithDir(Stream_t *Dir, struct directory *dir) in fatFreeWithDir()
Dstreamcache.c31 static Stream_t *fss[256]; /* open drives */
57 Stream_t *open_root_dir(unsigned char drive, int flags, int *isRop) in open_root_dir()
59 Stream_t *Fs; in open_root_dir()
Dnameclash.h63 int mwrite_one(Stream_t *Dir,
72 Stream_t *createDir(Stream_t *Dir, const char *filename, ClashHandling_t *ch,
Dfat.c43 return READS(This->Next, buf, sectorsToBytes((Stream_t *)This, off), in readSector()
51 return force_read(This->Next, buf, sectorsToBytes((Stream_t *)This, off), in forceReadSector()
59 return force_write(This->Next, buf, sectorsToBytes((Stream_t*)This, off), in forceWriteSector()
842 int fat_error(Stream_t *Dir) in fat_error()
844 Stream_t *Stream = GetFs(Dir); in fat_error()
853 int fat32RootCluster(Stream_t *Dir) in fat32RootCluster()
855 Stream_t *Stream = GetFs(Dir); in fat32RootCluster()
869 mt_size_t getfree(Stream_t *Dir) in getfree()
871 Stream_t *Stream = GetFs(Dir); in getfree()
889 return sectorsToBytes((Stream_t*)This, in getfree()
[all …]
Dfloppyd_io.c55 Stream_t *Next;
56 Stream_t *Buffer;
307 static int floppyd_io(Stream_t *Stream, char *buf, mt_off_t where, size_t len, in floppyd_io()
340 static int floppyd_read(Stream_t *Stream, char *buf, mt_off_t where, size_t len) in floppyd_read()
345 static int floppyd_write(Stream_t *Stream, char *buf, mt_off_t where, size_t len) in floppyd_write()
350 static int floppyd_flush(Stream_t *Stream) in floppyd_flush()
374 static int floppyd_free(Stream_t *Stream) in floppyd_free()
404 static int floppyd_geom(Stream_t *Stream, struct device *dev, in floppyd_geom()
434 static int floppyd_data(Stream_t *Stream, time_t *date, mt_size_t *size, in floppyd_data()
581 Stream_t *FloppydOpen(struct device *dev, in FloppydOpen()
[all …]
Dmainloop.c88 int unix_dir_loop(Stream_t *Stream, MainParam_t *mp);
89 int unix_loop(Stream_t *Stream UNUSEDP, MainParam_t *mp, char *arg,
92 static int _unix_loop(Stream_t *Dir, MainParam_t *mp, in _unix_loop()
98 int unix_loop(Stream_t *Stream UNUSEDP, MainParam_t *mp, in unix_loop()
194 Stream_t *container;
196 Stream_t *Dir;
209 Stream_t *MyFile=0; in handle_leaf()
249 static int _dos_loop(Stream_t *Dir, MainParam_t *mp, const char *filename) in _dos_loop()
251 Stream_t *MyFile=0; in _dos_loop()
403 Stream_t *SubDir; in recurs_dos_loop()
[all …]
Dbuffer.h23 Stream_t *buf_init(Stream_t *Next,
Dmdir.c47 static Stream_t *currentDir;
58 static Stream_t *RootDir;
183 static __inline__ int print_volume_label(Stream_t *Dir, char drive) in print_volume_label()
185 Stream_t *Stream = GetFs(Dir); in print_volume_label()
277 static int enterDrive(Stream_t *Dir, char drive) in enterDrive()
316 static int enterDirectory(Stream_t *Dir) in enterDirectory()
508 Stream_t *File=mp->File;
509 Stream_t *Target;

123