Lines Matching refs:trig
65 iio_trigger_notify_done(indio_dev->trig); in itg3200_trigger_handler()
82 static int itg3200_data_rdy_trigger_set_state(struct iio_trigger *trig, in itg3200_data_rdy_trigger_set_state() argument
85 struct iio_dev *indio_dev = iio_trigger_get_drvdata(trig); in itg3200_data_rdy_trigger_set_state()
116 st->trig = iio_trigger_alloc(&st->i2c->dev, "%s-dev%d", indio_dev->name, in itg3200_probe_trigger()
118 if (!st->trig) in itg3200_probe_trigger()
125 st->trig); in itg3200_probe_trigger()
130 st->trig->ops = &itg3200_trigger_ops; in itg3200_probe_trigger()
131 iio_trigger_set_drvdata(st->trig, indio_dev); in itg3200_probe_trigger()
132 ret = iio_trigger_register(st->trig); in itg3200_probe_trigger()
137 indio_dev->trig = iio_trigger_get(st->trig); in itg3200_probe_trigger()
142 free_irq(st->i2c->irq, st->trig); in itg3200_probe_trigger()
144 iio_trigger_free(st->trig); in itg3200_probe_trigger()
152 iio_trigger_unregister(st->trig); in itg3200_remove_trigger()
153 free_irq(st->i2c->irq, st->trig); in itg3200_remove_trigger()
154 iio_trigger_free(st->trig); in itg3200_remove_trigger()