Lines Matching refs:iiospec
130 const struct fwnode_reference_args *iiospec) in __fwnode_iio_simple_xlate() argument
132 if (!iiospec->nargs) in __fwnode_iio_simple_xlate()
135 if (iiospec->args[0] >= indio_dev->num_channels) { in __fwnode_iio_simple_xlate()
137 iiospec->args[0]); in __fwnode_iio_simple_xlate()
141 return iiospec->args[0]; in __fwnode_iio_simple_xlate()
147 struct fwnode_reference_args iiospec; in __fwnode_iio_channel_get() local
154 index, &iiospec); in __fwnode_iio_channel_get()
158 idev = bus_find_device_by_fwnode(&iio_bus_type, iiospec.fwnode); in __fwnode_iio_channel_get()
160 fwnode_handle_put(iiospec.fwnode); in __fwnode_iio_channel_get()
167 index = indio_dev->info->fwnode_xlate(indio_dev, &iiospec); in __fwnode_iio_channel_get()
169 index = __fwnode_iio_simple_xlate(indio_dev, &iiospec); in __fwnode_iio_channel_get()
170 fwnode_handle_put(iiospec.fwnode); in __fwnode_iio_channel_get()