Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/iio/temperature/
Dmlx90632.c676 kGb * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_amb()
678 tmp = div64_s64( in mlx90632_preprocess_temp_amb()
679 div64_s64(((s64)ambient_new_raw * 1000000000000LL), in mlx90632_preprocess_temp_amb()
681 return div64_s64(tmp << 19ULL, 1000LL); in mlx90632_preprocess_temp_amb()
692 kKa * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90632_preprocess_temp_obj()
694 tmp = div64_s64( in mlx90632_preprocess_temp_obj()
695 div64_s64(((s64)((object_new_raw + object_old_raw) / 2) in mlx90632_preprocess_temp_obj()
698 return div64_s64((tmp << 19ULL), 1000LL); in mlx90632_preprocess_temp_obj()
708 kKa * div64_s64((s64)ambient_new_raw * 1000LL, in mlx90632_preprocess_temp_obj_extended()
710 tmp = div64_s64( in mlx90632_preprocess_temp_obj_extended()
[all …]
Dmlx90635.c482 kGb * div64_s64(((s64)ambient_new_raw * 1000LL), in mlx90635_preprocess_temp_amb()
484 tmp = div64_s64( in mlx90635_preprocess_temp_amb()
485 div64_s64(((s64)ambient_new_raw * 1000000000000LL), in mlx90635_preprocess_temp_amb()
487 return div64_s64(tmp << 19ULL, 1000LL); in mlx90635_preprocess_temp_amb()
498 kGb * (div64_s64((s64)ambient_new_raw * 1000LL, in mlx90635_preprocess_temp_obj()
500 tmp = div64_s64( in mlx90635_preprocess_temp_obj()
501 div64_s64((s64)(object_raw * 1000000LL), in mlx90635_preprocess_temp_obj()
504 return div64_s64((tmp << 19ULL), 1000LL); in mlx90635_preprocess_temp_obj()
517 return 30 * 1000LL + div64_s64(kPO * 1000000LL, kPG); in mlx90635_calc_temp_ambient()
538 Alpha_corr = div64_s64(Alpha_corr, 1000LL); in mlx90635_calc_temp_object_iteration()
[all …]
Dtsys01.c69 temp = div64_s64(temp, 100000); in tsys01_read_temperature()
73 temp = div64_s64(temp, 100000); in tsys01_read_temperature()
/linux-6.12.1/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()
642 *val2 = div64_s64(RR_ADC_TEMP_FS_VOLTAGE_DEN * RR_ADC_CHAN_MSB * in rradc_read_scale()
671 *val = div64_s64(ABSOLUTE_ZERO_MILLICELSIUS, in rradc_read_offset()
684 offset1 = div64_s64(offset1, in rradc_read_offset()
691 offset2 = div64_s64( in rradc_read_offset()
706 offset1 = div64_s64(offset1, RR_ADC_TEMP_FS_VOLTAGE_NUM); in rradc_read_offset()
711 offset2 = div64_s64(offset2, in rradc_read_offset()
/linux-6.12.1/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(READ_ONCE(q->sendslope), BYTES_PER_KBIT); in cbs_dump()
465 opt.idleslope = div64_s64(READ_ONCE(q->idleslope), BYTES_PER_KBIT); in cbs_dump()
/linux-6.12.1/include/drm/
Ddrm_fixed.h148 result = div64_s64(a, b); in drm_fixp_div()
197 s64 tolerance = div64_s64(DRM_FIXED_ONE, 1000000); in drm_fixp_exp()
209 term = drm_fixp_mul(term, div64_s64(y, count)); in drm_fixp_exp()
/linux-6.12.1/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.12.1/lib/math/
Ddiv64.c161 #ifndef div64_s64
162 s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() function
171 EXPORT_SYMBOL(div64_s64);
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dbw_fixed.c116 multiplicand = div64_s64(arg.value, abs_i64(significance.value)); in bw_floor2()
128 multiplicand = div64_s64(arg.value, abs_i64(significance.value)); in bw_ceil2()
/linux-6.12.1/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.12.1/drivers/gpu/drm/amd/display/dc/spl/
Dspl_os_types.h45 return div64_s64(dividend, divisor); in spl_div64_s64()
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/drivers/thermal/tegra/
Dsoctherm-fuse.c69 r = div64_s64(al * 2 + 1, 2 * b); in div64_s64_precise()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_stream.c897 return ((int)div64_s64((brightness_millinits - y_intercept), slope)); in dc_stream_get_refresh_hz_linear_interpolation()
980 …return (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timing.v_total*(long lo… in dc_stream_calculate_flickerless_refresh_rate()
1029 …int current_refresh_hz = (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, stream->timin… in dc_stream_get_max_flickerless_instant_vtotal_delta()
1037 …int safe_refresh_v_total = (int)div64_s64((long long)stream->timing.pix_clk_100hz*100, safe_refres… in dc_stream_get_max_flickerless_instant_vtotal_delta()
/linux-6.12.1/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.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_benchmark.c67 throughput = div64_s64(throughput, time_ms); in amdgpu_benchmark_log_results()
/linux-6.12.1/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.12.1/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.12.1/drivers/iio/light/
Dcm3605.c101 lux = div64_s64(lux, CM3605_AOUT_TYP_MAX_MV); in cm3605_get_lux()
/linux-6.12.1/drivers/net/ethernet/intel/igc/
Digc_tsn.c378 s64 n = div64_s64(ktime_sub_ns(systim, base_time), cycle); in igc_tsn_enable_offload()

123