Lines Matching +full:spi +full:- +full:lsb +full:- +full:first
1 /* SPDX-License-Identifier: GPL-2.0-only */
49 * struct reg_default - Default value for a register.
63 * struct reg_sequence - An individual write from a sequence of writes.
86 * regmap_read_poll_timeout - Poll until a condition is met or a timeout occurs
93 * tight-loops). Should be less than ~20ms since usleep_range
94 * is used (see Documentation/timers/timers-howto.rst).
97 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
113 * regmap_read_poll_timeout_atomic - Poll until a condition is met or a timeout occurs
119 * @delay_us: Time to udelay between reads in us (0 tight-loops).
121 * (see Documentation/timers/timers-howto.rst).
124 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
131 * this macro then first setup your regmap for atomic use (flat or no cache
154 __ret ?: ((cond) ? 0 : -ETIMEDOUT); \
158 * regmap_field_read_poll_timeout - Poll until a condition is met or timeout
164 * tight-loops). Should be less than ~20ms since usleep_range
165 * is used (see Documentation/timers/timers-howto.rst).
168 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_field_read
186 /* Unspecified -> 0 -> Backwards compatible default */
194 * struct regmap_range - A register range, used for access related checks
197 * @range_min: address of first register
208 * struct regmap_access_table - A table of register ranges for access checks
218 * check function will return true. "no_ranges" are searched first.
231 * struct regmap_config - Configuration for the register map of a device.
290 * read operation on a bus such as SPI, I2C, etc. Most of the
298 * Use it only for "no-bus" cases.
410 * struct regmap_range_cfg - Configuration for indirectly accessed or paged
422 * @window_start: Address of first (lowest) register in data window.
472 * struct regmap_bus - Description of a hardware bus for the register map
480 * @gather_write: Write operation with split register/value, return -ENOTSUPP
483 * must serialise with respect to non-async I/O.
580 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
637 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
643 * for each call. No-op if CONFIG_LOCKDEP is not set.
656 "(" name ")->lock"); \
664 * regmap_init() - Initialise register map
667 * @bus: Bus-specific callbacks to use with device
668 * @bus_context: Data passed to bus-specific callbacks
673 * directly, it should be called by bus-specific init functions.
682 * regmap_init_i2c() - Initialise register map
695 * regmap_init_sccb() - Initialise register map
708 * regmap_init_slimbus() - Initialise register map
721 * regmap_init_spi() - Initialise register map
734 * regmap_init_spmi_base() - Create regmap for the Base register space
747 * regmap_init_spmi_ext() - Create regmap for Ext register space
760 * regmap_init_w1() - Initialise register map
773 * regmap_init_mmio_clk() - Initialise register map with register clock
777 * @regs: Pointer to memory-mapped IO region
788 * regmap_init_mmio() - Initialise register map
791 * @regs: Pointer to memory-mapped IO region
801 * regmap_init_ac97() - Initialise AC'97 register map
815 * regmap_init_sdw() - Initialise register map
828 * regmap_init_spi_avmm() - Initialize register map for Intel SPI Slave
831 * @spi: Device that will be interacted with
837 #define regmap_init_spi_avmm(spi, config) \ argument
839 spi, config)
842 * devm_regmap_init() - Initialise managed register map
845 * @bus: Bus-specific callbacks to use with device
846 * @bus_context: Data passed to bus-specific callbacks
851 * directly, it should be called by bus-specific init functions. The
859 * devm_regmap_init_i2c() - Initialise managed register map
873 * devm_regmap_init_sccb() - Initialise managed register map
887 * devm_regmap_init_spi() - Initialise register map
901 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
915 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
929 * devm_regmap_init_w1() - Initialise managed register map
942 * devm_regmap_init_mmio_clk() - Initialise managed register map with clock
946 * @regs: Pointer to memory-mapped IO region
958 * devm_regmap_init_mmio() - Initialise managed register map
961 * @regs: Pointer to memory-mapped IO region
972 * devm_regmap_init_ac97() - Initialise AC'97 register map
986 * devm_regmap_init_sdw() - Initialise managed register map
1000 * devm_regmap_init_slimbus() - Initialise managed register map
1014 * devm_regmap_init_i3c() - Initialise managed register map
1028 * devm_regmap_init_spi_avmm() - Initialize register map for Intel SPI Slave
1031 * @spi: Device that will be interacted with
1038 #define devm_regmap_init_spi_avmm(spi, config) \ argument
1040 spi, config)
1138 return reg >= range->range_min && reg <= range->range_max; in regmap_reg_in_range()
1161 * struct reg_field - Description of an register field
1164 * @lsb: lsb of the register field.
1171 unsigned int lsb; member
1179 .lsb = _lsb, \
1185 .lsb = _lsb, \
1279 * struct regmap_irq_type - IRQ type definitions.
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.
1334 * interrupts arranged in separate sub-irq blocks with own IRQ
1336 * sub-irq blocks with unhandled interrupts. For such chips fill
1337 * sub-irq register information in status_base, mask_base and
1342 * registers. First item in array describes the registers
1343 * for first main status bit. Second array for second bit etc.
1347 * 1.st bit to 1.st sub-reg, 2.nd bit to 2.nd sub-reg, ...
1365 * @clear_ack: Use this to set 1 and 0 or vice-versa to clear interrupts.
1476 return -EINVAL; in regmap_write()
1483 return -EINVAL; in regmap_write_async()
1490 return -EINVAL; in regmap_raw_write()
1497 return -EINVAL; in regmap_raw_write_async()
1504 return -EINVAL; in regmap_noinc_write()
1511 return -EINVAL; in regmap_bulk_write()
1518 return -EINVAL; in regmap_read()
1525 return -EINVAL; in regmap_raw_read()
1532 return -EINVAL; in regmap_noinc_read()
1539 return -EINVAL; in regmap_bulk_read()
1547 return -EINVAL; in regmap_update_bits_base()
1554 return -EINVAL; in regmap_set_bits()
1561 return -EINVAL; in regmap_clear_bits()
1568 return -EINVAL; in regmap_test_bits()
1576 return -EINVAL; in regmap_field_update_bits_base()
1585 return -EINVAL; in regmap_fields_update_bits_base()
1592 return -EINVAL; in regmap_update_bits()
1599 return -EINVAL; in regmap_update_bits_async()
1607 return -EINVAL; in regmap_update_bits_check()
1616 return -EINVAL; in regmap_update_bits_check_async()
1623 return -EINVAL; in regmap_write_bits()
1630 return -EINVAL; in regmap_field_write()
1637 return -EINVAL; in regmap_field_force_write()
1644 return -EINVAL; in regmap_field_update_bits()
1652 return -EINVAL; in regmap_field_force_update_bits()
1659 return -EINVAL; in regmap_fields_write()
1666 return -EINVAL; in regmap_fields_force_write()
1674 return -EINVAL; in regmap_fields_update_bits()
1682 return -EINVAL; in regmap_fields_force_update_bits()
1688 return -EINVAL; in regmap_get_val_bytes()
1694 return -EINVAL; in regmap_get_max_register()
1700 return -EINVAL; in regmap_get_reg_stride()
1706 return -EINVAL; in regcache_sync()
1713 return -EINVAL; in regcache_sync_region()
1720 return -EINVAL; in regcache_drop_region()
1748 return -EINVAL; in regmap_register_patch()
1755 return -EINVAL; in regmap_parse_val()