Lines Matching +full:burst +full:- +full:read

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Author: Lars-Peter Clausen <[email protected]>
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
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
58 * @burst_reg_cmd: Register command that triggers burst
59 * @burst_len: Burst size in the SPI RX buffer. If @burst_max_len is defined,
61 * @burst_max_len: Holds the maximum burst size when the device supports
62 * more than one burst mode with different sizes
63 * @burst_max_speed_hz: Maximum spi speed that can be used in burst mode
98 * struct adis - ADIS device instance data
102 * @burst_extra_len: Burst extra length. Should only be used by devices that can
103 * dynamically change their burst mode length.
109 * @buffer: Data buffer for information read from the device
124 * This lock is used by all "adis_{functions}" that have to read/write
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)
202 * @val: The value read back from the device
218 * __adis_read_reg_32() - read 4 bytes from a 32-bit register (unlocked)
221 * @val: The value read back from the device
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
254 * @val: The value read back from the device
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
304 * @val: The value read back from the device
320 * adis_read_reg_32() - read 4 bytes from a 32-bit register
323 * @val: The value read back from the device
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)