Lines Matching full:regmap
33 struct regmap;
87 * @map: Regmap to read from
114 * @map: Regmap to read from
129 * Note: In general regmap cannot be used in atomic context. If you want to use
130 * this macro then first setup your regmap for atomic use (flat or no cache
131 * and MMIO regmap).
159 * @field: Regmap field to read from
209 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges"
211 * @no_ranges: pointer to an array of regmap ranges used as "no ranges"
232 * @name: Optional name of the regmap. Useful when a device has multiple
277 * @disable_locking: This regmap is either protected by external means or
280 * @lock: Optional lock callback (overrides regmap's default lock
334 * regmap bus is used.
337 * regmap bus is used.
345 * @can_sleep: Optional, specifies whether regmap operations can sleep.
526 struct regmap *__regmap_init(struct device *dev,
532 struct regmap *__regmap_init_i2c(struct i2c_client *i2c,
536 struct regmap *__regmap_init_sccb(struct i2c_client *i2c,
540 struct regmap *__regmap_init_slimbus(struct slim_device *slimbus,
544 struct regmap *__regmap_init_spi(struct spi_device *dev,
548 struct regmap *__regmap_init_spmi_base(struct spmi_device *dev,
552 struct regmap *__regmap_init_spmi_ext(struct spmi_device *dev,
556 struct regmap *__regmap_init_w1(struct device *w1_dev,
560 struct regmap *__regmap_init_mmio_clk(struct device *dev, const char *clk_id,
565 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97,
569 struct regmap *__regmap_init_sdw(struct sdw_slave *sdw,
573 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
578 struct regmap *__devm_regmap_init(struct device *dev,
584 struct regmap *__devm_regmap_init_i2c(struct i2c_client *i2c,
588 struct regmap *__devm_regmap_init_sccb(struct i2c_client *i2c,
592 struct regmap *__devm_regmap_init_spi(struct spi_device *dev,
596 struct regmap *__devm_regmap_init_spmi_base(struct spmi_device *dev,
600 struct regmap *__devm_regmap_init_spmi_ext(struct spmi_device *dev,
604 struct regmap *__devm_regmap_init_w1(struct device *w1_dev,
608 struct regmap *__devm_regmap_init_mmio_clk(struct device *dev,
614 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97,
618 struct regmap *__devm_regmap_init_sdw(struct sdw_slave *sdw,
622 struct regmap *__devm_regmap_init_slimbus(struct slim_device *slimbus,
626 struct regmap *__devm_regmap_init_i3c(struct i3c_device *i3c,
630 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
665 * a struct regmap. This function should generally not be called
671 int regmap_attach_dev(struct device *dev, struct regmap *map,
681 * a struct regmap.
694 * a struct regmap.
707 * a struct regmap.
720 * a struct regmap.
727 * regmap_init_spmi_base() - Create regmap for the Base register space
733 * a struct regmap.
740 * regmap_init_spmi_ext() - Create regmap for Ext register space
746 * a struct regmap.
759 * a struct regmap.
774 * a struct regmap.
788 * a struct regmap.
800 * a struct regmap.
814 * a struct regmap.
828 * to a struct regmap.
843 * to a struct regmap. This function should generally not be called
858 * to a struct regmap. The regmap will be automatically freed by the
872 * to a struct regmap. The regmap will be automatically freed by the
886 * to a struct regmap. The map will be automatically freed by the
894 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
900 * to a struct regmap. The regmap will be automatically freed by the
908 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
914 * to a struct regmap. The regmap will be automatically freed by the
928 * to a struct regmap. The regmap will be automatically freed by the
943 * to a struct regmap. The regmap will be automatically freed by the
958 * to a struct regmap. The regmap will be automatically freed by the
971 * to a struct regmap. The regmap will be automatically freed by the
985 * to a struct regmap. The regmap will be automatically freed by the
999 * to a struct regmap. The regmap will be automatically freed by the
1013 * 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
1035 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk);
1036 void regmap_mmio_detach_clk(struct regmap *map);
1037 void regmap_exit(struct regmap *map);
1038 int regmap_reinit_cache(struct regmap *map,
1040 struct regmap *dev_get_regmap(struct device *dev, const char *name);
1041 struct device *regmap_get_device(struct regmap *map);
1042 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val);
1043 int regmap_write_async(struct regmap *map, unsigned int reg, unsigned int val);
1044 int regmap_raw_write(struct regmap *map, unsigned int reg,
1046 int regmap_noinc_write(struct regmap *map, unsigned int reg,
1048 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
1050 int regmap_multi_reg_write(struct regmap *map, const struct reg_sequence *regs,
1052 int regmap_multi_reg_write_bypassed(struct regmap *map,
1055 int regmap_raw_write_async(struct regmap *map, unsigned int reg,
1057 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val);
1058 int regmap_raw_read(struct regmap *map, unsigned int reg,
1060 int regmap_noinc_read(struct regmap *map, unsigned int reg,
1062 int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
1064 int regmap_update_bits_base(struct regmap *map, unsigned int reg,
1068 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1074 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1080 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1089 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1097 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1103 int regmap_get_val_bytes(struct regmap *map);
1104 int regmap_get_max_register(struct regmap *map);
1105 int regmap_get_reg_stride(struct regmap *map);
1106 int regmap_async_complete(struct regmap *map);
1107 bool regmap_can_raw_write(struct regmap *map);
1108 size_t regmap_get_raw_read_max(struct regmap *map);
1109 size_t regmap_get_raw_write_max(struct regmap *map);
1111 int regcache_sync(struct regmap *map);
1112 int regcache_sync_region(struct regmap *map, unsigned int min,
1114 int regcache_drop_region(struct regmap *map, unsigned int min,
1116 void regcache_cache_only(struct regmap *map, bool enable);
1117 void regcache_cache_bypass(struct regmap *map, bool enable);
1118 void regcache_mark_dirty(struct regmap *map);
1120 bool regmap_check_range_table(struct regmap *map, unsigned int reg,
1123 int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
1125 int regmap_parse_val(struct regmap *map, const void *buf,
1138 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1145 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1151 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1156 * @reg: Offset of the register within the regmap bank
1184 struct regmap_field *regmap_field_alloc(struct regmap *regmap,
1189 struct regmap *regmap, struct reg_field reg_field);
1192 int regmap_field_bulk_alloc(struct regmap *regmap,
1197 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1292 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1322 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1429 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1433 struct regmap *map, int irq,
1439 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1445 struct regmap *map, int irq,
1460 * regmap based facilities, if they ever get called at runtime
1462 * REGMAP.
1465 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write()
1468 WARN_ONCE(1, "regmap API is disabled"); in regmap_write()
1472 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async()
1475 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_async()
1479 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write()
1482 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write()
1486 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async()
1489 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_write_async()
1493 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg, in regmap_noinc_write()
1496 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_write()
1500 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write()
1503 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_write()
1507 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read()
1510 WARN_ONCE(1, "regmap API is disabled"); in regmap_read()
1514 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read()
1517 WARN_ONCE(1, "regmap API is disabled"); in regmap_raw_read()
1521 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read()
1524 WARN_ONCE(1, "regmap API is disabled"); in regmap_noinc_read()
1528 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read()
1531 WARN_ONCE(1, "regmap API is disabled"); in regmap_bulk_read()
1535 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base()
1539 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_base()
1543 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits()
1546 WARN_ONCE(1, "regmap API is disabled"); in regmap_set_bits()
1550 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits()
1553 WARN_ONCE(1, "regmap API is disabled"); in regmap_clear_bits()
1557 static inline int regmap_test_bits(struct regmap *map, in regmap_test_bits()
1560 WARN_ONCE(1, "regmap API is disabled"); in regmap_test_bits()
1568 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits_base()
1577 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits_base()
1581 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits()
1584 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits()
1588 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async()
1591 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_async()
1595 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check()
1599 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check()
1604 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async()
1608 WARN_ONCE(1, "regmap API is disabled"); in regmap_update_bits_check_async()
1612 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits()
1615 WARN_ONCE(1, "regmap API is disabled"); in regmap_write_bits()
1622 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_write()
1629 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_write()
1636 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_update_bits()
1644 WARN_ONCE(1, "regmap API is disabled"); in regmap_field_force_update_bits()
1651 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_write()
1658 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_write()
1666 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_update_bits()
1674 WARN_ONCE(1, "regmap API is disabled"); in regmap_fields_force_update_bits()
1678 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes()
1680 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_val_bytes()
1684 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register()
1686 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_max_register()
1690 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride()
1692 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_reg_stride()
1696 static inline int regcache_sync(struct regmap *map) in regcache_sync()
1698 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync()
1702 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region()
1705 WARN_ONCE(1, "regmap API is disabled"); in regcache_sync_region()
1709 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region()
1712 WARN_ONCE(1, "regmap API is disabled"); in regcache_drop_region()
1716 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only()
1718 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_only()
1721 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass()
1723 WARN_ONCE(1, "regmap API is disabled"); in regcache_cache_bypass()
1726 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty()
1728 WARN_ONCE(1, "regmap API is disabled"); in regcache_mark_dirty()
1731 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete()
1733 WARN_ONCE(1, "regmap API is disabled"); in regmap_async_complete()
1736 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch()
1740 WARN_ONCE(1, "regmap API is disabled"); in regmap_register_patch()
1744 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val()
1747 WARN_ONCE(1, "regmap API is disabled"); in regmap_parse_val()
1751 static inline struct regmap *dev_get_regmap(struct device *dev, in dev_get_regmap()
1757 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device()
1759 WARN_ONCE(1, "regmap API is disabled"); in regmap_get_device()