• Home
  • Raw
  • Download

Lines Matching refs:trig

57 	struct iio_trigger	**trig;  member
89 iio_trigger_notify_done(idev->trig); in at91_adc_trigger_handler()
110 iio_trigger_poll(idev->trig, iio_get_time_ns()); in at91_adc_eoc_trigger()
193 static int at91_adc_configure_trigger(struct iio_trigger *trig, bool state) in at91_adc_configure_trigger() argument
195 struct iio_dev *idev = iio_trigger_get_drvdata(trig); in at91_adc_configure_trigger()
205 idev->trig->name); in at91_adc_configure_trigger()
252 struct iio_trigger *trig; in at91_adc_allocate_trigger() local
255 trig = iio_trigger_alloc("%s-dev%d-%s", idev->name, in at91_adc_allocate_trigger()
257 if (trig == NULL) in at91_adc_allocate_trigger()
260 trig->dev.parent = idev->dev.parent; in at91_adc_allocate_trigger()
261 iio_trigger_set_drvdata(trig, idev); in at91_adc_allocate_trigger()
262 trig->ops = &at91_adc_trigger_ops; in at91_adc_allocate_trigger()
264 ret = iio_trigger_register(trig); in at91_adc_allocate_trigger()
268 return trig; in at91_adc_allocate_trigger()
276 st->trig = devm_kzalloc(&idev->dev, in at91_adc_trigger_init()
277 st->trigger_number * sizeof(st->trig), in at91_adc_trigger_init()
280 if (st->trig == NULL) { in at91_adc_trigger_init()
289 st->trig[i] = at91_adc_allocate_trigger(idev, in at91_adc_trigger_init()
291 if (st->trig[i] == NULL) { in at91_adc_trigger_init()
303 iio_trigger_unregister(st->trig[i]); in at91_adc_trigger_init()
304 iio_trigger_free(st->trig[i]); in at91_adc_trigger_init()
316 iio_trigger_unregister(st->trig[i]); in at91_adc_trigger_remove()
317 iio_trigger_free(st->trig[i]); in at91_adc_trigger_remove()
532 struct at91_adc_trigger *trig = st->trigger_list + i; in at91_adc_probe_dt() local
540 trig->name = name; in at91_adc_probe_dt()
547 trig->value = prop; in at91_adc_probe_dt()
548 trig->is_external = of_property_read_bool(trig_node, "trigger-external"); in at91_adc_probe_dt()