Lines Matching refs:indio

1129 	struct iio_dev *indio = iio_trigger_get_drvdata(trig);  in at91_adc_configure_trigger()  local
1130 struct at91_adc_state *st = iio_priv(indio); in at91_adc_configure_trigger()
1151 struct iio_dev *indio = iio_trigger_get_drvdata(trig); in at91_adc_reenable_trigger() local
1152 struct at91_adc_state *st = iio_priv(indio); in at91_adc_reenable_trigger()
1268 static bool at91_adc_buffer_check_use_irq(struct iio_dev *indio, in at91_adc_buffer_check_use_irq() argument
1275 if (iio_trigger_validate_own_device(indio->trig, indio)) in at91_adc_buffer_check_use_irq()
1403 static struct iio_trigger *at91_adc_allocate_trigger(struct iio_dev *indio, in at91_adc_allocate_trigger() argument
1409 trig = devm_iio_trigger_alloc(&indio->dev, "%s-dev%d-%s", indio->name, in at91_adc_allocate_trigger()
1410 iio_device_id(indio), trigger_name); in at91_adc_allocate_trigger()
1414 trig->dev.parent = indio->dev.parent; in at91_adc_allocate_trigger()
1415 iio_trigger_set_drvdata(trig, indio); in at91_adc_allocate_trigger()
1418 ret = devm_iio_trigger_register(&indio->dev, trig); in at91_adc_allocate_trigger()
1686 struct iio_dev *indio = private; in at91_adc_interrupt() local
1687 struct at91_adc_state *st = iio_priv(indio); in at91_adc_interrupt()
1702 at91_adc_no_pen_detect_interrupt(indio); in at91_adc_interrupt()
1706 at91_adc_touch_data_handler(indio); in at91_adc_interrupt()
1715 } else if (iio_buffer_enabled(indio) && in at91_adc_interrupt()
1719 iio_trigger_poll(indio->trig); in at91_adc_interrupt()
1720 } else if (iio_buffer_enabled(indio) && st->dma_st.dma_chan) { in at91_adc_interrupt()
1724 } else if (!iio_buffer_enabled(indio)) { in at91_adc_interrupt()
2222 struct iio_dev *indio) in at91_adc_buffer_and_trigger_init() argument
2224 struct at91_adc_state *st = iio_priv(indio); in at91_adc_buffer_and_trigger_init()
2233 ret = devm_iio_triggered_buffer_setup_ext(&indio->dev, indio, in at91_adc_buffer_and_trigger_init()
2244 st->trig = at91_adc_allocate_trigger(indio, st->selected_trig->name); in at91_adc_buffer_and_trigger_init()