Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
atomic64_32.h File Reference
#include <linux/compiler.h>
#include <linux/types.h>
#include <asm/processor.h>

Go to the source code of this file.

Data Structures

struct  atomic64_t
 

Macros

#define ATOMIC64_INIT(val)   { (val) }
 
#define __ATOMIC64_DECL(sym)   void atomic64_##sym(atomic64_t *, ...)
 
#define ATOMIC64_DECL_ONE   __ATOMIC64_DECL
 
#define __alternative_atomic64(f, g, out, in...)
 
#define ATOMIC64_DECL(sym)
 
#define alternative_atomic64(f, out, in...)   __alternative_atomic64(f, f, ASM_OUTPUT2(out), ## in)
 

Functions

 ATOMIC64_DECL_ONE (add_386)
 
 ATOMIC64_DECL_ONE (sub_386)
 
 ATOMIC64_DECL_ONE (inc_386)
 
 ATOMIC64_DECL_ONE (dec_386)
 
 ATOMIC64_DECL (read)
 
 ATOMIC64_DECL (set)
 
 ATOMIC64_DECL (xchg)
 
 ATOMIC64_DECL (add_return)
 
 ATOMIC64_DECL (sub_return)
 
 ATOMIC64_DECL (inc_return)
 
 ATOMIC64_DECL (dec_return)
 
 ATOMIC64_DECL (dec_if_positive)
 
 ATOMIC64_DECL (inc_not_zero)
 
 ATOMIC64_DECL (add_unless)
 

Macro Definition Documentation

#define __alternative_atomic64 (   f,
  g,
  out,
  in... 
)
Value:
alternative_call(atomic64_##f##_386, atomic64_##g##_cx8, \

Definition at line 32 of file atomic64_32.h.

#define __ATOMIC64_DECL (   sym)    void atomic64_##sym(atomic64_t *, ...)

Definition at line 17 of file atomic64_32.h.

#define alternative_atomic64 (   f,
  out,
  in... 
)    __alternative_atomic64(f, f, ASM_OUTPUT2(out), ## in)

Definition at line 45 of file atomic64_32.h.

#define ATOMIC64_DECL (   sym)
Value:
ATOMIC64_DECL_ONE(sym##_cx8); \
ATOMIC64_DECL_ONE(sym##_386)

Definition at line 36 of file atomic64_32.h.

#define ATOMIC64_DECL_ONE   __ATOMIC64_DECL

Definition at line 19 of file atomic64_32.h.

#define ATOMIC64_INIT (   val)    { (val) }

Definition at line 15 of file atomic64_32.h.

Function Documentation

ATOMIC64_DECL ( read  )
ATOMIC64_DECL ( set  )
ATOMIC64_DECL ( xchg  )
ATOMIC64_DECL ( add_return  )
ATOMIC64_DECL ( sub_return  )
ATOMIC64_DECL ( inc_return  )
ATOMIC64_DECL ( dec_return  )
ATOMIC64_DECL ( dec_if_positive  )
ATOMIC64_DECL ( inc_not_zero  )
ATOMIC64_DECL ( add_unless  )
ATOMIC64_DECL_ONE ( add_386  )
ATOMIC64_DECL_ONE ( sub_386  )
ATOMIC64_DECL_ONE ( inc_386  )
ATOMIC64_DECL_ONE ( dec_386  )