File nut/fs/phatfs.c

References Functions: PhatApiFileClose() nut/fs/phatfs.c
  PhatApiFileOpen() nut/fs/phatfs.c
  PhatApiFileRead() nut/fs/phatfs.c
  PhatApiFileWrite() nut/fs/phatfs.c
  PhatApiFileWrite_P() nut/fs/phatfs.c
  PhatApiIOCtl() nut/fs/phatfs.c
  PhatFileSize() nut/fs/phatfs.c
  PhatInit() nut/fs/phatfs.c

Included Files


Preprocessor definitions

#define SEEK_SET 0

#define SEEK_CUR 1

#define SEEK_END 2


Global Variable devPhat0

NUTDEVICE devPhat0
Visible in:   nut/fs/phatfs.c

Global Variable devPhat1

NUTDEVICE devPhat1
Visible in:   nut/fs/phatfs.c

Global Function AllocFirstCluster()

uint32_t AllocFirstCluster ( NUTFILE* nfp )
Prototyped in: nut/include/fs/phatfs.h
Calls: AllocCluster() nut/fs/phatfs.c
  Phat12SetClusterLink() nut/fs/phat12.c
  Phat16SetClusterLink() nut/fs/phat16.c
  Phat32SetClusterLink() nut/fs/phat32.c
Called by: PhatDirCreate() nut/fs/phatdir.c
  PhatFileWrite() nut/fs/phatfs.c

Global Function PhatFileClose()

int PhatFileClose ( NUTFILE* nfp )
Prototyped in: nut/include/fs/phatfs.h
Calls: PhatFileFlush() nut/fs/phatfs.c
  free() nut/crt/malloc.c
Called by: PhatApiFileClose() nut/fs/phatfs.c
  PhatDirCreate() nut/fs/phatdir.c
  PhatDirDelEntry() nut/fs/phatdir.c
  PhatDirEntryStatus() nut/fs/phatdir.c
  PhatDirRemove() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c
  PhatFileOpen() nut/fs/phatfs.c
  PhatIOCtl() nut/fs/phatfs.c

Global Function PhatFileOpen()

NUTFILE* PhatFileOpen ( NUTDEVICE* dev, const char* path, int mode, int acc )
Prototyped in: nut/include/fs/phatfs.h
Calls: PhatDirEntryCreate() nut/fs/phatdir.c
  PhatDirEntryFind() nut/fs/phatdir.c
  PhatDirOpenParent() nut/fs/phatdir.c
  PhatDirReleaseChain() nut/fs/phatdir.c
  PhatFileClose() nut/fs/phatfs.c
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memcpy() nut/c/string/memcpy.c
  memset() nut/c/string/memset.c
  PhatClusterSector(), PhatFilePosSet()
Called by: PhatApiFileOpen() nut/fs/phatfs.c
  PhatDirCreate() nut/fs/phatdir.c
  PhatDirRemove() nut/fs/phatdir.c

Global Function PhatFileRead()

int PhatFileRead ( NUTFILE* nfp, void* buffer, int size )
Prototyped in: nut/include/fs/phatfs.h
Calls: Phat12GetClusterLink() nut/fs/phat12.c
  Phat16GetClusterLink() nut/fs/phat16.c
  Phat32GetClusterLink() nut/fs/phat32.c
  memcpy() nut/c/string/memcpy.c
  IsFixedRootDir(), PhatClusterSector(), PhatSectorBufferRelease(), PhatSectorLoad()
Called by: GenShortName() nut/fs/phatdir.c
  PhatApiFileRead() nut/fs/phatfs.c
  PhatDirEntryAlloc() nut/fs/phatdir.c
  PhatDirEntryRead() nut/fs/phatdir.c
  PhatDirRemove() nut/fs/phatdir.c

Global Function PhatFileWrite()

int PhatFileWrite ( NUTFILE* nfp, const void* buffer, int len )
Prototyped in: nut/include/fs/phatfs.h
Calls: AllocFirstCluster() nut/fs/phatfs.c
  AllocNextCluster() nut/fs/phatfs.c
  Phat12GetClusterLink() nut/fs/phat12.c
  Phat16GetClusterLink() nut/fs/phat16.c
  Phat32GetClusterLink() nut/fs/phat32.c
  PhatFileFlush() nut/fs/phatfs.c
  memcpy() nut/c/string/memcpy.c
  GetDosTimeStamp(), IsFixedRootDir(), PhatClusterSector(), PhatSectorBufferRelease(), PhatSectorLoad(), PhatSectorWrite()
Called by: PhatApiFileWrite() nut/fs/phatfs.c
  PhatDirCreate() nut/fs/phatdir.c
  PhatDirEntryAlloc() nut/fs/phatdir.c
  PhatDirEntryRelease() nut/fs/phatdir.c

