Home
last modified time | relevance | path

Searched refs:adc_chan (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/iio/adc/
Dpalmas_gpadc.c132 int adc_chan, in palmas_gpadc_get_event() argument
135 if (adc_chan == adc->event0.channel && dir == adc->event0.direction) in palmas_gpadc_get_event()
138 if (adc_chan == adc->event1.channel && dir == adc->event1.direction) in palmas_gpadc_get_event()
145 int adc_chan) in palmas_gpadc_channel_is_freerunning() argument
147 return palmas_gpadc_get_event(adc, adc_chan, IIO_EV_DIR_RISING) || in palmas_gpadc_channel_is_freerunning()
148 palmas_gpadc_get_event(adc, adc_chan, IIO_EV_DIR_FALLING); in palmas_gpadc_channel_is_freerunning()
261 static int palmas_gpadc_enable(struct palmas_gpadc *adc, int adc_chan, in palmas_gpadc_enable() argument
296 val = (adc_chan | PALMAS_GPADC_SW_SELECT_SW_CONV_EN); in palmas_gpadc_enable()
321 static int palmas_gpadc_read_prepare(struct palmas_gpadc *adc, int adc_chan) in palmas_gpadc_read_prepare() argument
325 if (palmas_gpadc_channel_is_freerunning(adc, adc_chan)) in palmas_gpadc_read_prepare()
[all …]
Dqcom-spmi-adc5.c825 const struct adc5_channels *adc_chan; in adc5_get_fw_data() local
859 adc_chan = &adc->data->adc_chans[prop.channel]; in adc5_get_fw_data()
862 iio_chan->datasheet_name = adc_chan->datasheet_name; in adc5_get_fw_data()
864 iio_chan->info_mask_separate = adc_chan->info_mask; in adc5_get_fw_data()
865 iio_chan->type = adc_chan->type; in adc5_get_fw_data()
/linux-6.12.1/drivers/iio/potentiostat/
Dlmp91000.c70 struct iio_channel *adc_chan; member
179 ret = iio_convert_raw_to_processed(data->adc_chan, in lmp91000_read_raw()
193 return iio_read_channel_offset(data->adc_chan, val, val2); in lmp91000_read_raw()
195 return iio_read_channel_scale(data->adc_chan, val, val2); in lmp91000_read_raw()
366 data->adc_chan = iio_channel_cb_get_channels(data->cb_buffer); in lmp91000_probe()
/linux-6.12.1/drivers/input/touchscreen/
Dtsc2007_iio.c43 int adc_chan = chan->channel; in tsc2007_read_raw() local
46 if (adc_chan >= ARRAY_SIZE(tsc2007_iio_channel)) in tsc2007_read_raw()