/Linux-v4.19/drivers/iio/temperature/ |
D | mlx90632.c | 329 kGb * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_amb() 331 tmp = div64_s64( in mlx90632_preprocess_temp_amb() 332 div64_s64(((s64)ambient_new_raw * 1000000000000LL), in mlx90632_preprocess_temp_amb() 334 return div64_s64(tmp << 19ULL, 1000LL); in mlx90632_preprocess_temp_amb() 345 kKa * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_obj() 347 tmp = div64_s64( in mlx90632_preprocess_temp_obj() 348 div64_s64(((s64)((object_new_raw + object_old_raw) / 2) in mlx90632_preprocess_temp_obj() 351 return div64_s64((tmp << 19ULL), 1000LL); in mlx90632_preprocess_temp_obj() 365 Bblock = (div64_s64(Bsub * 10000000LL, P_G)) << 20ULL; in mlx90632_calc_temp_ambient() 368 sum = div64_s64(Ablock, 1000000LL) + Bblock + Cblock; in mlx90632_calc_temp_ambient() [all …]
|
D | tsys01.c | 69 temp = div64_s64(temp, 100000); in tsys01_read_temperature() 73 temp = div64_s64(temp, 100000); in tsys01_read_temperature()
|
/Linux-v4.19/drivers/iio/adc/ |
D | qcom-vadc-common.c | 102 *scale_voltage = div64_s64(*scale_voltage, calib_graph->dy); in qcom_vadc_scale_calib() 120 result = div64_s64(voltage, prescale->num); in qcom_vadc_scale_volt() 137 voltage = div64_s64(voltage, 1000); in qcom_vadc_scale_therm() 185 voltage = div64_s64(voltage, prescale->num); in qcom_vadc_scale_chg_temp() 188 result = div64_s64(voltage, 1000000); in qcom_vadc_scale_chg_temp()
|
/Linux-v4.19/lib/ |
D | div64.c | 169 #ifndef div64_s64 170 s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() function 179 EXPORT_SYMBOL(div64_s64);
|
/Linux-v4.19/include/linux/ |
D | math64.h | 10 #define div64_long(x, y) div64_s64((x), (y)) 77 static inline s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() function 107 #ifndef div64_s64 108 extern s64 div64_s64(s64 dividend, s64 divisor);
|
/Linux-v4.19/include/drm/ |
D | drm_fixed.h | 141 result = div64_s64(a, b); in drm_fixp_div() 190 s64 tolerance = div64_s64(DRM_FIXED_ONE, 1000000); in drm_fixp_exp() 202 term = drm_fixp_mul(term, div64_s64(y, count)); in drm_fixp_exp()
|
/Linux-v4.19/net/sched/ |
D | sch_cbs.c | 140 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits() 148 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits() 156 return div64_s64(len * slope, port_rate); in credits_from_len() 397 opt.sendslope = div64_s64(q->sendslope, BYTES_PER_KBIT); in cbs_dump() 398 opt.idleslope = div64_s64(q->idleslope, BYTES_PER_KBIT); in cbs_dump()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/calcs/ |
D | bw_fixed.c | 118 multiplicand = div64_s64(arg.value, abs_i64(significance.value)); in bw_floor2() 131 multiplicand = div64_s64(arg.value, abs_i64(significance.value)); in bw_ceil2()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | base.c | 119 result = div64_s64((s64)info.arg[0], 10); in nvkm_volt_map() 120 result += div64_s64((s64)info.arg[1] * volt->speedo, 10); in nvkm_volt_map() 121 result += div64_s64((s64)info.arg[2] * volt->speedo * volt->speedo, 100000); in nvkm_volt_map()
|
/Linux-v4.19/drivers/media/dvb-frontends/ |
D | tc90522.c | 271 cn = div64_s64(-16346LL * p4 * p, 10) >> 35; in tc90522s_get_frontend() 429 cn += div64_s64(43827LL * p, 10) >> 24; in tc90522t_get_frontend() 431 cn += div64_s64(3184LL * tmp * tmp, 10) >> 32; in tc90522t_get_frontend() 433 cn -= div64_s64(128LL * tmp * tmp * tmp, 10) >> 33; in tc90522t_get_frontend() 435 cn += div64_s64(192LL * tmp * tmp * tmp * tmp, 1000) >> 24; in tc90522t_get_frontend()
|
D | ts2020.c | 486 strength = 0 + div64_s64((85000 + gain) * 3, 1000); in ts2020_read_signal_strength() 489 strength = 60 + div64_s64((65000 + gain) * 3, 2000); in ts2020_read_signal_strength() 492 strength = 90 + div64_s64((45000 + gain), 5000); in ts2020_read_signal_strength()
|
/Linux-v4.19/drivers/thermal/tegra/ |
D | soctherm-fuse.c | 78 r = div64_s64(al * 2 + 1, 2 * b); in div64_s64_precise()
|
/Linux-v4.19/drivers/power/supply/ |
D | cpcap-battery.c | 495 val->intval = div64_s64(tmp, 100); in cpcap_battery_get_property() 501 val->intval = div64_s64(tmp, 100); in cpcap_battery_get_property() 509 val->intval = div64_s64(tmp, 100); in cpcap_battery_get_property()
|
/Linux-v4.19/drivers/iio/light/ |
D | cm3605.c | 99 lux = div64_s64(lux, CM3605_AOUT_TYP_MAX_MV); in cm3605_get_lux()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/basics/ |
D | fixpt31_32.c | 241 (int)div64_s64( in dc_fixpt_sinc()
|
/Linux-v4.19/drivers/media/tuners/ |
D | qm1d1c0042.c | 239 b = (s32)div64_s64(((s64) freq) << 20, state->cfg.xtal_freq) in qm1d1c0042_set_params()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | si_dpm.c | 1777 i_leakage = div64_s64(drm_int2fixp(ileakage), 100); in si_calculate_leakage_for_v_and_t_formula() 1778 vddc = div64_s64(drm_int2fixp(v), 1000); in si_calculate_leakage_for_v_and_t_formula() 1779 temperature = div64_s64(drm_int2fixp(t), 1000); in si_calculate_leakage_for_v_and_t_formula() 1781 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1782 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1783 av = div64_s64(drm_int2fixp(coeff->av), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1784 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1813 i_leakage = div64_s64(drm_int2fixp(ileakage), 100); in si_calculate_leakage_for_v_formula() 1814 vddc = div64_s64(drm_int2fixp(v), 1000); in si_calculate_leakage_for_v_formula() 1816 kt = div64_s64(drm_int2fixp(fixed_kt), 100000000); in si_calculate_leakage_for_v_formula() [all …]
|
D | ni_dpm.c | 747 i_leakage = div64_s64(drm_int2fixp(ileakage), 1000); in ni_calculate_leakage_for_v_and_t_formula() 748 vddc = div64_s64(drm_int2fixp(v), 1000); in ni_calculate_leakage_for_v_and_t_formula() 749 temperature = div64_s64(drm_int2fixp(t), 1000); in ni_calculate_leakage_for_v_and_t_formula() 751 kt = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->at), 1000), in ni_calculate_leakage_for_v_and_t_formula() 752 drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bt), 1000), temperature))); in ni_calculate_leakage_for_v_and_t_formula() 753 kv = drm_fixp_mul(div64_s64(drm_int2fixp(coeff->av), 1000), in ni_calculate_leakage_for_v_and_t_formula() 754 drm_fixp_exp(drm_fixp_mul(div64_s64(drm_int2fixp(coeff->bv), 1000), vddc))); in ni_calculate_leakage_for_v_and_t_formula()
|
/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | ppevvmath.h | 371 …div64_s64(longlongX, longlongY); /*Q(32,32) divided by Q(16,16) = Q(16,16) Back to original format… in fDivide()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | si_dpm.c | 1868 i_leakage = div64_s64(drm_int2fixp(ileakage), 100); in si_calculate_leakage_for_v_and_t_formula() 1869 vddc = div64_s64(drm_int2fixp(v), 1000); in si_calculate_leakage_for_v_and_t_formula() 1870 temperature = div64_s64(drm_int2fixp(t), 1000); in si_calculate_leakage_for_v_and_t_formula() 1872 t_slope = div64_s64(drm_int2fixp(coeff->t_slope), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1873 t_intercept = div64_s64(drm_int2fixp(coeff->t_intercept), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1874 av = div64_s64(drm_int2fixp(coeff->av), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1875 bv = div64_s64(drm_int2fixp(coeff->bv), 100000000); in si_calculate_leakage_for_v_and_t_formula() 1904 i_leakage = div64_s64(drm_int2fixp(ileakage), 100); in si_calculate_leakage_for_v_formula() 1905 vddc = div64_s64(drm_int2fixp(v), 1000); in si_calculate_leakage_for_v_formula() 1907 kt = div64_s64(drm_int2fixp(fixed_kt), 100000000); in si_calculate_leakage_for_v_formula() [all …]
|
/Linux-v4.19/Documentation/core-api/ |
D | kernel-api.rst | 151 :functions: div_s64_rem div64_u64_rem div64_u64 div64_s64
|
/Linux-v4.19/drivers/media/platform/sti/bdisp/ |
D | bdisp-debug.c | 597 avg_time_us = div64_s64(bdisp->dbg.tot_duration, request->nb_req); in bdisp_dbg_perf()
|
/Linux-v4.19/net/ceph/crush/ |
D | mapper.c | 361 draw = div64_s64(ln, weights[i]); in bucket_straw2_choose()
|
/Linux-v4.19/drivers/iio/chemical/ |
D | bme680_core.c | 447 calc_gas_res = div64_s64(var3, (s64) var2); in bme680_compensate_gas()
|
/Linux-v4.19/drivers/md/bcache/ |
D | sysfs.c | 209 next_io = wb ? div64_s64(dc->writeback_rate.next-local_clock(), in SHOW()
|