Lines Matching defs:Dir
154 unsigned int countBlocks(Stream_t *Dir, unsigned int block)
156 Stream_t *Stream = GetFs(Dir);
165 static size_t countBytes(Stream_t *Dir, unsigned int block)
167 Stream_t *Stream = GetFs(Dir);
477 FREE(&This->direntry.Dir);
492 if(This->FirstAbsCluNr != getStart(entry->Dir, &entry->dir)) {
570 static Stream_t *_internalFileOpen(Stream_t *Dir, unsigned int first,
573 Stream_t *Stream = GetFs(Dir);
610 File->direntry.Dir = (Stream_t *) File; /* root directory */
612 COPY(File->direntry.Dir);
636 Stream_t *OpenRoot(Stream_t *Dir)
645 num = fat32RootCluster(Dir);
653 size = countBytes(Dir, num);
655 Fs_t *Fs = (Fs_t *) GetFs(Dir);
658 file = _internalFileOpen(Dir, num, size, &entry);
670 first = getStart(entry->Dir, &entry->dir);
673 return OpenRoot(entry->Dir);
675 size = countBytes(entry->Dir, first);
678 file = _internalFileOpen(entry->Dir, first, size, entry);