Lines Matching full:regmap

35 struct regmap;
50 * regmap.reg_shift indicates by how much we must shift registers prior to
112 * @map: Regmap to read from
139 * @map: Regmap to read from
150 * Note: In general regmap cannot be used in atomic context. If you want to use
151 * this macro then first setup your regmap for atomic use (flat or no cache
152 * and MMIO regmap).
184 * @field: Regmap field to read from
234 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges"
236 * @no_ranges: pointer to an array of regmap ranges used as "no ranges"
257 * @name: Optional name of the regmap. Useful when a device has multiple
324 * @can_sleep: Optional, specifies whether regmap operations can sleep.
333 * @disable_locking: This regmap is either protected by external means or
336 * @lock: Optional lock callback (overrides regmap's default lock
345 * apply handling of @max_register for regmap that contains
391 * regmap bus is used.
394 * regmap bus is used.
570 * @free_on_exit: kfree this on exit of regmap
628 struct regmap *__regmap_init(struct device *dev,
634 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
638 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev,
642 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
646 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
650 struct regmap *__regmap_init_spi(struct spi_device *dev,
654 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
658 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
662 struct regmap *__regmap_init_w1(struct device *w1_dev,
666 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
671 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
675 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
679 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw,
684 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
688 struct regmap *__regmap_init_fsi(struct fsi_device *fsi_dev,
693 struct regmap *__devm_regmap_init(struct device *dev,
699 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
703 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev,
707 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
711 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
715 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
719 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
723 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
727 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
733 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
737 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
741 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw,
746 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
750 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c,
754 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
758 struct regmap *__devm_regmap_init_fsi(struct fsi_device *fsi_dev,
794 * a struct regmap. This function should generally not be called
800 int regmap_attach_dev(struct device *dev, struct regmap *map,
810 * a struct regmap.
823 * a struct regmap.
836 * a struct regmap.
849 * a struct regmap.
862 * a struct regmap.
869 * regmap_init_spmi_base() - Create regmap for the Base register space
875 * a struct regmap.
882 * regmap_init_spmi_ext() - Create regmap for Ext register space
888 * a struct regmap.
901 * a struct regmap.
916 * a struct regmap.
930 * a struct regmap.
942 * a struct regmap.
956 * a struct regmap.
969 * a struct regmap.
983 * to a struct regmap. The regmap will be automatically freed by the
998 * to a struct regmap.
1011 * a struct regmap.
1026 * to a struct regmap. This function should generally not be called
1041 * to a struct regmap. The regmap will be automatically freed by the
1055 * to a struct regmap. The regmap will be automatically freed by the
1069 * to a struct regmap. The regmap will be automatically freed by the
1083 * to a struct regmap. The map will be automatically freed by the
1091 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
1097 * to a struct regmap. The regmap will be automatically freed by the
1105 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
1111 * to a struct regmap. The regmap will be automatically freed by the
1125 * to a struct regmap. The regmap will be automatically freed by the
1140 * 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
1168 * to a struct regmap. The regmap will be automatically freed by the
1182 * to a struct regmap. The regmap will be automatically freed by the
1196 * to a struct regmap. The regmap will be automatically freed by the
1211 * to a struct regmap. The regmap will be automatically freed by the
1225 * to a struct regmap. The regmap will be automatically freed by the
1239 * to a struct regmap. The regmap will be automatically freed by the
1254 * to a struct regmap. The map will be automatically freed by the
1268 * to a struct regmap. The regmap will be automatically freed by the
1275 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
1276 void regmap_mmio_detach_clk(struct regmap *map);
1277 void regmap_exit(struct regmap *map);
1278 int regmap_reinit_cache(struct regmap *map,
1280 struct regmap *dev_get_regmap(struct device *dev, const char *name);
1281 struct device *regmap_get_device(struct regmap *map);
1282 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
1283 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
1284 int regmap_raw_write(struct regmap *map, unsigned int reg,
1286 int regmap_noinc_write(struct regmap *map, unsigned int reg,
1288 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
1290 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
1292 int regmap_multi_reg_write_bypassed(struct regmap *map,
1295 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1297 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
1298 int regmap_read_bypassed(struct regmap *map, unsigned int reg, unsigned int *val);
1299 int regmap_raw_read(struct regmap *map, unsigned int reg,
1301 int regmap_noinc_read(struct regmap *map, unsigned int reg,
1303 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
1305 int regmap_multi_reg_read(struct regmap *map, const unsigned int *reg, void *val,
1307 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1311 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1317 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1323 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1332 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1340 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1346 int regmap_get_val_bytes(struct regmap *map);
1347 int regmap_get_max_register(struct regmap *map);
1348 int regmap_get_reg_stride(struct regmap *map);
1349 bool regmap_might_sleep(struct regmap *map);
1350 int regmap_async_complete(struct regmap *map);
1351 bool regmap_can_raw_write(struct regmap *map);
1352 size_t regmap_get_raw_read_max(struct regmap *map);
1353 size_t regmap_get_raw_write_max(struct regmap *map);
1355 int regcache_sync(struct regmap *map);
1356 int regcache_sync_region(struct regmap *map, unsigned int min,
1358 int regcache_drop_region(struct regmap *map, unsigned int min,
1360 void regcache_cache_only(struct regmap *map, bool enable);
1361 void regcache_cache_bypass(struct regmap *map, bool enable);
1362 void regcache_mark_dirty(struct regmap *map);
1363 bool regcache_reg_cached(struct regmap *map, unsigned int reg);
1365 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1368 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1370 int regmap_parse_val(struct regmap *map, const void *buf,
1383 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1390 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1396 static inline int regmap_assign_bits(struct regmap *map, unsigned int reg, in regmap_assign_bits()
1405 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1410 * @reg: Offset of the register within the regmap bank
1438 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1443 struct regmap *regmap, struct reg_field reg_field);
1446 int regmap_field_bulk_alloc(struct regmap *regmap,
1451 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1563 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1595 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1599 * when multiple regmap-IRQ controllers are created from same
1738 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1742 struct regmap *map, int irq,
1748 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1754 struct regmap *map, int irq,
1769 * regmap based facilities, if they ever get called at runtime
1771 * REGMAP.
1774 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write()
1777 WARN_ONCE(1, "regmap API is disabled"); in regmap_write()
1781 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async()
1784 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_async()
1788 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write()
1791 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write()
1795 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async()
1798 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write_async()
1802 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg, in regmap_noinc_write()
1805 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_write()
1809 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write()
1812 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_write()
1816 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read()
1819 WARN_ONCE(1, "regmap API is disabled"); in regmap_read()
1823 static inline int regmap_read_bypassed(struct regmap *map, unsigned int reg, in regmap_read_bypassed()
1826 WARN_ONCE(1, "regmap API is disabled"); in regmap_read_bypassed()
1830 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read()
1833 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_read()
1837 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read()
1840 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_read()
1844 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read()
1847 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_read()
1851 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base()
1855 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_base()
1859 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1862 WARN_ONCE(1, "regmap API is disabled"); in regmap_set_bits()
1866 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1869 WARN_ONCE(1, "regmap API is disabled"); in regmap_clear_bits()
1873 static inline int regmap_assign_bits(struct regmap *map, unsigned int reg, in regmap_assign_bits()
1876 WARN_ONCE(1, "regmap API is disabled"); in regmap_assign_bits()
1880 static inline int regmap_test_bits(struct regmap *map, in regmap_test_bits()
1883 WARN_ONCE(1, "regmap API is disabled"); in regmap_test_bits()
1891 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits_base()
1900 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits_base()
1904 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1907 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits()
1911 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1914 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_async()
1918 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1922 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check()
1927 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1931 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check_async()
1935 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1938 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_bits()
1945 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_write()
1952 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_write()
1959 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits()
1967 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_update_bits()
1974 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_set_bits()
1981 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_clear_bits()
1988 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_test_bits()
1995 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_write()
2002 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_write()
2010 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits()
2018 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_update_bits()
2022 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes()
2024 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_val_bytes()
2028 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register()
2030 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_max_register()
2034 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride()
2036 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_reg_stride()
2040 static inline bool regmap_might_sleep(struct regmap *map) in regmap_might_sleep()
2042 WARN_ONCE(1, "regmap API is disabled"); in regmap_might_sleep()
2046 static inline int regcache_sync(struct regmap *map) in regcache_sync()
2048 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync()
2052 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
2055 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync_region()
2059 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
2062 WARN_ONCE(1, "regmap API is disabled"); in regcache_drop_region()
2066 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
2068 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_only()
2071 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
2073 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_bypass()
2076 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
2078 WARN_ONCE(1, "regmap API is disabled"); in regcache_mark_dirty()
2081 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete()
2083 WARN_ONCE(1, "regmap API is disabled"); in regmap_async_complete()
2086 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch()
2090 WARN_ONCE(1, "regmap API is disabled"); in regmap_register_patch()
2094 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val()
2097 WARN_ONCE(1, "regmap API is disabled"); in regmap_parse_val()
2101 static inline struct regmap *dev_get_regmap(struct device *dev, in dev_get_regmap()
2107 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device()
2109 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_device()