Lines Matching refs:device
10 #include <linux/device.h>
40 * @dev: device associated with the iio_trigger
48 static ssize_t iio_trigger_read_name(struct device *dev,
237 * triggering device.
276 * this is the case if the IIO device and the trigger device share the
277 * same parent device.
362 * @dev: device associated with an industrial I/O device
368 * used by the device to be queried.
373 static ssize_t iio_trigger_read_current(struct device *dev,
386 * @dev: device associated with an industrial I/O device
387 * @attr: device attribute that is being processed
392 * used for this device to be specified at run time based on the trigger's
398 static ssize_t iio_trigger_write_current(struct device *dev,
473 static void iio_trig_release(struct device *device)
475 struct iio_trigger *trig = to_iio_trigger(device);
583 static void devm_iio_trigger_release(struct device *dev, void *res)
602 struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,
628 static void devm_iio_trigger_unreg(struct device *dev, void *res)
635 * @dev: device this trigger was allocated for
647 int __devm_iio_trigger_register(struct device *dev,
676 * iio_trigger_validate_own_device - Check if a trigger and IIO device belong to
677 * the same device
679 * @indio_dev: the IIO device to check
682 * can only be attached to their own device.
684 * Return: 0 if both the trigger and the IIO device belong to the same
685 * device, -EINVAL otherwise.