Lines Matching full:trigger

2 /* The industrial I/O core, trigger handling functions
18 #include <linux/iio/trigger.h>
24 * Make the common case (single sensor single trigger)
25 * simple by starting trigger capture from when first sensors
29 * of the trigger. (not implemented)
77 dev_set_name(&trig_info->dev, "trigger%d", trig_info->id); in iio_trigger_register()
86 pr_err("Duplicate trigger name '%s'\n", trig_info->name); in iio_trigger_register()
132 /* Search for trigger by name, assuming iio_trigger_list_lock held */
162 * This 'might' occur after the trigger state is set to disabled - in iio_reenable_work_fn()
171 * to reneable the trigger for us.
176 * 2) The trigger has been removed, but one last interrupt gets through.
190 * iio_trigger_poll() - Call the IRQ trigger handler of the consumers
191 * @trig: trigger which occurred
220 * iio_trigger_poll_nested() - Call the threaded trigger handler of the
222 * @trig: trigger which occurred
251 /* Trigger Consumer related functions */
276 * This is not currently handled. Alternative of not enabling trigger unless
288 /* Prevent the module from being removed whilst attached to a trigger */ in iio_trigger_attach_poll_func()
294 …pr_err("Could not find an available irq for trigger %s, CONFIG_IIO_CONSUMERS_PER_TRIGGER=%d limit … in iio_trigger_attach_poll_func()
306 /* Enable trigger in driver */ in iio_trigger_attach_poll_func()
314 * Check if we just registered to our own trigger: we determine that in iio_trigger_attach_poll_func()
315 * this is the case if the IIO device and the trigger device share the in iio_trigger_attach_poll_func()
402 * current_trigger_show() - trigger consumer sysfs query current trigger
406 * @buf: buffer where the current trigger name will be printed into
408 * For trigger consumers the current_trigger interface allows the trigger
412 * on success or 0 if no trigger is available
425 * current_trigger_store() - trigger consumer sysfs set current trigger
428 * @buf: string buffer that holds the name of the trigger
429 * @len: length of the trigger name held by buf
431 * For trigger consumers the current_trigger interface allows the trigger
432 * used for this device to be specified at run time based on the trigger's
503 .name = "trigger",
605 * __iio_trigger_alloc - Allocate a trigger
607 * @this_mod: module allocating the trigger
608 * @fmt: trigger name format. If it includes format
647 * @this_mod: module allocating the trigger
648 * @fmt: trigger name format. If it includes format
691 * @dev: device this trigger was allocated for
692 * @trig_info: trigger to register
694 * Managed iio_trigger_register(). The IIO trigger registered with this
722 * iio_validate_own_trigger - Check if a trigger and IIO device belong to
725 * @trig: the IIO trigger to check
730 * Return: 0 if both the trigger and the IIO device belong to the same
742 * iio_trigger_validate_own_device - Check if a trigger and IIO device belong to
744 * @trig: The IIO trigger to check
750 * Return: 0 if both the trigger and the IIO device belong to the same
770 /* Clean up an associated but not attached trigger reference */ in iio_device_unregister_trigger_consumer()