Lines Matching +full:spi +full:- +full:lsb +full:- +full:first

1 /* SPDX-License-Identifier: GPL-2.0-only */
48 * struct reg_default - Default value for a register.
62 * struct reg_sequence - An individual write from a sequence of writes.
85 * regmap_read_poll_timeout - Poll until a condition is met or a timeout occurs
92 * tight-loops). Should be less than ~20ms since usleep_range
93 * is used (see Documentation/timers/timers-howto.rst).
96 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
112 * regmap_read_poll_timeout_atomic - Poll until a condition is met or a timeout occurs
118 * @delay_us: Time to udelay between reads in us (0 tight-loops).
120 * (see Documentation/timers/timers-howto.rst).
123 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_read
130 * this macro then first setup your regmap for atomic use (flat or no cache
153 __ret ?: ((cond) ? 0 : -ETIMEDOUT); \
157 * regmap_field_read_poll_timeout - Poll until a condition is met or timeout
163 * tight-loops). Should be less than ~20ms since usleep_range
164 * is used (see Documentation/timers/timers-howto.rst).
167 * Returns 0 on success and -ETIMEDOUT upon a timeout or the regmap_field_read
185 /* Unspecified -> 0 -> Backwards compatible default */
193 * struct regmap_range - A register range, used for access related checks
196 * @range_min: address of first register
207 * struct regmap_access_table - A table of register ranges for access checks
217 * check function will return true. "no_ranges" are searched first.
230 * struct regmap_config - Configuration for the register map of a device.
289 * read operation on a bus such as SPI, I2C, etc. Most of the
297 * Use it only for "no-bus" cases.
407 * struct regmap_range_cfg - Configuration for indirectly accessed or paged
419 * @window_start: Address of first (lowest) register in data window.
467 * struct regmap_bus - Description of a hardware bus for the register map
475 * @gather_write: Write operation with split register/value, return -ENOTSUPP
478 * must serialise with respect to non-async I/O.
573 struct regmap *__regmap_init_spi_avmm(struct spi_device *spi,
630 struct regmap *__devm_regmap_init_spi_avmm(struct spi_device *spi,
636 * for each call. No-op if CONFIG_LOCKDEP is not set.
649 "(" name ")->lock"); \
657 * regmap_init() - Initialise register map
660 * @bus: Bus-specific callbacks to use with device
661 * @bus_context: Data passed to bus-specific callbacks
666 * directly, it should be called by bus-specific init functions.
675 * regmap_init_i2c() - Initialise register map
688 * regmap_init_sccb() - Initialise register map
701 * regmap_init_slimbus() - Initialise register map
714 * regmap_init_spi() - Initialise register map
727 * regmap_init_spmi_base() - Create regmap for the Base register space
740 * regmap_init_spmi_ext() - Create regmap for Ext register space
753 * regmap_init_w1() - Initialise register map
766 * regmap_init_mmio_clk() - Initialise register map with register clock
770 * @regs: Pointer to memory-mapped IO region
781 * regmap_init_mmio() - Initialise register map
784 * @regs: Pointer to memory-mapped IO region
794 * regmap_init_ac97() - Initialise AC'97 register map
808 * regmap_init_sdw() - Initialise register map
821 * regmap_init_spi_avmm() - Initialize register map for Intel SPI Slave
824 * @spi: Device that will be interacted with
830 #define regmap_init_spi_avmm(spi, config) \ argument
832 spi, config)
835 * devm_regmap_init() - Initialise managed register map
838 * @bus: Bus-specific callbacks to use with device
839 * @bus_context: Data passed to bus-specific callbacks
844 * directly, it should be called by bus-specific init functions. The
852 * devm_regmap_init_i2c() - Initialise managed register map
866 * devm_regmap_init_sccb() - Initialise managed register map
880 * devm_regmap_init_spi() - Initialise register map
894 * devm_regmap_init_spmi_base() - Create managed regmap for Base register space
908 * devm_regmap_init_spmi_ext() - Create managed regmap for Ext register space
922 * devm_regmap_init_w1() - Initialise managed register map
935 * devm_regmap_init_mmio_clk() - Initialise managed register map with clock
939 * @regs: Pointer to memory-mapped IO region
951 * devm_regmap_init_mmio() - Initialise managed register map
954 * @regs: Pointer to memory-mapped IO region
965 * devm_regmap_init_ac97() - Initialise AC'97 register map
979 * devm_regmap_init_sdw() - Initialise managed register map
993 * devm_regmap_init_slimbus() - Initialise managed register map
1007 * devm_regmap_init_i3c() - Initialise managed register map
1021 * devm_regmap_init_spi_avmm() - Initialize register map for Intel SPI Slave
1024 * @spi: Device that will be interacted with
1031 #define devm_regmap_init_spi_avmm(spi, config) \ argument
1033 spi, config)
1131 return reg >= range->range_min && reg <= range->range_max; in regmap_reg_in_range()
1154 * struct reg_field - Description of an register field
1157 * @lsb: lsb of the register field.
1164 unsigned int lsb; member
1172 .lsb = _lsb, \
1178 .lsb = _lsb, \
1272 * struct regmap_irq_type - IRQ type definitions.
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.
1327 * interrupts arranged in separate sub-irq blocks with own IRQ
1329 * sub-irq blocks with unhandled interrupts. For such chips fill
1330 * sub-irq register information in status_base, mask_base and
1335 * registers. First item in array describes the registers
1336 * for first main status bit. Second array for second bit etc.
1340 * 1.st bit to 1.st sub-reg, 2.nd bit to 2.nd sub-reg, ...
1358 * @clear_ack: Use this to set 1 and 0 or vice-versa to clear interrupts.
1469 return -EINVAL; in regmap_write()
1476 return -EINVAL; in regmap_write_async()
1483 return -EINVAL; in regmap_raw_write()
1490 return -EINVAL; in regmap_raw_write_async()
1497 return -EINVAL; in regmap_noinc_write()
1504 return -EINVAL; in regmap_bulk_write()
1511 return -EINVAL; in regmap_read()
1518 return -EINVAL; in regmap_raw_read()
1525 return -EINVAL; in regmap_noinc_read()
1532 return -EINVAL; in regmap_bulk_read()
1540 return -EINVAL; in regmap_update_bits_base()
1547 return -EINVAL; in regmap_set_bits()
1554 return -EINVAL; in regmap_clear_bits()
1561 return -EINVAL; in regmap_test_bits()
1569 return -EINVAL; in regmap_field_update_bits_base()
1578 return -EINVAL; in regmap_fields_update_bits_base()
1585 return -EINVAL; in regmap_update_bits()
1592 return -EINVAL; in regmap_update_bits_async()
1600 return -EINVAL; in regmap_update_bits_check()
1609 return -EINVAL; in regmap_update_bits_check_async()
1616 return -EINVAL; in regmap_write_bits()
1623 return -EINVAL; in regmap_field_write()
1630 return -EINVAL; in regmap_field_force_write()
1637 return -EINVAL; in regmap_field_update_bits()
1645 return -EINVAL; in regmap_field_force_update_bits()
1652 return -EINVAL; in regmap_fields_write()
1659 return -EINVAL; in regmap_fields_force_write()
1667 return -EINVAL; in regmap_fields_update_bits()
1675 return -EINVAL; in regmap_fields_force_update_bits()
1681 return -EINVAL; in regmap_get_val_bytes()
1687 return -EINVAL; in regmap_get_max_register()
1693 return -EINVAL; in regmap_get_reg_stride()
1699 return -EINVAL; in regcache_sync()
1706 return -EINVAL; in regcache_sync_region()
1713 return -EINVAL; in regcache_drop_region()
1741 return -EINVAL; in regmap_register_patch()
1748 return -EINVAL; in regmap_parse_val()