Home
last modified time | relevance | path

Searched refs:div_s64 (Results 1 – 25 of 67) sorted by relevance

123

/kernel/linux/linux-5.10/include/linux/
Dmath64.h85 #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); \
Dfixp-arith.h136 return v1 + div_s64(tmp, dx); in fixp_sin32_rad()
/kernel/linux/linux-5.10/drivers/thermal/
Damlogic_thermal.c124 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()
Darmada_thermal.c393 *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/
Dsja1105_ptp.h48 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/
Dcros_ec_sensorhub_ring.c289 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/
Dntp.c345 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/
Diio-rescale.c63 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/
Dcros_ec_sensors.c111 *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/
Dicp10100.c293 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()
Ddps310.c686 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()
Ddlhl60d.c175 tmp = div_s64(125LL * st->info.fss * 24909 * 100, in dlh_read_raw()
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-tps65910.c294 tmp = div_s64(tmp, TICKS_PER_HOUR); in tps65910_read_offset()
318 tmp = div_s64(tmp, PPB_MULT); in tps65910_set_offset()
Drtc-mt6397.c112 days = div_s64(time, 86400); in mtk_rtc_read_time()
/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c51 delta = div_s64(timestamp - st->it_timestamp, divider); in inv_mpu6050_update_period()
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_timestamp.c132 period = div_s64(delta, fifo_nb); in inv_icm42600_timestamp_interrupt()
Dinv_icm42600_accel.c431 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/
Dinkern.c616 *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/
Dadxl345_core.c166 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/
Dhts221_core.c360 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/
Dmeson_saradc.c317 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/
Dinode.c218 cs = div_s64(nsec, 10000000); in adfs_unix2adfs_time()
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/
Dmn88443x.c430 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/
Dstmmac_tc.c368 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/
Docelot_ptp.c260 wf_high = div_s64(wf_high, 2); in ocelot_ptp_enable()

123