Home
last modified time | relevance | path

Searched full:den (Results 1 – 25 of 132) sorted by relevance

123456

/linux-6.12.1/arch/arm/mach-omap2/
Dtimer.c64 unsigned long long num, den; in realtime_counter_init() local
104 den = 244; in realtime_counter_init()
113 den = 125; in realtime_counter_init()
117 den = 1625; in realtime_counter_init()
121 den = 25; in realtime_counter_init()
125 den = 625; in realtime_counter_init()
129 den = 1625; in realtime_counter_init()
133 den = 1125; in realtime_counter_init()
139 den = 25; in realtime_counter_init()
152 reg |= den; in realtime_counter_init()
[all …]
/linux-6.12.1/drivers/clk/mmp/
Dclk-frac.c34 rate *= factor->ftbl[i].den; in clk_factor_round_rate()
55 unsigned int val, num, den; in clk_factor_recalc_rate() local
64 den = (val >> masks->den_shift) & masks->den_mask; in clk_factor_recalc_rate()
66 if (!den) in clk_factor_recalc_rate()
70 rate *= den; in clk_factor_recalc_rate()
89 rate *= factor->ftbl[i].den; in clk_factor_set_rate()
107 val |= (factor->ftbl[i].den & masks->den_mask) << masks->den_shift; in clk_factor_set_rate()
121 u32 val, num, den; in clk_factor_init() local
134 den = (val >> masks->den_shift) & masks->den_mask; in clk_factor_init()
137 if (den == factor->ftbl[i].den && num == factor->ftbl[i].num) in clk_factor_init()
[all …]
Dclk-of-mmp2.c147 {.num = 8125, .den = 1536}, /*14.745MHZ */
148 {.num = 3521, .den = 689}, /*19.23MHZ */
161 {.num = 24868, .den = 511}, /* 2.0480 MHz */
162 {.num = 28003, .den = 793}, /* 2.8224 MHz */
163 {.num = 24941, .den = 1025}, /* 4.0960 MHz */
164 {.num = 28003, .den = 1586}, /* 5.6448 MHz */
165 {.num = 31158, .den = 2561}, /* 8.1920 MHz */
166 {.num = 16288, .den = 1845}, /* 11.2896 MHz */
167 {.num = 20772, .den = 2561}, /* 12.2880 MHz */
168 {.num = 8144, .den = 1845}, /* 22.5792 MHz */
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pll.c36 * @den: denominator
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()
74 * @den: denominator
85 unsigned int den, unsigned int post_div, in amdgpu_pll_get_fb_ref_div() argument
[all …]
/linux-6.12.1/lib/crypto/mpi/
Dmpi-div.c17 int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
49 /* If den == quot, den needs temporary storage.
50 * If den == rem, den needs temporary storage.
52 * If den has temporary storage, it can be normalized while being copied,
56 int mpi_tdiv_r(MPI rem, MPI num, MPI den) in mpi_tdiv_r() argument
58 return mpi_tdiv_qr(NULL, rem, num, den); in mpi_tdiv_r()
61 int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr() argument
66 mpi_size_t dsize = den->nlimbs; in mpi_tdiv_qr()
69 mpi_size_t sign_quotient = num->sign ^ den->sign; in mpi_tdiv_qr()
110 dp = den->d; in mpi_tdiv_qr()
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_sprite.c180 unsigned int *num, unsigned int *den) in vlv_plane_ratio() argument
196 *den = 8; in vlv_plane_ratio()
200 *den = 16; in vlv_plane_ratio()
204 *den = 1; in vlv_plane_ratio()
211 *den = 8; in vlv_plane_ratio()
215 *den = 16; in vlv_plane_ratio()
219 *den = 1; in vlv_plane_ratio()
226 *den = 8; in vlv_plane_ratio()
230 *den = 1; in vlv_plane_ratio()
240 unsigned int num, den; in vlv_plane_min_cdclk() local
[all …]
/linux-6.12.1/lib/
Dflex_proportions.c152 s64 num, den; in fprop_fraction_percpu() local
158 den = percpu_counter_read_positive(&p->events); in fprop_fraction_percpu()
165 if (den <= num) { in fprop_fraction_percpu()
167 den = num; in fprop_fraction_percpu()
169 den = 1; in fprop_fraction_percpu()
171 *denominator = den; in fprop_fraction_percpu()
/linux-6.12.1/drivers/media/dvb-frontends/cxd2880/
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-6.12.1/tools/include/linux/
Darm-smccc.h15 * This code is up-to-date with version DEN 0028 C
185 * Return codes defined in ARM DEN 0070A
186 * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C
/linux-6.12.1/drivers/clk/spear/
Dclk-aux-synth.c66 unsigned int num = 1, den = 1, val, eqn; in clk_aux_recalc_rate() local
79 den = 2; in clk_aux_recalc_rate()
86 den *= (val >> aux->masks->yscale_sel_shift) & in clk_aux_recalc_rate()
89 if (!den) in clk_aux_recalc_rate()
92 return (((parent_rate / 10000) * num) / den) * 10000; in clk_aux_recalc_rate()
Dclk-vco-pll.c194 unsigned int num = 2, den = 0, val, mode = 0; in clk_vco_recalc_rate() local
206 den = (val >> PLL_DIV_N_SHIFT) & PLL_DIV_N_MASK; in clk_vco_recalc_rate()
215 den *= 256; in clk_vco_recalc_rate()
218 if (!den) { in clk_vco_recalc_rate()
223 return (((parent_rate / 10000) * num) / den) * 10000; in clk_vco_recalc_rate()
/linux-6.12.1/sound/core/
Dpcm_lib.c846 unsigned int den; in snd_interval_ratnum() local
851 den = div_up(num, q); in snd_interval_ratnum()
852 if (den < rats[k].den_min) in snd_interval_ratnum()
854 if (den > rats[k].den_max) in snd_interval_ratnum()
855 den = rats[k].den_max; in snd_interval_ratnum()
858 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum()
860 den -= r; in snd_interval_ratnum()
862 diff = num - q * den; in snd_interval_ratnum()
866 diff * best_den < best_diff * den) { in snd_interval_ratnum()
868 best_den = den; in snd_interval_ratnum()
[all …]
/linux-6.12.1/drivers/clk/qcom/
Dclk-rcg2.c559 duty->den = 2; in clk_rcg2_get_duty_cycle()
570 duty->den = 2; in clk_rcg2_get_duty_cycle()
582 duty->den = n; in clk_rcg2_get_duty_cycle()
609 duty_per = (duty->num * 100) / duty->den; in clk_rcg2_set_duty_cycle()
683 int den; member
727 request *= frac->den; in clk_edp_pixel_set_rate()
739 f.n = frac->den; in clk_edp_pixel_set_rate()
777 request *= frac->den; in clk_edp_pixel_determine_rate()
789 frac->num, frac->den, in clk_edp_pixel_determine_rate()
790 !!frac->den, hid_div); in clk_edp_pixel_determine_rate()
[all …]
/linux-6.12.1/sound/pci/emu10k1/
Dtimer.c49 unsigned long *num, unsigned long *den) in snd_emu10k1_timer_precise_resolution() argument
55 *den = emu->emu1010.word_clock; in snd_emu10k1_timer_precise_resolution()
57 *den = 48000; in snd_emu10k1_timer_precise_resolution()
/linux-6.12.1/include/trace/events/
Dclk.h240 __field( unsigned int, den )
246 __entry->den = duty->den;
250 (unsigned int)__entry->den)
/linux-6.12.1/include/linux/
Djiffies.h47 /* Suppose we want to divide two numbers NOM and DEN: NOM/DEN, then we can
49 * (NOM << LSH) / DEN
53 * - (NOM / DEN) fits in (32 - LSH) bits.
54 * - (NOM % DEN) fits in (32 - LSH) bits.
56 #define SH_DIV(NOM,DEN,LSH) ( (((NOM) / (DEN)) << (LSH)) \ argument
57 + ((((NOM) % (DEN)) << (LSH)) + (DEN) / 2) / (DEN))
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/
Dconversion.c150 void reduce_fraction(uint32_t num, uint32_t den, in reduce_fraction() argument
155 gcd = find_gcd(num, den); in reduce_fraction()
157 *out_den = den / gcd; in reduce_fraction()
/linux-6.12.1/Documentation/devicetree/bindings/arm/firmware/
Dsdei.txt4 ARM DEN 0054A ("Software Delegated Exception Interface") can be used by
13 Convention (ARM DEN 0028B):
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_ptp.c15 ptp->cycle.den = readl(hdev->ptp->io_base + HCLGE_PTP_CYCLE_DEN_REG); in hclge_ptp_get_cycle()
17 if (ptp->cycle.den == 0) { in hclge_ptp_get_cycle()
33 adj_base = (u64)cycle->quo * (u64)cycle->den + (u64)cycle->numer; in hclge_ptp_adjfine()
38 * denominator is fixed to ptp->cycle.den, and numerator in hclge_ptp_adjfine()
39 * is 0.5 * ptp->cycle.den. in hclge_ptp_adjfine()
41 quo = div_u64_rem(adj_val, cycle->den, &numerator); in hclge_ptp_adjfine()
47 writel(cycle->den, hdev->ptp->io_base + HCLGE_PTP_CYCLE_DEN_REG); in hclge_ptp_adjfine()
/linux-6.12.1/sound/soc/codecs/
Dpcm512x.c760 unsigned long den; in pcm512x_find_pll_coeff() local
766 den = pllin_rate / common; in pcm512x_find_pll_coeff()
768 /* pllin_rate / P (or here, den) cannot be greater than 20 MHz */ in pcm512x_find_pll_coeff()
769 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff()
770 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
771 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
773 dev_dbg(dev, "num / den = %lu / %lu\n", num, den); in pcm512x_find_pll_coeff()
775 P = den; in pcm512x_find_pll_coeff()
776 if (den <= 15 && num <= 16 * 63 in pcm512x_find_pll_coeff()
801 common = gcd(10000 * num, den); in pcm512x_find_pll_coeff()
[all …]
/linux-6.12.1/lib/math/
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-6.12.1/drivers/clk/
Dclk-versaclock7.c257 * @den: The denominator (divisor).
268 static u64 vc7_128_div_64_to_64(u64 numhi, u64 numlo, u64 den, u64 *r) in vc7_128_div_64_to_64() argument
303 if (numhi >= den) { in vc7_128_div_64_to_64()
310 * Determine the normalization factor. We multiply den by this, so that in vc7_128_div_64_to_64()
316 * numhi < den. The expression (-shift & 63) is the same as (64 - in vc7_128_div_64_to_64()
322 shift = __builtin_clzll(den); in vc7_128_div_64_to_64()
323 den <<= shift; in vc7_128_div_64_to_64()
334 den1 = (u32)(den >> 32); in vc7_128_div_64_to_64()
335 den0 = (u32)(den & 0xFFFFFFFFu); in vc7_128_div_64_to_64()
346 qhat -= (c1 - c2 > den) ? 2 : 1; in vc7_128_div_64_to_64()
[all …]
/linux-6.12.1/lib/reed_solomon/
Ddecode_rs.c23 uint16_t u, q, tmp, num1, num2, den, discr_r, syn_error; variable
249 * inv(X(l))**(fcr-1) and den = lambda_pr(inv(X(l))) all in poly-form
268 den = 0;
274 den ^= alpha_to[rs_modnn(rs, lambda[i + 1] +
281 nn - index_of[den])];
/linux-6.12.1/Documentation/translations/zh_TW/arch/arm64/
Dbooting.txt237 ARM DEN 0022A:用於 ARM 上的電源狀態協調接口系統軟件)中描述的
240 *譯者注: ARM DEN 0022A 已更新到 ARM DEN 0022C。
/linux-6.12.1/Documentation/translations/zh_CN/arch/arm64/
Dbooting.txt233 ARM DEN 0022A:用于 ARM 上的电源状态协调接口系统软件)中描述的
236 *译者注: ARM DEN 0022A 已更新到 ARM DEN 0022C。

123456