• Home
  • Raw
  • Download

Lines Matching +full:burst +full:- +full:write

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
25 * struct adis_timeouts - ADIS chip variant timeouts
26 * @reset_ms - Wait time after rst pin goes inactive
27 * @sw_reset_ms - Wait time after sw reset command
28 * @self_test_ms - Wait time after self test command
37 * struct adis_data - ADIS chip variant specific data
39 * @write_delay: SPI delay for write operations in us
46 * @self_test_mask: Bitmask of supported self-test operations
48 * @self_test_no_autoclear: True if device's self-test needs clear of ctrl reg
55 * @burst_reg_cmd: Register command that triggers burst
56 * @burst_len: Burst size in the SPI RX buffer. If @burst_max_len is defined,
58 * @burst_max_len: Holds the maximum burst size when the device supports
59 * more than one burst mode with different sizes
92 * struct adis - ADIS device instance data
96 * @burst: ADIS burst transfer information
97 * @burst_extra_len: Burst extra length. Should only be used by devices that can
98 * dynamically change their burst mode length.
119 * This lock is used by all "adis_{functions}" that have to read/write
141 * adis_reset() - Reset the device
150 mutex_lock(&adis->state_lock); in adis_reset()
152 mutex_unlock(&adis->state_lock); in adis_reset()
163 * __adis_write_reg_8() - Write single byte to a register (unlocked)
166 * @value: The value to write
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
240 * @value: The value to write to device (up to 4 bytes)
248 mutex_lock(&adis->state_lock); in adis_write_reg()
250 mutex_unlock(&adis->state_lock); in adis_write_reg()
256 * adis_read_reg() - read N bytes from register
267 mutex_lock(&adis->state_lock); in adis_read_reg()
269 mutex_unlock(&adis->state_lock); in adis_read_reg()
275 * adis_write_reg_8() - Write single byte to a register
278 * @value: The value to write
287 * adis_write_reg_16() - Write 2 bytes to a pair of registers
299 * adis_write_reg_32() - write 4 bytes to four registers
311 * adis_read_reg_16() - read 2 bytes from a 16-bit register
330 * adis_read_reg_32() - read 4 bytes from a 32-bit register
351 * adis_update_bits_base() - ADIS Update bits function - Locked version
365 mutex_lock(&adis->state_lock); in adis_update_bits_base()
367 mutex_unlock(&adis->state_lock); in adis_update_bits_base()
372 * adis_update_bits() - Wrapper macro for adis_update_bits_base - Locked version
390 * adis_update_bits() - Wrapper macro for adis_update_bits_base
415 mutex_lock(&adis->state_lock); in adis_enable_irq()
417 mutex_unlock(&adis->state_lock); in adis_enable_irq()
426 mutex_lock(&adis->state_lock); in adis_check_status()
428 mutex_unlock(&adis->state_lock); in adis_check_status()
438 mutex_lock(&adis->state_lock); in adis_initial_startup()
440 mutex_unlock(&adis->state_lock); in adis_initial_startup()