Lines Matching refs:at91_adc_state

585 struct at91_adc_state {  struct
777 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_active_scan_mask_to_reg()
789 static void at91_adc_cor(struct at91_adc_state *st, in at91_adc_cor()
804 static void at91_adc_irq_status(struct at91_adc_state *st, u32 *status, in at91_adc_irq_status()
814 static void at91_adc_irq_mask(struct at91_adc_state *st, u32 *status, u32 *eoc) in at91_adc_irq_mask()
823 static void at91_adc_eoc_dis(struct at91_adc_state *st, unsigned int channel) in at91_adc_eoc_dis()
834 static void at91_adc_eoc_ena(struct at91_adc_state *st, unsigned int channel) in at91_adc_eoc_ena()
842 static int at91_adc_config_emr(struct at91_adc_state *st, in at91_adc_config_emr()
903 static int at91_adc_adjust_val_osr(struct at91_adc_state *st, int *val) in at91_adc_adjust_val_osr()
931 static void at91_adc_adjust_val_osr_array(struct at91_adc_state *st, void *buf, in at91_adc_adjust_val_osr_array()
953 static int at91_adc_configure_touch(struct at91_adc_state *st, bool state) in at91_adc_configure_touch()
1014 static u16 at91_adc_touch_pos(struct at91_adc_state *st, int reg) in at91_adc_touch_pos()
1045 static u16 at91_adc_touch_x_pos(struct at91_adc_state *st) in at91_adc_touch_x_pos()
1051 static u16 at91_adc_touch_y_pos(struct at91_adc_state *st) in at91_adc_touch_y_pos()
1056 static u16 at91_adc_touch_pressure(struct at91_adc_state *st) in at91_adc_touch_pressure()
1084 static int at91_adc_read_position(struct at91_adc_state *st, int chan, u16 *val) in at91_adc_read_position()
1099 static int at91_adc_read_pressure(struct at91_adc_state *st, int chan, u16 *val) in at91_adc_read_pressure()
1112 static void at91_adc_configure_trigger_registers(struct at91_adc_state *st, in at91_adc_configure_trigger_registers()
1130 struct at91_adc_state *st = iio_priv(indio); in at91_adc_configure_trigger()
1152 struct at91_adc_state *st = iio_priv(indio); in at91_adc_reenable_trigger()
1170 static int at91_adc_dma_size_done(struct at91_adc_state *st) in at91_adc_dma_size_done()
1202 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_dma_start()
1269 struct at91_adc_state *st) in at91_adc_buffer_check_use_irq()
1282 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_current_chan_is_touch()
1293 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_buffer_prepare()
1342 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_buffer_postdisable()
1428 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_trigger_handler_nodma()
1484 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_trigger_handler_dma()
1535 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_trigger_handler()
1582 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_setup_samp_freq()
1610 static inline unsigned at91_adc_get_sample_freq(struct at91_adc_state *st) in at91_adc_get_sample_freq()
1617 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_touch_data_handler()
1647 static void at91_adc_pen_detect_interrupt(struct at91_adc_state *st) in at91_adc_pen_detect_interrupt()
1660 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_no_pen_detect_interrupt()
1677 struct at91_adc_state *st = container_of(touch_st, in at91_adc_workq_handler()
1678 struct at91_adc_state, touch_st); in at91_adc_workq_handler()
1687 struct at91_adc_state *st = iio_priv(indio); in at91_adc_interrupt()
1737 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_read_info_raw()
1816 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_read_info_locked()
1832 static void at91_adc_temp_sensor_configure(struct at91_adc_state *st, in at91_adc_temp_sensor_configure()
1868 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_read_temp()
1926 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_read_raw()
1961 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_write_raw()
2003 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_read_avail()
2016 static void at91_adc_dma_init(struct at91_adc_state *st) in at91_adc_dma_init()
2077 static void at91_adc_dma_disable(struct at91_adc_state *st) in at91_adc_dma_disable()
2102 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_set_watermark()
2141 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_update_scan_mode()
2158 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_hw_init()
2182 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_get_fifo_state()
2191 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_get_watermark()
2237 struct at91_adc_state *st = iio_priv(indio); in at91_adc_buffer_and_trigger_init()
2272 static int at91_adc_temp_sensor_init(struct at91_adc_state *st, in at91_adc_temp_sensor_init()
2323 struct at91_adc_state *st; in at91_adc_probe()
2509 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_remove()
2528 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_suspend()
2558 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_resume()
2611 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_runtime_suspend()
2621 struct at91_adc_state *st = iio_priv(indio_dev); in at91_adc_runtime_resume()