RetroArch
Macros | Functions | Variables
cache.c File Reference
#include <string.h>
#include <limits.h>
#include "common.h"
#include "cache.h"
#include "disc.h"
#include "mem_allocate.h"
#include "bit_ops.h"
#include "file_allocation_table.h"
Include dependency graph for cache.c:

Macros

#define CACHE_FREE   UINT_MAX
 

Functions

CACHE_FAT_cache_constructor (unsigned int numberOfPages, unsigned int sectorsPerPage, const DISC_INTERFACE *discInterface, sec_t endOfPartition, unsigned int bytesPerSector)
 
void _FAT_cache_destructor (CACHE *cache)
 
static u32 accessTime ()
 
static CACHE_ENTRY_FAT_cache_getPage (CACHE *cache, sec_t sector)
 
bool _FAT_cache_readSectors (CACHE *cache, sec_t sector, sec_t numSectors, void *buffer)
 
bool _FAT_cache_readPartialSector (CACHE *cache, void *buffer, sec_t sector, unsigned int offset, size_t size)
 
bool _FAT_cache_readLittleEndianValue (CACHE *cache, uint32_t *value, sec_t sector, unsigned int offset, int num_bytes)
 
bool _FAT_cache_writePartialSector (CACHE *cache, const void *buffer, sec_t sector, unsigned int offset, size_t size)
 
bool _FAT_cache_writeLittleEndianValue (CACHE *cache, const uint32_t value, sec_t sector, unsigned int offset, int size)
 
bool _FAT_cache_eraseWritePartialSector (CACHE *cache, const void *buffer, sec_t sector, unsigned int offset, size_t size)
 
bool _FAT_cache_writeSectors (CACHE *cache, sec_t sector, sec_t numSectors, const void *buffer)
 
bool _FAT_cache_flush (CACHE *cache)
 
void _FAT_cache_invalidate (CACHE *cache)
 

Variables

static u32 accessCounter = 0
 

Macro Definition Documentation

◆ CACHE_FREE

#define CACHE_FREE   UINT_MAX

Function Documentation

◆ _FAT_cache_constructor()

CACHE* _FAT_cache_constructor ( unsigned int  numberOfPages,
unsigned int  sectorsPerPage,
const DISC_INTERFACE discInterface,
sec_t  endOfPartition,
unsigned int  bytesPerSector 
)
Here is the call graph for this function:

◆ _FAT_cache_destructor()

void _FAT_cache_destructor ( CACHE cache)
Here is the call graph for this function:

◆ _FAT_cache_eraseWritePartialSector()

bool _FAT_cache_eraseWritePartialSector ( CACHE cache,
const void buffer,
sec_t  sector,
unsigned int  offset,
size_t  size 
)
Here is the call graph for this function:

◆ _FAT_cache_flush()

bool _FAT_cache_flush ( CACHE cache)
Here is the call graph for this function:

◆ _FAT_cache_getPage()

static CACHE_ENTRY* _FAT_cache_getPage ( CACHE cache,
sec_t  sector 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _FAT_cache_invalidate()

void _FAT_cache_invalidate ( CACHE cache)
Here is the call graph for this function:

◆ _FAT_cache_readLittleEndianValue()

bool _FAT_cache_readLittleEndianValue ( CACHE cache,
uint32_t value,
sec_t  sector,
unsigned int  offset,
int  num_bytes 
)
Here is the call graph for this function:

◆ _FAT_cache_readPartialSector()

bool _FAT_cache_readPartialSector ( CACHE cache,
void buffer,
sec_t  sector,
unsigned int  offset,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _FAT_cache_readSectors()

bool _FAT_cache_readSectors ( CACHE cache,
sec_t  sector,
sec_t  numSectors,
void buffer 
)
Here is the call graph for this function:

◆ _FAT_cache_writeLittleEndianValue()

bool _FAT_cache_writeLittleEndianValue ( CACHE cache,
const uint32_t  value,
sec_t  sector,
unsigned int  offset,
int  size 
)
Here is the call graph for this function:

◆ _FAT_cache_writePartialSector()

bool _FAT_cache_writePartialSector ( CACHE cache,
const void buffer,
sec_t  sector,
unsigned int  offset,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _FAT_cache_writeSectors()

bool _FAT_cache_writeSectors ( CACHE cache,
sec_t  sector,
sec_t  numSectors,
const void buffer 
)
Here is the call graph for this function:

◆ accessTime()

static u32 accessTime ( )
static
Here is the caller graph for this function:

Variable Documentation

◆ accessCounter

u32 accessCounter = 0
static