Lines Matching +full:spi +full:- +full:rx +full:- +full:delay +full:- +full:us

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Author: Lars-Peter Clausen <[email protected]>
13 #include <linux/spi/spi.h>
28 * struct adis_timeouts - ADIS chip variant timeouts
29 * @reset_ms - Wait time after rst pin goes inactive
30 * @sw_reset_ms - Wait time after sw reset command
31 * @self_test_ms - Wait time after self test command
40 * struct adis_data - ADIS chip variant specific data
41 * @read_delay: SPI delay for read operations in us
42 * @write_delay: SPI delay for write operations in us
43 * @cs_change_delay: SPI delay between CS changes in us
49 * @self_test_mask: Bitmask of supported self-test operations
51 * @self_test_no_autoclear: True if device's self-test needs clear of ctrl reg
59 * @burst_len: Burst size in the SPI RX buffer. If @burst_max_len is defined,
63 * @burst_max_speed_hz: Maximum spi speed that can be used in burst mode
98 * struct adis - ADIS device instance data
99 * @spi: Reference to SPI device which owns this ADIS IIO device
105 * @msg: SPI message object
106 * @xfer: SPI transfer objects to be used for a @msg
110 * @tx: DMA safe TX buffer for SPI transfers
111 * @rx: DMA safe RX buffer for SPI transfers
114 struct spi_device *spi; member
121 * a sequence of SPI R/W in order to protect the SPI transfer
127 * This allows users of the ADIS library to group SPI R/W into
138 u8 rx[4]; member
142 struct spi_device *spi, const struct adis_data *data);
146 * adis_reset() - Reset the device
153 guard(mutex)(&adis->state_lock); in adis_reset()
163 * __adis_write_reg_8() - Write single byte to a register (unlocked)
175 * __adis_write_reg_16() - Write 2 bytes to a pair of registers (unlocked)
187 * __adis_write_reg_32() - write 4 bytes to four registers (unlocked)
199 * __adis_read_reg_16() - read 2 bytes from a 16-bit register (unlocked)
218 * __adis_read_reg_32() - read 4 bytes from a 32-bit register (unlocked)
237 * adis_write_reg() - write N bytes to register
246 guard(mutex)(&adis->state_lock); in adis_write_reg()
251 * adis_read_reg() - read N bytes from register
260 guard(mutex)(&adis->state_lock); in adis_read_reg()
265 * adis_write_reg_8() - Write single byte to a register
277 * adis_write_reg_16() - Write 2 bytes to a pair of registers
289 * adis_write_reg_32() - write 4 bytes to four registers
301 * adis_read_reg_16() - read 2 bytes from a 16-bit register
320 * adis_read_reg_32() - read 4 bytes from a 32-bit register
341 * adis_update_bits_base() - ADIS Update bits function - Locked version
353 guard(mutex)(&adis->state_lock); in adis_update_bits_base()
358 * adis_update_bits() - Wrapper macro for adis_update_bits_base - Locked version
374 * adis_update_bits() - Wrapper macro for adis_update_bits_base
395 guard(mutex)(&adis->state_lock); in adis_enable_irq()
401 guard(mutex)(&adis->state_lock); in adis_check_status()
405 #define adis_dev_auto_lock(adis) guard(mutex)(&(adis)->state_lock)
407 scoped_guard(mutex, &(adis)->state_lock)