Lines Matching full:trigger

2 /* The industrial I/O core, trigger handling functions
17 #include <linux/iio/trigger.h>
23 * Make the common case (single sensor single trigger)
24 * simple by starting trigger capture from when first sensors
28 * of the trigger. (not implemented)
76 dev_set_name(&trig_info->dev, "trigger%d", trig_info->id); in iio_trigger_register()
85 pr_err("Duplicate trigger name '%s'\n", trig_info->name); in iio_trigger_register()
134 /* Search for trigger by name, assuming iio_trigger_list_lock held */
168 * This 'might' occur after the trigger state is set to disabled - in iio_reenable_work_fn()
177 * to reneable the trigger for us.
182 * 2) The trigger has been removed, but one last interrupt gets through.
244 /* Trigger Consumer related functions */
270 * This is not currently handled. Alternative of not enabling trigger unless
282 /* Prevent the module from being removed whilst attached to a trigger */ in iio_trigger_attach_poll_func()
288 …pr_err("Could not find an available irq for trigger %s, CONFIG_IIO_CONSUMERS_PER_TRIGGER=%d limit … in iio_trigger_attach_poll_func()
300 /* Enable trigger in driver */ in iio_trigger_attach_poll_func()
308 * Check if we just registered to our own trigger: we determine that in iio_trigger_attach_poll_func()
309 * this is the case if the IIO device and the trigger device share the in iio_trigger_attach_poll_func()
395 * current_trigger_show() - trigger consumer sysfs query current trigger
399 * @buf: buffer where the current trigger name will be printed into
401 * For trigger consumers the current_trigger interface allows the trigger
405 * on success or 0 if no trigger is available
418 * current_trigger_store() - trigger consumer sysfs set current trigger
421 * @buf: string buffer that holds the name of the trigger
422 * @len: length of the trigger name held by buf
424 * For trigger consumers the current_trigger interface allows the trigger
425 * used for this device to be specified at run time based on the trigger's
500 .name = "trigger",
602 * __iio_trigger_alloc - Allocate a trigger
604 * @this_mod: module allocating the trigger
605 * @fmt: trigger name format. If it includes format
644 * @this_mod: module allocating the trigger
645 * @fmt: trigger name format. If it includes format
688 * @dev: device this trigger was allocated for
689 * @trig_info: trigger to register
691 * Managed iio_trigger_register(). The IIO trigger registered with this
719 * iio_trigger_validate_own_device - Check if a trigger and IIO device belong to
721 * @trig: The IIO trigger to check
727 * Return: 0 if both the trigger and the IIO device belong to the same
747 /* Clean up an associated but not attached trigger reference */ in iio_device_unregister_trigger_consumer()