Linux Kernel
3.7.1
|
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/device.h>
#include <trace/events/regmap.h>
#include <linux/bsearch.h>
#include <linux/sort.h>
#include "internal.h"
Go to the source code of this file.
EXPORT_SYMBOL_GPL | ( | regcache_sync | ) |
EXPORT_SYMBOL_GPL | ( | regcache_sync_region | ) |
EXPORT_SYMBOL_GPL | ( | regcache_cache_only | ) |
EXPORT_SYMBOL_GPL | ( | regcache_mark_dirty | ) |
EXPORT_SYMBOL_GPL | ( | regcache_cache_bypass | ) |
regcache_cache_bypass: Put a register map into cache bypass mode
: map to configure : flag if changes should not be written to the hardware
When a register map is marked with the cache bypass option, writes to the register map API will only update the hardware and not the the cache directly. This is useful when syncing the cache back to the hardware.
Definition at line 409 of file regcache.c.
regcache_cache_only: Put a register map into cache only mode
: map to configure : flag if changes should be written to the hardware
When a register map is marked as cache only writes to the register map API will only update the register cache, they will not cause any hardware changes. This is useful for allowing portions of drivers to act as though the device were functioning as normal when it is disabled for power saving reasons.
Definition at line 371 of file regcache.c.
Definition at line 176 of file regcache.c.
Definition at line 450 of file regcache.c.
Definition at line 95 of file regcache.c.
Definition at line 484 of file regcache.c.
Definition at line 419 of file regcache.c.
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.
regcache_sync_region: Sync part of the register cache with the hardware.
: map to sync. : first register to sync : last register to sync
Write all non-default register values in the specified region to the hardware.
Return a negative value on failure, 0 on success.
Definition at line 325 of file regcache.c.