Searched refs:adc_dev (Results 1 – 4 of 4) sorted by relevance
83 step = adc_dev->channel_step[i]; in get_adc_chan_step_mask()124 chan = adc_dev->channel_line[i]; in tiadc_step_config()126 if (adc_dev->step_avg[i]) in tiadc_step_config()196 u16 *data = adc_dev->data; in tiadc_worker_h()282 ret = tiadc_wait_idle(adc_dev); in tiadc_buffer_preenable()309 adc_dev->total_ch_enabled++; in tiadc_buffer_postenable()339 am335x_tsc_se_clr(adc_dev->mfd_tscadc, adc_dev->buffer_en_ch_steps); in tiadc_buffer_predisable()341 adc_dev->total_ch_enabled = 0; in tiadc_buffer_predisable()582 adc_dev->channels = channels; in tiadc_parse_dt()624 struct tiadc_device *adc_dev; in tiadc_probe() local[all …]
148 data = adc_dev->buf; in cc10001_adc_trigger_h()152 if (!adc_dev->shared) in cc10001_adc_trigger_h()175 if (!adc_dev->shared) in cc10001_adc_trigger_h()195 if (!adc_dev->shared) in cc10001_adc_read_raw_voltage()205 if (!adc_dev->shared) in cc10001_adc_read_raw_voltage()249 kfree(adc_dev->buf); in cc10001_update_scan_mode()251 if (!adc_dev->buf) in cc10001_update_scan_mode()333 adc_dev->shared = true; in cc10001_adc_probe()338 if (IS_ERR(adc_dev->reg)) in cc10001_adc_probe()370 adc_dev->start_delay_ns = adc_dev->eoc_delay_ns * CC10001_WAIT_CYCLES; in cc10001_adc_probe()[all …]
121 mutex_lock(&adc_dev->lock); in mt6577_auxadc_read()145 if (adc_dev->dev_comp->check_global_idle) { in mt6577_auxadc_read()173 mutex_unlock(&adc_dev->lock); in mt6577_auxadc_read()179 mutex_unlock(&adc_dev->lock); in mt6577_auxadc_read()201 if (adc_dev->dev_comp->sample_data_cali) in mt6577_auxadc_read_raw()244 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_suspend()259 struct mt6577_auxadc_device *adc_dev; in mt6577_auxadc_probe() local268 adc_dev = iio_priv(indio_dev); in mt6577_auxadc_probe()276 if (IS_ERR(adc_dev->reg_base)) in mt6577_auxadc_probe()281 if (IS_ERR(adc_dev->adc_clk)) in mt6577_auxadc_probe()[all …]
502 mt6358_stop_imp_conv(adc_dev); in mt6358_read_imp()734 adc_dev->timed_out = true; in mt6359_auxadc_read_adc()788 ret = adc_dev->chip_info->read_imp(adc_dev, chan, NULL, val); in mt6359_auxadc_read_raw()794 ret = adc_dev->chip_info->read_imp(adc_dev, chan, val, NULL); in mt6359_auxadc_read_raw()808 if (adc_dev->timed_out) { in mt6359_auxadc_read_raw()812 adc_dev->timed_out = true; in mt6359_auxadc_read_raw()816 adc_dev->timed_out = false; in mt6359_auxadc_read_raw()866 adc_dev->regmap = regmap; in mt6359_auxadc_probe()867 adc_dev->dev = dev; in mt6359_auxadc_probe()870 mutex_init(&adc_dev->lock); in mt6359_auxadc_probe()[all …]
Completed in 15 milliseconds