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
278 * @disable_locking: This regmap is either protected by external means or
281 * @lock: Optional lock callback (overrides regmap's default lock
339 * regmap bus is used.
342 * regmap bus is used.
351 * @can_sleep: Optional, specifies whether regmap operations can sleep.
508 * @free_on_exit: kfree this on exit of regmap
536 struct regmap *__regmap_init(struct device *dev,
542 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
546 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev,
550 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
554 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
558 struct regmap *__regmap_init_spi(struct spi_device *dev,
562 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
566 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
570 struct regmap *__regmap_init_w1(struct device *w1_dev,
574 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
579 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
583 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
587 struct regmap *__regmap_init_sdw_mbq(struct sdw_slave *sdw,
591 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
596 struct regmap *__devm_regmap_init(struct device *dev,
602 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
606 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev,
610 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
614 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
618 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
622 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
626 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
630 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
636 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
640 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
644 struct regmap *__devm_regmap_init_sdw_mbq(struct sdw_slave *sdw,
648 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
652 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c,
656 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
691 * a struct regmap. This function should generally not be called
697 int regmap_attach_dev(struct device *dev, struct regmap *map,
707 * a struct regmap.
720 * a struct regmap.
733 * a struct regmap.
746 * a struct regmap.
759 * a struct regmap.
766 * regmap_init_spmi_base() - Create regmap for the Base register space
772 * a struct regmap.
779 * regmap_init_spmi_ext() - Create regmap for Ext register space
785 * a struct regmap.
798 * a struct regmap.
813 * a struct regmap.
827 * a struct regmap.
839 * a struct regmap.
853 * a struct regmap.
866 * a struct regmap.
880 * to a struct regmap.
895 * to a struct regmap. This function should generally not be called
910 * 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
938 * to a struct regmap. The regmap will be automatically freed by the
952 * to a struct regmap. The map will be automatically freed by the
960 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
966 * to a struct regmap. The regmap will be automatically freed by the
974 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
980 * to a struct regmap. The regmap will be automatically freed by the
994 * to a struct regmap. The regmap will be automatically freed by the
1009 * to a struct regmap. The regmap will be automatically freed by the
1024 * to a struct regmap. The regmap will be automatically freed by the
1037 * to a struct regmap. The regmap will be automatically freed by the
1051 * to a struct regmap. The regmap will be automatically freed by the
1065 * to a struct regmap. The regmap will be automatically freed by the
1079 * to a struct regmap. The regmap will be automatically freed by the
1093 * to a struct regmap. The regmap will be automatically freed by the
1108 * to a struct regmap. The map will be automatically freed by the
1115 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
1116 void regmap_mmio_detach_clk(struct regmap *map);
1117 void regmap_exit(struct regmap *map);
1118 int regmap_reinit_cache(struct regmap *map,
1120 struct regmap *dev_get_regmap(struct device *dev, const char *name);
1121 struct device *regmap_get_device(struct regmap *map);
1122 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
1123 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
1124 int regmap_raw_write(struct regmap *map, unsigned int reg,
1126 int regmap_noinc_write(struct regmap *map, unsigned int reg,
1128 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
1130 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
1132 int regmap_multi_reg_write_bypassed(struct regmap *map,
1135 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1137 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
1138 int regmap_raw_read(struct regmap *map, unsigned int reg,
1140 int regmap_noinc_read(struct regmap *map, unsigned int reg,
1142 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
1144 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1148 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1154 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1160 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1169 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1177 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1183 int regmap_get_val_bytes(struct regmap *map);
1184 int regmap_get_max_register(struct regmap *map);
1185 int regmap_get_reg_stride(struct regmap *map);
1186 int regmap_async_complete(struct regmap *map);
1187 bool regmap_can_raw_write(struct regmap *map);
1188 size_t regmap_get_raw_read_max(struct regmap *map);
1189 size_t regmap_get_raw_write_max(struct regmap *map);
1191 int regcache_sync(struct regmap *map);
1192 int regcache_sync_region(struct regmap *map, unsigned int min,
1194 int regcache_drop_region(struct regmap *map, unsigned int min,
1196 void regcache_cache_only(struct regmap *map, bool enable);
1197 void regcache_cache_bypass(struct regmap *map, bool enable);
1198 void regcache_mark_dirty(struct regmap *map);
1200 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1203 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1205 int regmap_parse_val(struct regmap *map, const void *buf,
1218 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1225 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1231 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1236 * @reg: Offset of the register within the regmap bank
1264 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1269 struct regmap *regmap, struct reg_field reg_field);
1272 int regmap_field_bulk_alloc(struct regmap *regmap,
1277 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1373 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1403 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1528 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1532 struct regmap *map, int irq,
1538 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1544 struct regmap *map, int irq,
1559 * regmap based facilities, if they ever get called at runtime
1561 * REGMAP.
1564 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write()
1567 WARN_ONCE(1, "regmap API is disabled"); in regmap_write()
1571 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async()
1574 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_async()
1578 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write()
1581 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write()
1585 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async()
1588 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write_async()
1592 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg, in regmap_noinc_write()
1595 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_write()
1599 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write()
1602 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_write()
1606 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read()
1609 WARN_ONCE(1, "regmap API is disabled"); in regmap_read()
1613 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read()
1616 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_read()
1620 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read()
1623 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_read()
1627 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read()
1630 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_read()
1634 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base()
1638 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_base()
1642 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1645 WARN_ONCE(1, "regmap API is disabled"); in regmap_set_bits()
1649 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1652 WARN_ONCE(1, "regmap API is disabled"); in regmap_clear_bits()
1656 static inline int regmap_test_bits(struct regmap *map, in regmap_test_bits()
1659 WARN_ONCE(1, "regmap API is disabled"); in regmap_test_bits()
1667 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits_base()
1676 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits_base()
1680 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1683 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits()
1687 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1690 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_async()
1694 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1698 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check()
1703 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1707 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check_async()
1711 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1714 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_bits()
1721 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_write()
1728 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_write()
1735 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits()
1743 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_update_bits()
1750 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_write()
1757 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_write()
1765 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits()
1773 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_update_bits()
1777 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes()
1779 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_val_bytes()
1783 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register()
1785 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_max_register()
1789 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride()
1791 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_reg_stride()
1795 static inline int regcache_sync(struct regmap *map) in regcache_sync()
1797 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync()
1801 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
1804 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync_region()
1808 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
1811 WARN_ONCE(1, "regmap API is disabled"); in regcache_drop_region()
1815 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
1817 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_only()
1820 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
1822 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_bypass()
1825 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
1827 WARN_ONCE(1, "regmap API is disabled"); in regcache_mark_dirty()
1830 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete()
1832 WARN_ONCE(1, "regmap API is disabled"); in regmap_async_complete()
1835 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch()
1839 WARN_ONCE(1, "regmap API is disabled"); in regmap_register_patch()
1843 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val()
1846 WARN_ONCE(1, "regmap API is disabled"); in regmap_parse_val()
1850 static inline struct regmap *dev_get_regmap(struct device *dev, in dev_get_regmap()
1856 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device()
1858 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_device()