Lines Matching refs:trig_info
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()
95 list_add_tail(&trig_info->list, &iio_trigger_list); in __iio_trigger_register()
102 device_del(&trig_info->dev); in __iio_trigger_register()
104 ida_simple_remove(&iio_trigger_ida, trig_info->id); in __iio_trigger_register()
109 void iio_trigger_unregister(struct iio_trigger *trig_info) in iio_trigger_unregister() argument
112 list_del(&trig_info->list); in iio_trigger_unregister()
115 ida_simple_remove(&iio_trigger_ida, trig_info->id); in iio_trigger_unregister()
117 device_del(&trig_info->dev); in iio_trigger_unregister()
683 struct iio_trigger *trig_info, in __devm_iio_trigger_register() argument
693 *ptr = trig_info; in __devm_iio_trigger_register()
694 ret = __iio_trigger_register(trig_info, this_mod); in __devm_iio_trigger_register()
712 struct iio_trigger *trig_info) in devm_iio_trigger_unregister() argument
717 trig_info); in devm_iio_trigger_unregister()