Lines Matching +full:int +full:- +full:map +full:- +full:mask

1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Register map access API
54 #define REGMAP_UPSHIFT(s) (-(s))
66 * struct reg_default - Default value for a register.
75 unsigned int reg;
76 unsigned int def;
80 * struct reg_sequence - An individual write from a sequence of writes.
90 unsigned int reg;
91 unsigned int def;
92 unsigned int delay_us;
103 * regmap_read_poll_timeout - Poll until a condition is met or a timeout occurs
105 * @map: Regmap to read from
110 * tight-loops). Should be less than ~20ms since usleep_range
111 * is used (see Documentation/timers/timers-howto.rst).
114 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
121 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ argument
123 int __ret, __tmp; \
125 sleep_us, timeout_us, false, (map), (addr), &(val)); \
130 * regmap_read_poll_timeout_atomic - Poll until a condition is met or a timeout occurs
132 * @map: Regmap to read from
136 * @delay_us: Time to udelay between reads in us (0 tight-loops).
138 * (see Documentation/timers/timers-howto.rst).
141 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
151 #define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \ argument
156 int __ret; \
158 __ret = regmap_read((map), (addr), &(val)); \
165 __ret = regmap_read((map), (addr), &(val)); \
171 __ret ?: ((cond) ? 0 : -ETIMEDOUT); \
175 * regmap_field_read_poll_timeout - Poll until a condition is met or timeout
181 * tight-loops). Should be less than ~20ms since usleep_range
182 * is used (see Documentation/timers/timers-howto.rst).
185 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_field_read
194 int __ret, __tmp; \
203 /* Unspecified -> 0 -> Backwards compatible default */
211 * struct regmap_range - A register range, used for access related checks
218 unsigned int range_min;
219 unsigned int range_max;
225 * struct regmap_access_table - A table of register ranges for access checks
239 unsigned int n_yes_ranges;
241 unsigned int n_no_ranges;
248 * struct regmap_config - Configuration for the register map of a device.
331 * Use it only for "no-bus" cases.
346 * @read_flag_mask: Mask to be set in the top bytes of the register when doing
348 * @write_flag_mask: Mask to be set in the top bytes of the register when doing
391 int reg_bits;
392 int reg_stride;
393 int reg_shift;
394 unsigned int reg_base;
395 int pad_bits;
396 int val_bits;
398 bool (*writeable_reg)(struct device *dev, unsigned int reg);
399 bool (*readable_reg)(struct device *dev, unsigned int reg);
400 bool (*volatile_reg)(struct device *dev, unsigned int reg);
401 bool (*precious_reg)(struct device *dev, unsigned int reg);
402 bool (*writeable_noinc_reg)(struct device *dev, unsigned int reg);
403 bool (*readable_noinc_reg)(struct device *dev, unsigned int reg);
410 int (*reg_read)(void *context, unsigned int reg, unsigned int *val);
411 int (*reg_write)(void *context, unsigned int reg, unsigned int val);
412 int (*reg_update_bits)(void *context, unsigned int reg,
413 unsigned int mask, unsigned int val);
415 int (*read)(void *context, const void *reg_buf, size_t reg_size,
417 int (*write)(void *context, const void *data, size_t count);
424 unsigned int max_register;
432 unsigned int num_reg_defaults;
435 unsigned int num_reg_defaults_raw;
450 unsigned int num_ranges;
454 unsigned int hwlock_id;
455 unsigned int hwlock_mode;
461 * struct regmap_range_cfg - Configuration for indirectly accessed or paged
470 * @selector_mask: Bit mask for selector value.
484 unsigned int range_min;
485 unsigned int range_max;
488 unsigned int selector_reg;
489 unsigned int selector_mask;
490 int selector_shift;
493 unsigned int window_start;
494 unsigned int window_len;
499 typedef int (*regmap_hw_write)(void *context, const void *data,
501 typedef int (*regmap_hw_gather_write)(void *context,
504 typedef int (*regmap_hw_async_write)(void *context,
508 typedef int (*regmap_hw_read)(void *context,
511 typedef int (*regmap_hw_reg_read)(void *context, unsigned int reg,
512 unsigned int *val);
513 typedef int (*regmap_hw_reg_noinc_read)(void *context, unsigned int reg,
515 typedef int (*regmap_hw_reg_write)(void *context, unsigned int reg,
516 unsigned int val);
517 typedef int (*regmap_hw_reg_noinc_write)(void *context, unsigned int reg,
519 typedef int (*regmap_hw_reg_update_bits)(void *context, unsigned int reg,
520 unsigned int mask, unsigned int val);
525 * struct regmap_bus - Description of a hardware bus for the register map
534 * @gather_write: Write operation with split register/value, return -ENOTSUPP
537 * must serialise with respect to non-async I/O.
551 * @read_flag_mask: Mask to be set in the top byte of the register when doing
725 * for each call. No-op if CONFIG_LOCKDEP is not set.
738 "(" name ")->lock"); \
746 * regmap_init() - Initialise register map
749 * @bus: Bus-specific callbacks to use with device
750 * @bus_context: Data passed to bus-specific callbacks
751 * @config: Configuration for register map
755 * directly, it should be called by bus-specific init functions.
760 int regmap_attach_dev(struct device *dev, struct regmap *map,
764 * regmap_init_i2c() - Initialise register map
767 * @config: Configuration for register map
777 * regmap_init_mdio() - Initialise register map
780 * @config: Configuration for register map
790 * regmap_init_sccb() - Initialise register map
793 * @config: Configuration for register map
803 * regmap_init_slimbus() - Initialise register map
806 * @config: Configuration for register map
816 * regmap_init_spi() - Initialise register map
819 * @config: Configuration for register map
829 * regmap_init_spmi_base() - Create regmap for the Base register space
832 * @config: Configuration for register map
842 * regmap_init_spmi_ext() - Create regmap for Ext register space
845 * @config: Configuration for register map
855 * regmap_init_w1() - Initialise register map
858 * @config: Configuration for register map
868 * regmap_init_mmio_clk() - Initialise register map with register clock
872 * @regs: Pointer to memory-mapped IO region
873 * @config: Configuration for register map
883 * regmap_init_mmio() - Initialise register map
886 * @regs: Pointer to memory-mapped IO region
887 * @config: Configuration for register map
896 * regmap_init_ac97() - Initialise AC'97 register map
899 * @config: Configuration for register map
907 bool regmap_ac97_default_volatile(struct device *dev, unsigned int reg);
910 * regmap_init_sdw() - Initialise register map
913 * @config: Configuration for register map
923 * regmap_init_sdw_mbq() - Initialise register map
926 * @config: Configuration for register map
936 * regmap_init_spi_avmm() - Initialize register map for Intel SPI Slave
940 * @config: Configuration for register map
950 * regmap_init_fsi() - Initialise register map
953 * @config: Configuration for register map
963 * devm_regmap_init() - Initialise managed register map
966 * @bus: Bus-specific callbacks to use with device
967 * @bus_context: Data passed to bus-specific callbacks
968 * @config: Configuration for register map
972 * directly, it should be called by bus-specific init functions. The
973 * map will be automatically freed by the device management code.
980 * devm_regmap_init_i2c() - Initialise managed register map
983 * @config: Configuration for register map
994 * devm_regmap_init_mdio() - Initialise managed register map
997 * @config: Configuration for register map
1008 * devm_regmap_init_sccb() - Initialise managed register map
1011 * @config: Configuration for register map
1022 * devm_regmap_init_spi() - Initialise register map
1025 * @config: Configuration for register map
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
1039 * @config: Configuration for register map
1050 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
1053 * @config: Configuration for register map
1064 * devm_regmap_init_w1() - Initialise managed register map
1067 * @config: Configuration for register map
1077 * devm_regmap_init_mmio_clk() - Initialise managed register map with clock
1081 * @regs: Pointer to memory-mapped IO region
1082 * @config: Configuration for register map
1093 * devm_regmap_init_mmio() - Initialise managed register map
1096 * @regs: Pointer to memory-mapped IO region
1097 * @config: Configuration for register map
1107 * devm_regmap_init_ac97() - Initialise AC'97 register map
1110 * @config: Configuration for register map
1121 * devm_regmap_init_sdw() - Initialise managed register map
1124 * @config: Configuration for register map
1135 * devm_regmap_init_sdw_mbq() - Initialise managed register map
1138 * @config: Configuration for register map
1149 * devm_regmap_init_slimbus() - Initialise managed register map
1152 * @config: Configuration for register map
1163 * devm_regmap_init_i3c() - Initialise managed register map
1166 * @config: Configuration for register map
1177 * devm_regmap_init_spi_avmm() - Initialize register map for Intel SPI Slave
1181 * @config: Configuration for register map
1184 * to a struct regmap. The map will be automatically freed by the
1192 * devm_regmap_init_fsi() - Initialise managed register map
1195 * @config: Configuration for register map
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,
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,
1221 int num_regs);
1222 int regmap_multi_reg_write_bypassed(struct regmap *map,
1224 int num_regs);
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,
1235 unsigned int mask, unsigned int val,
1238 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits() argument
1239 unsigned int mask, unsigned int val) in regmap_update_bits() argument
1241 return regmap_update_bits_base(map, reg, mask, val, NULL, false, false); in regmap_update_bits()
1244 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async() argument
1245 unsigned int mask, unsigned int val) in regmap_update_bits_async() argument
1247 return regmap_update_bits_base(map, reg, mask, val, NULL, true, false); in regmap_update_bits_async()
1250 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check() argument
1251 unsigned int mask, unsigned int val, in regmap_update_bits_check() argument
1254 return regmap_update_bits_base(map, reg, mask, val, in regmap_update_bits_check()
1258 static inline int
1259 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async() argument
1260 unsigned int mask, unsigned int val, in regmap_update_bits_check_async() argument
1263 return regmap_update_bits_base(map, reg, mask, val, in regmap_update_bits_check_async()
1267 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits() argument
1268 unsigned int mask, unsigned int val) in regmap_write_bits() argument
1270 return regmap_update_bits_base(map, reg, mask, val, NULL, false, true); in regmap_write_bits()
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,
1284 unsigned int max);
1285 int regcache_drop_region(struct regmap *map, unsigned int min,
1286 unsigned int max);
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,
1296 int num_regs);
1297 int regmap_parse_val(struct regmap *map, const void *buf,
1298 unsigned int *val);
1300 static inline bool regmap_reg_in_range(unsigned int reg, in regmap_reg_in_range()
1303 return reg >= range->range_min && reg <= range->range_max; in regmap_reg_in_range()
1306 bool regmap_reg_in_ranges(unsigned int reg,
1308 unsigned int nranges);
1310 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits() argument
1311 unsigned int reg, unsigned int bits) in regmap_set_bits()
1313 return regmap_update_bits_base(map, reg, bits, bits, in regmap_set_bits()
1317 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits() argument
1318 unsigned int reg, unsigned int bits) in regmap_clear_bits()
1320 return regmap_update_bits_base(map, reg, bits, 0, NULL, false, false); in regmap_clear_bits()
1323 int regmap_test_bits(struct regmap *map, unsigned int reg, unsigned int bits);
1326 * struct reg_field - Description of an register field
1335 unsigned int reg;
1336 unsigned int lsb;
1337 unsigned int msb;
1338 unsigned int id_size;
1339 unsigned int id_offset;
1364 int regmap_field_bulk_alloc(struct regmap *regmap,
1367 int num_fields);
1369 int devm_regmap_field_bulk_alloc(struct device *dev, struct regmap *regmap,
1372 int num_fields);
1376 int regmap_field_read(struct regmap_field *field, unsigned int *val);
1377 int regmap_field_update_bits_base(struct regmap_field *field,
1378 unsigned int mask, unsigned int val,
1380 int regmap_fields_read(struct regmap_field *field, unsigned int id,
1381 unsigned int *val);
1382 int regmap_fields_update_bits_base(struct regmap_field *field, unsigned int id,
1383 unsigned int mask, unsigned int val,
1386 static inline int regmap_field_write(struct regmap_field *field, in regmap_field_write()
1387 unsigned int val) in regmap_field_write()
1393 static inline int regmap_field_force_write(struct regmap_field *field, in regmap_field_force_write()
1394 unsigned int val) in regmap_field_force_write()
1399 static inline int regmap_field_update_bits(struct regmap_field *field, in regmap_field_update_bits()
1400 unsigned int mask, unsigned int val) in regmap_field_update_bits() argument
1402 return regmap_field_update_bits_base(field, mask, val, in regmap_field_update_bits()
1406 static inline int regmap_field_set_bits(struct regmap_field *field, in regmap_field_set_bits()
1407 unsigned int bits) in regmap_field_set_bits()
1413 static inline int regmap_field_clear_bits(struct regmap_field *field, in regmap_field_clear_bits()
1414 unsigned int bits) in regmap_field_clear_bits()
1420 int regmap_field_test_bits(struct regmap_field *field, unsigned int bits);
1422 static inline int
1424 unsigned int mask, unsigned int val) in regmap_field_force_update_bits() argument
1426 return regmap_field_update_bits_base(field, mask, val, in regmap_field_force_update_bits()
1430 static inline int regmap_fields_write(struct regmap_field *field, in regmap_fields_write()
1431 unsigned int id, unsigned int val) in regmap_fields_write()
1437 static inline int regmap_fields_force_write(struct regmap_field *field, in regmap_fields_force_write()
1438 unsigned int id, unsigned int val) in regmap_fields_force_write()
1444 static inline int
1445 regmap_fields_update_bits(struct regmap_field *field, unsigned int id, in regmap_fields_update_bits()
1446 unsigned int mask, unsigned int val) in regmap_fields_update_bits() argument
1448 return regmap_fields_update_bits_base(field, id, mask, val, in regmap_fields_update_bits()
1452 static inline int
1453 regmap_fields_force_update_bits(struct regmap_field *field, unsigned int id, in regmap_fields_force_update_bits()
1454 unsigned int mask, unsigned int val) in regmap_fields_force_update_bits() argument
1456 return regmap_fields_update_bits_base(field, id, mask, val, in regmap_fields_force_update_bits()
1461 * struct regmap_irq_type - IRQ type definitions.
1471 unsigned int type_reg_offset;
1472 unsigned int type_reg_mask;
1473 unsigned int type_rising_val;
1474 unsigned int type_falling_val;
1475 unsigned int type_level_low_val;
1476 unsigned int type_level_high_val;
1477 unsigned int types_supported;
1481 * struct regmap_irq - Description of an IRQ for the generic regmap irq_chip.
1483 * @reg_offset: Offset of the status/mask register within the bank
1484 * @mask: Mask used to flag/control the register.
1488 unsigned int reg_offset;
1489 unsigned int mask; member
1494 [_irq] = { .reg_offset = (_off), .mask = (_mask) }
1498 .mask = BIT((_id) % (_reg_bits)), \
1506 unsigned int num_regs;
1507 unsigned int *offset;
1513 * struct regmap_irq_chip - Description of a generic regmap irq_chip.
1518 * interrupts arranged in separate sub-irq blocks with own IRQ
1520 * sub-irq blocks with unhandled interrupts. For such chips fill
1521 * sub-irq register information in status_base, mask_base and
1531 * 1.st bit to 1.st sub-reg, 2.nd bit to 2.nd sub-reg, ...
1536 * @mask_base: Base mask register address. Mask bits are set to 1 when an
1546 * @mask_unmask_non_inverted: Controls mask bit inversion for chips that set
1547 * both @mask_base and @unmask_base. If false, mask and unmask bits are
1556 * @clear_ack: Use this to set 1 and 0 or vice-versa to clear interrupts.
1559 * @type_in_mask: Use the mask registers for controlling irq type. Use this if
1563 * to define the mask bit for each irq type.
1582 * @handle_mask_sync: Callback used to handle IRQ mask syncs. The index will be
1602 unsigned int main_status;
1603 unsigned int num_main_status_bits;
1605 int num_main_regs;
1607 unsigned int status_base;
1608 unsigned int mask_base;
1609 unsigned int unmask_base;
1610 unsigned int ack_base;
1611 unsigned int wake_base;
1612 const unsigned int *config_base;
1613 unsigned int irq_reg_stride;
1614 unsigned int init_ack_masked:1;
1615 unsigned int mask_unmask_non_inverted:1;
1616 unsigned int use_ack:1;
1617 unsigned int ack_invert:1;
1618 unsigned int clear_ack:1;
1619 unsigned int status_invert:1;
1620 unsigned int wake_invert:1;
1621 unsigned int type_in_mask:1;
1622 unsigned int clear_on_unmask:1;
1623 unsigned int runtime_pm:1;
1624 unsigned int no_status:1;
1626 int num_regs;
1629 int num_irqs;
1631 int num_config_bases;
1632 int num_config_regs;
1634 int (*handle_pre_irq)(void *irq_drv_data);
1635 int (*handle_post_irq)(void *irq_drv_data);
1636 int (*handle_mask_sync)(int index, unsigned int mask_buf_def,
1637 unsigned int mask_buf, void *irq_drv_data);
1638 int (*set_type_config)(unsigned int **buf, unsigned int type,
1639 const struct regmap_irq *irq_data, int idx,
1641 unsigned int (*get_irq_reg)(struct regmap_irq_chip_data *data,
1642 unsigned int base, int index);
1646 unsigned int regmap_irq_get_irq_reg_linear(struct regmap_irq_chip_data *data,
1647 unsigned int base, int index);
1648 int regmap_irq_set_type_config_simple(unsigned int **buf, unsigned int type,
1650 int idx, void *irq_drv_data);
1652 int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
1653 int irq_base, const struct regmap_irq_chip *chip,
1655 int regmap_add_irq_chip_fwnode(struct fwnode_handle *fwnode,
1656 struct regmap *map, int irq,
1657 int irq_flags, int irq_base,
1660 void regmap_del_irq_chip(int irq, struct regmap_irq_chip_data *data);
1662 int devm_regmap_add_irq_chip(struct device *dev, struct regmap *map, int irq,
1663 int irq_flags, int irq_base,
1666 int devm_regmap_add_irq_chip_fwnode(struct device *dev,
1668 struct regmap *map, int irq,
1669 int irq_flags, int irq_base,
1672 void devm_regmap_del_irq_chip(struct device *dev, int irq,
1675 int regmap_irq_chip_get_base(struct regmap_irq_chip_data *data);
1676 int regmap_irq_get_virq(struct regmap_irq_chip_data *data, int irq);
1688 static inline int regmap_write(struct regmap *map, unsigned int reg, in regmap_write() argument
1689 unsigned int val) in regmap_write()
1692 return -EINVAL; in regmap_write()
1695 static inline int regmap_write_async(struct regmap *map, unsigned int reg, in regmap_write_async() argument
1696 unsigned int val) in regmap_write_async()
1699 return -EINVAL; in regmap_write_async()
1702 static inline int regmap_raw_write(struct regmap *map, unsigned int reg, in regmap_raw_write() argument
1706 return -EINVAL; in regmap_raw_write()
1709 static inline int regmap_raw_write_async(struct regmap *map, unsigned int reg, in regmap_raw_write_async() argument
1713 return -EINVAL; in regmap_raw_write_async()
1716 static inline int regmap_noinc_write(struct regmap *map, unsigned int reg, in regmap_noinc_write() argument
1720 return -EINVAL; in regmap_noinc_write()
1723 static inline int regmap_bulk_write(struct regmap *map, unsigned int reg, in regmap_bulk_write() argument
1727 return -EINVAL; in regmap_bulk_write()
1730 static inline int regmap_read(struct regmap *map, unsigned int reg, in regmap_read() argument
1731 unsigned int *val) in regmap_read()
1734 return -EINVAL; in regmap_read()
1737 static inline int regmap_raw_read(struct regmap *map, unsigned int reg, in regmap_raw_read() argument
1741 return -EINVAL; in regmap_raw_read()
1744 static inline int regmap_noinc_read(struct regmap *map, unsigned int reg, in regmap_noinc_read() argument
1748 return -EINVAL; in regmap_noinc_read()
1751 static inline int regmap_bulk_read(struct regmap *map, unsigned int reg, in regmap_bulk_read() argument
1755 return -EINVAL; in regmap_bulk_read()
1758 static inline int regmap_update_bits_base(struct regmap *map, unsigned int reg, in regmap_update_bits_base() argument
1759 unsigned int mask, unsigned int val, in regmap_update_bits_base() argument
1763 return -EINVAL; in regmap_update_bits_base()
1766 static inline int regmap_set_bits(struct regmap *map, in regmap_set_bits() argument
1767 unsigned int reg, unsigned int bits) in regmap_set_bits()
1770 return -EINVAL; in regmap_set_bits()
1773 static inline int regmap_clear_bits(struct regmap *map, in regmap_clear_bits() argument
1774 unsigned int reg, unsigned int bits) in regmap_clear_bits()
1777 return -EINVAL; in regmap_clear_bits()
1780 static inline int regmap_test_bits(struct regmap *map, in regmap_test_bits() argument
1781 unsigned int reg, unsigned int bits) in regmap_test_bits()
1784 return -EINVAL; in regmap_test_bits()
1787 static inline int regmap_field_update_bits_base(struct regmap_field *field, in regmap_field_update_bits_base()
1788 unsigned int mask, unsigned int val, in regmap_field_update_bits_base() argument
1792 return -EINVAL; in regmap_field_update_bits_base()
1795 static inline int regmap_fields_update_bits_base(struct regmap_field *field, in regmap_fields_update_bits_base()
1796 unsigned int id, in regmap_fields_update_bits_base()
1797 unsigned int mask, unsigned int val, in regmap_fields_update_bits_base() argument
1801 return -EINVAL; in regmap_fields_update_bits_base()
1804 static inline int regmap_update_bits(struct regmap *map, unsigned int reg, in regmap_update_bits() argument
1805 unsigned int mask, unsigned int val) in regmap_update_bits() argument
1808 return -EINVAL; in regmap_update_bits()
1811 static inline int regmap_update_bits_async(struct regmap *map, unsigned int reg, in regmap_update_bits_async() argument
1812 unsigned int mask, unsigned int val) in regmap_update_bits_async() argument
1815 return -EINVAL; in regmap_update_bits_async()
1818 static inline int regmap_update_bits_check(struct regmap *map, unsigned int reg, in regmap_update_bits_check() argument
1819 unsigned int mask, unsigned int val, in regmap_update_bits_check() argument
1823 return -EINVAL; in regmap_update_bits_check()
1826 static inline int
1827 regmap_update_bits_check_async(struct regmap *map, unsigned int reg, in regmap_update_bits_check_async() argument
1828 unsigned int mask, unsigned int val, in regmap_update_bits_check_async() argument
1832 return -EINVAL; in regmap_update_bits_check_async()
1835 static inline int regmap_write_bits(struct regmap *map, unsigned int reg, in regmap_write_bits() argument
1836 unsigned int mask, unsigned int val) in regmap_write_bits() argument
1839 return -EINVAL; in regmap_write_bits()
1842 static inline int regmap_field_write(struct regmap_field *field, in regmap_field_write()
1843 unsigned int val) in regmap_field_write()
1846 return -EINVAL; in regmap_field_write()
1849 static inline int regmap_field_force_write(struct regmap_field *field, in regmap_field_force_write()
1850 unsigned int val) in regmap_field_force_write()
1853 return -EINVAL; in regmap_field_force_write()
1856 static inline int regmap_field_update_bits(struct regmap_field *field, in regmap_field_update_bits()
1857 unsigned int mask, unsigned int val) in regmap_field_update_bits() argument
1860 return -EINVAL; in regmap_field_update_bits()
1863 static inline int
1865 unsigned int mask, unsigned int val) in regmap_field_force_update_bits() argument
1868 return -EINVAL; in regmap_field_force_update_bits()
1871 static inline int regmap_field_set_bits(struct regmap_field *field, in regmap_field_set_bits()
1872 unsigned int bits) in regmap_field_set_bits()
1875 return -EINVAL; in regmap_field_set_bits()
1878 static inline int regmap_field_clear_bits(struct regmap_field *field, in regmap_field_clear_bits()
1879 unsigned int bits) in regmap_field_clear_bits()
1882 return -EINVAL; in regmap_field_clear_bits()
1885 static inline int regmap_field_test_bits(struct regmap_field *field, in regmap_field_test_bits()
1886 unsigned int bits) in regmap_field_test_bits()
1889 return -EINVAL; in regmap_field_test_bits()
1892 static inline int regmap_fields_write(struct regmap_field *field, in regmap_fields_write()
1893 unsigned int id, unsigned int val) in regmap_fields_write()
1896 return -EINVAL; in regmap_fields_write()
1899 static inline int regmap_fields_force_write(struct regmap_field *field, in regmap_fields_force_write()
1900 unsigned int id, unsigned int val) in regmap_fields_force_write()
1903 return -EINVAL; in regmap_fields_force_write()
1906 static inline int
1907 regmap_fields_update_bits(struct regmap_field *field, unsigned int id, in regmap_fields_update_bits()
1908 unsigned int mask, unsigned int val) in regmap_fields_update_bits() argument
1911 return -EINVAL; in regmap_fields_update_bits()
1914 static inline int
1915 regmap_fields_force_update_bits(struct regmap_field *field, unsigned int id, in regmap_fields_force_update_bits()
1916 unsigned int mask, unsigned int val) in regmap_fields_force_update_bits() argument
1919 return -EINVAL; in regmap_fields_force_update_bits()
1922 static inline int regmap_get_val_bytes(struct regmap *map) in regmap_get_val_bytes() argument
1925 return -EINVAL; in regmap_get_val_bytes()
1928 static inline int regmap_get_max_register(struct regmap *map) in regmap_get_max_register() argument
1931 return -EINVAL; in regmap_get_max_register()
1934 static inline int regmap_get_reg_stride(struct regmap *map) in regmap_get_reg_stride() argument
1937 return -EINVAL; in regmap_get_reg_stride()
1940 static inline bool regmap_might_sleep(struct regmap *map) in regmap_might_sleep() argument
1946 static inline int regcache_sync(struct regmap *map) in regcache_sync() argument
1949 return -EINVAL; in regcache_sync()
1952 static inline int regcache_sync_region(struct regmap *map, unsigned int min, in regcache_sync_region() argument
1953 unsigned int max) in regcache_sync_region()
1956 return -EINVAL; in regcache_sync_region()
1959 static inline int regcache_drop_region(struct regmap *map, unsigned int min, in regcache_drop_region() argument
1960 unsigned int max) in regcache_drop_region()
1963 return -EINVAL; in regcache_drop_region()
1966 static inline void regcache_cache_only(struct regmap *map, bool enable) in regcache_cache_only() argument
1971 static inline void regcache_cache_bypass(struct regmap *map, bool enable) in regcache_cache_bypass() argument
1976 static inline void regcache_mark_dirty(struct regmap *map) in regcache_mark_dirty() argument
1981 static inline void regmap_async_complete(struct regmap *map) in regmap_async_complete() argument
1986 static inline int regmap_register_patch(struct regmap *map, in regmap_register_patch() argument
1988 int num_regs) in regmap_register_patch()
1991 return -EINVAL; in regmap_register_patch()
1994 static inline int regmap_parse_val(struct regmap *map, const void *buf, in regmap_parse_val() argument
1995 unsigned int *val) in regmap_parse_val()
1998 return -EINVAL; in regmap_parse_val()
2007 static inline struct device *regmap_get_device(struct regmap *map) in regmap_get_device() argument