Lines Matching refs:reg

68  * @reg: Register address.
75 unsigned int reg;
82 * @reg: Register address.
90 unsigned int reg;
96 .reg = _reg, \
317 * if the function require special handling with lock and reg
398 bool (*writeable_reg)(struct device *dev, unsigned int reg);
399 bool (*readable_reg)(struct device *dev, unsigned int reg);
400 bool (*volatile_reg)(struct device *dev, unsigned int reg);
401 bool (*precious_reg)(struct device *dev, unsigned int reg);
402 bool (*writeable_noinc_reg)(struct device *dev, unsigned int reg);
403 bool (*readable_noinc_reg)(struct device *dev, unsigned int reg);
410 int (*reg_read)(void *context, unsigned int reg, unsigned int *val);
411 int (*reg_write)(void *context, unsigned int reg, unsigned int val);
412 int (*reg_update_bits)(void *context, unsigned int reg,
502 const void *reg, size_t reg_len,
505 const void *reg, size_t reg_len,
511 typedef int (*regmap_hw_reg_read)(void *context, unsigned int reg,
513 typedef int (*regmap_hw_reg_noinc_read)(void *context, unsigned int reg,
515 typedef int (*regmap_hw_reg_write)(void *context, unsigned int reg,
517 typedef int (*regmap_hw_reg_noinc_write)(void *context, unsigned int reg,
519 typedef int (*regmap_hw_reg_update_bits)(void *context, unsigned int reg,
907 bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg);
1212 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
1213 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
1214 int regmap_raw_write(struct regmap *map, unsigned int reg,
1216 int regmap_noinc_write(struct regmap *map, unsigned int reg,
1218 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
1225 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1227 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
1228 int regmap_raw_read(struct regmap *map, unsigned int reg,
1230 int regmap_noinc_read(struct regmap *map, unsigned int reg,
1232 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
1234 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1238 static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
1241 return regmap_update_bits_base(map, reg, mask, val, NULL, false, false);
1244 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg,
1247 return regmap_update_bits_base(map, reg, mask, val, NULL, true, false);
1250 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg,
1254 return regmap_update_bits_base(map, reg, mask, val,
1259 regmap_update_bits_check_async(struct regmap *map, unsigned int reg,
1263 return regmap_update_bits_base(map, reg, mask, val,
1267 static inline int regmap_write_bits(struct regmap *map, unsigned int reg,
1270 return regmap_update_bits_base(map, reg, mask, val, NULL, false, true);
1290 bool regcache_reg_cached(struct regmap *map, unsigned int reg);
1292 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1300 static inline bool regmap_reg_in_range(unsigned int reg,
1303 return reg >= range->range_min && reg <= range->range_max;
1306 bool regmap_reg_in_ranges(unsigned int reg,
1311 unsigned int reg, unsigned int bits)
1313 return regmap_update_bits_base(map, reg, bits, bits,
1318 unsigned int reg, unsigned int bits)
1320 return regmap_update_bits_base(map, reg, bits, 0, NULL, false, false);
1323 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1328 * @reg: Offset of the register within the regmap bank
1335 unsigned int reg;
1343 .reg = _reg, \
1349 .reg = _reg, \
1531 * 1.st bit to 1.st sub-reg, 2.nd bit to 2.nd sub-reg, ...
1688 static inline int regmap_write(struct regmap *map, unsigned int reg,
1695 static inline int regmap_write_async(struct regmap *map, unsigned int reg,
1702 static inline int regmap_raw_write(struct regmap *map, unsigned int reg,
1709 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1716 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg,
1723 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg,
1730 static inline int regmap_read(struct regmap *map, unsigned int reg,
1737 static inline int regmap_raw_read(struct regmap *map, unsigned int reg,
1744 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg,
1751 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg,
1758 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1767 unsigned int reg, unsigned int bits)
1774 unsigned int reg, unsigned int bits)
1781 unsigned int reg, unsigned int bits)
1804 static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
1811 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg,
1818 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg,
1827 regmap_update_bits_check_async(struct regmap *map, unsigned int reg,
1835 static inline int regmap_write_bits(struct regmap *map, unsigned int reg,