Home
last modified time | relevance | path

Searched refs:iio_chan (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/drivers/iio/common/scmi_sensors/
Dscmi_iio.c424 static void scmi_iio_set_timestamp_channel(struct iio_chan_spec *iio_chan, in scmi_iio_set_timestamp_channel() argument
427 iio_chan->type = IIO_TIMESTAMP; in scmi_iio_set_timestamp_channel()
428 iio_chan->channel = -1; in scmi_iio_set_timestamp_channel()
429 iio_chan->scan_index = scan_index; in scmi_iio_set_timestamp_channel()
430 iio_chan->scan_type.sign = 'u'; in scmi_iio_set_timestamp_channel()
431 iio_chan->scan_type.realbits = 64; in scmi_iio_set_timestamp_channel()
432 iio_chan->scan_type.storagebits = 64; in scmi_iio_set_timestamp_channel()
435 static void scmi_iio_set_data_channel(struct iio_chan_spec *iio_chan, in scmi_iio_set_data_channel() argument
439 iio_chan->type = type; in scmi_iio_set_data_channel()
440 iio_chan->modified = 1; in scmi_iio_set_data_channel()
[all …]
/Linux-v6.6/sound/soc/codecs/
Daudio-iio-aux.c20 struct iio_channel *iio_chan; member
56 ret = iio_read_channel_raw(chan->iio_chan, &val); in audio_iio_aux_get_volsw()
88 ret = iio_read_channel_raw(chan->iio_chan, &tmp); in audio_iio_aux_put_volsw()
95 ret = iio_write_channel_raw(chan->iio_chan, val); in audio_iio_aux_put_volsw()
191 ret = iio_read_max_channel_raw(chan->iio_chan, &chan->max); in audio_iio_aux_component_probe()
197 ret = iio_read_min_channel_raw(chan->iio_chan, &chan->min); in audio_iio_aux_component_probe()
215 ret = iio_write_channel_raw(chan->iio_chan, in audio_iio_aux_component_probe()
307 iio_aux_chan->iio_chan = devm_iio_channel_get(dev, iio_aux_chan->name); in audio_iio_aux_probe()
308 if (IS_ERR(iio_aux_chan->iio_chan)) { in audio_iio_aux_probe()
309 ret = PTR_ERR(iio_aux_chan->iio_chan); in audio_iio_aux_probe()
/Linux-v6.6/drivers/iio/adc/
Dab8500-gpadc.c981 struct iio_chan_spec *iio_chan) in ab8500_gpadc_parse_channel() argument
997 iio_chan->channel = chan; in ab8500_gpadc_parse_channel()
998 iio_chan->datasheet_name = name; in ab8500_gpadc_parse_channel()
999 iio_chan->indexed = 1; in ab8500_gpadc_parse_channel()
1000 iio_chan->address = chan; in ab8500_gpadc_parse_channel()
1001 iio_chan->info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | in ab8500_gpadc_parse_channel()
1006 iio_chan->type = IIO_CURRENT; in ab8500_gpadc_parse_channel()
1008 iio_chan->type = IIO_VOLTAGE; in ab8500_gpadc_parse_channel()
1056 struct iio_chan_spec *iio_chan; in ab8500_gpadc_parse_channels() local
1060 iio_chan = &iio_chans[i]; in ab8500_gpadc_parse_channels()
[all …]
Dqcom-spmi-adc5.c826 struct iio_chan_spec *iio_chan; in adc5_get_fw_data() local
847 iio_chan = adc->iio_chans; in adc5_get_fw_data()
864 iio_chan->channel = prop.channel; in adc5_get_fw_data()
865 iio_chan->datasheet_name = adc_chan->datasheet_name; in adc5_get_fw_data()
866 iio_chan->extend_name = prop.channel_name; in adc5_get_fw_data()
867 iio_chan->info_mask_separate = adc_chan->info_mask; in adc5_get_fw_data()
868 iio_chan->type = adc_chan->type; in adc5_get_fw_data()
869 iio_chan->address = index; in adc5_get_fw_data()
870 iio_chan++; in adc5_get_fw_data()
Dqcom-spmi-vadc.c755 struct iio_chan_spec *iio_chan; in vadc_get_fw_data() local
775 iio_chan = vadc->iio_chans; in vadc_get_fw_data()
789 iio_chan->channel = prop.channel; in vadc_get_fw_data()
790 iio_chan->datasheet_name = vadc_chan->datasheet_name; in vadc_get_fw_data()
791 iio_chan->info_mask_separate = vadc_chan->info_mask; in vadc_get_fw_data()
792 iio_chan->type = vadc_chan->type; in vadc_get_fw_data()
793 iio_chan->indexed = 1; in vadc_get_fw_data()
794 iio_chan->address = index++; in vadc_get_fw_data()
796 iio_chan++; in vadc_get_fw_data()
Dqcom-pm8xxx-xoadc.c737 struct iio_chan_spec *iio_chan, in pm8xxx_xoadc_parse_channel() argument
805 iio_chan->channel = chid; in pm8xxx_xoadc_parse_channel()
806 iio_chan->address = hwchan->amux_channel; in pm8xxx_xoadc_parse_channel()
807 iio_chan->datasheet_name = hwchan->datasheet_name; in pm8xxx_xoadc_parse_channel()
808 iio_chan->type = hwchan->type; in pm8xxx_xoadc_parse_channel()
810 iio_chan->info_mask_separate = BIT(IIO_CHAN_INFO_RAW) | in pm8xxx_xoadc_parse_channel()
812 iio_chan->indexed = 1; in pm8xxx_xoadc_parse_channel()
Dqcom-spmi-rradc.c429 const struct iio_chan_spec *iio_chan = &rradc_iio_chans[chan_address]; in rradc_read_status_in_cont_mode() local
442 iio_chan->extend_name, ret); in rradc_read_status_in_cont_mode()
465 iio_chan->extend_name); in rradc_read_status_in_cont_mode()
517 const struct iio_chan_spec *iio_chan = &rradc_iio_chans[chan_address]; in rradc_do_conversion() local
550 iio_chan->extend_name); in rradc_do_conversion()
/Linux-v6.6/drivers/iio/dac/
Dltc2688.c88 struct iio_chan_spec *iio_chan; member
775 st->iio_chan[reg].ext_info = ltc2688_toggle_sym_ext_info; in ltc2688_channel_config()
781 &st->iio_chan[reg].info_mask_separate); in ltc2688_channel_config()
830 st->iio_chan[reg].ext_info = ltc2688_dither_ext_info; in ltc2688_channel_config()
833 st->iio_chan[reg].ext_info = ltc2688_toggle_ext_info; in ltc2688_channel_config()
888 st->iio_chan = devm_kmemdup(dev, ltc2688_channels, in ltc2688_setup()
890 if (!st->iio_chan) in ltc2688_setup()
1023 indio_dev->channels = st->iio_chan; in ltc2688_probe()
/Linux-v6.6/drivers/iio/temperature/
Dltc2983.c221 struct iio_chan_spec *iio_chan; member
1528 u32 chan_type = 0, *iio_chan; in ltc2983_setup() local
1546 iio_chan = &iio_chan_t; in ltc2983_setup()
1549 iio_chan = &iio_chan_v; in ltc2983_setup()
1556 st->iio_chan[iio_idx++] = LTC2983_CHAN(chan_type, (*iio_chan)++, in ltc2983_setup()
1649 st->iio_chan = devm_kzalloc(&spi->dev, in ltc2983_probe()
1650 st->iio_channels * sizeof(*st->iio_chan), in ltc2983_probe()
1652 if (!st->iio_chan) in ltc2983_probe()
1677 indio_dev->channels = st->iio_chan; in ltc2983_probe()