Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
delay.h File Reference

Go to the source code of this file.

Macros

#define udelay(n)
 
#define ndelay(n)
 

Functions

void __bad_udelay (void)
 
void __bad_ndelay (void)
 
void __udelay (unsigned long usecs)
 
void __ndelay (unsigned long nsecs)
 
void __const_udelay (unsigned long xloops)
 
void __delay (unsigned long loops)
 

Macro Definition Documentation

#define ndelay (   n)
Value:
({ \
if (__builtin_constant_p(n)) { \
if ((n) / 20000 >= 1) \
__bad_ndelay(); \
__const_udelay((n) * 5ul); \
} else { \
__ndelay(n); \
} \
})

Definition at line 32 of file delay.h.

#define udelay (   n)
Value:
({ \
if (__builtin_constant_p(n)) { \
if ((n) / 20000 >= 1) \
__bad_udelay(); \
__const_udelay((n) * 0x10c7ul); \
} else { \
__udelay(n); \
} \
})

Definition at line 19 of file delay.h.

Function Documentation

void __bad_ndelay ( void  )
void __bad_udelay ( void  )
void __const_udelay ( unsigned long  xloops)
inline

Definition at line 36 of file delay.c.

void __delay ( unsigned long  loops)
inline

Definition at line 27 of file delay.c.

void __ndelay ( unsigned long  nsecs)

Definition at line 51 of file delay.c.

void __udelay ( unsigned long  usecs)

Definition at line 45 of file delay.c.