Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/iio/temperature/
Dmlx90632.c495 kGb * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_amb()
497 tmp = div64_s64( in mlx90632_preprocess_temp_amb()
498 div64_s64(((s64)ambient_new_raw * 1000000000000LL), in mlx90632_preprocess_temp_amb()
500 return div64_s64(tmp << 19ULL, 1000LL); in mlx90632_preprocess_temp_amb()
511 kKa * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_obj()
513 tmp = div64_s64( in mlx90632_preprocess_temp_obj()
514 div64_s64(((s64)((object_new_raw + object_old_raw) / 2) in mlx90632_preprocess_temp_obj()
517 return div64_s64((tmp << 19ULL), 1000LL); in mlx90632_preprocess_temp_obj()
527 kKa * div64_s64((s64)ambient_new_raw * 1000LL, in mlx90632_preprocess_temp_obj_extended()
529 tmp = div64_s64( in mlx90632_preprocess_temp_obj_extended()
[all …]
Dtsys01.c69 temp = div64_s64(temp, 100000); in tsys01_read_temperature()
73 temp = div64_s64(temp, 100000); in tsys01_read_temperature()
/linux-6.1.9/drivers/iio/adc/
Dqcom-vadc-common.c400 *scale_voltage = div64_s64(*scale_voltage, calib_graph->dy); in qcom_vadc_scale_calib()
418 result = div64_s64(voltage, prescale->numerator); in qcom_vadc_scale_volt()
435 voltage = div64_s64(voltage, 1000); in qcom_vadc_scale_therm()
479 voltage = div64_s64(voltage, prescale->numerator); in qcom_vadc_scale_chg_temp()
482 result = div64_s64(voltage, 1000000); in qcom_vadc_scale_chg_temp()
498 volt = div64_s64(volt, (s64)prescale->denominator * adc_vdd_ref_mv * 1000); in qcom_vadc_scale_voltage_code()
521 voltage = div64_s64(voltage, data->full_scale_code_volt); in qcom_vadc_scale_code_voltage_factor()
525 voltage = div64_s64(voltage, temp); in qcom_vadc_scale_code_voltage_factor()
546 resistance = div64_s64(resistance, RATIO_MAX_ADC7 - adc_code); in qcom_vadc7_scale_hw_calib_therm()
687 return div64_s64(resistance * RATIO_MAX_ADC7, resistance + R_PU_100K); in qcom_adc_tm5_gen2_temp_res_scale()
Dqcom-spmi-rradc.c350 r_id = div64_s64(r_id, (RR_ADC_CHAN_MSB * current_value)); in rradc_post_process_batt_id()
644 *val2 = div64_s64(RR_ADC_TEMP_FS_VOLTAGE_DEN * RR_ADC_CHAN_MSB * in rradc_read_scale()
673 *val = div64_s64(ABSOLUTE_ZERO_MILLICELSIUS, in rradc_read_offset()
686 offset1 = div64_s64(offset1, in rradc_read_offset()
693 offset2 = div64_s64( in rradc_read_offset()
708 offset1 = div64_s64(offset1, RR_ADC_TEMP_FS_VOLTAGE_NUM); in rradc_read_offset()
713 offset2 = div64_s64(offset2, in rradc_read_offset()
/linux-6.1.9/lib/math/
Ddiv64.c171 #ifndef div64_s64
172 s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() function
181 EXPORT_SYMBOL(div64_s64);
/linux-6.1.9/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-6.1.9/include/linux/
Dmath64.h12 #define div64_long(x, y) div64_s64((x), (y))
79 static inline s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() function
109 #ifndef div64_s64
110 extern s64 div64_s64(s64 dividend, s64 divisor);
/linux-6.1.9/net/sched/
Dsch_cbs.c142 return div64_s64(timediff * slope, NSEC_PER_SEC); in timediff_to_credits()
150 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits()
158 return div64_s64(len * slope, port_rate); in credits_from_len()
225 q->last = now + div64_s64(len * NSEC_PER_SEC, in cbs_dequeue_soft()
464 opt.sendslope = div64_s64(q->sendslope, BYTES_PER_KBIT); in cbs_dump()
465 opt.idleslope = div64_s64(q->idleslope, BYTES_PER_KBIT); in cbs_dump()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/calcs/
Dbw_fixed.c116 multiplicand = div64_s64(arg.value, abs_i64(significance.value)); in bw_floor2()
129 multiplicand = div64_s64(arg.value, abs_i64(significance.value)); in bw_ceil2()
/linux-6.1.9/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-6.1.9/scripts/coccinelle/misc/
Ddo_div.cocci127 coccilib.org.print_todo(p[0], construct_warnings("div64_s64"))
148 coccilib.report.print_report(p[0], construct_warnings("div64_s64"))
/linux-6.1.9/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.c477 strength = 0 + div64_s64((85000 + gain) * 3, 1000); in ts2020_read_signal_strength()
480 strength = 60 + div64_s64((65000 + gain) * 3, 2000); in ts2020_read_signal_strength()
483 strength = 90 + div64_s64((45000 + gain), 5000); in ts2020_read_signal_strength()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
Ddce110_clk_mgr.c201 (uint32_t) div64_s64( in dce11_pplib_apply_display_requirements()
202 div64_s64(dc->bw_vbios->high_yclk.value, in dce11_pplib_apply_display_requirements()
/linux-6.1.9/drivers/iio/pressure/
Dicp10100.c314 c = div64_s64(val1, val2); in icp10100_get_pressure()
321 a = div64_s64(val1, val2); in icp10100_get_pressure()
331 pressure_mPa = 1000LL * a + div64_s64(1000LL * b, c + raw_pressure); in icp10100_get_pressure()
/linux-6.1.9/drivers/thermal/tegra/
Dsoctherm-fuse.c69 r = div64_s64(al * 2 + 1, 2 * b); in div64_s64_precise()
/linux-6.1.9/drivers/net/ethernet/intel/igc/
Digc_tsn.c214 n = div64_s64(ktime_sub_ns(systim, base_time), cycle); in igc_tsn_enable_offload()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_benchmark.c67 throughput = div64_s64(throughput, time_ms); in amdgpu_benchmark_log_results()
/linux-6.1.9/drivers/iio/afe/
Diio-rescale.c133 *val = div64_s64(tmp, tmp2) + schan_off; in rescale_process_offset()
138 *val = div64_s64(tmp, tmp2) + schan_off; in rescale_process_offset()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c1261 base_ns = div64_s64(base_ns, freq); in hw_atl_b0_adj_params_get()
1265 s64 divisor = div64_s64((s64)NSEC_PER_SEC * NSEC_PER_SEC, in hw_atl_b0_adj_params_get()
1267 nsi_frac = div64_s64(AQ_FRAC_PER_NS * NSEC_PER_SEC, divisor); in hw_atl_b0_adj_params_get()
1289 diff_in_mcp_overflow = div64_s64(diff_in_mcp_overflow, in hw_atl_b0_mac_adj_param_calc()
1294 ptp_adj_freq->mac_ns_adj = div64_s64(adj_fns_val, AQ_FRAC_PER_NS); in hw_atl_b0_mac_adj_param_calc()
/linux-6.1.9/drivers/power/supply/
Dcpcap-battery.c707 val->intval = div64_s64(tmp, 100); in cpcap_battery_get_property()
714 val->intval = div64_s64(tmp, 100); in cpcap_battery_get_property()
721 val->intval = div64_s64(tmp, 100); in cpcap_battery_get_property()
/linux-6.1.9/drivers/iio/light/
Dcm3605.c101 lux = div64_s64(lux, CM3605_AOUT_TYP_MAX_MV); in cm3605_get_lux()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c245 (int)div64_s64( in dc_fixpt_sinc()
/linux-6.1.9/drivers/media/tuners/
Dqm1d1c0042.c239 b = (s32)div64_s64(((s64) freq) << 20, state->cfg.xtal_freq) in qm1d1c0042_set_params()
/linux-6.1.9/drivers/clk/
Dclk-si544.c311 delta = div64_s64(delta, ((s64)DELTA_M_MAX * DELTA_M_FRAC_DEN)); in si544_calc_rate()

12