Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bitops.h File Reference
#include <linux/compiler.h>
#include <linux/types.h>
#include <asm/barrier.h>
#include <asm/byteorder.h>
#include <asm/cpu-features.h>
#include <asm/sgidefs.h>
#include <asm/war.h>
#include <asm-generic/bitops/non-atomic.h>
#include <asm-generic/bitops/fls64.h>
#include <asm-generic/bitops/ffz.h>
#include <asm-generic/bitops/find.h>

Go to the source code of this file.

Macros

#define smp_mb__before_clear_bit()   smp_mb__before_llsc()
 
#define smp_mb__after_clear_bit()   smp_llsc_mb()
 

Functions

void __mips_set_bit (unsigned long nr, volatile unsigned long *addr)
 
void __mips_clear_bit (unsigned long nr, volatile unsigned long *addr)
 
void __mips_change_bit (unsigned long nr, volatile unsigned long *addr)
 
int __mips_test_and_set_bit (unsigned long nr, volatile unsigned long *addr)
 
int __mips_test_and_set_bit_lock (unsigned long nr, volatile unsigned long *addr)
 
int __mips_test_and_clear_bit (unsigned long nr, volatile unsigned long *addr)
 
int __mips_test_and_change_bit (unsigned long nr, volatile unsigned long *addr)
 

Macro Definition Documentation

#define smp_mb__after_clear_bit ( )    smp_llsc_mb()

Definition at line 44 of file bitops.h.

#define smp_mb__before_clear_bit ( )    smp_mb__before_llsc()

Definition at line 43 of file bitops.h.

Function Documentation

void __mips_change_bit ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_change_bit - Toggle a bit in memory. This is called by change_bit() if it cannot find a faster solution. : Bit to change : Address to start counting from

Definition at line 64 of file bitops.c.

void __mips_clear_bit ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_clear_bit - Clears a bit in memory. This is called by clear_bit() if it cannot find a faster solution. : Bit to clear : Address to start counting from

Definition at line 42 of file bitops.c.

void __mips_set_bit ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_set_bit - Atomically set a bit in memory. This is called by set_bit() if it cannot find a faster solution. : the bit to set : the address to start counting from

Definition at line 20 of file bitops.c.

int __mips_test_and_change_bit ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_test_and_change_bit - Change a bit and return its old value. This is called by test_and_change_bit() if it cannot find a faster solution. : Bit to change : Address to count from

Definition at line 163 of file bitops.c.

int __mips_test_and_clear_bit ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_test_and_clear_bit - Clear a bit and return its old value. This is called by test_and_clear_bit() if it cannot find a faster solution. : Bit to clear : Address to count from

Definition at line 138 of file bitops.c.

int __mips_test_and_set_bit ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_test_and_set_bit - Set a bit and return its old value. This is called by test_and_set_bit() if it cannot find a faster solution. : Bit to set : Address to count from

Definition at line 86 of file bitops.c.

int __mips_test_and_set_bit_lock ( unsigned long  nr,
volatile unsigned long addr 
)

__mips_test_and_set_bit_lock - Set a bit and return its old value. This is called by test_and_set_bit_lock() if it cannot find a faster solution. : Bit to set : Address to count from

Definition at line 112 of file bitops.c.