Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
spinlock_32.c File Reference
#include <linux/spinlock.h>
#include <linux/module.h>
#include <asm/processor.h>
#include <arch/spr_def.h>
#include "spinlock_common.h"

Go to the source code of this file.

Macros

#define WR_NEXT_SHIFT   _WR_NEXT_SHIFT
 
#define WR_CURR_SHIFT   _WR_CURR_SHIFT
 
#define WR_WIDTH   _WR_WIDTH
 
#define WR_MASK   ((1 << WR_WIDTH) - 1)
 
#define RD_COUNT_SHIFT   _RD_COUNT_SHIFT
 
#define RD_COUNT_WIDTH   _RD_COUNT_WIDTH
 
#define RD_COUNT_MASK   ((1 << RD_COUNT_WIDTH) - 1)
 

Functions

void arch_spin_lock (arch_spinlock_t *lock)
 
 EXPORT_SYMBOL (arch_spin_lock)
 
int arch_spin_trylock (arch_spinlock_t *lock)
 
 EXPORT_SYMBOL (arch_spin_trylock)
 
void arch_spin_unlock_wait (arch_spinlock_t *lock)
 
 EXPORT_SYMBOL (arch_spin_unlock_wait)
 
int arch_read_trylock (arch_rwlock_t *rwlock)
 
 EXPORT_SYMBOL (arch_read_trylock)
 
void arch_read_lock (arch_rwlock_t *rwlock)
 
 EXPORT_SYMBOL (arch_read_lock)
 
void arch_read_unlock (arch_rwlock_t *rwlock)
 
 EXPORT_SYMBOL (arch_read_unlock)
 
void arch_write_lock (arch_rwlock_t *rwlock)
 
 EXPORT_SYMBOL (arch_write_lock)
 
int arch_write_trylock (arch_rwlock_t *rwlock)
 
 EXPORT_SYMBOL (arch_write_trylock)
 
void arch_write_unlock (arch_rwlock_t *rwlock)
 
 EXPORT_SYMBOL (arch_write_unlock)
 

Macro Definition Documentation

#define RD_COUNT_MASK   ((1 << RD_COUNT_WIDTH) - 1)

Definition at line 92 of file spinlock_32.c.

#define RD_COUNT_SHIFT   _RD_COUNT_SHIFT

Definition at line 90 of file spinlock_32.c.

#define RD_COUNT_WIDTH   _RD_COUNT_WIDTH

Definition at line 91 of file spinlock_32.c.

#define WR_CURR_SHIFT   _WR_CURR_SHIFT

Definition at line 82 of file spinlock_32.c.

#define WR_MASK   ((1 << WR_WIDTH) - 1)

Definition at line 84 of file spinlock_32.c.

#define WR_NEXT_SHIFT   _WR_NEXT_SHIFT

Definition at line 81 of file spinlock_32.c.

#define WR_WIDTH   _WR_WIDTH

Definition at line 83 of file spinlock_32.c.

Function Documentation

void arch_read_lock ( arch_rwlock_t rwlock)

arch_read_lock() - acquire a read lock.

Definition at line 131 of file spinlock_32.c.

int arch_read_trylock ( arch_rwlock_t rwlock)
inline

arch_read_trylock() - try to acquire a read lock.

Definition at line 104 of file spinlock_32.c.

void arch_read_unlock ( arch_rwlock_t rwlock)

arch_read_unlock() - release a read lock.

Definition at line 139 of file spinlock_32.c.

void arch_spin_lock ( arch_spinlock_t lock)

Definition at line 22 of file spinlock_32.c.

int arch_spin_trylock ( arch_spinlock_t lock)

Definition at line 40 of file spinlock_32.c.

void arch_spin_unlock_wait ( arch_spinlock_t lock)

Definition at line 65 of file spinlock_32.c.

void arch_write_lock ( arch_rwlock_t rwlock)

arch_write_lock() - acquire a write lock.

Definition at line 163 of file spinlock_32.c.

int arch_write_trylock ( arch_rwlock_t rwlock)

arch_write_trylock() - try to acquire a write lock.

Definition at line 218 of file spinlock_32.c.

void arch_write_unlock ( arch_rwlock_t rwlock)

arch_write_unlock() - release a write lock.

Definition at line 238 of file spinlock_32.c.

EXPORT_SYMBOL ( arch_spin_lock  )
EXPORT_SYMBOL ( arch_spin_trylock  )
EXPORT_SYMBOL ( arch_spin_unlock_wait  )
EXPORT_SYMBOL ( arch_read_trylock  )
EXPORT_SYMBOL ( arch_read_lock  )
EXPORT_SYMBOL ( arch_read_unlock  )
EXPORT_SYMBOL ( arch_write_lock  )
EXPORT_SYMBOL ( arch_write_trylock  )
EXPORT_SYMBOL ( arch_write_unlock  )