Home
last modified time | relevance | path

Searched refs:swt (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/iio/trigger/
Diio-trig-loop.c35 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
[all …]
Diio-trig-hrtimer.c27 struct iio_sw_trigger swt; member
96 iio_trigger_poll(info->swt.trigger); in iio_hrtimer_trig_handler()
129 trig_info->swt.trigger = iio_trigger_alloc("%s", name); in iio_trig_hrtimer_probe()
130 if (!trig_info->swt.trigger) { in iio_trig_hrtimer_probe()
135 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_hrtimer_probe()
136 trig_info->swt.trigger->ops = &iio_hrtimer_trigger_ops; in iio_trig_hrtimer_probe()
137 trig_info->swt.trigger->dev.groups = iio_hrtimer_attr_groups; in iio_trig_hrtimer_probe()
145 ret = iio_trigger_register(trig_info->swt.trigger); in iio_trig_hrtimer_probe()
149 iio_swt_group_init_type_name(&trig_info->swt, name, &iio_hrtimer_type); in iio_trig_hrtimer_probe()
150 return &trig_info->swt; in iio_trig_hrtimer_probe()
[all …]
/Linux-v4.19/Documentation/iio/
Diio_configfs.txt51 static int iio_trig_hrtimer_remove(struct iio_sw_trigger *swt)