Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
atomic_32.c File Reference
#include <linux/cache.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/atomic.h>
#include <arch/chip.h>

Go to the source code of this file.

Functions

int__atomic_hashed_lock (volatile void *v)
 
int _atomic_xchg (atomic_t *v, int n)
 
 EXPORT_SYMBOL (_atomic_xchg)
 
int _atomic_xchg_add (atomic_t *v, int i)
 
 EXPORT_SYMBOL (_atomic_xchg_add)
 
int _atomic_xchg_add_unless (atomic_t *v, int a, int u)
 
 EXPORT_SYMBOL (_atomic_xchg_add_unless)
 
int _atomic_cmpxchg (atomic_t *v, int o, int n)
 
 EXPORT_SYMBOL (_atomic_cmpxchg)
 
unsigned long _atomic_or (volatile unsigned long *p, unsigned long mask)
 
 EXPORT_SYMBOL (_atomic_or)
 
unsigned long _atomic_andn (volatile unsigned long *p, unsigned long mask)
 
 EXPORT_SYMBOL (_atomic_andn)
 
unsigned long _atomic_xor (volatile unsigned long *p, unsigned long mask)
 
 EXPORT_SYMBOL (_atomic_xor)
 
u64 _atomic64_xchg (atomic64_t *v, u64 n)
 
 EXPORT_SYMBOL (_atomic64_xchg)
 
u64 _atomic64_xchg_add (atomic64_t *v, u64 i)
 
 EXPORT_SYMBOL (_atomic64_xchg_add)
 
u64 _atomic64_xchg_add_unless (atomic64_t *v, u64 a, u64 u)
 
 EXPORT_SYMBOL (_atomic64_xchg_add_unless)
 
u64 _atomic64_cmpxchg (atomic64_t *v, u64 o, u64 n)
 
 EXPORT_SYMBOL (_atomic64_cmpxchg)
 
struct __get_user __atomic_bad_address (int __user *addr)
 
void __init __init_atomic_per_cpu (void)
 

Variables

int atomic_locks[PAGE_SIZE/sizeof(int)] __page_aligned_bss
 

Function Documentation

struct __get_user __atomic_bad_address ( int __user addr)
read

Definition at line 203 of file atomic_32.c.

int* __atomic_hashed_lock ( volatile void v)

Definition at line 52 of file atomic_32.c.

void __init __init_atomic_per_cpu ( void  )

Definition at line 220 of file atomic_32.c.

u64 _atomic64_cmpxchg ( atomic64_t v,
u64  o,
u64  n 
)

Definition at line 186 of file atomic_32.c.

u64 _atomic64_xchg ( atomic64_t v,
u64  n 
)

Definition at line 162 of file atomic_32.c.

u64 _atomic64_xchg_add ( atomic64_t v,
u64  i 
)

Definition at line 168 of file atomic_32.c.

u64 _atomic64_xchg_add_unless ( atomic64_t v,
u64  a,
u64  u 
)

Definition at line 174 of file atomic_32.c.

unsigned long _atomic_andn ( volatile unsigned long p,
unsigned long  mask 
)

Definition at line 149 of file atomic_32.c.

int _atomic_cmpxchg ( atomic_t v,
int  o,
int  n 
)

Definition at line 137 of file atomic_32.c.

unsigned long _atomic_or ( volatile unsigned long p,
unsigned long  mask 
)

Definition at line 143 of file atomic_32.c.

int _atomic_xchg ( atomic_t v,
int  n 
)

Definition at line 113 of file atomic_32.c.

int _atomic_xchg_add ( atomic_t v,
int  i 
)

Definition at line 119 of file atomic_32.c.

int _atomic_xchg_add_unless ( atomic_t v,
int  a,
int  u 
)

Definition at line 125 of file atomic_32.c.

unsigned long _atomic_xor ( volatile unsigned long p,
unsigned long  mask 
)

Definition at line 155 of file atomic_32.c.

EXPORT_SYMBOL ( _atomic_xchg  )
EXPORT_SYMBOL ( _atomic_xchg_add  )
EXPORT_SYMBOL ( _atomic_xchg_add_unless  )
EXPORT_SYMBOL ( _atomic_cmpxchg  )
EXPORT_SYMBOL ( _atomic_or  )
EXPORT_SYMBOL ( _atomic_andn  )
EXPORT_SYMBOL ( _atomic_xor  )
EXPORT_SYMBOL ( _atomic64_xchg  )
EXPORT_SYMBOL ( _atomic64_xchg_add  )
EXPORT_SYMBOL ( _atomic64_xchg_add_unless  )
EXPORT_SYMBOL ( _atomic64_cmpxchg  )

Variable Documentation

int atomic_locks [PAGE_SIZE / sizeof(int)] __page_aligned_bss

Definition at line 48 of file atomic_32.c.