Home
last modified time | relevance | path

Searched refs:den (Results 1 – 25 of 102) sorted by relevance

12345

/linux/arch/arm/mach-omap2/
A Dtimer.c64 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 …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_pll.c44 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()
84 unsigned int den, unsigned int post_div, in amdgpu_pll_get_fb_ref_div() argument
97 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
136 unsigned nom, den; in amdgpu_pll_compute() local
[all …]
/linux/lib/
A Dflex_proportions.c144 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()
233 s64 num, den; in fprop_fraction_percpu() local
246 if (den <= num) { in fprop_fraction_percpu()
248 den = num; in fprop_fraction_percpu()
250 den = 1; in fprop_fraction_percpu()
[all …]
/linux/drivers/clk/mmp/
A Dclk-frac.c37 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 …]
A Dclk-of-mmp2.c148 {.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 …]
/linux/drivers/iio/adc/
A Dqcom-vadc-common.c293 {.num = 1, .den = 1},
294 {.num = 1, .den = 3},
295 {.num = 1, .den = 4},
296 {.num = 1, .den = 6},
297 {.num = 1, .den = 20},
298 {.num = 1, .den = 8},
299 {.num = 10, .den = 81},
300 {.num = 1, .den = 10},
301 {.num = 1, .den = 16}
523 voltage *= prescale->den; in qcom_vadc_scale_code_voltage_factor()
[all …]
A Dqcom-spmi-vadc.c126 {.num = 1, .den = 1},
127 {.num = 1, .den = 3},
128 {.num = 1, .den = 4},
129 {.num = 1, .den = 6},
130 {.num = 1, .den = 20},
131 {.num = 1, .den = 8},
132 {.num = 10, .den = 81},
133 {.num = 1, .den = 10}
407 static int vadc_prescaling_from_dt(u32 num, u32 den) in vadc_prescaling_from_dt() argument
413 vadc_prescale_ratios[pre].den == den) in vadc_prescaling_from_dt()
/linux/drivers/gpu/drm/i915/display/
A Dintel_sprite.c250 *den = 8; in vlv_plane_ratio()
258 *den = 1; in vlv_plane_ratio()
265 *den = 8; in vlv_plane_ratio()
273 *den = 1; in vlv_plane_ratio()
280 *den = 8; in vlv_plane_ratio()
284 *den = 1; in vlv_plane_ratio()
540 *den = 8; in ivb_plane_ratio()
548 *den = 1; in ivb_plane_ratio()
555 *den = 8; in ivb_plane_ratio()
575 *den = 8; in ivb_plane_ratio_scaling()
[all …]
/linux/arch/ia64/kernel/
A Dtime.c286 itc_ratio.den = 1; in ia64_init_itm()
294 if (!proc_ratio.den) in ia64_init_itm()
295 proc_ratio.den = 1; /* avoid division by zero */ in ia64_init_itm()
296 if (!itc_ratio.den) in ia64_init_itm()
297 itc_ratio.den = 1; /* avoid division by zero */ in ia64_init_itm()
299 itc_freq = (platform_base_freq*itc_ratio.num)/itc_ratio.den; in ia64_init_itm()
305 itc_ratio.num, itc_ratio.den, itc_freq / 1000000, (itc_freq / 1000) % 1000); in ia64_init_itm()
308 itc_drift = platform_base_drift*itc_ratio.num/itc_ratio.den; in ia64_init_itm()
315 local_cpu_data->proc_freq = (platform_base_freq*proc_ratio.num)/proc_ratio.den; in ia64_init_itm()
/linux/lib/mpi/
A Dmpi-div.c17 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()
/linux/drivers/media/dvb-frontends/cxd2880/
A Dcxd2880_tnrdmd_dvbt_mon.c550 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()
/linux/sound/core/
A Dpcm_lib.c801 unsigned int den; in snd_interval_ratnum() local
815 den -= r; in snd_interval_ratnum()
823 best_den = den; in snd_interval_ratnum()
840 unsigned int den; in snd_interval_ratnum() local
864 best_den = den; in snd_interval_ratnum()
917 unsigned int den = rats[k].den; in snd_interval_ratden() local
920 num = mul(q, den); in snd_interval_ratden()
935 best_den = den; in snd_interval_ratden()
949 unsigned int den = rats[k].den; in snd_interval_ratden() local
952 num = mul(q, den); in snd_interval_ratden()
[all …]
/linux/drivers/clk/qcom/
A Dclk-rcg2.c368 duty->den = 2; in clk_rcg2_get_duty_cycle()
379 duty->den = 2; in clk_rcg2_get_duty_cycle()
391 duty->den = n; in clk_rcg2_get_duty_cycle()
465 int den; member
521 f.n = frac->den; in clk_edp_pixel_set_rate()
784 f.n = frac->den; in clk_pixel_set_rate()
1245 if (!num || !den) in clk_rcg2_dp_set_rate()
1264 if (num != den) { in clk_rcg2_dp_set_rate()
1266 f.n = den; in clk_rcg2_dp_set_rate()
1293 if (!num || !den) in clk_rcg2_dp_determine_rate()
[all …]
/linux/drivers/clk/spear/
A Dclk-aux-synth.c69 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()
A Dclk-vco-pll.c197 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()
/linux/drivers/media/i2c/m5mols/
A Dm5mols_capture.c43 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()
/linux/include/trace/events/
A Dclk.h240 __field( unsigned int, den )
246 __entry->den = duty->den;
250 (unsigned int)__entry->den)
/linux/sound/soc/codecs/
A Dpcm512x.c759 unsigned long den; in pcm512x_find_pll_coeff() local
765 den = pllin_rate / common; in pcm512x_find_pll_coeff()
768 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff()
770 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
774 P = den; in pcm512x_find_pll_coeff()
775 if (den <= 15 && num <= 16 * 63 in pcm512x_find_pll_coeff()
800 common = gcd(10000 * num, den); in pcm512x_find_pll_coeff()
802 den /= common; in pcm512x_find_pll_coeff()
805 for (P = den; P <= 15; P++) { in pcm512x_find_pll_coeff()
808 if (num * P % den) in pcm512x_find_pll_coeff()
[all …]
/linux/lib/math/
A Drational-test.c8 unsigned long num, den; member
39 rational_best_approximation(param->num, param->den, param->max_num, param->max_den, &n, &d); in rational_test()
/linux/drivers/gpu/drm/i915/gt/
A Dintel_gt_clock_utils.c182 static u64 div_u64_roundup(u64 nom, u32 den) in div_u64_roundup() argument
184 return div_u64(nom + den - 1, den); in div_u64_roundup()
/linux/drivers/staging/media/meson/vdec/
A Dcodec_vp9.c1459 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()
1516 m_count = den < count_sat ? den : count_sat; in adapt_coef_probs_cxt()
1518 get_prob = (den == 0) ? in adapt_coef_probs_cxt()
1521 (den >> 1)), den)); in adapt_coef_probs_cxt()
1563 int den; in adapt_coef_probs() local
1664 if (den == 0) { in adapt_coef_probs()
1672 (den >> 1)), in adapt_coef_probs()
[all …]
/linux/sound/pci/emu10k1/
A Dtimer.c48 unsigned long *num, unsigned long *den) in snd_emu10k1_timer_precise_resolution() argument
51 *den = 48000; in snd_emu10k1_timer_precise_resolution()
/linux/lib/reed_solomon/
A Ddecode_rs.c23 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])];
/linux/include/linux/iio/adc/
A Dqcom-vadc-common.h89 u32 den; member
164 int qcom_adc5_prescaling_from_dt(u32 num, u32 den);
/linux/drivers/clk/meson/
A Dsclk-div.c116 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()

Completed in 45 milliseconds

12345