Lines Matching refs:trig
396 iio_trigger_notify_done(indio_dev->trig); in ad_sd_trigger_handler()
418 iio_trigger_poll(sigma_delta->trig, iio_get_time_ns()); in ad_sd_data_rdy_trig_poll()
431 int ad_sd_validate_trigger(struct iio_dev *indio_dev, struct iio_trigger *trig) in ad_sd_validate_trigger() argument
435 if (sigma_delta->trig != trig) in ad_sd_validate_trigger()
451 sigma_delta->trig = iio_trigger_alloc("%s-dev%d", indio_dev->name, in ad_sd_probe_trigger()
453 if (sigma_delta->trig == NULL) { in ad_sd_probe_trigger()
457 sigma_delta->trig->ops = &ad_sd_trigger_ops; in ad_sd_probe_trigger()
472 sigma_delta->trig->dev.parent = &sigma_delta->spi->dev; in ad_sd_probe_trigger()
473 iio_trigger_set_drvdata(sigma_delta->trig, sigma_delta); in ad_sd_probe_trigger()
475 ret = iio_trigger_register(sigma_delta->trig); in ad_sd_probe_trigger()
480 indio_dev->trig = sigma_delta->trig; in ad_sd_probe_trigger()
487 iio_trigger_free(sigma_delta->trig); in ad_sd_probe_trigger()
496 iio_trigger_unregister(sigma_delta->trig); in ad_sd_remove_trigger()
498 iio_trigger_free(sigma_delta->trig); in ad_sd_remove_trigger()