Lines Matching defs:value
192 static int adc12138_read_conv_data(struct adc12138 *adc, __be16 *value)
196 value, sizeof(*value));
209 __be16 *value)
223 return adc12138_read_conv_data(adc, value);
227 struct iio_chan_spec const *channel, int *value,
242 *value = sign_extend32(be16_to_cpu(data) >> 3, 12);
249 *value = ret;
255 *value -= ret;
259 *value /= 1000;
265 *value = regulator_get_voltage(adc->vref_n);
266 if (*value < 0)
267 return *value;
269 *value = 0;
273 *value /= 1000;