Lines Matching +full:1 +full:_chan
60 return spi_read(st->spi, &st->data.sample[0], 1); in ad7266_powerdown()
107 nr >>= 1; in ad7266_select_input()
110 nr |= 1; in ad7266_select_input()
113 nr &= ~1; in ad7266_select_input()
165 chan->scan_type.realbits - 1); in ad7266_read_raw()
189 #define AD7266_CHAN(_chan, _sign) { \ argument
191 .indexed = 1, \
192 .channel = (_chan), \
193 .address = (_chan), \
197 .scan_index = (_chan), \
210 AD7266_CHAN(1, (_sign)), \
227 AD7266_CHAN(1, (_sign)), \
236 #define AD7266_CHAN_DIFF(_chan, _sign) { \ argument
238 .indexed = 1, \
239 .channel = (_chan) * 2, \
240 .channel2 = (_chan) * 2 + 1, \
241 .address = (_chan), \
245 .scan_index = (_chan), \
253 .differential = 1, \
259 AD7266_CHAN_DIFF(1, (_sign)), \
273 AD7266_CHAN_DIFF(1, (_sign)), \
314 (((_differential) << 2) | ((_signed) << 1) | ((_fixed) << 0))
322 [AD7266_CHAN_INFO_INDEX(0, 0, 1)] = {
327 [AD7266_CHAN_INFO_INDEX(0, 1, 0)] = {
332 [AD7266_CHAN_INFO_INDEX(0, 1, 1)] = {
337 [AD7266_CHAN_INFO_INDEX(1, 0, 0)] = {
342 [AD7266_CHAN_INFO_INDEX(1, 0, 1)] = {
347 [AD7266_CHAN_INFO_INDEX(1, 1, 0)] = {
352 [AD7266_CHAN_INFO_INDEX(1, 1, 1)] = {
376 indio_dev->masklength = chan_info->num_channels - 1; in ad7266_init_channels()
458 st->single_xfer[0].cs_change = 1; in ad7266_probe()
460 st->single_xfer[1].rx_buf = st->data.sample; in ad7266_probe()
461 st->single_xfer[1].len = 4; in ad7266_probe()
462 st->single_xfer[1].cs_change = 1; in ad7266_probe()
465 st->single_xfer[2].len = 1; in ad7266_probe()
469 spi_message_add_tail(&st->single_xfer[1], &st->single_msg); in ad7266_probe()