/Linux-v6.1/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 …]
|
/Linux-v6.1/drivers/clk/mmp/ |
D | clk-frac.c | 34 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 …]
|
D | clk-of-mmp2.c | 145 {.num = 8125, .den = 1536}, /*14.745MHZ */ 146 {.num = 3521, .den = 689}, /*19.23MHZ */ 159 {.num = 24868, .den = 511}, /* 2.0480 MHz */ 160 {.num = 28003, .den = 793}, /* 2.8224 MHz */ 161 {.num = 24941, .den = 1025}, /* 4.0960 MHz */ 162 {.num = 28003, .den = 1586}, /* 5.6448 MHz */ 163 {.num = 31158, .den = 2561}, /* 8.1920 MHz */ 164 {.num = 16288, .den = 1845}, /* 11.2896 MHz */ 165 {.num = 20772, .den = 2561}, /* 12.2880 MHz */ 166 {.num = 8144, .den = 1845}, /* 22.5792 MHz */ [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pll.c | 36 * @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-v6.1/lib/mpi/ |
D | mpi-div.c | 17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den); 71 /* If den == quot, den needs temporary storage. 72 * If den == rem, den needs temporary storage. 74 * If den has temporary storage, it can be normalized while being copied, 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-v6.1/lib/ |
D | flex_proportions.c | 140 s64 num, den; in fprop_fraction_single() local 146 den = percpu_counter_read_positive(&p->events); in fprop_fraction_single() 153 if (den <= num) { in fprop_fraction_single() 155 den = num; in fprop_fraction_single() 157 den = 1; in fprop_fraction_single() 159 *denominator = den; in fprop_fraction_single() 229 s64 num, den; in fprop_fraction_percpu() local 235 den = percpu_counter_read_positive(&p->events); in fprop_fraction_percpu() 242 if (den <= num) { in fprop_fraction_percpu() 244 den = num; in fprop_fraction_percpu() [all …]
|
/Linux-v6.1/drivers/gpu/drm/i915/display/ |
D | intel_sprite.c | 238 unsigned int *num, unsigned int *den) in vlv_plane_ratio() argument 254 *den = 8; in vlv_plane_ratio() 258 *den = 16; in vlv_plane_ratio() 262 *den = 1; in vlv_plane_ratio() 269 *den = 8; in vlv_plane_ratio() 273 *den = 16; in vlv_plane_ratio() 277 *den = 1; in vlv_plane_ratio() 284 *den = 8; in vlv_plane_ratio() 288 *den = 1; in vlv_plane_ratio() 298 unsigned int num, den; in vlv_plane_min_cdclk() local [all …]
|
/Linux-v6.1/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()
|
/Linux-v6.1/arch/ia64/kernel/ |
D | time.c | 286 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-v6.1/drivers/clk/qcom/ |
D | clk-rcg2.c | 410 duty->den = 2; in clk_rcg2_get_duty_cycle() 421 duty->den = 2; in clk_rcg2_get_duty_cycle() 433 duty->den = n; in clk_rcg2_get_duty_cycle() 460 duty_per = (duty->num * 100) / duty->den; in clk_rcg2_set_duty_cycle() 521 int den; member 565 request *= frac->den; in clk_edp_pixel_set_rate() 577 f.n = frac->den; in clk_edp_pixel_set_rate() 615 request *= frac->den; in clk_edp_pixel_determine_rate() 627 frac->num, frac->den, in clk_edp_pixel_determine_rate() 628 !!frac->den, hid_div); in clk_edp_pixel_determine_rate() [all …]
|
/Linux-v6.1/sound/core/ |
D | pcm_lib.c | 801 unsigned int den; in snd_interval_ratnum() local 806 den = div_up(num, q); in snd_interval_ratnum() 807 if (den < rats[k].den_min) in snd_interval_ratnum() 809 if (den > rats[k].den_max) in snd_interval_ratnum() 810 den = rats[k].den_max; in snd_interval_ratnum() 813 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum() 815 den -= r; in snd_interval_ratnum() 817 diff = num - q * den; in snd_interval_ratnum() 821 diff * best_den < best_diff * den) { in snd_interval_ratnum() 823 best_den = den; in snd_interval_ratnum() [all …]
|
/Linux-v6.1/tools/include/linux/ |
D | arm-smccc.h | 15 * 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-v6.1/drivers/clk/spear/ |
D | clk-aux-synth.c | 66 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()
|
D | clk-vco-pll.c | 194 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-v6.1/include/linux/ |
D | jiffies.h | 47 /* 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-v6.1/drivers/media/i2c/m5mols/ |
D | m5mols_capture.c | 42 u32 num, den; in m5mols_read_rational() local 46 ret = m5mols_read_u32(sd, addr_den, &den); in m5mols_read_rational() 49 *val = den == 0 ? 0 : num / den; in m5mols_read_rational()
|
/Linux-v6.1/include/trace/events/ |
D | clk.h | 240 __field( unsigned int, den ) 246 __entry->den = duty->den; 250 (unsigned int)__entry->den)
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/basics/ |
D | conversion.c | 115 void reduce_fraction(uint32_t num, uint32_t den, in reduce_fraction() argument 120 gcd = find_gcd(num, den); in reduce_fraction() 122 *out_den = den / gcd; in reduce_fraction()
|
/Linux-v6.1/sound/soc/codecs/ |
D | pcm512x.c | 759 unsigned long den; in pcm512x_find_pll_coeff() local 765 den = pllin_rate / common; in pcm512x_find_pll_coeff() 767 /* pllin_rate / P (or here, den) cannot be greater than 20 MHz */ in pcm512x_find_pll_coeff() 768 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff() 769 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff() 770 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff() 772 dev_dbg(dev, "num / den = %lu / %lu\n", num, den); 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() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/arm/firmware/ |
D | sdei.txt | 4 ARM DEN 0054A ("Software Delegated Exception Interface") can be used by 13 Convention (ARM DEN 0028B):
|
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_ptp.c | 15 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() 39 adj_base = (u64)cycle->quo * (u64)cycle->den + (u64)cycle->numer; in hclge_ptp_adjfreq() 50 * denominator is fixed to ptp->cycle.den, and numerator in hclge_ptp_adjfreq() 51 * is 0.5 * ptp->cycle.den. in hclge_ptp_adjfreq() 53 quo = div_u64_rem(adj_val, cycle->den, &numerator); in hclge_ptp_adjfreq() 59 writel(cycle->den, hdev->ptp->io_base + HCLGE_PTP_CYCLE_DEN_REG); in hclge_ptp_adjfreq()
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/drivers/gpu/drm/i915/gt/ |
D | intel_gt_clock_utils.c | 176 static u64 div_u64_roundup(u64 nom, u32 den) in div_u64_roundup() argument 178 return div_u64(nom + den - 1, den); in div_u64_roundup()
|
/Linux-v6.1/lib/math/ |
D | rational-test.c | 8 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-v6.1/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()
|