Lines Matching defs:scale
80 * For IIO_VAL_INT_PLUS_{MICRO,NANO} scale types if either *val
81 * OR *val2 is negative the schan scale is negative, i.e.
95 * If only one of the rescaler elements or the schan scale is
96 * negative, the combined scale is negative.
113 int scale, int scale2, int schan_off,
121 *val = div_s64(tmp, scale) + schan_off;
124 *val = div_s64(rescale->offset, scale) + schan_off;
128 *val = div_s64(tmp, scale) + schan_off;
132 tmp2 = ((s64)scale * 1000000000LL) + scale2;
137 tmp2 = ((s64)scale * 1000000LL) + scale2;
151 int scale, scale2;
160 * read the processed data and scale it by 1/1
201 * scale = schan_scale * rescaler_scale
219 ret = iio_read_channel_scale(rescale->source, &scale, &scale2);
220 return rescale_process_offset(rescale, ret, scale, scale2,
225 * If we get here we have no scale so scale 1:1 but apply
295 dev_info(dev, "using raw+scale/offset source channel\n");