Home
last modified time | relevance | path

Searched refs:NANO (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/iio/pressure/
H A Dmprls0025pa.c409 scale = div_s64(((s64)(data->pmax - data->pmin)) * NANO, in mpr_common_probe()
411 data->scale = div_s64_rem(scale, NANO, &data->scale2); in mpr_common_probe()
416 offset = ((-1LL) * (s64)data->outmin) * NANO - in mpr_common_probe()
417 div_s64(div_s64((s64)data->pmin * NANO, scale), NANO); in mpr_common_probe()
418 data->offset = div_s64_rem(offset, NANO, &data->offset2); in mpr_common_probe()
H A Dhsc030pa.c518 hsc->p_scale = div_s64_rem(tmp, NANO, &hsc->p_scale_dec); in hsc_common_probe()
/linux/drivers/iio/
H A Dindustrialio-gts-helper.c83 if (scaler > NANO) in iio_gts_delinearize()
92 *scale_nano = frac * (NANO / scaler); in iio_gts_delinearize()
104 if (scaler > NANO || !scaler) in iio_gts_linearize()
108 (u64)(scale_nano / (NANO / scaler)); in iio_gts_linearize()
135 return iio_gts_delinearize(tmp, NANO, scale_int, scale_nano); in iio_gts_total_gain_to_scale()
574 ret = iio_gts_linearize(max_scale_int, max_scale_nano, NANO, in iio_init_iio_gts()
866 ret = iio_gts_linearize(scale_int, scale_nano, NANO, &scale_linear); in iio_gts_find_gain_for_scale_using_time()
976 return iio_gts_delinearize(lin_scale, NANO, scale_int, scale_nano); in iio_gts_get_scale()
/linux/tools/testing/selftests/alsa/
H A Dutimer-test.c23 #define NANO 1000000000ULL macro
50 self->utimer_info->resolution = (NANO / FRAME_RATE * PERIOD_SIZE); in FIXTURE_SETUP()
/linux/include/linux/
H A Dunits.h20 #define NANO 1000000000UL macro
/linux/drivers/iio/adc/
H A Dpac1921.c243 tmp = div_s64(dividend * (s64)NANO, divisor); in pac1921_calc_scale()
244 *val = (int)div_s64_rem(tmp, NANO, val2); in pac1921_calc_scale()
400 s64 tmp = curr_scale[0] * (s64)NANO + curr_scale[1]; in pac1921_read_raw()
406 *val = (int)div_s64_rem(tmp, NANO, val2); in pac1921_read_raw()
H A Dad4130.c847 ((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()
1723 nv = (u64)ret * NANO; in ad4130_fill_scale_tbls()
H A Dmcp3564.c1095 tmp1 = ((u64)ref * NANO) >> pow; in mcp3564_fill_scale_tbls()
1096 div_u64_rem(tmp1, NANO, &tmp0); in mcp3564_fill_scale_tbls()
H A Dad4000.c269 tmp0 = div_s64_rem(tmp2, NANO, &tmp1); in ad4000_fill_scale_tbl()
H A Dad7192.c921 *val += DIV_ROUND_CLOSEST_ULL((u64)st->aincom_mv * NANO, in ad7192_read_raw()
/linux/drivers/rtc/
H A Drtc-tps6594.c43 #define PPB_MULT NANO
/linux/drivers/gpu/drm/bridge/
H A Dtc358768.c646 return (u32)div_u64((u64)val * NANO, pclk); in tc358768_dpi_to_ns()
660 u64 m = (u64)val * NANO; in tc358768_dsi_bytes_to_ns()
/linux/drivers/iio/proximity/
H A Dhx9023s.c711 period_ms = div_u64(NANO, (val * MEGA + val2)); in hx9023s_set_samp_freq()