Lines Matching defs:device
16 #include <linux/device.h>
36 /* IDA to assign each registered device a unique id */
187 * @indio_dev: device
202 ssize_t iio_read_const_attr(struct device *dev,
211 * iio_device_set_clock() - Set current timestamping clock for the device
212 * @indio_dev: IIO device structure containing the device
238 * @indio_dev: device
269 * @indio_dev: device
435 static ssize_t iio_read_channel_ext_info(struct device *dev,
448 static ssize_t iio_write_channel_ext_info(struct device *dev,
529 static int iio_setup_mount_idmatrix(const struct device *dev,
557 * iio_read_mount_matrix() - retrieve iio device mounting matrix from
558 * device "mount-matrix" property
559 * @dev: device the mounting matrix property is assigned to
560 * @propname: device specific mounting matrix property name
563 * If device is assigned no mounting matrix property, a default 3x3 identity
568 int iio_read_mount_matrix(struct device *dev, const char *propname,
672 static ssize_t iio_read_channel_info(struct device *dev,
783 static ssize_t iio_read_channel_info_avail(struct device *dev,
899 static ssize_t iio_write_channel_info(struct device *dev,
962 ssize_t (*readfunc)(struct device *dev,
965 ssize_t (*writefunc)(struct device *dev,
1095 ssize_t (*readfunc)(struct device *dev,
1098 ssize_t (*writefunc)(struct device *dev,
1104 struct device *dev,
1301 * iio_free_chan_devattr_list() - Free a list of IIO device attributes
1302 * @attr_list: List of IIO device attributes
1304 * This function frees the memory allocated for each of the IIO device
1318 static ssize_t iio_show_dev_name(struct device *dev,
1328 static ssize_t iio_show_dev_label(struct device *dev,
1338 static ssize_t iio_show_timestamp_clock(struct device *dev,
1384 static ssize_t iio_store_timestamp_clock(struct device *dev,
1505 static void iio_dev_release(struct device *device)
1507 struct iio_dev *indio_dev = dev_to_iio_dev(device);
1528 * @parent: Parent device.
1531 struct iio_dev *iio_device_alloc(struct device *parent, int sizeof_priv)
1564 pr_err("failed to get device id\n");
1568 dev_set_name(&dev->dev, "iio:device%d", dev->id);
1577 * @dev: the iio_dev associated with the device
1586 static void devm_iio_device_release(struct device *dev, void *res)
1593 * @parent: Device to allocate iio_dev for, and parent for this IIO device
1602 struct iio_dev *devm_iio_device_alloc(struct device *parent, int sizeof_priv)
1625 * @inode: Inode structure for identifying the device in the file system
1626 * @filp: File structure for iio device used to keep and later access
1629 * Return: 0 on success or -EBUSY if the device is already opened
1648 * @inode: Inode structure pointer for the char device
1649 * @filp: File structure pointer for the char device
1796 * iio_device_unregister() - unregister a device from the IIO subsystem
1797 * @indio_dev: Device structure representing the device.
1820 static void devm_iio_device_unreg(struct device *dev, void *res)
1825 int __devm_iio_device_register(struct device *dev, struct iio_dev *indio_dev,
1847 * iio_device_claim_direct_mode - Keep device in direct mode
1848 * @indio_dev: the iio_dev associated with the device
1850 * If the device is in direct mode it is guaranteed to stay
1871 * @indio_dev: the iio_dev associated with the device