Searched refs:NANO (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/iio/pressure/ |
D | mprls0025pa.c | 385 scale = div_s64(((s64)(data->pmax - data->pmin)) * NANO, in mpr_probe() 387 data->scale = div_s64_rem(scale, NANO, &data->scale2); in mpr_probe() 392 offset = ((-1LL) * (s64)data->outmin) * NANO - in mpr_probe() 393 div_s64(div_s64((s64)data->pmin * NANO, scale), NANO); in mpr_probe() 394 data->offset = div_s64_rem(offset, NANO, &data->offset2); in mpr_probe()
|
/Linux-v6.6/drivers/iio/ |
D | industrialio-gts-helper.c | 96 if (scaler > NANO) in iio_gts_delinearize() 105 *scale_nano = frac * (NANO / scaler); in iio_gts_delinearize() 117 if (scaler > NANO || !scaler) in iio_gts_linearize() 121 (u64)(scale_nano / (NANO / scaler)); in iio_gts_linearize() 148 return iio_gts_delinearize(tmp, NANO, scale_int, scale_nano); in iio_gts_total_gain_to_scale() 582 ret = iio_gts_linearize(max_scale_int, max_scale_nano, NANO, in iio_init_iio_gts() 874 ret = iio_gts_linearize(scale_int, scale_nano, NANO, &scale_linear); in iio_gts_find_gain_for_scale_using_time() 984 return iio_gts_delinearize(lin_scale, NANO, scale_int, scale_nano); in iio_gts_get_scale()
|
/Linux-v6.6/include/linux/ |
D | units.h | 19 #define NANO 1000000000UL macro
|
/Linux-v6.6/drivers/iio/adc/ |
D | ad4130.c | 847 ((u64)val * NANO + val2); in ad4130_freq_to_fs() 848 divisor = (u64)AD4130_MAX_ODR * NANO; in ad4130_freq_to_fs() 873 temp = div_u64((u64)dividend * NANO, divisor); in ad4130_fs_to_freq() 874 *val = div_u64_rem(temp, NANO, val2); in ad4130_fs_to_freq() 1753 nv = (u64)ret * NANO; in ad4130_fill_scale_tbls()
|