Lines Matching refs:soc_info
429 readl_relaxed((st)->base + (st)->soc_info.platform->layout->reg)
433 writel_relaxed(val, (st)->base + (st)->soc_info.platform->layout->reg)
599 struct at91_adc_soc_info soc_info;
786 return mask & GENMASK(st->soc_info.platform->nr_channels, 0);
797 cor <<= st->soc_info.platform->layout->COR_diff_offset;
808 if (st->soc_info.platform->layout->EOC_ISR)
817 if (st->soc_info.platform->layout->EOC_IMR)
830 if (!st->soc_info.platform->layout->EOC_IDR)
836 if (!st->soc_info.platform->layout->EOC_IDR)
847 unsigned int osr_mask = st->soc_info.platform->osr_mask;
851 for (i = 0; i < st->soc_info.platform->oversampling_avail_no; i++) {
852 if (oversampling_ratio == st->soc_info.platform->oversampling_avail[i])
855 if (i == st->soc_info.platform->oversampling_avail_no)
923 * st->soc_info.platform->chan_realbits, so shift left diff bits.
925 diff = st->soc_info.platform->chan_realbits - nbits;
1025 if (reg == st->soc_info.platform->layout->XPOSR)
1027 else if (reg == st->soc_info.platform->layout->YPOSR)
1047 st->touch_st.x_pos = at91_adc_touch_pos(st, st->soc_info.platform->layout->XPOSR);
1053 return at91_adc_touch_pos(st, st->soc_info.platform->layout->YPOSR);
1089 if (chan == st->soc_info.platform->touch_chan_x)
1091 else if (chan == st->soc_info.platform->touch_chan_y)
1104 if (chan == st->soc_info.platform->touch_chan_p)
1286 st->soc_info.platform->max_index + 1);
1623 st->soc_info.platform->max_index + 1) {
1855 startup_time = st->soc_info.startup_time;
1869 struct at91_adc_temp_sensor_clb *clb = &st->soc_info.temp_sensor_clb;
1980 if (val < st->soc_info.min_sample_rate ||
1981 val > st->soc_info.max_sample_rate)
1989 st->soc_info.startup_time, 0);
2007 *vals = (int *)st->soc_info.platform->oversampling_avail;
2009 *length = st->soc_info.platform->oversampling_avail_no;
2021 unsigned int sample_size = st->soc_info.platform->nr_channels * 2;
2052 + st->soc_info.platform->layout->LCDR);
2081 unsigned int sample_size = st->soc_info.platform->nr_channels * 2;
2144 st->soc_info.platform->max_index + 1))
2151 st->soc_info.platform->max_index + 1))
2161 if (st->soc_info.platform->layout->EOC_IDR)
2171 at91_adc_setup_samp_freq(indio_dev, st->soc_info.min_sample_rate,
2172 st->soc_info.startup_time, 0);
2262 struct at91_adc_temp_sensor_clb *clb = &st->soc_info.temp_sensor_clb;
2268 if (!st->soc_info.platform->temp_sensor)
2322 st->soc_info.platform = device_get_match_data(dev);
2327 num_channels = st->soc_info.platform->max_channels - 1;
2329 num_channels = st->soc_info.platform->max_channels;
2334 indio_dev->channels = *st->soc_info.platform->adc_channels;
2338 st->soc_info.platform->touch_chan_x, 1);
2340 st->soc_info.platform->touch_chan_y, 1);
2342 st->soc_info.platform->touch_chan_p, 1);
2347 &st->soc_info.min_sample_rate);
2355 &st->soc_info.max_sample_rate);
2363 &st->soc_info.startup_time);
2380 for (i = 0; i < st->soc_info.platform->hw_trig_cnt + 1; i++)
2467 readl_relaxed(st->base + st->soc_info.platform->layout->VERSION));