Lines Matching refs:spi_msg
37 st->spi_msg = cpu_to_be16(BIT(15) | (chan << 12) | value); in ad5592r_write_dac()
39 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_write_dac()
47 st->spi_msg = cpu_to_be16((AD5592R_REG_ADC_SEQ << 11) | BIT(chan)); in ad5592r_read_adc()
49 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_read_adc()
57 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()
61 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_read_adc()
65 *value = be16_to_cpu(st->spi_msg); in ad5592r_read_adc()
74 st->spi_msg = cpu_to_be16((reg << 11) | value); in ad5592r_reg_write()
76 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_write()
84 st->spi_msg = cpu_to_be16((AD5592R_REG_LDAC << 11) | in ad5592r_reg_read()
87 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_read()
91 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_reg_read()
95 *value = be16_to_cpu(st->spi_msg); in ad5592r_reg_read()
109 ret = ad5592r_spi_wnop_r16(st, &st->spi_msg); in ad5592r_gpio_read()
113 *value = (u8) be16_to_cpu(st->spi_msg); in ad5592r_gpio_read()