Searched refs:trig_info (Results 1 – 4 of 4) sorted by relevance
/drivers/staging/iio/trigger/ |
D | iio-trig-periodic-rtc.c | 33 struct iio_prtc_trigger_info *trig_info = trig->private_data; 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 = trig->private_data; 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 = trig->private_data; 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 trig->private_data = 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 = trig->private_data; 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/staging/iio/ |
D | industrialio-trigger.c | 60 static int iio_trigger_register_sysfs(struct iio_trigger *trig_info) in iio_trigger_register_sysfs() argument 62 return sysfs_add_file_to_group(&trig_info->dev.kobj, in iio_trigger_register_sysfs() 67 static void iio_trigger_unregister_sysfs(struct iio_trigger *trig_info) in iio_trigger_unregister_sysfs() argument 69 sysfs_remove_file_from_group(&trig_info->dev.kobj, in iio_trigger_unregister_sysfs() 74 int iio_trigger_register(struct iio_trigger *trig_info) in iio_trigger_register() argument 78 trig_info->id = ida_simple_get(&iio_trigger_ida, 0, 0, GFP_KERNEL); in iio_trigger_register() 79 if (trig_info->id < 0) { in iio_trigger_register() 80 ret = trig_info->id; in iio_trigger_register() 84 dev_set_name(&trig_info->dev, "trigger%ld", in iio_trigger_register() 85 (unsigned long) trig_info->id); in iio_trigger_register() [all …]
|
D | trigger.h | 97 int iio_trigger_register(struct iio_trigger *trig_info); 103 void iio_trigger_unregister(struct iio_trigger *trig_info);
|