Searched refs:trig_info (Results 1 – 3 of 3) sorted by relevance
/drivers/staging/iio/trigger/ |
D | iio-trig-periodic-rtc.c | 33 struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); in iio_trig_periodic_rtc_set_state() local 34 if (trig_info->frequency == 0) in iio_trig_periodic_rtc_set_state() 36 printk(KERN_INFO "trigger frequency is %d\n", trig_info->frequency); in iio_trig_periodic_rtc_set_state() 37 return rtc_irq_set_state(trig_info->rtc, &trig_info->task, state); in iio_trig_periodic_rtc_set_state() 45 struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); in iio_trig_periodic_read_freq() local 46 return sprintf(buf, "%u\n", trig_info->frequency); in iio_trig_periodic_read_freq() 55 struct iio_prtc_trigger_info *trig_info = iio_trigger_get_drvdata(trig); in iio_trig_periodic_write_freq() local 63 ret = rtc_irq_set_freq(trig_info->rtc, &trig_info->task, val); in iio_trig_periodic_write_freq() 67 trig_info->frequency = val; in iio_trig_periodic_write_freq() 107 struct iio_prtc_trigger_info *trig_info; in iio_trig_periodic_rtc_probe() local [all …]
|
D | iio-trig-gpio.c | 56 struct iio_gpio_trigger_info *trig_info; in iio_gpio_trigger_probe() local 81 trig_info = kzalloc(sizeof(*trig_info), GFP_KERNEL); in iio_gpio_trigger_probe() 82 if (!trig_info) { in iio_gpio_trigger_probe() 86 iio_trigger_set_drvdata(trig, trig_info); in iio_gpio_trigger_probe() 87 trig_info->irq = irq; in iio_gpio_trigger_probe() 115 kfree(trig_info); in iio_gpio_trigger_probe() 124 trig_info = iio_trigger_get_drvdata(trig); in iio_gpio_trigger_probe() 125 free_irq(gpio_to_irq(trig_info->irq), trig); in iio_gpio_trigger_probe() 126 kfree(trig_info); in iio_gpio_trigger_probe() 136 struct iio_gpio_trigger_info *trig_info; in iio_gpio_trigger_remove() local [all …]
|
/drivers/iio/ |
D | industrialio-trigger.c | 68 int iio_trigger_register(struct iio_trigger *trig_info) in iio_trigger_register() argument 72 trig_info->id = ida_simple_get(&iio_trigger_ida, 0, 0, GFP_KERNEL); in iio_trigger_register() 73 if (trig_info->id < 0) { in iio_trigger_register() 74 ret = trig_info->id; in iio_trigger_register() 78 dev_set_name(&trig_info->dev, "trigger%ld", in iio_trigger_register() 79 (unsigned long) trig_info->id); in iio_trigger_register() 81 ret = device_add(&trig_info->dev); in iio_trigger_register() 87 list_add_tail(&trig_info->list, &iio_trigger_list); in iio_trigger_register() 93 ida_simple_remove(&iio_trigger_ida, trig_info->id); in iio_trigger_register() 99 void iio_trigger_unregister(struct iio_trigger *trig_info) in iio_trigger_unregister() argument [all …]
|