Lines Matching refs:spi_msg
39 st->spi_msg = cpu_to_be16(BIT(15) | (chan << 12) | value); in ad5592r_write_dac()
41 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_write_dac()
49 st->spi_msg = cpu_to_be16((AD5592R_REG_ADC_SEQ << 11) | BIT(chan)); in ad5592r_read_adc()
51 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_read_adc()
59 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()
63 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()
67 *value = be16_to_cpu(st->spi_msg); in ad5592r_read_adc()
76 st->spi_msg = cpu_to_be16((reg << 11) | value); in ad5592r_reg_write()
78 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_write()
86 st->spi_msg = cpu_to_be16((AD5592R_REG_LDAC << 11) | in ad5592r_reg_read()
89 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_read()
93 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_reg_read()
97 *value = be16_to_cpu(st->spi_msg); in ad5592r_reg_read()
111 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5593r_gpio_read()
115 *value = (u8) be16_to_cpu(st->spi_msg); in ad5593r_gpio_read()