Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
internal.h File Reference
#include <linux/regmap.h>
#include <linux/fs.h>

Go to the source code of this file.

Data Structures

struct  regmap_format
 
struct  regmap
 
struct  regcache_ops
 
struct  regmap_range_node
 

Typedefs

typedef void(* regmap_lock )(struct regmap *map)
 
typedef void(* regmap_unlock )(struct regmap *map)
 

Functions

bool regmap_writeable (struct regmap *map, unsigned int reg)
 
bool regmap_readable (struct regmap *map, unsigned int reg)
 
bool regmap_volatile (struct regmap *map, unsigned int reg)
 
bool regmap_precious (struct regmap *map, unsigned int reg)
 
int _regmap_write (struct regmap *map, unsigned int reg, unsigned int val)
 
int regcache_init (struct regmap *map, const struct regmap_config *config)
 
void regcache_exit (struct regmap *map)
 
int regcache_read (struct regmap *map, unsigned int reg, unsigned int *value)
 
int regcache_write (struct regmap *map, unsigned int reg, unsigned int value)
 
int regcache_sync (struct regmap *map)
 
unsigned int regcache_get_val (const void *base, unsigned int idx, unsigned int word_size)
 
bool regcache_set_val (void *base, unsigned int idx, unsigned int val, unsigned int word_size)
 
int regcache_lookup_reg (struct regmap *map, unsigned int reg)
 

Variables

struct regcache_ops regcache_rbtree_ops
 
struct regcache_ops regcache_lzo_ops
 

Typedef Documentation

typedef void(* regmap_lock)(struct regmap *map)

Definition at line 34 of file internal.h.

typedef void(* regmap_unlock)(struct regmap *map)

Definition at line 35 of file internal.h.

Function Documentation

int _regmap_write ( struct regmap map,
unsigned int  reg,
unsigned int  val 
)

Definition at line 876 of file regmap.c.

void regcache_exit ( struct regmap map)

Definition at line 176 of file regcache.c.

unsigned int regcache_get_val ( const void base,
unsigned int  idx,
unsigned int  word_size 
)

Definition at line 450 of file regcache.c.

int regcache_init ( struct regmap map,
const struct regmap_config *  config 
)

Definition at line 95 of file regcache.c.

int regcache_lookup_reg ( struct regmap map,
unsigned int  reg 
)

Definition at line 484 of file regcache.c.

int regcache_read ( struct regmap map,
unsigned int  reg,
unsigned int value 
)

regcache_read: Fetch the value of a given register from the cache.

: map to configure. : The register index. : The value to be returned.

Return a negative value on failure, 0 on success.

Definition at line 203 of file regcache.c.

bool regcache_set_val ( void base,
unsigned int  idx,
unsigned int  val,
unsigned int  word_size 
)

Definition at line 419 of file regcache.c.

int regcache_sync ( struct regmap map)

regcache_sync: Sync the register cache with the hardware.

: map to configure.

Any registers that should not be synced should be marked as volatile. In general drivers can choose not to use the provided syncing functionality if they so require.

Return a negative value on failure, 0 on success.

Definition at line 262 of file regcache.c.

int regcache_write ( struct regmap map,
unsigned int  reg,
unsigned int  value 
)

regcache_write: Set the value of a given register in the cache.

: map to configure. : The register index. : The new register value.

Return a negative value on failure, 0 on success.

Definition at line 234 of file regcache.c.

bool regmap_precious ( struct regmap map,
unsigned int  reg 
)

Definition at line 73 of file regmap.c.

bool regmap_readable ( struct regmap map,
unsigned int  reg 
)

Definition at line 48 of file regmap.c.

bool regmap_volatile ( struct regmap map,
unsigned int  reg 
)

Definition at line 62 of file regmap.c.

bool regmap_writeable ( struct regmap map,
unsigned int  reg 
)

Definition at line 37 of file regmap.c.

Variable Documentation

struct regcache_ops regcache_lzo_ops

Definition at line 372 of file regcache-lzo.c.

struct regcache_ops regcache_rbtree_ops

Definition at line 428 of file regcache-rbtree.c.