Lines Matching defs:channel
138 * the data collection to data0-channel only and cuts the supported range to
162 .channel = BU27034_CHAN_##_name, \
186 .channel = BU27034_CHAN_ALS,
307 * The data2 channel gain is composed by 5 non continuous bits
354 static int _bu27034_get_scale(struct bu27034_data *data, int channel, int *val,
359 ret = bu27034_get_gain(data, channel, &gain);
370 static int bu27034_get_scale(struct bu27034_data *data, int channel, int *val,
375 if (channel == BU27034_CHAN_ALS) {
382 ret = _bu27034_get_scale(data, channel, val, val2);
408 * We keep the same gain for channel 2 as we set for channel 0
419 * channel 2 to be used in any generic cases - the intensity
421 * documented. Also, channel 2 is not used for visible light.
424 * channel 2 - then it is probably specifically targeted to this
445 * We don't allow setting channel 2 gain as it messes up the
446 * gain for channel 0 - which shares the high bits
600 * Populate information for the other channel which should also
616 * can support requested scale for requested channel, while
632 /* Can the other channel(s) maintain scale? */
800 * Max gain for a channel is 4096. The max u64 (0xffffffffffffffffULL)
1181 return bu27034_get_scale(data, chan->channel, val, val2);
1201 * Reading one channel at a time is inefficient but we
1205 ret = result_get(data, chan->channel, val);
1248 ret = bu27034_set_scale(data, chan->channel, val, val2);