Searched refs:trig_info (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/iio/trigger/ |
D | iio-trig-hrtimer.c | 103 struct iio_hrtimer_info *trig_info; in iio_trig_hrtimer_set_state() local 105 trig_info = iio_trigger_get_drvdata(trig); in iio_trig_hrtimer_set_state() 108 hrtimer_start(&trig_info->timer, trig_info->period, in iio_trig_hrtimer_set_state() 111 hrtimer_cancel(&trig_info->timer); in iio_trig_hrtimer_set_state() 122 struct iio_hrtimer_info *trig_info; in iio_trig_hrtimer_probe() local 125 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_trig_hrtimer_probe() 126 if (!trig_info) in iio_trig_hrtimer_probe() 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() [all …]
|
D | iio-trig-loop.c | 81 struct iio_loop_info *trig_info; in iio_trig_loop_probe() local 84 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_trig_loop_probe() 85 if (!trig_info) in iio_trig_loop_probe() 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() [all …]
|
D | iio-trig-interrupt.c | 36 struct iio_interrupt_trigger_info *trig_info; in iio_interrupt_trigger_probe() local 57 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_interrupt_trigger_probe() 58 if (!trig_info) { in iio_interrupt_trigger_probe() 62 iio_trigger_set_drvdata(trig, trig_info); in iio_interrupt_trigger_probe() 63 trig_info->irq = irq; in iio_interrupt_trigger_probe() 84 kfree(trig_info); in iio_interrupt_trigger_probe() 94 struct iio_interrupt_trigger_info *trig_info; in iio_interrupt_trigger_remove() local 97 trig_info = iio_trigger_get_drvdata(trig); in iio_interrupt_trigger_remove() 99 free_irq(trig_info->irq, trig); in iio_interrupt_trigger_remove() 100 kfree(trig_info); in iio_interrupt_trigger_remove()
|
/Linux-v4.19/include/linux/iio/ |
D | trigger.h | 130 #define iio_trigger_register(trig_info) \ argument 131 __iio_trigger_register((trig_info), THIS_MODULE) 132 int __iio_trigger_register(struct iio_trigger *trig_info, 135 #define devm_iio_trigger_register(dev, trig_info) \ argument 136 __devm_iio_trigger_register((dev), (trig_info), THIS_MODULE) 138 struct iio_trigger *trig_info, 145 void iio_trigger_unregister(struct iio_trigger *trig_info); 148 struct iio_trigger *trig_info);
|
/Linux-v4.19/drivers/iio/ |
D | industrialio-trigger.c | 69 int __iio_trigger_register(struct iio_trigger *trig_info, in __iio_trigger_register() argument 74 trig_info->owner = this_mod; in __iio_trigger_register() 76 trig_info->id = ida_simple_get(&iio_trigger_ida, 0, 0, GFP_KERNEL); in __iio_trigger_register() 77 if (trig_info->id < 0) in __iio_trigger_register() 78 return trig_info->id; in __iio_trigger_register() 81 dev_set_name(&trig_info->dev, "trigger%ld", in __iio_trigger_register() 82 (unsigned long) trig_info->id); in __iio_trigger_register() 84 ret = device_add(&trig_info->dev); in __iio_trigger_register() 90 if (__iio_trigger_find_by_name(trig_info->name)) { in __iio_trigger_register() 91 pr_err("Duplicate trigger name '%s'\n", trig_info->name); in __iio_trigger_register() [all …]
|