Searched refs:lin_scale (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/ |
H A D | industrialio-gts-helper.c | 78 static int iio_gts_delinearize(u64 lin_scale, unsigned long scaler, in iio_gts_delinearize() argument 89 frac = do_div(lin_scale, scaler); in iio_gts_delinearize() 91 *scale_whole = lin_scale; in iio_gts_delinearize() 98 unsigned long scaler, u64 *lin_scale) in iio_gts_linearize() argument 107 *lin_scale = (u64)scale_whole * (u64)scaler + in iio_gts_linearize() 969 u64 lin_scale; in iio_gts_get_scale() local 972 ret = iio_gts_get_scale_linear(gts, gain, time, &lin_scale); in iio_gts_get_scale() 976 return iio_gts_delinearize(lin_scale, NANO, scale_int, scale_nano); in iio_gts_get_scale()
|