Home
last modified time | relevance | path

Searched refs:reg_tx_buf (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/iio/adc/
H A Dad7779.c158 u8 reg_tx_buf[3]; member
177 .tx_buf = st->reg_tx_buf, in ad7779_spi_read()
181 st->reg_tx_buf[0] = AD7779_SPI_READ_CMD | FIELD_GET(AD7779_REG_MSK, reg); in ad7779_spi_read()
182 st->reg_tx_buf[1] = 0; in ad7779_spi_read()
188 st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf, in ad7779_spi_read()
213 st->reg_tx_buf[0] = FIELD_GET(AD7779_REG_MSK, reg); in ad7779_spi_write()
214 st->reg_tx_buf[1] = val; in ad7779_spi_write()
218 st->reg_tx_buf[2] = crc8(ad7779_crc8_table, st->reg_tx_buf, in ad7779_spi_write()
[all...]
/linux/drivers/iio/addac/
H A Dad74413r.c92 u8 reg_tx_buf[AD74413R_FRAME_SIZE]; member
177 ad74413r_format_reg_write(reg, val, st->reg_tx_buf); in ad74413r_reg_write()
179 return spi_write(st->spi, st->reg_tx_buf, AD74413R_FRAME_SIZE); in ad74413r_reg_write()
200 .tx_buf = st->reg_tx_buf, in ad74413r_reg_read()
212 st->reg_tx_buf); in ad74413r_reg_read()
H A Dad74115.c228 u8 reg_tx_buf[AD74115_FRAME_SIZE] __aligned(IIO_DMA_MINALIGN);
428 ad74115_format_reg_write(reg, val, st->reg_tx_buf); in ad74115_reg_write()
430 return spi_write(st->spi, st->reg_tx_buf, AD74115_FRAME_SIZE); in ad74115_reg_write()
452 .tx_buf = st->reg_tx_buf, in ad74115_reg_read()
453 .len = sizeof(st->reg_tx_buf), in ad74115_reg_read()
463 ad74115_format_reg_write(AD74115_READ_SELECT_REG, reg, st->reg_tx_buf); in ad74115_reg_read()