Home
last modified time | relevance | path

Searched refs:trig_info (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/iio/trigger/
Diio-trig-hrtimer.c112 struct iio_hrtimer_info *trig_info; in iio_trig_hrtimer_set_state() local
114 trig_info = iio_trigger_get_drvdata(trig); in iio_trig_hrtimer_set_state()
117 hrtimer_start(&trig_info->timer, trig_info->period, in iio_trig_hrtimer_set_state()
120 hrtimer_cancel(&trig_info->timer); in iio_trig_hrtimer_set_state()
131 struct iio_hrtimer_info *trig_info; in iio_trig_hrtimer_probe() local
134 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_trig_hrtimer_probe()
135 if (!trig_info) in iio_trig_hrtimer_probe()
138 trig_info->swt.trigger = iio_trigger_alloc(NULL, "%s", name); in iio_trig_hrtimer_probe()
139 if (!trig_info->swt.trigger) { in iio_trig_hrtimer_probe()
144 iio_trigger_set_drvdata(trig_info->swt.trigger, trig_info); in iio_trig_hrtimer_probe()
[all …]
Diio-trig-loop.c80 struct iio_loop_info *trig_info; in iio_trig_loop_probe() local
83 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_trig_loop_probe()
84 if (!trig_info) in iio_trig_loop_probe()
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()
[all …]
Diio-trig-interrupt.c30 struct iio_interrupt_trigger_info *trig_info; in iio_interrupt_trigger_probe() local
51 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_interrupt_trigger_probe()
52 if (!trig_info) { in iio_interrupt_trigger_probe()
56 iio_trigger_set_drvdata(trig, trig_info); in iio_interrupt_trigger_probe()
57 trig_info->irq = irq; in iio_interrupt_trigger_probe()
77 kfree(trig_info); in iio_interrupt_trigger_probe()
87 struct iio_interrupt_trigger_info *trig_info; in iio_interrupt_trigger_remove() local
90 trig_info = iio_trigger_get_drvdata(trig); in iio_interrupt_trigger_remove()
92 free_irq(trig_info->irq, trig); in iio_interrupt_trigger_remove()
93 kfree(trig_info); in iio_interrupt_trigger_remove()
/linux-6.1.9/drivers/iio/
Dindustrialio-trigger.c67 int iio_trigger_register(struct iio_trigger *trig_info) in iio_trigger_register() argument
71 trig_info->id = ida_alloc(&iio_trigger_ida, GFP_KERNEL); in iio_trigger_register()
72 if (trig_info->id < 0) in iio_trigger_register()
73 return trig_info->id; in iio_trigger_register()
76 dev_set_name(&trig_info->dev, "trigger%d", trig_info->id); in iio_trigger_register()
78 ret = device_add(&trig_info->dev); in iio_trigger_register()
84 if (__iio_trigger_find_by_name(trig_info->name)) { in iio_trigger_register()
85 pr_err("Duplicate trigger name '%s'\n", trig_info->name); in iio_trigger_register()
89 list_add_tail(&trig_info->list, &iio_trigger_list); in iio_trigger_register()
96 device_del(&trig_info->dev); in iio_trigger_register()
[all …]
/linux-6.1.9/include/linux/iio/
Dtrigger.h134 int iio_trigger_register(struct iio_trigger *trig_info);
137 struct iio_trigger *trig_info);
143 void iio_trigger_unregister(struct iio_trigger *trig_info);
/linux-6.1.9/sound/soc/codecs/
Dcs47l35.c1528 struct madera_voice_trigger_info trig_info; in cs47l35_adsp2_irq() local
1537 trig_info.core_num = i + 1; in cs47l35_adsp2_irq()
1540 &trig_info); in cs47l35_adsp2_irq()
Dcs47l90.c2389 struct madera_voice_trigger_info trig_info; in cs47l90_adsp2_irq() local
2398 trig_info.core_num = i + 1; in cs47l90_adsp2_irq()
2401 &trig_info); in cs47l90_adsp2_irq()
Dcs47l85.c2470 struct madera_voice_trigger_info trig_info; in cs47l85_adsp2_irq() local
2479 trig_info.core_num = i + 1; in cs47l85_adsp2_irq()
2482 &trig_info); in cs47l85_adsp2_irq()