/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
D | timer.c | 64 unsigned long long num, den; in realtime_counter_init() local 103 den = 244; in realtime_counter_init() 112 den = 125; in realtime_counter_init() 116 den = 1625; in realtime_counter_init() 120 den = 25; in realtime_counter_init() 124 den = 625; in realtime_counter_init() 128 den = 1625; in realtime_counter_init() 132 den = 1125; in realtime_counter_init() 138 den = 25; in realtime_counter_init() 151 reg |= den; in realtime_counter_init() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pll.c | 44 static void amdgpu_pll_reduce_ratio(unsigned *nom, unsigned *den, in amdgpu_pll_reduce_ratio() argument 50 tmp = gcd(*nom, *den); in amdgpu_pll_reduce_ratio() 52 *den /= tmp; in amdgpu_pll_reduce_ratio() 58 *den *= tmp; in amdgpu_pll_reduce_ratio() 62 if (*den < den_min) { in amdgpu_pll_reduce_ratio() 63 tmp = DIV_ROUND_UP(den_min, *den); in amdgpu_pll_reduce_ratio() 65 *den *= tmp; in amdgpu_pll_reduce_ratio() 83 static void amdgpu_pll_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in amdgpu_pll_get_fb_ref_div() argument 91 *ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max); in amdgpu_pll_get_fb_ref_div() 92 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | flex_proportions.c | 144 s64 num, den; in fprop_fraction_single() local 150 den = percpu_counter_read_positive(&p->events); in fprop_fraction_single() 157 if (den <= num) { in fprop_fraction_single() 159 den = num; in fprop_fraction_single() 161 den = 1; in fprop_fraction_single() 163 *denominator = den; in fprop_fraction_single() 232 s64 num, den; in fprop_fraction_percpu() local 238 den = percpu_counter_read_positive(&p->events); in fprop_fraction_percpu() 245 if (den <= num) { in fprop_fraction_percpu() 247 den = num; in fprop_fraction_percpu() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/mmp/ |
D | clk-frac.c | 37 rate *= factor->ftbl[i].den; in clk_factor_round_rate() 58 unsigned int val, num, den; in clk_factor_recalc_rate() local 67 den = (val >> masks->den_shift) & masks->den_mask; in clk_factor_recalc_rate() 69 if (!den) in clk_factor_recalc_rate() 73 rate *= den; in clk_factor_recalc_rate() 92 rate *= factor->ftbl[i].den; in clk_factor_set_rate() 110 val |= (factor->ftbl[i].den & masks->den_mask) << masks->den_shift; in clk_factor_set_rate() 124 u32 val, num, den; in clk_factor_init() local 137 den = (val >> masks->den_shift) & masks->den_mask; in clk_factor_init() 140 if (den == factor->ftbl[i].den && num == factor->ftbl[i].num) in clk_factor_init() [all …]
|
D | clk-of-mmp2.c | 148 {.num = 8125, .den = 1536}, /*14.745MHZ */ 149 {.num = 3521, .den = 689}, /*19.23MHZ */ 162 {.num = 24868, .den = 511}, /* 2.0480 MHz */ 163 {.num = 28003, .den = 793}, /* 2.8224 MHz */ 164 {.num = 24941, .den = 1025}, /* 4.0960 MHz */ 165 {.num = 28003, .den = 1586}, /* 5.6448 MHz */ 166 {.num = 31158, .den = 2561}, /* 8.1920 MHz */ 167 {.num = 16288, .den = 1845}, /* 11.2896 MHz */ 168 {.num = 20772, .den = 2561}, /* 12.2880 MHz */ 169 {.num = 8144, .den = 1845}, /* 22.5792 MHz */ [all …]
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
D | time.c | 280 itc_ratio.den = 1; in ia64_init_itm() 288 if (!proc_ratio.den) in ia64_init_itm() 289 proc_ratio.den = 1; /* avoid division by zero */ in ia64_init_itm() 290 if (!itc_ratio.den) in ia64_init_itm() 291 itc_ratio.den = 1; /* avoid division by zero */ in ia64_init_itm() 293 itc_freq = (platform_base_freq*itc_ratio.num)/itc_ratio.den; in ia64_init_itm() 299 itc_ratio.num, itc_ratio.den, itc_freq / 1000000, (itc_freq / 1000) % 1000); in ia64_init_itm() 302 itc_drift = platform_base_drift*itc_ratio.num/itc_ratio.den; in ia64_init_itm() 309 local_cpu_data->proc_freq = (platform_base_freq*proc_ratio.num)/proc_ratio.den; in ia64_init_itm()
|
/kernel/linux/linux-5.10/lib/mpi/ |
D | mpi-div.c | 17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den); 78 void mpi_tdiv_r(MPI rem, MPI num, MPI den) in mpi_tdiv_r() argument 80 mpi_tdiv_qr(NULL, rem, num, den); in mpi_tdiv_r() 83 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr() argument 88 mpi_size_t dsize = den->nlimbs; in mpi_tdiv_qr() 91 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr() 126 dp = den->d; in mpi_tdiv_qr()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_tnrdmd_dvbt_mon.c | 550 int den; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() local 639 den = (nominal_rate_reg[0] & 0x7f) << 24; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 640 den |= nominal_rate_reg[1] << 16; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 641 den |= nominal_rate_reg[2] << 8; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 642 den |= nominal_rate_reg[3]; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 643 den = (den + (390625 / 2)) / 390625; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 645 den >>= 1; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 648 *ppm = (num + (den / 2)) / den; in cxd2880_tnrdmd_dvbt_mon_sampling_offset() 650 *ppm = (num - (den / 2)) / den; in cxd2880_tnrdmd_dvbt_mon_sampling_offset()
|
/kernel/linux/linux-5.10/sound/core/ |
D | pcm_lib.c | 800 unsigned int den; in snd_interval_ratnum() local 805 den = div_up(num, q); in snd_interval_ratnum() 806 if (den < rats[k].den_min) in snd_interval_ratnum() 808 if (den > rats[k].den_max) in snd_interval_ratnum() 809 den = rats[k].den_max; in snd_interval_ratnum() 812 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum() 814 den -= r; in snd_interval_ratnum() 816 diff = num - q * den; in snd_interval_ratnum() 820 diff * best_den < best_diff * den) { in snd_interval_ratnum() 822 best_den = den; in snd_interval_ratnum() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_sprite.c | 361 unsigned int *num, unsigned int *den) in skl_plane_ratio() argument 369 *den = 8; in skl_plane_ratio() 372 *den = 8; in skl_plane_ratio() 376 *den = 1; in skl_plane_ratio() 384 unsigned int num, den; in skl_plane_min_cdclk() local 387 skl_plane_ratio(crtc_state, plane_state, &num, &den); in skl_plane_min_cdclk() 391 den *= 2; in skl_plane_min_cdclk() 393 return DIV_ROUND_UP(pixel_rate * num, den); in skl_plane_min_cdclk() 846 unsigned int *num, unsigned int *den) in vlv_plane_ratio() argument 862 *den = 8; in vlv_plane_ratio() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_gt_clock_utils.c | 64 static u64 div_u64_roundup(u64 nom, u32 den) in div_u64_roundup() argument 66 return div_u64(nom + den - 1, den); in div_u64_roundup()
|
/kernel/linux/linux-5.10/drivers/media/i2c/m5mols/ |
D | m5mols_capture.c | 43 u32 num, den; in m5mols_read_rational() local 47 ret = m5mols_read_u32(sd, addr_den, &den); in m5mols_read_rational() 50 *val = den == 0 ? 0 : num / den; in m5mols_read_rational()
|
/kernel/linux/linux-5.10/drivers/clk/spear/ |
D | clk-aux-synth.c | 69 unsigned int num = 1, den = 1, val, eqn; in clk_aux_recalc_rate() local 82 den = 2; in clk_aux_recalc_rate() 89 den *= (val >> aux->masks->yscale_sel_shift) & in clk_aux_recalc_rate() 92 if (!den) in clk_aux_recalc_rate() 95 return (((parent_rate / 10000) * num) / den) * 10000; in clk_aux_recalc_rate()
|
D | clk-vco-pll.c | 197 unsigned int num = 2, den = 0, val, mode = 0; in clk_vco_recalc_rate() local 209 den = (val >> PLL_DIV_N_SHIFT) & PLL_DIV_N_MASK; in clk_vco_recalc_rate() 218 den *= 256; in clk_vco_recalc_rate() 221 if (!den) { in clk_vco_recalc_rate() 226 return (((parent_rate / 10000) * num) / den) * 10000; in clk_vco_recalc_rate()
|
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | clk-rcg2.c | 384 int den; member 428 request *= frac->den; in clk_edp_pixel_set_rate() 440 f.n = frac->den; in clk_edp_pixel_set_rate() 478 request *= frac->den; in clk_edp_pixel_determine_rate() 490 frac->num, frac->den, in clk_edp_pixel_determine_rate() 491 !!frac->den, hid_div); in clk_edp_pixel_determine_rate() 653 request = (req->rate * frac->den) / frac->num; in clk_pixel_determine_rate() 661 req->rate = (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate() 691 request = (rate * frac->den) / frac->num; in clk_pixel_set_rate() 703 f.n = frac->den; in clk_pixel_set_rate() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | clk.h | 196 __field( unsigned int, den ) 202 __entry->den = duty->den; 206 (unsigned int)__entry->den)
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | qcom-spmi-adc5.c | 158 {.num = 1, .den = 1}, 159 {.num = 1, .den = 3}, 160 {.num = 1, .den = 4}, 161 {.num = 1, .den = 6}, 162 {.num = 1, .den = 20}, 163 {.num = 1, .den = 8}, 164 {.num = 10, .den = 81}, 165 {.num = 1, .den = 10}, 166 {.num = 1, .den = 16} 184 static int adc5_prescaling_from_dt(u32 num, u32 den) in adc5_prescaling_from_dt() argument [all …]
|
D | qcom-spmi-vadc.c | 127 {.num = 1, .den = 1}, 128 {.num = 1, .den = 3}, 129 {.num = 1, .den = 4}, 130 {.num = 1, .den = 6}, 131 {.num = 1, .den = 20}, 132 {.num = 1, .den = 8}, 133 {.num = 10, .den = 81}, 134 {.num = 1, .den = 10} 408 static int vadc_prescaling_from_dt(u32 num, u32 den) in vadc_prescaling_from_dt() argument 414 vadc_prescale_ratios[pre].den == den) in vadc_prescaling_from_dt()
|
D | qcom-vadc-common.c | 392 voltage = voltage * prescale->den; in qcom_vadc_scale_volt() 434 temp = voltage * prescale->den; in qcom_vadc_scale_die_temp() 455 voltage = voltage * prescale->den; in qcom_vadc_scale_chg_temp() 485 voltage *= prescale->den; in qcom_vadc_scale_code_voltage_factor()
|
/kernel/linux/linux-5.10/sound/pci/emu10k1/ |
D | timer.c | 48 unsigned long *num, unsigned long *den) in snd_emu10k1_timer_precise_resolution() argument 51 *den = 48000; in snd_emu10k1_timer_precise_resolution()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | pcm512x.c | 757 unsigned long den; in pcm512x_find_pll_coeff() local 763 den = pllin_rate / common; in pcm512x_find_pll_coeff() 766 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff() 767 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff() 768 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff() 770 dev_dbg(dev, "num / den = %lu / %lu\n", num, den); in pcm512x_find_pll_coeff() 772 P = den; in pcm512x_find_pll_coeff() 773 if (den <= 15 && num <= 16 * 63 in pcm512x_find_pll_coeff() 798 common = gcd(10000 * num, den); in pcm512x_find_pll_coeff() 800 den /= common; in pcm512x_find_pll_coeff() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/ |
D | codec_vp9.c | 1450 int den, m_count, get_prob, factor; in vp9_tree_merge_probs() local 1457 den = tree_left + tree_right; in vp9_tree_merge_probs() 1459 if (den == 0) { in vp9_tree_merge_probs() 1462 m_count = den < MODE_MV_COUNT_SAT ? den : MODE_MV_COUNT_SAT; in vp9_tree_merge_probs() 1465 (den >> 1)), in vp9_tree_merge_probs() 1466 den)); in vp9_tree_merge_probs() 1489 int num, den, m_count, get_prob, factor; in adapt_coef_probs_cxt() local 1515 den = branch_ct[node][0] + branch_ct[node][1]; in adapt_coef_probs_cxt() 1516 m_count = den < count_sat ? den : count_sat; in adapt_coef_probs_cxt() 1518 get_prob = (den == 0) ? in adapt_coef_probs_cxt() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/meson/ |
D | sclk-div.c | 116 sclk->cached_duty.den); in sclk_apply_ratio() 147 duty->den = 2; in sclk_div_get_duty_cycle() 153 duty->den = sclk->cached_div; in sclk_div_get_duty_cycle()
|
/kernel/linux/linux-5.10/lib/reed_solomon/ |
D | decode_rs.c | 23 uint16_t u, q, tmp, num1, num2, den, discr_r, syn_error; variable 268 den = 0; 274 den ^= alpha_to[rs_modnn(rs, lambda[i + 1] + 281 nn - index_of[den])];
|
/kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
D | fbcvt.c | 76 u32 den; in fb_cvt_hperiod() local 80 den = 2 * (cvt->yres/cvt->interlace + 2 * cvt->v_margin); in fb_cvt_hperiod() 83 den = 2 * (cvt->yres/cvt->interlace + cvt->v_margin * 2 in fb_cvt_hperiod() 87 return 2 * (num/den); in fb_cvt_hperiod()
|