/kernel/linux/linux-5.10/include/linux/ |
D | math64.h | 85 #define div64_long(x, y) div_s64((x), (y)) 136 #ifndef div_s64 137 static inline s64 div_s64(s64 dividend, s32 divisor) in div_s64() function 299 div_s64((__x + (__d / 2)), __d) : \ 300 div_s64((__x - (__d / 2)), __d); \
|
D | fixp-arith.h | 136 return v1 + div_s64(tmp, dx); in fixp_sin32_rad()
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | amlogic_thermal.c | 124 factor = div_s64(factor, 100); in amlogic_thermal_code_to_millicelsius() 127 Uptat = div_s64(Uptat, 100); in amlogic_thermal_code_to_millicelsius() 129 Uptat = div_s64(Uptat, BIT(16) + factor); in amlogic_thermal_code_to_millicelsius() 132 temp = div_s64(temp, BIT(16)); in amlogic_thermal_code_to_millicelsius()
|
D | armada_thermal.c | 393 *temp = div_s64((m * sample) - b, div); in armada_read_sensor() 395 *temp = div_s64(b - (m * sample), div); in armada_read_sensor() 466 sample = div_s64(((temp_mc * div) + b), m); in armada_mc_to_reg_temp() 468 sample = div_s64((b - (temp_mc * div)), m); in armada_mc_to_reg_temp()
|
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.h | 48 n = div_s64(a + b - 1, b); in future_base_time() 58 return div_s64(ns, 200); in ns_to_sja1105_delta()
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
D | cros_ec_sensorhub_ring.c | 289 div_s64(state->median_m * state->x_history[i], in cros_ec_sensor_ring_ts_filter_update() 329 return div_s64(state->median_m * (x - state->x_offset), M_PRECISION) in cros_ec_sensor_ring_ts_filter() 487 s64 avg = div_s64(sensorhub->future_timestamp_total_ns, in cros_ec_sensor_ring_process_event() 642 sample_period = div_s64(batch_timestamp - in cros_ec_sensor_ring_spread_add() 743 time_period = div_s64(current_timestamp - timestamp, count); in cros_ec_sensor_ring_spread_add_legacy()
|
/kernel/linux/linux-5.10/kernel/time/ |
D | ntp.c | 345 time_offset = div_s64(offset64 << NTP_SCALE_SHIFT, NTP_INTERVAL_FREQ); in ntp_update_offset() 904 ftemp = div_s64(((s64)(-freq_norm.nsec)) << NTP_SCALE_SHIFT, in hardpps_update_freq() 925 pps_stabil += (div_s64(((s64)delta_mod) << in hardpps_update_freq() 961 time_offset = div_s64(((s64)correction) << NTP_SCALE_SHIFT, in hardpps_update_phase()
|
/kernel/linux/linux-5.10/drivers/iio/afe/ |
D | iio-rescale.c | 63 tmp = div_s64(tmp, rescale->denominator); in rescale_read_raw() 65 tmp = div_s64(tmp, 1000000000LL); in rescale_read_raw()
|
/kernel/linux/linux-5.10/drivers/iio/common/cros_ec_sensors/ |
D | cros_ec_sensors.c | 111 *val = div_s64(val64 * 980665, 10); in cros_ec_sensors_read() 122 *val2 = div_s64(val64 * 3141592653ULL, in cros_ec_sensors_read()
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
D | icp10100.c | 293 p_lut[0] = lut_lower + (int32_t)div_s64(val1, inv_quadr_factor); in icp10100_get_pressure() 296 (int32_t)div_s64(val1, inv_quadr_factor); in icp10100_get_pressure() 298 p_lut[2] = lut_upper + (int32_t)div_s64(val1, inv_quadr_factor); in icp10100_get_pressure()
|
D | dps310.c | 686 pressure += div_s64(rem, 1000000000LL); in dps310_calculate_pressure() 743 c0 = div_s64((s64)kt * (s64)data->c0, 2); in dps310_calculate_temp() 749 return (int)div_s64(t * 1000LL, kt); in dps310_calculate_temp()
|
D | dlhl60d.c | 175 tmp = div_s64(125LL * st->info.fss * 24909 * 100, in dlh_read_raw()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-tps65910.c | 294 tmp = div_s64(tmp, TICKS_PER_HOUR); in tps65910_read_offset() 318 tmp = div_s64(tmp, PPB_MULT); in tps65910_set_offset()
|
D | rtc-mt6397.c | 112 days = div_s64(time, 86400); in mtk_rtc_read_time()
|
/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_ring.c | 51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period()
|
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_timestamp.c | 132 period = div_s64(delta, fifo_nb); in inv_icm42600_timestamp_interrupt()
|
D | inv_icm42600_accel.c | 431 bias = div_s64(val64, 10000L); in inv_icm42600_accel_read_offset() 488 offset = div_s64(val64, 9806650 * 5); in inv_icm42600_accel_write_offset()
|
/kernel/linux/linux-5.10/drivers/iio/ |
D | inkern.c | 616 *processed += div_s64(raw64 * (s64)scale_val2 * scale, in iio_convert_raw_to_processed_unlocked() 624 *processed += div_s64(raw64 * (s64)scale_val2 * scale, in iio_convert_raw_to_processed_unlocked() 628 *processed = div_s64(raw64 * (s64)scale_val * scale, in iio_convert_raw_to_processed_unlocked()
|
/kernel/linux/linux-5.10/drivers/iio/accel/ |
D | adxl345_core.c | 166 n = div_s64(val * NHZ_PER_HZ + val2, ADXL345_BASE_RATE_NANO_HZ); in adxl345_write_raw()
|
/kernel/linux/linux-5.10/drivers/iio/humidity/ |
D | hts221_core.c | 360 tmp = div_s64(data * 1000000000LL, div); in hts221_get_sensor_scale() 389 tmp = div_s64(data * 1000000000LL, div); in hts221_get_sensor_offset()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | meson_saradc.c | 317 tmp = div_s64((s64)val * priv->calibscale, MILLION) + priv->calibbias; in meson_sar_adc_calib_val() 1056 priv->calibscale = div_s64((nominal1 - nominal0) * (s64)MILLION, in meson_sar_adc_calib() 1058 priv->calibbias = nominal0 - div_s64((s64)value0 * priv->calibscale, in meson_sar_adc_calib()
|
/kernel/linux/linux-5.10/fs/adfs/ |
D | inode.c | 218 cs = div_s64(nsec, 10000000); in adfs_unix2adfs_time()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | mn88443x.c | 430 nco = div_s64(nco << 24, adckt); in mn88443x_t_set_freq() 431 ad_t = div_s64(adckt << 22, S_T_FREQ); in mn88443x_t_set_freq()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 368 value = div_s64(qopt->idleslope * 1024ll * ptr, speed_div); in tc_setup_cbs() 371 value = div_s64(-qopt->sendslope * 1024ll * ptr, speed_div); in tc_setup_cbs()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 260 wf_high = div_s64(wf_high, 2); in ocelot_ptp_enable()
|