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
335 * regmap bus is used.
338 * regmap bus is used.
346 * @can_sleep: Optional, specifies whether regmap operations can sleep.
533 struct regmap *__regmap_init(struct device *dev,
539 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
543 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
547 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
551 struct regmap *__regmap_init_spi(struct spi_device *dev,
555 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
559 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
563 struct regmap *__regmap_init_w1(struct device *w1_dev,
567 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
572 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
576 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
580 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
585 struct regmap *__devm_regmap_init(struct device *dev,
591 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
595 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
599 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
603 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
607 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
611 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
615 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
621 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
625 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
629 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
633 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c,
637 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
672 * a struct regmap. This function should generally not be called
678 int regmap_attach_dev(struct device *dev, struct regmap *map,
688 * a struct regmap.
701 * a struct regmap.
714 * a struct regmap.
727 * a struct regmap.
734 * regmap_init_spmi_base() - Create regmap for the Base register space
740 * a struct regmap.
747 * regmap_init_spmi_ext() - Create regmap for Ext register space
753 * a struct regmap.
766 * a struct regmap.
781 * a struct regmap.
795 * a struct regmap.
807 * a struct regmap.
821 * a struct regmap.
835 * to a struct regmap.
850 * to a struct regmap. This function should generally not be called
865 * to a struct regmap. The regmap will be automatically freed by the
879 * to a struct regmap. The regmap will be automatically freed by the
893 * to a struct regmap. The map will be automatically freed by the
901 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
907 * to a struct regmap. The regmap will be automatically freed by the
915 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
921 * to a struct regmap. The regmap will be automatically freed by the
935 * to a struct regmap. The regmap will be automatically freed by the
950 * 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
978 * to a struct regmap. The regmap will be automatically freed by the
992 * to a struct regmap. The regmap will be automatically freed by the
1006 * to a struct regmap. The regmap will be automatically freed by the
1020 * to a struct regmap. The regmap will be automatically freed by the
1035 * to a struct regmap. The map will be automatically freed by the
1042 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
1043 void regmap_mmio_detach_clk(struct regmap *map);
1044 void regmap_exit(struct regmap *map);
1045 int regmap_reinit_cache(struct regmap *map,
1047 struct regmap *dev_get_regmap(struct device *dev, const char *name);
1048 struct device *regmap_get_device(struct regmap *map);
1049 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
1050 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
1051 int regmap_raw_write(struct regmap *map, unsigned int reg,
1053 int regmap_noinc_write(struct regmap *map, unsigned int reg,
1055 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
1057 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
1059 int regmap_multi_reg_write_bypassed(struct regmap *map,
1062 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1064 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
1065 int regmap_raw_read(struct regmap *map, unsigned int reg,
1067 int regmap_noinc_read(struct regmap *map, unsigned int reg,
1069 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
1071 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1075 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1081 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1087 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1096 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1104 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1110 int regmap_get_val_bytes(struct regmap *map);
1111 int regmap_get_max_register(struct regmap *map);
1112 int regmap_get_reg_stride(struct regmap *map);
1113 int regmap_async_complete(struct regmap *map);
1114 bool regmap_can_raw_write(struct regmap *map);
1115 size_t regmap_get_raw_read_max(struct regmap *map);
1116 size_t regmap_get_raw_write_max(struct regmap *map);
1118 int regcache_sync(struct regmap *map);
1119 int regcache_sync_region(struct regmap *map, unsigned int min,
1121 int regcache_drop_region(struct regmap *map, unsigned int min,
1123 void regcache_cache_only(struct regmap *map, bool enable);
1124 void regcache_cache_bypass(struct regmap *map, bool enable);
1125 void regcache_mark_dirty(struct regmap *map);
1127 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1130 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1132 int regmap_parse_val(struct regmap *map, const void *buf,
1145 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1152 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1158 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1163 * @reg: Offset of the register within the regmap bank
1191 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1196 struct regmap *regmap, struct reg_field reg_field);
1199 int regmap_field_bulk_alloc(struct regmap *regmap,
1204 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1299 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1329 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1436 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1440 struct regmap *map, int irq,
1446 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1452 struct regmap *map, int irq,
1467 * regmap based facilities, if they ever get called at runtime
1469 * REGMAP.
1472 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write()
1475 WARN_ONCE(1, "regmap API is disabled"); in regmap_write()
1479 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async()
1482 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_async()
1486 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write()
1489 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write()
1493 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async()
1496 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write_async()
1500 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg, in regmap_noinc_write()
1503 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_write()
1507 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write()
1510 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_write()
1514 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read()
1517 WARN_ONCE(1, "regmap API is disabled"); in regmap_read()
1521 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read()
1524 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_read()
1528 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read()
1531 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_read()
1535 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read()
1538 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_read()
1542 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base()
1546 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_base()
1550 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1553 WARN_ONCE(1, "regmap API is disabled"); in regmap_set_bits()
1557 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1560 WARN_ONCE(1, "regmap API is disabled"); in regmap_clear_bits()
1564 static inline int regmap_test_bits(struct regmap *map, in regmap_test_bits()
1567 WARN_ONCE(1, "regmap API is disabled"); in regmap_test_bits()
1575 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits_base()
1584 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits_base()
1588 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1591 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits()
1595 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1598 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_async()
1602 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1606 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check()
1611 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1615 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check_async()
1619 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1622 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_bits()
1629 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_write()
1636 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_write()
1643 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits()
1651 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_update_bits()
1658 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_write()
1665 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_write()
1673 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits()
1681 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_update_bits()
1685 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes()
1687 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_val_bytes()
1691 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register()
1693 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_max_register()
1697 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride()
1699 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_reg_stride()
1703 static inline int regcache_sync(struct regmap *map) in regcache_sync()
1705 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync()
1709 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
1712 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync_region()
1716 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
1719 WARN_ONCE(1, "regmap API is disabled"); in regcache_drop_region()
1723 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
1725 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_only()
1728 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
1730 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_bypass()
1733 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
1735 WARN_ONCE(1, "regmap API is disabled"); in regcache_mark_dirty()
1738 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete()
1740 WARN_ONCE(1, "regmap API is disabled"); in regmap_async_complete()
1743 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch()
1747 WARN_ONCE(1, "regmap API is disabled"); in regmap_register_patch()
1751 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val()
1754 WARN_ONCE(1, "regmap API is disabled"); in regmap_parse_val()
1758 static inline struct regmap *dev_get_regmap(struct device *dev, in dev_get_regmap()
1764 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device()
1766 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_device()