Lines Matching +full:1 +full:_chan
31 #define AD5504_ADDR_DAC(x) ((x) + 1)
39 #define AD5504_DAC_PWRDN_3STATE 1
81 .rx_buf = &st->data[1], in ad5504_spi_read()
86 ret = spi_sync_transfer(st->spi, &t, 1); in ad5504_spi_read()
90 return be16_to_cpu(st->data[1]) & AD5504_RES_MASK; in ad5504_spi_read()
129 if (val >= (1 << chan->scan_type.realbits) || val < 0) in ad5504_write_raw()
174 !(st->pwr_down_mask & (1 << chan->channel))); in ad5504_read_dac_powerdown()
190 st->pwr_down_mask &= ~(1 << chan->channel); in ad5504_write_dac_powerdown()
192 st->pwr_down_mask |= (1 << chan->channel); in ad5504_write_dac_powerdown()
205 static IIO_CONST_ATTR(temp0_thresh_rising_en, "1");
248 #define AD5504_CHANNEL(_chan) { \ argument
250 .indexed = 1, \
251 .output = 1, \
252 .channel = (_chan), \
255 .address = AD5504_ADDR_DAC(_chan), \
266 AD5504_CHANNEL(1),
309 indio_dev->num_channels = 1; in ad5504_probe()