Lines Matching full:regmap
32 struct regmap;
109 * @map: Regmap to read from
152 * @field: Regmap field to read from
217 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges"
219 * @no_ranges: pointer to an array of regmap ranges used as "no ranges"
240 * @name: Optional name of the regmap. Useful when a device has multiple
278 * @disable_locking: This regmap is either protected by external means or
281 * @lock: Optional lock callback (overrides regmap's default lock
331 * regmap bus is used.
334 * regmap bus is used.
517 struct regmap *__regmap_init(struct device *dev,
523 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
527 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
531 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
535 struct regmap *__regmap_init_spi(struct spi_device *dev,
539 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
543 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
547 struct regmap *__regmap_init_w1(struct device *w1_dev,
551 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
556 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
560 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
565 struct regmap *__devm_regmap_init(struct device *dev,
571 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
575 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
579 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
583 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
587 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
591 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
595 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
601 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
605 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
609 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
644 * a struct regmap. This function should generally not be called
650 int regmap_attach_dev(struct device *dev, struct regmap *map,
660 * a struct regmap.
673 * a struct regmap.
686 * a struct regmap.
699 * a struct regmap.
706 * regmap_init_spmi_base() - Create regmap for the Base register space
712 * a struct regmap.
719 * regmap_init_spmi_ext() - Create regmap for Ext register space
725 * a struct regmap.
738 * a struct regmap.
753 * a struct regmap.
767 * a struct regmap.
779 * a struct regmap.
793 * a struct regmap.
809 * to a struct regmap. This function should generally not be called
824 * to a struct regmap. The regmap will be automatically freed by the
838 * to a struct regmap. The regmap will be automatically freed by the
852 * to a struct regmap. The map will be automatically freed by the
860 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
866 * to a struct regmap. The regmap will be automatically freed by the
874 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
880 * to a struct regmap. The regmap will be automatically freed by the
894 * to a struct regmap. The regmap will be automatically freed by the
909 * to a struct regmap. The regmap will be automatically freed by the
924 * to a struct regmap. The regmap will be automatically freed by the
937 * to a struct regmap. The regmap will be automatically freed by the
951 * to a struct regmap. The regmap will be automatically freed by the
965 * to a struct regmap. The regmap will be automatically freed by the
971 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
972 void regmap_mmio_detach_clk(struct regmap *map);
973 void regmap_exit(struct regmap *map);
974 int regmap_reinit_cache(struct regmap *map,
976 struct regmap *dev_get_regmap(struct device *dev, const char *name);
977 struct device *regmap_get_device(struct regmap *map);
978 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
979 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
980 int regmap_raw_write(struct regmap *map, unsigned int reg,
982 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
984 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
986 int regmap_multi_reg_write_bypassed(struct regmap *map,
989 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
991 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
992 int regmap_raw_read(struct regmap *map, unsigned int reg,
994 int regmap_noinc_read(struct regmap *map, unsigned int reg,
996 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
998 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1001 int regmap_get_val_bytes(struct regmap *map);
1002 int regmap_get_max_register(struct regmap *map);
1003 int regmap_get_reg_stride(struct regmap *map);
1004 int regmap_async_complete(struct regmap *map);
1005 bool regmap_can_raw_write(struct regmap *map);
1006 size_t regmap_get_raw_read_max(struct regmap *map);
1007 size_t regmap_get_raw_write_max(struct regmap *map);
1009 int regcache_sync(struct regmap *map);
1010 int regcache_sync_region(struct regmap *map, unsigned int min,
1012 int regcache_drop_region(struct regmap *map, unsigned int min,
1014 void regcache_cache_only(struct regmap *map, bool enable);
1015 void regcache_cache_bypass(struct regmap *map, bool enable);
1016 void regcache_mark_dirty(struct regmap *map);
1018 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1021 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1023 int regmap_parse_val(struct regmap *map, const void *buf,
1039 * @reg: Offset of the register within the regmap bank
1059 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1064 struct regmap *regmap, struct reg_field reg_field);
1078 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1098 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1172 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1177 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1192 * regmap based facilities, if they ever get called at runtime
1194 * REGMAP.
1197 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write()
1200 WARN_ONCE(1, "regmap API is disabled"); in regmap_write()
1204 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async()
1207 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_async()
1211 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write()
1214 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write()
1218 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async()
1221 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write_async()
1225 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write()
1228 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_write()
1232 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read()
1235 WARN_ONCE(1, "regmap API is disabled"); in regmap_read()
1239 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read()
1242 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_read()
1246 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read()
1249 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_read()
1253 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read()
1256 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_read()
1260 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base()
1264 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_base()
1272 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits_base()
1281 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits_base()
1285 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes()
1287 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_val_bytes()
1291 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register()
1293 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_max_register()
1297 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride()
1299 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_reg_stride()
1303 static inline int regcache_sync(struct regmap *map) in regcache_sync()
1305 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync()
1309 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
1312 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync_region()
1316 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
1319 WARN_ONCE(1, "regmap API is disabled"); in regcache_drop_region()
1323 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
1325 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_only()
1328 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
1330 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_bypass()
1333 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
1335 WARN_ONCE(1, "regmap API is disabled"); in regcache_mark_dirty()
1338 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete()
1340 WARN_ONCE(1, "regmap API is disabled"); in regmap_async_complete()
1343 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch()
1347 WARN_ONCE(1, "regmap API is disabled"); in regmap_register_patch()
1351 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val()
1354 WARN_ONCE(1, "regmap API is disabled"); in regmap_parse_val()
1358 static inline struct regmap *dev_get_regmap(struct device *dev, in dev_get_regmap()
1364 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device()
1366 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_device()