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; member
786 return mask & GENMASK(st->soc_info.platform->nr_channels, 0); in at91_adc_active_scan_mask_to_reg()
797 cor <<= st->soc_info.platform->layout->COR_diff_offset; in at91_adc_cor()
808 if (st->soc_info.platform->layout->EOC_ISR) in at91_adc_irq_status()
817 if (st->soc_info.platform->layout->EOC_IMR) in at91_adc_irq_mask()
830 if (!st->soc_info.platform->layout->EOC_IDR) in at91_adc_eoc_dis()
836 if (!st->soc_info.platform->layout->EOC_IDR) in at91_adc_eoc_ena()
847 unsigned int osr_mask = st->soc_info.platform->osr_mask; in at91_adc_config_emr()
851 for (i = 0; i < st->soc_info.platform->oversampling_avail_no; i++) { in at91_adc_config_emr()
852 if (oversampling_ratio == st->soc_info.platform->oversampling_avail[i]) in at91_adc_config_emr()
855 if (i == st->soc_info.platform->oversampling_avail_no) in at91_adc_config_emr()
925 diff = st->soc_info.platform->chan_realbits - nbits; in at91_adc_adjust_val_osr()
1025 if (reg == st->soc_info.platform->layout->XPOSR) in at91_adc_touch_pos()
1027 else if (reg == st->soc_info.platform->layout->YPOSR) in at91_adc_touch_pos()
1047 st->touch_st.x_pos = at91_adc_touch_pos(st, st->soc_info.platform->layout->XPOSR); in at91_adc_touch_x_pos()
1053 return at91_adc_touch_pos(st, st->soc_info.platform->layout->YPOSR); in at91_adc_touch_y_pos()
1089 if (chan == st->soc_info.platform->touch_chan_x) in at91_adc_read_position()
1091 else if (chan == st->soc_info.platform->touch_chan_y) in at91_adc_read_position()
1104 if (chan == st->soc_info.platform->touch_chan_p) in at91_adc_read_pressure()
1286 st->soc_info.platform->max_index + 1); in at91_adc_current_chan_is_touch()
1623 st->soc_info.platform->max_index + 1) { in at91_adc_touch_data_handler()
1855 startup_time = st->soc_info.startup_time; in at91_adc_temp_sensor_configure()
1869 struct at91_adc_temp_sensor_clb *clb = &st->soc_info.temp_sensor_clb; in at91_adc_read_temp()
1980 if (val < st->soc_info.min_sample_rate || in at91_adc_write_raw()
1981 val > st->soc_info.max_sample_rate) in at91_adc_write_raw()
1989 st->soc_info.startup_time, 0); in at91_adc_write_raw()
2007 *vals = (int *)st->soc_info.platform->oversampling_avail; in at91_adc_read_avail()
2009 *length = st->soc_info.platform->oversampling_avail_no; in at91_adc_read_avail()
2021 unsigned int sample_size = st->soc_info.platform->nr_channels * 2; in at91_adc_dma_init()
2052 + st->soc_info.platform->layout->LCDR); in at91_adc_dma_init()
2081 unsigned int sample_size = st->soc_info.platform->nr_channels * 2; in at91_adc_dma_disable()
2144 st->soc_info.platform->max_index + 1)) in at91_adc_update_scan_mode()
2151 st->soc_info.platform->max_index + 1)) in at91_adc_update_scan_mode()
2161 if (st->soc_info.platform->layout->EOC_IDR) in at91_adc_hw_init()
2171 at91_adc_setup_samp_freq(indio_dev, st->soc_info.min_sample_rate, in at91_adc_hw_init()
2172 st->soc_info.startup_time, 0); in at91_adc_hw_init()
2262 struct at91_adc_temp_sensor_clb *clb = &st->soc_info.temp_sensor_clb; in at91_adc_temp_sensor_init()
2268 if (!st->soc_info.platform->temp_sensor) in at91_adc_temp_sensor_init()
2322 st->soc_info.platform = device_get_match_data(dev); in at91_adc_probe()
2327 num_channels = st->soc_info.platform->max_channels - 1; in at91_adc_probe()
2329 num_channels = st->soc_info.platform->max_channels; in at91_adc_probe()
2334 indio_dev->channels = *st->soc_info.platform->adc_channels; in at91_adc_probe()
2338 st->soc_info.platform->touch_chan_x, 1); in at91_adc_probe()
2340 st->soc_info.platform->touch_chan_y, 1); in at91_adc_probe()
2342 st->soc_info.platform->touch_chan_p, 1); in at91_adc_probe()
2347 &st->soc_info.min_sample_rate); in at91_adc_probe()
2355 &st->soc_info.max_sample_rate); in at91_adc_probe()
2363 &st->soc_info.startup_time); in at91_adc_probe()
2380 for (i = 0; i < st->soc_info.platform->hw_trig_cnt + 1; i++) in at91_adc_probe()
2467 readl_relaxed(st->base + st->soc_info.platform->layout->VERSION)); in at91_adc_probe()