Lines Matching refs:trig
17 struct iio_trigger *trig; member
94 struct iio_sysfs_trig *trig = container_of(work, struct iio_sysfs_trig, in iio_sysfs_trigger_work() local
97 iio_trigger_poll(trig->trig); in iio_sysfs_trigger_work()
103 struct iio_trigger *trig = to_iio_trigger(dev); in iio_sysfs_trigger_poll() local
104 struct iio_sysfs_trig *sysfs_trig = iio_trigger_get_drvdata(trig); in iio_sysfs_trigger_poll()
149 t->trig = iio_trigger_alloc(&iio_sysfs_trig_dev, "sysfstrig%d", id); in iio_sysfs_trigger_probe()
150 if (!t->trig) { in iio_sysfs_trigger_probe()
155 t->trig->dev.groups = iio_sysfs_trigger_attr_groups; in iio_sysfs_trigger_probe()
156 iio_trigger_set_drvdata(t->trig, t); in iio_sysfs_trigger_probe()
160 ret = iio_trigger_register(t->trig); in iio_sysfs_trigger_probe()
169 iio_trigger_free(t->trig); in iio_sysfs_trigger_probe()
192 iio_trigger_unregister(t->trig); in iio_sysfs_trigger_remove()
194 iio_trigger_free(t->trig); in iio_sysfs_trigger_remove()