Global Function PhatFileWrite_P()

int PhatFileWrite_P ( NUTFILE* nfp, const char* buffer, int len )
Prototyped in: nut/include/fs/phatfs.h
Called by: PhatApiFileWrite_P() nut/fs/phatfs.c

Local Function AllocCluster()

static uint32_t AllocCluster ( NUTDEVICE* dev )
Calls: SearchFreeCluster() nut/fs/phatfs.c
Called by: AllocFirstCluster() nut/fs/phatfs.c
  AllocNextCluster() nut/fs/phatfs.c

Local Function AllocNextCluster()

static uint32_t AllocNextCluster ( NUTFILE* nfp )
Calls: AllocCluster() nut/fs/phatfs.c
  Phat12SetClusterLink() nut/fs/phat12.c
  Phat16SetClusterLink() nut/fs/phat16.c
  Phat32SetClusterLink() nut/fs/phat32.c
Called by: PhatFileWrite() nut/fs/phatfs.c

Local Function PhatApiFileClose()

static int PhatApiFileClose ( NUTFILE* nfp )
Calls: PhatFileClose() nut/fs/phatfs.c
  NutEventPost(), NutEventWait()
Used in:   nut/fs/phatfs.c

Local Function PhatApiFileOpen()

static NUTFILE* PhatApiFileOpen ( NUTDEVICE* dev, const char* path, int mode, int acc )
Calls: PhatFileOpen() nut/fs/phatfs.c
  NutEventPost(), NutEventWait()
Used in:   nut/fs/phatfs.c

Local Function PhatApiFileRead()

static int PhatApiFileRead ( NUTFILE* nfp, void* buffer, int size )
Calls: PhatFileRead() nut/fs/phatfs.c
  NutEventPost(), NutEventWait()
Used in:   nut/fs/phatfs.c

Local Function PhatApiFileWrite()

static int PhatApiFileWrite ( NUTFILE* nfp, const void* buffer, int len )
Calls: PhatFileWrite() nut/fs/phatfs.c
  NutEventPost(), NutEventWait()
Used in:   nut/fs/phatfs.c

Local Function PhatApiFileWrite_P()

static int PhatApiFileWrite_P ( NUTFILE* nfp, const char* buffer, int len )
Calls: PhatFileWrite_P() nut/fs/phatfs.c
  NutEventPost(), NutEventWait()
Used in:   nut/fs/phatfs.c

Local Function PhatApiIOCtl()

static int PhatApiIOCtl ( NUTDEVICE* dev, int req, void* conf )
Calls: PhatIOCtl() nut/fs/phatfs.c
  NutEventPost(), NutEventWait()
Used in:   nut/fs/phatfs.c

Local Function PhatFileFlush()

static int PhatFileFlush ( NUTFILE* nfp )
Calls: PhatDirEntryUpdate() nut/fs/phatdir.c
  NutEventPost(), NutEventWait(), PhatSectorFlush()
Called by: PhatFileClose() nut/fs/phatfs.c
  PhatFileWrite() nut/fs/phatfs.c

Local Function PhatFileSeek()

static int PhatFileSeek ( NUTFILE* nfp, long* pos, int whence )
Calls: PhatFileSize() nut/fs/phatfs.c
  PhatFilePosSet()
Called by: PhatIOCtl() nut/fs/phatfs.c

Local Function PhatFileSize()

static long PhatFileSize ( NUTFILE* nfp )
Called by: PhatFileSeek() nut/fs/phatfs.c
Used in:   nut/fs/phatfs.c

Local Function PhatIOCtl()

static int PhatIOCtl ( NUTDEVICE* dev, int req, void* conf )
Calls: PhatDirCreate() nut/fs/phatdir.c
  PhatDirDelEntry() nut/fs/phatdir.c
  PhatDirEntryStatus() nut/fs/phatdir.c
  PhatDirOpen() nut/fs/phatdir.c
  PhatDirRead() nut/fs/phatdir.c
  PhatDirRemove() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c
  PhatFileClose() nut/fs/phatfs.c
  PhatFileSeek() nut/fs/phatfs.c
  PhatVolMount(), PhatVolUnmount()
Called by: PhatApiIOCtl() nut/fs/phatfs.c

Local Function PhatInit()

static int PhatInit ( NUTDEVICE* dev )
Used in:   nut/fs/phatfs.c

Local Function SearchFreeCluster()

static uint32_t SearchFreeCluster ( NUTDEVICE* dev, uint32_t first, uint32_t last )
Calls: Phat12GetClusterLink() nut/fs/phat12.c
  Phat16GetClusterLink() nut/fs/phat16.c
  Phat32GetClusterLink() nut/fs/phat32.c
Called by: AllocCluster() nut/fs/phatfs.c