Searched refs:spi_msg (Results 1 – 3 of 3) sorted by relevance
36 st->spi_msg = cpu_to_be16(BIT(15) | (chan << 12) | value); in ad5592r_write_dac()38 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_write_dac()46 st->spi_msg = cpu_to_be16((AD5592R_REG_ADC_SEQ << 11) | BIT(chan)); in ad5592r_read_adc()48 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_read_adc()56 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()60 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()64 *value = be16_to_cpu(st->spi_msg); in ad5592r_read_adc()73 st->spi_msg = cpu_to_be16((reg << 11) | value); in ad5592r_reg_write()75 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_write()83 st->spi_msg = cpu_to_be16((AD5592R_REG_LDAC << 11) | in ad5592r_reg_read()[all …]
70 __be16 spi_msg __aligned(IIO_DMA_MINALIGN);
85 struct spi_message spi_msg; member157 struct spi_message *msg = &mses->spi_msg; in mse102x_tx_cmd_spi()180 struct spi_message *msg = &mses->spi_msg; in mse102x_rx_cmd_spi()229 struct spi_message *msg = &mses->spi_msg; in mse102x_tx_frame_spi()274 struct spi_message *msg = &mses->spi_msg; in mse102x_rx_frame_spi()736 spi_message_init(&mses->spi_msg); in mse102x_probe_spi()737 spi_message_add_tail(&mses->spi_xfer, &mses->spi_msg); in mse102x_probe_spi()