RetroArch
Functions | Variables
timesupp.c File Reference
#include <_ansi.h>
#include <_syslist.h>
#include "asm.h"
#include "processor.h"
#include "lwp.h"
#include "lwp_threadq.h"
#include "timesupp.h"
#include "exi.h"
#include "system.h"
#include "conf.h"
#include <stdio.h>
#include <sys/time.h>
Include dependency graph for timesupp.c:

Functions

u32 __SYS_GetRTC (u32 *gctime)
 
syssram__SYS_LockSram ()
 
u32 __SYS_UnlockSram (u32 write)
 
u32 _DEFUN (gettick,(), _NOARGS)
 
u64 _DEFUN (gettime,(), _NOARGS)
 
void _DEFUN (settime,(t), u64 t)
 
u32 diff_sec (u64 start, u64 end)
 
u32 diff_msec (u64 start, u64 end)
 
u32 diff_usec (u64 start, u64 end)
 
u32 diff_nsec (u64 start, u64 end)
 
void __timesystem_init ()
 
void timespec_subtract (const struct timespec *tp_start, const struct timespec *tp_end, struct timespec *result)
 
unsigned long long timespec_to_ticks (const struct timespec *tp)
 
int clock_gettime (struct timespec *tp)
 
void _DEFUN (udelay,(us), unsigned us)
 
unsigned int _DEFUN (nanosleep,(tb), struct timespec *tb)
 
static u32 __getrtc (u32 *gctime)
 
static s32 __time_exi_unlock (s32 chn, s32 dev)
 
static void __time_exi_wait ()
 
static u32 __getRTC (u32 *gctime)
 
time_t _DEFUN (time,(timer), time_t *timer)
 
unsigned int _DEFUN (sleep,(s), unsigned int s)
 
unsigned int _DEFUN (usleep,(us), unsigned int us)
 
clock_t clock (void)
 
int __libogc_gettod_r (struct _reent *ptr, struct timeval *tp, struct timezone *tz)
 

Variables

static u32 exi_wait_inited = 0
 
static lwpq_t time_exi_wait
 

Function Documentation

◆ __getrtc()

static u32 __getrtc ( u32 gctime)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __getRTC()

static u32 __getRTC ( u32 gctime)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __libogc_gettod_r()

int __libogc_gettod_r ( struct _reent *  ptr,
struct timeval tp,
struct timezone *  tz 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_GetRTC()

u32 __SYS_GetRTC ( u32 gctime)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __SYS_LockSram()

syssram* __SYS_LockSram ( )
Here is the caller graph for this function:

◆ __SYS_UnlockSram()

u32 __SYS_UnlockSram ( u32  write)
Here is the caller graph for this function:

◆ __time_exi_unlock()

static s32 __time_exi_unlock ( s32  chn,
s32  dev 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __time_exi_wait()

static void __time_exi_wait ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __timesystem_init()

void __timesystem_init ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _DEFUN() [1/8]

u32 _DEFUN ( gettick  ,
()  ,
_NOARGS   
)
Here is the call graph for this function:

◆ _DEFUN() [2/8]

u64 _DEFUN ( gettime  ,
()  ,
_NOARGS   
)
Here is the call graph for this function:

◆ _DEFUN() [3/8]

void _DEFUN ( settime  ,
(t ,
u64  t 
)
Here is the call graph for this function:

◆ _DEFUN() [4/8]

void _DEFUN ( udelay  ,
(us)  ,
unsigned  us 
)
Here is the call graph for this function:

◆ _DEFUN() [5/8]

unsigned int _DEFUN ( nanosleep  ,
(tb)  ,
struct timespec *  tb 
)
Here is the call graph for this function:

◆ _DEFUN() [6/8]

time_t _DEFUN ( time  ,
(timer ,
time_t *  timer 
)
Here is the call graph for this function:

◆ _DEFUN() [7/8]

unsigned int _DEFUN ( sleep  ,
(s ,
unsigned int  s 
)
Here is the call graph for this function:

◆ _DEFUN() [8/8]

unsigned int _DEFUN ( usleep  ,
(us)  ,
unsigned int  us 
)
Here is the call graph for this function:

◆ clock()

clock_t clock ( void  )
Here is the caller graph for this function:

◆ clock_gettime()

int clock_gettime ( struct timespec *  tp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diff_msec()

u32 diff_msec ( u64  start,
u64  end 
)

◆ diff_nsec()

u32 diff_nsec ( u64  start,
u64  end 
)

◆ diff_sec()

u32 diff_sec ( u64  start,
u64  end 
)

◆ diff_usec()

u32 diff_usec ( u64  start,
u64  end 
)
Here is the caller graph for this function:

◆ timespec_subtract()

void timespec_subtract ( const struct timespec *  tp_start,
const struct timespec *  tp_end,
struct timespec *  result 
)

◆ timespec_to_ticks()

unsigned long long timespec_to_ticks ( const struct timespec *  tp)
Here is the call graph for this function:

Variable Documentation

◆ exi_wait_inited

u32 exi_wait_inited = 0
static

◆ time_exi_wait

lwpq_t time_exi_wait
static