Lines Matching refs:indio
1141 struct iio_dev *indio = iio_trigger_get_drvdata(trig); in at91_adc_configure_trigger() local
1142 struct at91_adc_state *st = iio_priv(indio); in at91_adc_configure_trigger()
1163 struct iio_dev *indio = iio_trigger_get_drvdata(trig); in at91_adc_reenable_trigger() local
1164 struct at91_adc_state *st = iio_priv(indio); in at91_adc_reenable_trigger()
1280 static bool at91_adc_buffer_check_use_irq(struct iio_dev *indio, in at91_adc_buffer_check_use_irq() argument
1287 if (iio_trigger_validate_own_device(indio->trig, indio)) in at91_adc_buffer_check_use_irq()
1415 static struct iio_trigger *at91_adc_allocate_trigger(struct iio_dev *indio, in at91_adc_allocate_trigger() argument
1421 trig = devm_iio_trigger_alloc(&indio->dev, "%s-dev%d-%s", indio->name, in at91_adc_allocate_trigger()
1422 iio_device_id(indio), trigger_name); in at91_adc_allocate_trigger()
1426 trig->dev.parent = indio->dev.parent; in at91_adc_allocate_trigger()
1427 iio_trigger_set_drvdata(trig, indio); in at91_adc_allocate_trigger()
1430 ret = devm_iio_trigger_register(&indio->dev, trig); in at91_adc_allocate_trigger()
1698 struct iio_dev *indio = private; in at91_adc_interrupt() local
1699 struct at91_adc_state *st = iio_priv(indio); in at91_adc_interrupt()
1714 at91_adc_no_pen_detect_interrupt(indio); in at91_adc_interrupt()
1718 at91_adc_touch_data_handler(indio); in at91_adc_interrupt()
1727 } else if (iio_buffer_enabled(indio) && in at91_adc_interrupt()
1731 iio_trigger_poll(indio->trig); in at91_adc_interrupt()
1732 } else if (iio_buffer_enabled(indio) && st->dma_st.dma_chan) { in at91_adc_interrupt()
1736 } else if (!iio_buffer_enabled(indio)) { in at91_adc_interrupt()
2234 struct iio_dev *indio) in at91_adc_buffer_and_trigger_init() argument
2236 struct at91_adc_state *st = iio_priv(indio); in at91_adc_buffer_and_trigger_init()
2245 ret = devm_iio_triggered_buffer_setup_ext(&indio->dev, indio, in at91_adc_buffer_and_trigger_init()
2256 st->trig = at91_adc_allocate_trigger(indio, st->selected_trig->name); in at91_adc_buffer_and_trigger_init()