Lines Matching refs:regmap
35 struct regmap;
50 * regmap.reg_shift indicates by how much we must shift registers prior to
147 * Note: In general regmap cannot be used in atomic context. If you want to use
148 * this macro then first setup your regmap for atomic use (flat or no cache
149 * and MMIO regmap).
227 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges"
229 * @no_ranges: pointer to an array of regmap ranges used as "no ranges"
250 * @name: Optional name of the regmap. Useful when a device has multiple
300 * @disable_locking: This regmap is either protected by external means or
303 * @lock: Optional lock callback (overrides regmap's default lock
374 * regmap bus is used.
377 * regmap bus is used.
386 * @can_sleep: Optional, specifies whether regmap operations can sleep.
532 * @free_on_exit: kfree this on exit of regmap
590 struct regmap *__regmap_init(struct device *dev,
596 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
600 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev,
604 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
608 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
612 struct regmap *__regmap_init_spi(struct spi_device *dev,
616 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
620 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
624 struct regmap *__regmap_init_w1(struct device *w1_dev,
628 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
633 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
637 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
641 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw,
645 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
649 struct regmap *__regmap_init_fsi(struct fsi_device *fsi_dev,
654 struct regmap *__devm_regmap_init(struct device *dev,
660 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
664 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev,
668 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
672 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
676 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
680 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
684 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
688 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
694 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
698 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
702 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw,
706 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
710 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c,
714 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
718 struct regmap *__devm_regmap_init_fsi(struct fsi_device *fsi_dev,
754 * a struct regmap. This function should generally not be called
760 int regmap_attach_dev(struct device *dev, struct regmap *map,
770 * a struct regmap.
783 * a struct regmap.
796 * a struct regmap.
809 * a struct regmap.
822 * a struct regmap.
829 * regmap_init_spmi_base() - Create regmap for the Base register space
835 * a struct regmap.
842 * regmap_init_spmi_ext() - Create regmap for Ext register space
848 * a struct regmap.
861 * a struct regmap.
876 * a struct regmap.
890 * a struct regmap.
902 * a struct regmap.
916 * a struct regmap.
929 * a struct regmap.
943 * to a struct regmap.
956 * a struct regmap.
971 * to a struct regmap. This function should generally not be called
986 * to a struct regmap. The regmap will be automatically freed by the
1000 * to a struct regmap. The regmap will be automatically freed by the
1014 * to a struct regmap. The regmap will be automatically freed by the
1028 * to a struct regmap. The map will be automatically freed by the
1036 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
1042 * to a struct regmap. The regmap will be automatically freed by the
1050 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
1056 * to a struct regmap. The regmap will be automatically freed by the
1070 * to a struct regmap. The regmap will be automatically freed by the
1085 * to a struct regmap. The regmap will be automatically freed by the
1100 * to a struct regmap. The regmap will be automatically freed by the
1113 * to a struct regmap. The regmap will be automatically freed by the
1127 * to a struct regmap. The regmap will be automatically freed by the
1141 * to a struct regmap. The regmap will be automatically freed by the
1155 * to a struct regmap. The regmap will be automatically freed by the
1169 * to a struct regmap. The regmap will be automatically freed by the
1184 * to a struct regmap. The map will be automatically freed by the
1198 * to a struct regmap. The regmap will be automatically freed by the
1205 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
1206 void regmap_mmio_detach_clk(struct regmap *map);
1207 void regmap_exit(struct regmap *map);
1208 int regmap_reinit_cache(struct regmap *map,
1210 struct regmap *dev_get_regmap(struct device *dev, const char *name);
1211 struct device *regmap_get_device(struct regmap *map);
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,
1220 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
1222 int regmap_multi_reg_write_bypassed(struct regmap *map,
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,
1244 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg,
1250 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg,
1259 regmap_update_bits_check_async(struct regmap *map, unsigned int reg,
1267 static inline int regmap_write_bits(struct regmap *map, unsigned int reg,
1273 int regmap_get_val_bytes(struct regmap *map);
1274 int regmap_get_max_register(struct regmap *map);
1275 int regmap_get_reg_stride(struct regmap *map);
1276 bool regmap_might_sleep(struct regmap *map);
1277 int regmap_async_complete(struct regmap *map);
1278 bool regmap_can_raw_write(struct regmap *map);
1279 size_t regmap_get_raw_read_max(struct regmap *map);
1280 size_t regmap_get_raw_write_max(struct regmap *map);
1282 int regcache_sync(struct regmap *map);
1283 int regcache_sync_region(struct regmap *map, unsigned int min,
1285 int regcache_drop_region(struct regmap *map, unsigned int min,
1287 void regcache_cache_only(struct regmap *map, bool enable);
1288 void regcache_cache_bypass(struct regmap *map, bool enable);
1289 void regcache_mark_dirty(struct regmap *map);
1290 bool regcache_reg_cached(struct regmap *map, unsigned int reg);
1292 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1295 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1297 int regmap_parse_val(struct regmap *map, const void *buf,
1310 static inline int regmap_set_bits(struct regmap *map,
1317 static inline int regmap_clear_bits(struct regmap *map,
1323 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1328 * @reg: Offset of the register within the regmap bank
1356 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1361 struct regmap *regmap, struct reg_field reg_field);
1364 int regmap_field_bulk_alloc(struct regmap *regmap,
1369 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1481 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1513 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1652 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1656 struct regmap *map, int irq,
1662 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1668 struct regmap *map, int irq,
1683 * regmap based facilities, if they ever get called at runtime
1688 static inline int regmap_write(struct regmap *map, unsigned int reg,
1691 WARN_ONCE(1, "regmap API is disabled");
1695 static inline int regmap_write_async(struct regmap *map, unsigned int reg,
1698 WARN_ONCE(1, "regmap API is disabled");
1702 static inline int regmap_raw_write(struct regmap *map, unsigned int reg,
1705 WARN_ONCE(1, "regmap API is disabled");
1709 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1712 WARN_ONCE(1, "regmap API is disabled");
1716 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg,
1719 WARN_ONCE(1, "regmap API is disabled");
1723 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg,
1726 WARN_ONCE(1, "regmap API is disabled");
1730 static inline int regmap_read(struct regmap *map, unsigned int reg,
1733 WARN_ONCE(1, "regmap API is disabled");
1737 static inline int regmap_raw_read(struct regmap *map, unsigned int reg,
1740 WARN_ONCE(1, "regmap API is disabled");
1744 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg,
1747 WARN_ONCE(1, "regmap API is disabled");
1751 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg,
1754 WARN_ONCE(1, "regmap API is disabled");
1758 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1762 WARN_ONCE(1, "regmap API is disabled");
1766 static inline int regmap_set_bits(struct regmap *map,
1769 WARN_ONCE(1, "regmap API is disabled");
1773 static inline int regmap_clear_bits(struct regmap *map,
1776 WARN_ONCE(1, "regmap API is disabled");
1780 static inline int regmap_test_bits(struct regmap *map,
1783 WARN_ONCE(1, "regmap API is disabled");
1791 WARN_ONCE(1, "regmap API is disabled");
1800 WARN_ONCE(1, "regmap API is disabled");
1804 static inline int regmap_update_bits(struct regmap *map, unsigned int reg,
1807 WARN_ONCE(1, "regmap API is disabled");
1811 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg,
1814 WARN_ONCE(1, "regmap API is disabled");
1818 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg,
1822 WARN_ONCE(1, "regmap API is disabled");
1827 regmap_update_bits_check_async(struct regmap *map, unsigned int reg,
1831 WARN_ONCE(1, "regmap API is disabled");
1835 static inline int regmap_write_bits(struct regmap *map, unsigned int reg,
1838 WARN_ONCE(1, "regmap API is disabled");
1845 WARN_ONCE(1, "regmap API is disabled");
1852 WARN_ONCE(1, "regmap API is disabled");
1859 WARN_ONCE(1, "regmap API is disabled");
1867 WARN_ONCE(1, "regmap API is disabled");
1874 WARN_ONCE(1, "regmap API is disabled");
1881 WARN_ONCE(1, "regmap API is disabled");
1888 WARN_ONCE(1, "regmap API is disabled");
1895 WARN_ONCE(1, "regmap API is disabled");
1902 WARN_ONCE(1, "regmap API is disabled");
1910 WARN_ONCE(1, "regmap API is disabled");
1918 WARN_ONCE(1, "regmap API is disabled");
1922 static inline int regmap_get_val_bytes(struct regmap *map)
1924 WARN_ONCE(1, "regmap API is disabled");
1928 static inline int regmap_get_max_register(struct regmap *map)
1930 WARN_ONCE(1, "regmap API is disabled");
1934 static inline int regmap_get_reg_stride(struct regmap *map)
1936 WARN_ONCE(1, "regmap API is disabled");
1940 static inline bool regmap_might_sleep(struct regmap *map)
1942 WARN_ONCE(1, "regmap API is disabled");
1946 static inline int regcache_sync(struct regmap *map)
1948 WARN_ONCE(1, "regmap API is disabled");
1952 static inline int regcache_sync_region(struct regmap *map, unsigned int min,
1955 WARN_ONCE(1, "regmap API is disabled");
1959 static inline int regcache_drop_region(struct regmap *map, unsigned int min,
1962 WARN_ONCE(1, "regmap API is disabled");
1966 static inline void regcache_cache_only(struct regmap *map, bool enable)
1968 WARN_ONCE(1, "regmap API is disabled");
1971 static inline void regcache_cache_bypass(struct regmap *map, bool enable)
1973 WARN_ONCE(1, "regmap API is disabled");
1976 static inline void regcache_mark_dirty(struct regmap *map)
1978 WARN_ONCE(1, "regmap API is disabled");
1981 static inline void regmap_async_complete(struct regmap *map)
1983 WARN_ONCE(1, "regmap API is disabled");
1986 static inline int regmap_register_patch(struct regmap *map,
1990 WARN_ONCE(1, "regmap API is disabled");
1994 static inline int regmap_parse_val(struct regmap *map, const void *buf,
1997 WARN_ONCE(1, "regmap API is disabled");
2001 static inline struct regmap *dev_get_regmap(struct device *dev,
2007 static inline struct device *regmap_get_device(struct regmap *map)
2009 WARN_ONCE(1, "regmap API is disabled");