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()

u_long 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()
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
  PhatClusterSector(), PhatFilePosSet(), free(), malloc(), memcpy(), memset()
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
  IsFixedRootDir(), PhatClusterSector(), PhatSectorLoad(), memcpy()
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
  GetDosTimeStamp(), IsFixedRootDir(), PhatClusterSector(), PhatSectorLoad(), memcpy()
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 prog_char* buffer, int len )
Prototyped in: nut/include/fs/phatfs.h
Called by: PhatApiFileWrite_P() nut/fs/phatfs.c

Local Function AllocCluster()

static u_long 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 u_long 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: NutEventPost() nut/os/event.c
  NutEventWait() nut/os/event.c
  PhatFileClose() nut/fs/phatfs.c
Used in:   nut/fs/phatfs.c

Local Function PhatApiFileOpen()

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

Local Function PhatApiFileRead()

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

Local Function PhatApiFileWrite()

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

Local Function PhatApiFileWrite_P()

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

Local Function PhatApiIOCtl()

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

Local Function PhatFileFlush()

static int PhatFileFlush ( NUTFILE* nfp )
Calls: NutEventPost() nut/os/event.c
  NutEventWait() nut/os/event.c
  PhatDirEntryUpdate() nut/fs/phatdir.c
  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 u_long SearchFreeCluster ( NUTDEVICE* dev, u_long first, u_long last )
Calls: Phat12GetClusterLink() nut/fs/phat12.c
  Phat16GetClusterLink() nut/fs/phat16.c
  Phat32GetClusterLink() nut/fs/phat32.c
Called by: AllocCluster() nut/fs/phatfs.c