Home
last modified time | relevance | path

Searched refs:div64_s64 (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v4.19/drivers/iio/temperature/
Dmlx90632.c329 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 …]
Dtsys01.c69 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/
Dqcom-vadc-common.c102 *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/
Ddiv64.c169 #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/
Dmath64.h10 #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/
Ddrm_fixed.h141 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/
Dsch_cbs.c140 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/
Dbw_fixed.c118 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/
Dbase.c119 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/
Dtc90522.c271 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()
Dts2020.c486 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/
Dsoctherm-fuse.c78 r = div64_s64(al * 2 + 1, 2 * b); in div64_s64_precise()
/Linux-v4.19/drivers/power/supply/
Dcpcap-battery.c495 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/
Dcm3605.c99 lux = div64_s64(lux, CM3605_AOUT_TYP_MAX_MV); in cm3605_get_lux()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c241 (int)div64_s64( in dc_fixpt_sinc()
/Linux-v4.19/drivers/media/tuners/
Dqm1d1c0042.c239 b = (s32)div64_s64(((s64) freq) << 20, state->cfg.xtal_freq) in qm1d1c0042_set_params()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dsi_dpm.c1777 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 …]
Dni_dpm.c747 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/
Dppevvmath.h371div64_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/
Dsi_dpm.c1868 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/
Dkernel-api.rst151 :functions: div_s64_rem div64_u64_rem div64_u64 div64_s64
/Linux-v4.19/drivers/media/platform/sti/bdisp/
Dbdisp-debug.c597 avg_time_us = div64_s64(bdisp->dbg.tot_duration, request->nb_req); in bdisp_dbg_perf()
/Linux-v4.19/net/ceph/crush/
Dmapper.c361 draw = div64_s64(ln, weights[i]); in bucket_straw2_choose()
/Linux-v4.19/drivers/iio/chemical/
Dbme680_core.c447 calc_gas_res = div64_s64(var3, (s64) var2); in bme680_compensate_gas()
/Linux-v4.19/drivers/md/bcache/
Dsysfs.c209 next_io = wb ? div64_s64(dc->writeback_rate.next-local_clock(), in SHOW()

12