Lines Matching refs:spi_msg
38 st->spi_msg = cpu_to_be16(BIT(15) | (chan << 12) | value); in ad5592r_write_dac()
40 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_write_dac()
48 st->spi_msg = cpu_to_be16((AD5592R_REG_ADC_SEQ << 11) | BIT(chan)); in ad5592r_read_adc()
50 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_read_adc()
58 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()
62 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()
66 *value = be16_to_cpu(st->spi_msg); in ad5592r_read_adc()
75 st->spi_msg = cpu_to_be16((reg << 11) | value); in ad5592r_reg_write()
77 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_write()
85 st->spi_msg = cpu_to_be16((AD5592R_REG_LDAC << 11) | in ad5592r_reg_read()
88 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_read()
92 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_reg_read()
96 *value = be16_to_cpu(st->spi_msg); in ad5592r_reg_read()
110 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5593r_gpio_read()
114 *value = (u8) be16_to_cpu(st->spi_msg); in ad5593r_gpio_read()