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