Home
last modified time | relevance | path

Searched refs:div_u64 (Results 51 – 75 of 418) sorted by relevance

12345678910>>...17

/openbmc/linux/drivers/cpuidle/governors/
H A Dmenu.c205 avg = div_u64(sum, divisor); in get_typical_interval()
296 timer_us = div_u64((RESOLUTION * DECAY * NSEC_PER_USEC) / 2 + in menu_select()
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-of-aspeed.c184 clk_period_ps = div_u64(PICOSECONDS_PER_SECOND, (u64)rate_hz); in aspeed_sdhci_phase_to_tap()
185 phase_period_ps = div_u64((u64)phase_deg * clk_period_ps, 360ULL); in aspeed_sdhci_phase_to_tap()
187 tap = div_u64(phase_period_ps, prop_delay_ps); in aspeed_sdhci_phase_to_tap()
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-dv-timings.c312 fps = (htot * vtot) > 0 ? div_u64((100 * (u64)bt->pixelclock), in v4l2_print_dv_timings()
424 pclk = div_u64(pclk * 1000ULL, 1001); in v4l2_calc_timeperframe()
426 fps = (htot * vtot) > 0 ? div_u64((100 * pclk), (htot * vtot)) : 0; in v4l2_calc_timeperframe()
762 h_blank = div_u64((num + (den >> 1)), den); in v4l2_detect_gtf()
772 h_blank = div_u64((num + (den >> 1)), den); in v4l2_detect_gtf()
/openbmc/linux/drivers/clk/renesas/
H A Drcar-gen2-cpg.c63 return div_u64((u64)parent_rate * mult, 32); in cpg_z_clk_recalc_rate()
80 req->rate = div_u64((u64)prate * mult, 32); in cpg_z_clk_determine_rate()
/openbmc/linux/drivers/media/dvb-frontends/
H A Dmn88443x.c319 d_3 = div_u64(16 * x * x, d); in mn88443x_s_read_status()
322 d_3 = div_u64(211243671486ULL, d_3); in mn88443x_s_read_status()
329 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_s_read_status()
517 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_t_read_status()
/openbmc/linux/arch/mips/kvm/
H A Demulate.c354 return div_u64(delta * vcpu->arch.count_hz, NSEC_PER_SEC); in kvm_mips_ktime_to_count()
513 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_resume_hrtimer()
588 delta = div_u64(delta * NSEC_PER_SEC, vcpu->arch.count_hz); in kvm_mips_restore_hrtimer()
632 vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); in kvm_mips_init_count()
675 vcpu->arch.count_period = div_u64((u64)NSEC_PER_SEC << 32, count_hz); in kvm_mips_set_count_hz()
886 delta = div_u64(delta * NSEC_PER_SEC, in kvm_mips_set_count_ctl()
/openbmc/linux/fs/btrfs/
H A Dmisc.h43 return div_u64(num * percent, 100); in mult_perc()
/openbmc/linux/drivers/media/tuners/
H A Dfc2580.c78 if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 1)) { in fc2580_set_params()
81 } else if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 2)) { in fc2580_set_params()
92 k_cw = div_u64((u64) k * 0x100000, uitmp); in fc2580_set_params()
/openbmc/linux/kernel/
H A Dkallsyms_selftest.c151 ratio = (u32)div_u64(10000ULL * total_size, total_len); in test_kallsyms_compression_ratio()
188 stat.min, stat.max, div_u64(stat.sum, stat.real_cnt)); in test_perf_kallsyms_lookup_name()
/openbmc/linux/drivers/iio/frequency/
H A Dadmv4420.c204 return div_u64(st->vco_freq_hz * 10, st->n_counter.n_counter); in admv4420_calc_pfd_vco()
226 st->vco_freq_hz = div_u64(st->lo_freq_hz, 2); in admv4420_calc_parameters()
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_perf.c278 div_u64(3 * expected, 4000), in live_noa_delay()
279 div_u64(3 * expected, 2000)); in live_noa_delay()
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ptp.c246 pdata->tstamp_addend = div_u64(dividend, pdata->ptpclk_rate); in xgbe_ptp_register()
/openbmc/linux/arch/mips/mti-malta/
H A Dmalta-time.c115 giccount = div_u64(giccount - gicstart, secs); in estimate_frequencies()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_policer.c56 return div_u64(rate_bytes_ps, 1000) * BITS_PER_BYTE; in mlxsw_sp_policer_rate_bytes_ps_kbps()
64 u64 bs512 = div_u64(burst_bytes, 64); in mlxsw_sp_policer_burst_bytes_hw_units()
/openbmc/linux/drivers/media/platform/qcom/camss/
H A Dcamss-csiphy-3ph-1-0.c342 ui = div_u64(1000000000000LL, link_freq); in csiphy_settle_cnt_calc()
347 timer_period = div_u64(1000000000000LL, timer_clk_rate); in csiphy_settle_cnt_calc()
/openbmc/linux/drivers/clk/meson/
H A Dclk-pll.c113 val = div_u64(val * frac_max, parent_rate); in __pll_params_with_frac()
162 return div_u64(val, parent_rate); in meson_clk_get_pll_range_m()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c193 clock_period = div_u64((NS_PER_HALF_SEC << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X540()
212 clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X540()
278 freqout = div_u64(NS_PER_HALF_SEC << cc->shift, cc->mult); in ixgbe_ptp_setup_sdp_X550()
295 clock_edge += div_u64(((u64)rem << cc->shift), cc->mult); in ixgbe_ptp_setup_sdp_X550()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_clock_source.c147 feedback_divider = div_u64(feedback_divider, calc_pll_cs->ref_freq_khz * 10ull); in calculate_fb_and_fractional_fb_divider()
158 div_u64(feedback_divider, in calculate_fb_and_fractional_fb_divider()
218 div_u64(actual_calc_clk_100hz, in calc_fb_divider_checking_tolerance()
241 div_u64((u64)actual_calculated_clock_100hz * post_divider, 10); in calc_fb_divider_checking_tolerance()
1098 *pixel_clk_khz = div_u64((uint64_t)clock_hz* in get_pixel_clk_frequency_100hz()
/openbmc/linux/net/netfilter/
H A Dxt_time.c99 r->dse = div_u64(time, SECONDS_PER_DAY); in localtime_2()
/openbmc/linux/samples/ftrace/
H A Dftrace-ops.c226 period, div_u64(period, nr_function_calls)); in ftrace_ops_sample_init()
/openbmc/linux/net/openvswitch/
H A Dmeter.c349 meter->used = div_u64(ktime_get_ns(), 1000 * 1000); in dp_meter_create()
393 band_max_delta_t = div_u64(band->bucket, band->rate); in dp_meter_create()
595 long long int now_ms = div_u64(ktime_get_ns(), 1000 * 1000); in ovs_meter_execute()
/openbmc/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-regs.c197 min_si = (u32)div_u64(di, fmt->row_depth[i]); in mdp_try_fmt_mplane()
199 max_si = (u32)div_u64(di, fmt->row_depth[i]); in mdp_try_fmt_mplane()
413 *r = div_u64(((u64)f->numerator - q * f->denominator) << in mdp_to_fixed()
/openbmc/linux/drivers/phy/mediatek/
H A Dphy-mtk-hdmi-mt8195.c273 pcw = div_u64(((u64)ns_hdmipll_ck) << PCW_DECIMAL_WIDTH, in mtk_hdmi_pll_calc()
291 digital_div = div_u64(ns_hdmipll_ck, posdiv1 * posdiv2 * pixel_clk); in mtk_hdmi_pll_calc()
/openbmc/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c147 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
214 bp->tsu_incr.sub_ns = div_u64(adj, bp->tsu_rate); in gem_ptp_init_timer()
/openbmc/linux/drivers/clk/sifive/
H A Dsifive-prci.c284 return div_u64(parent_rate, div); in sifive_prci_tlclksel_recalc_rate()
296 return div_u64(parent_rate, div + 2); in sifive_prci_hfpclkplldiv_recalc_rate()

12345678910>>...17