Lines Matching +full:1 +full:_chan
75 #define AD5764_CHANNEL(_chan, _bits) { \ argument
77 .indexed = 1, \
78 .output = 1, \
79 .channel = (_chan), \
80 .address = (_chan), \
97 AD5764_CHANNEL(1, (_bits)), \
133 ret = spi_write(st->spi, &st->data[0].d8[1], 3); in ad5764_write()
146 .tx_buf = &st->data[0].d8[1], in ad5764_read()
148 .cs_change = 1, in ad5764_read()
150 .rx_buf = &st->data[1].d8[1], in ad5764_read()
157 st->data[0].d32 = cpu_to_be32((1 << 23) | (reg << 16)); in ad5764_read()
161 *val = be32_to_cpu(st->data[1].d32) & 0xffff; in ad5764_read()
187 const int max_val = (1 << chan->scan_type.realbits); in ad5764_write_raw()
261 *val = -(1 << chan->scan_type.realbits) / 2; in ad5764_read_raw()
302 st->vref_reg[1].supply = "vrefCD"; in ad5764_probe()