Lines Matching refs:swt
34 struct iio_sw_trigger swt; member
87 trig_info->swt.trigger = iio_trigger_alloc(NULL, "%s", name); in iio_trig_loop_probe()
88 if (!trig_info->swt.trigger) { in iio_trig_loop_probe()
93 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_loop_probe()
94 trig_info->swt.trigger->ops = &iio_loop_trigger_ops; in iio_trig_loop_probe()
96 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_loop_probe()
100 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_loop_type); in iio_trig_loop_probe()
102 return &trig_info->swt; in iio_trig_loop_probe()
105 iio_trigger_free(trig_info->swt.trigger); in iio_trig_loop_probe()
112 static int iio_trig_loop_remove(struct iio_sw_trigger *swt) in iio_trig_loop_remove() argument
116 trig_info = iio_trigger_get_drvdata(swt->trigger); in iio_trig_loop_remove()
118 iio_trigger_unregister(swt->trigger); in iio_trig_loop_remove()
119 iio_trigger_free(swt->trigger); in iio_trig_loop_remove()