Lines Matching refs:swt
35 struct iio_sw_trigger swt; member
88 trig_info->swt.trigger = iio_trigger_alloc("%s", name); in iio_trig_loop_probe()
89 if (!trig_info->swt.trigger) { in iio_trig_loop_probe()
94 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_loop_probe()
95 trig_info->swt.trigger->ops = &iio_loop_trigger_ops; in iio_trig_loop_probe()
97 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_loop_probe()
101 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_loop_type); in iio_trig_loop_probe()
103 return &trig_info->swt; in iio_trig_loop_probe()
106 iio_trigger_free(trig_info->swt.trigger); in iio_trig_loop_probe()
113 static int iio_trig_loop_remove(struct iio_sw_trigger *swt) in iio_trig_loop_remove() argument
117 trig_info = iio_trigger_get_drvdata(swt->trigger); in iio_trig_loop_remove()
119 iio_trigger_unregister(swt->trigger); in iio_trig_loop_remove()
120 iio_trigger_free(swt->trigger); in iio_trig_loop_remove()