linux-4.4.1/regmap_read()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#v486bb69]
#backlinks
*説明 [#x32fc026]
-パス: 複数あり
--CONFIG_REGMAP 有効: [[linux-4.4.1/drivers/base/regmap/r...
--CONFIG_REGMAP 無効: [[linux-4.4.1/include/linux/regmap....
-FIXME: これは何?
--説明
**引数 [#v7fca322]
-struct regmap *map
--
--[[linux-4.4.1/regmap]]
-unsigned int reg
--
-unsigned int *val
--
**返り値 [#l2f542d8]
-int
--
**参考 [#h50db15e]
*実装 [#i8f6b4b1]
**CONFIG_REGMAP 有効: drivers/base/regmap/regmap.c [#m286...
/**
* regmap_read(): Read a value from a single register
*
* @map: Register map to read from
* @reg: Register to be read from
* @val: Pointer to store read value
*
* A value of zero will be returned on success, a negati...
* be returned in error cases.
*/
int regmap_read(struct regmap *map, unsigned int reg, un...
{
int ret;
if (reg % map->reg_stride)
return -EINVAL;
map->lock(map->lock_arg);
ret = _regmap_read(map, reg, val);
-
--[[linux-4.4.1/_regmap_read()]]
map->unlock(map->lock_arg);
return ret;
}
EXPORT_SYMBOL_GPL(regmap_read);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
**CONFIG_REGMAP 無効: include/linux/regmap.h [#s675727d]
static inline int regmap_read(struct regmap *map, unsign...
unsigned int *val)
{
WARN_ONCE(1, "regmap API is disabled");
-
--[[linux-4.4.1/WARN_ONCE()]]
return -EINVAL;
}
*コメント [#uca0b693]
終了行:
*参照元 [#v486bb69]
#backlinks
*説明 [#x32fc026]
-パス: 複数あり
--CONFIG_REGMAP 有効: [[linux-4.4.1/drivers/base/regmap/r...
--CONFIG_REGMAP 無効: [[linux-4.4.1/include/linux/regmap....
-FIXME: これは何?
--説明
**引数 [#v7fca322]
-struct regmap *map
--
--[[linux-4.4.1/regmap]]
-unsigned int reg
--
-unsigned int *val
--
**返り値 [#l2f542d8]
-int
--
**参考 [#h50db15e]
*実装 [#i8f6b4b1]
**CONFIG_REGMAP 有効: drivers/base/regmap/regmap.c [#m286...
/**
* regmap_read(): Read a value from a single register
*
* @map: Register map to read from
* @reg: Register to be read from
* @val: Pointer to store read value
*
* A value of zero will be returned on success, a negati...
* be returned in error cases.
*/
int regmap_read(struct regmap *map, unsigned int reg, un...
{
int ret;
if (reg % map->reg_stride)
return -EINVAL;
map->lock(map->lock_arg);
ret = _regmap_read(map, reg, val);
-
--[[linux-4.4.1/_regmap_read()]]
map->unlock(map->lock_arg);
return ret;
}
EXPORT_SYMBOL_GPL(regmap_read);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]
**CONFIG_REGMAP 無効: include/linux/regmap.h [#s675727d]
static inline int regmap_read(struct regmap *map, unsign...
unsigned int *val)
{
WARN_ONCE(1, "regmap API is disabled");
-
--[[linux-4.4.1/WARN_ONCE()]]
return -EINVAL;
}
*コメント [#uca0b693]
ページ名: