Lines Matching full:regmap
34 struct regmap;
88 * @map: Regmap to read from
115 * @map: Regmap to read from
130 * Note: In general regmap cannot be used in atomic context. If you want to use
131 * this macro then first setup your regmap for atomic use (flat or no cache
132 * and MMIO regmap).
160 * @field: Regmap field to read from
210 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges"
212 * @no_ranges: pointer to an array of regmap ranges used as "no ranges"
233 * @name: Optional name of the regmap. Useful when a device has multiple
282 * @disable_locking: This regmap is either protected by external means or
285 * @lock: Optional lock callback (overrides regmap's default lock
356 * regmap bus is used.
359 * regmap bus is used.
368 * @can_sleep: Optional, specifies whether regmap operations can sleep.
542 * @free_on_exit: kfree this on exit of regmap
572 struct regmap *__regmap_init(struct device *dev,
578 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
582 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev,
586 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
590 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
594 struct regmap *__regmap_init_spi(struct spi_device *dev,
598 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
602 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
606 struct regmap *__regmap_init_w1(struct device *w1_dev,
610 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
615 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
619 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
623 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw,
627 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
632 struct regmap *__devm_regmap_init(struct device *dev,
638 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
642 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev,
646 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
650 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
654 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
658 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
662 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
666 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
672 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
676 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
680 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw,
684 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
688 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c,
692 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
727 * a struct regmap. This function should generally not be called
733 int regmap_attach_dev(struct device *dev, struct regmap *map,
743 * a struct regmap.
756 * a struct regmap.
769 * a struct regmap.
782 * a struct regmap.
795 * a struct regmap.
802 * regmap_init_spmi_base() - Create regmap for the Base register space
808 * a struct regmap.
815 * regmap_init_spmi_ext() - Create regmap for Ext register space
821 * a struct regmap.
834 * a struct regmap.
849 * a struct regmap.
863 * a struct regmap.
875 * a struct regmap.
889 * a struct regmap.
902 * a struct regmap.
916 * to a struct regmap.
931 * to a struct regmap. This function should generally not be called
946 * to a struct regmap. The regmap will be automatically freed by the
960 * to a struct regmap. The regmap will be automatically freed by the
974 * to a struct regmap. The regmap will be automatically freed by the
988 * to a struct regmap. The map will be automatically freed by the
996 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
1002 * to a struct regmap. The regmap will be automatically freed by the
1010 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
1016 * to a struct regmap. The regmap will be automatically freed by the
1030 * to a struct regmap. The regmap will be automatically freed by the
1045 * to a struct regmap. The regmap will be automatically freed by the
1060 * to a struct regmap. The regmap will be automatically freed by the
1073 * to a struct regmap. The regmap will be automatically freed by the
1087 * to a struct regmap. The regmap will be automatically freed by the
1101 * to a struct regmap. The regmap will be automatically freed by the
1115 * to a struct regmap. The regmap will be automatically freed by the
1129 * to a struct regmap. The regmap will be automatically freed by the
1144 * to a struct regmap. The map will be automatically freed by the
1151 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
1152 void regmap_mmio_detach_clk(struct regmap *map);
1153 void regmap_exit(struct regmap *map);
1154 int regmap_reinit_cache(struct regmap *map,
1156 struct regmap *dev_get_regmap(struct device *dev, const char *name);
1157 struct device *regmap_get_device(struct regmap *map);
1158 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
1159 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
1160 int regmap_raw_write(struct regmap *map, unsigned int reg,
1162 int regmap_noinc_write(struct regmap *map, unsigned int reg,
1164 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
1166 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
1168 int regmap_multi_reg_write_bypassed(struct regmap *map,
1171 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1173 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
1174 int regmap_raw_read(struct regmap *map, unsigned int reg,
1176 int regmap_noinc_read(struct regmap *map, unsigned int reg,
1178 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
1180 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1184 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1190 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1196 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1205 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1213 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1219 int regmap_get_val_bytes(struct regmap *map);
1220 int regmap_get_max_register(struct regmap *map);
1221 int regmap_get_reg_stride(struct regmap *map);
1222 int regmap_async_complete(struct regmap *map);
1223 bool regmap_can_raw_write(struct regmap *map);
1224 size_t regmap_get_raw_read_max(struct regmap *map);
1225 size_t regmap_get_raw_write_max(struct regmap *map);
1227 int regcache_sync(struct regmap *map);
1228 int regcache_sync_region(struct regmap *map, unsigned int min,
1230 int regcache_drop_region(struct regmap *map, unsigned int min,
1232 void regcache_cache_only(struct regmap *map, bool enable);
1233 void regcache_cache_bypass(struct regmap *map, bool enable);
1234 void regcache_mark_dirty(struct regmap *map);
1236 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1239 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1241 int regmap_parse_val(struct regmap *map, const void *buf,
1254 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1261 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1267 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1272 * @reg: Offset of the register within the regmap bank
1300 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1305 struct regmap *regmap, struct reg_field reg_field);
1308 int regmap_field_bulk_alloc(struct regmap *regmap,
1313 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1425 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1457 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1620 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1624 struct regmap *map, int irq,
1630 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1636 struct regmap *map, int irq,
1651 * regmap based facilities, if they ever get called at runtime
1653 * REGMAP.
1656 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write()
1659 WARN_ONCE(1, "regmap API is disabled"); in regmap_write()
1663 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async()
1666 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_async()
1670 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write()
1673 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write()
1677 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async()
1680 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write_async()
1684 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg, in regmap_noinc_write()
1687 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_write()
1691 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write()
1694 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_write()
1698 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read()
1701 WARN_ONCE(1, "regmap API is disabled"); in regmap_read()
1705 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read()
1708 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_read()
1712 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read()
1715 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_read()
1719 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read()
1722 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_read()
1726 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base()
1730 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_base()
1734 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1737 WARN_ONCE(1, "regmap API is disabled"); in regmap_set_bits()
1741 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1744 WARN_ONCE(1, "regmap API is disabled"); in regmap_clear_bits()
1748 static inline int regmap_test_bits(struct regmap *map, in regmap_test_bits()
1751 WARN_ONCE(1, "regmap API is disabled"); in regmap_test_bits()
1759 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits_base()
1768 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits_base()
1772 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1775 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits()
1779 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1782 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_async()
1786 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1790 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check()
1795 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1799 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check_async()
1803 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1806 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_bits()
1813 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_write()
1820 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_write()
1827 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits()
1835 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_update_bits()
1842 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_set_bits()
1849 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_clear_bits()
1856 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_test_bits()
1863 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_write()
1870 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_write()
1878 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits()
1886 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_update_bits()
1890 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes()
1892 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_val_bytes()
1896 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register()
1898 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_max_register()
1902 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride()
1904 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_reg_stride()
1908 static inline int regcache_sync(struct regmap *map) in regcache_sync()
1910 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync()
1914 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
1917 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync_region()
1921 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
1924 WARN_ONCE(1, "regmap API is disabled"); in regcache_drop_region()
1928 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
1930 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_only()
1933 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
1935 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_bypass()
1938 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
1940 WARN_ONCE(1, "regmap API is disabled"); in regcache_mark_dirty()
1943 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete()
1945 WARN_ONCE(1, "regmap API is disabled"); in regmap_async_complete()
1948 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch()
1952 WARN_ONCE(1, "regmap API is disabled"); in regmap_register_patch()
1956 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val()
1959 WARN_ONCE(1, "regmap API is disabled"); in regmap_parse_val()
1963 static inline struct regmap *dev_get_regmap(struct device *dev, in dev_get_regmap()
1969 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device()
1971 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_device()