Lines Matching defs:index
121 * __fwnode_iio_simple_xlate - translate iiospec to the IIO channel index
127 * whether IIO index is less than num_channels (that is specified in the
137 dev_err(&indio_dev->dev, "invalid channel index %llu\n",
146 struct fwnode_handle *fwnode, int index)
155 index, &iiospec);
168 index = indio_dev->info->fwnode_xlate(indio_dev, &iiospec);
170 index = __fwnode_iio_simple_xlate(indio_dev, &iiospec);
172 if (index < 0)
174 channel->channel = &indio_dev->channels[index];
180 return index;
184 int index)
189 if (index < 0)
196 err = __fwnode_iio_channel_get(channel, fwnode, index);
211 int index = 0;
216 * index will be an error code, and fwnode_iio_channel_get()
220 index = fwnode_property_match_string(fwnode, "io-channel-names",
223 chan = fwnode_iio_channel_get(fwnode, index);
227 if (index >= 0) {
229 fwnode, name, index);
240 * If index < 0, then fwnode_property_get_reference_args() fails