Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
bitops.h File Reference
#include <linux/compiler.h>
#include <asm-generic/bitops/fls.h>
#include <asm-generic/bitops/__fls.h>
#include <asm-generic/bitops/fls64.h>
#include <asm-generic/bitops/hweight.h>
#include <asm-generic/bitops/lock.h>
#include <asm-generic/bitops/le.h>
#include <asm-generic/bitops/ext2-atomic-setbit.h>

Go to the source code of this file.

Macros

#define __BITOPS_ALIGN   3
 
#define __BITOPS_WORDSIZE   32
 
#define __BITOPS_OR   "or"
 
#define __BITOPS_AND   "nr"
 
#define __BITOPS_XOR   "xr"
 
#define __BITOPS_LOOP(__old, __new, __addr, __val, __op_string)
 
#define __BITOPS_WORDS(bits)   (((bits)+__BITOPS_WORDSIZE-1)/__BITOPS_WORDSIZE)
 
#define __BITOPS_BARRIER()   asm volatile("" : : : "memory")
 
#define set_bit_simple(nr, addr)
 
#define clear_bit_simple(nr, addr)
 
#define change_bit_simple(nr, addr)
 
#define __test_and_set_bit(X, Y)   test_and_set_bit_simple(X,Y)
 
#define __test_and_clear_bit(X, Y)   test_and_clear_bit_simple(X,Y)
 
#define __test_and_change_bit(X, Y)   test_and_change_bit_simple(X,Y)
 
#define set_bit   set_bit_simple
 
#define clear_bit   clear_bit_simple
 
#define change_bit   change_bit_simple
 
#define test_and_set_bit   test_and_set_bit_simple
 
#define test_and_clear_bit   test_and_clear_bit_simple
 
#define test_and_change_bit   test_and_change_bit_simple
 
#define test_bit(nr, addr)
 
#define find_first_zero_bit   find_first_zero_bit
 
#define find_first_bit   find_first_bit
 
#define find_next_zero_bit   find_next_zero_bit
 
#define find_next_bit   find_next_bit
 
#define find_first_zero_bit_le   find_first_zero_bit_le
 
#define find_next_zero_bit_le   find_next_zero_bit_le
 
#define find_first_bit_le   find_first_bit_le
 
#define find_next_bit_le   find_next_bit_le
 

Variables

const char _oi_bitmap []
 
const char _ni_bitmap []
 
const char _zb_findmap []
 
const char _sb_findmap []
 

Macro Definition Documentation

#define __BITOPS_ALIGN   3

Definition at line 64 of file bitops.h.

#define __BITOPS_AND   "nr"

Definition at line 67 of file bitops.h.

#define __BITOPS_BARRIER ( )    asm volatile("" : : : "memory")

Definition at line 105 of file bitops.h.

#define __BITOPS_LOOP (   __old,
  __new,
  __addr,
  __val,
  __op_string 
)
Value:
asm volatile( \
" l %0,%2\n" \
"0: lr %1,%0\n" \
__op_string " %1,%3\n" \
" cs %0,%1,%2\n" \
" jl 0b" \
: "=&d" (__old), "=&d" (__new), \
"=Q" (*(unsigned long *) __addr) \
: "d" (__val), "Q" (*(unsigned long *) __addr) \
: "cc");

Definition at line 70 of file bitops.h.

#define __BITOPS_OR   "or"

Definition at line 66 of file bitops.h.

#define __BITOPS_WORDS (   bits)    (((bits)+__BITOPS_WORDSIZE-1)/__BITOPS_WORDSIZE)

Definition at line 104 of file bitops.h.

#define __BITOPS_WORDSIZE   32

Definition at line 65 of file bitops.h.

#define __BITOPS_XOR   "xr"

Definition at line 68 of file bitops.h.

#define __test_and_change_bit (   X,
 
)    test_and_change_bit_simple(X,Y)

Definition at line 351 of file bitops.h.

#define __test_and_clear_bit (   X,
 
)    test_and_clear_bit_simple(X,Y)

Definition at line 332 of file bitops.h.

#define __test_and_set_bit (   X,
 
)    test_and_set_bit_simple(X,Y)

Definition at line 313 of file bitops.h.

#define change_bit   change_bit_simple

Definition at line 363 of file bitops.h.

#define change_bit_simple (   nr,
  addr 
)
Value:
(__builtin_constant_p((nr)) ? \
__constant_change_bit((nr),(addr)) : \

Definition at line 291 of file bitops.h.

#define clear_bit   clear_bit_simple

Definition at line 362 of file bitops.h.

#define clear_bit_simple (   nr,
  addr 
)
Value:
(__builtin_constant_p((nr)) ? \
__constant_clear_bit((nr),(addr)) : \

Definition at line 264 of file bitops.h.

#define find_first_bit   find_first_bit

Definition at line 641 of file bitops.h.

#define find_first_bit_le   find_first_bit_le

Definition at line 797 of file bitops.h.

#define find_first_zero_bit   find_first_zero_bit

Definition at line 620 of file bitops.h.

#define find_first_zero_bit_le   find_first_zero_bit_le

Definition at line 755 of file bitops.h.

#define find_next_bit   find_next_bit

Definition at line 715 of file bitops.h.

#define find_next_bit_le   find_next_bit_le

Definition at line 827 of file bitops.h.

#define find_next_zero_bit   find_next_zero_bit

Definition at line 678 of file bitops.h.

#define find_next_zero_bit_le   find_next_zero_bit_le

Definition at line 785 of file bitops.h.

#define set_bit   set_bit_simple

Definition at line 361 of file bitops.h.

#define set_bit_simple (   nr,
  addr 
)
Value:
(__builtin_constant_p((nr)) ? \
__constant_set_bit((nr),(addr)) : \
__set_bit((nr),(addr)) )

Definition at line 236 of file bitops.h.

#define test_and_change_bit   test_and_change_bit_simple

Definition at line 366 of file bitops.h.

#define test_and_clear_bit   test_and_clear_bit_simple

Definition at line 365 of file bitops.h.

#define test_and_set_bit   test_and_set_bit_simple

Definition at line 364 of file bitops.h.

#define test_bit (   nr,
  addr 
)
Value:
(__builtin_constant_p((nr)) ? \
__constant_test_bit((nr),(addr)) : \
__test_bit((nr),(addr)) )

Definition at line 390 of file bitops.h.

Variable Documentation

const char _ni_bitmap[]

Definition at line 15 of file bitmap.c.

const char _oi_bitmap[]

Definition at line 12 of file bitmap.c.

const char _sb_findmap[]

Definition at line 37 of file bitmap.c.

const char _zb_findmap[]

Definition at line 18 of file bitmap.c.