Home
last modified time | relevance | path

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

12

/drivers/clk/mmp/
Dclk-frac.c43 rate = (((*prate / 10000) * factor->ftbl[i].den) / in clk_factor_round_rate()
63 unsigned int val, num, den; in clk_factor_recalc_rate() local
71 den = (val >> masks->den_shift) & masks->den_mask; in clk_factor_recalc_rate()
73 if (!den) in clk_factor_recalc_rate()
76 return (((parent_rate / 10000) * den) / in clk_factor_recalc_rate()
92 rate = (((prate / 10000) * factor->ftbl[i].den) / in clk_factor_set_rate()
106 val |= (factor->ftbl[i].den & masks->den_mask) << masks->den_shift; in clk_factor_set_rate()
Dclk-mmp2.c66 {.num = 14634, .den = 2165}, /*14.745MHZ */
67 {.num = 3521, .den = 689}, /*19.23MHZ */
68 {.num = 9679, .den = 5728}, /*58.9824MHZ */
69 {.num = 15850, .den = 9451}, /*59.429MHZ */
Dclk.h20 unsigned int den; member
Dclk-pxa910.c57 {.num = 8125, .den = 1536}, /*14.745MHZ */
Dclk-pxa168.c59 {.num = 8125, .den = 1536}, /*14.745MHZ */
/drivers/clk/qcom/
Dclk-rcg2.c290 int den; member
334 request *= frac->den; in clk_edp_pixel_set_rate()
346 f.n = frac->den; in clk_edp_pixel_set_rate()
383 request *= frac->den; in clk_edp_pixel_determine_rate()
394 return calc_rate(src_rate, frac->num, frac->den, !!frac->den, in clk_edp_pixel_determine_rate()
485 request = (rate * frac->den) / frac->num; in clk_pixel_determine_rate()
493 return (src_rate * frac->num) / frac->den; in clk_pixel_determine_rate()
512 request = (rate * frac->den) / frac->num; in clk_pixel_set_rate()
525 f.n = frac->den; in clk_pixel_set_rate()
/drivers/clk/spear/
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()
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()
/drivers/media/i2c/m5mols/
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()
/drivers/video/fbdev/core/
Dfbcvt.c76 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()
/drivers/gpu/drm/radeon/
Dradeon_display.c857 static void avivo_reduce_ratio(unsigned *nom, unsigned *den, in avivo_reduce_ratio() argument
863 tmp = gcd(*nom, *den); in avivo_reduce_ratio()
865 *den /= tmp; in avivo_reduce_ratio()
871 *den *= tmp; in avivo_reduce_ratio()
875 if (*den < den_min) { in avivo_reduce_ratio()
876 tmp = DIV_ROUND_UP(den_min, *den); in avivo_reduce_ratio()
878 *den *= tmp; in avivo_reduce_ratio()
896 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, in avivo_get_fb_ref_div() argument
904 *ref_div = min(max(DIV_ROUND_CLOSEST(den, post_div), 1u), ref_div_max); in avivo_get_fb_ref_div()
905 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
[all …]
/drivers/video/fbdev/riva/
Dfbdev.c875 int nom, int den) in rivafb_do_maximize() argument
895 if (modes[i].xres * nom / den * modes[i].yres < in rivafb_do_maximize()
912 var->xres_virtual = (info->fix.smem_len * den / in rivafb_do_maximize()
918 var->yres_virtual = info->fix.smem_len * den / in rivafb_do_maximize()
924 if (var->xres_virtual * nom / den * var->yres_virtual > info->fix.smem_len) { in rivafb_do_maximize()
933 if (var->xres_virtual * nom / den >= 8192) { in rivafb_do_maximize()
936 var->xres_virtual, 8192 * den / nom - 16); in rivafb_do_maximize()
937 var->xres_virtual = 8192 * den / nom - 16; in rivafb_do_maximize()
1096 int nom, den; /* translating from pixels->bytes */ in rivafb_check_var() local
1105 nom = den = 1; in rivafb_check_var()
[all …]
/drivers/video/fbdev/matrox/
Dmatroxfb_maven.c200 unsigned int den; member
215 .den = 50
220 .den = 60
230 unsigned int fmin = pll->vco_freq_min / ctl->den; in matroxfb_PLL_mavenclock()
240 fmax = pll->vco_freq_max / ctl->den; in matroxfb_PLL_mavenclock()
294 return fxtal * (*feed) / (*in) * ctl->den; in matroxfb_PLL_mavenclock()
/drivers/video/fbdev/aty/
Dradeonfb.h503 static inline int round_div(int num, int den) in round_div() argument
505 return (num + (den / 2)) / den; in round_div()
Dradeon_base.c721 int nom, den; in radeonfb_check_var() local
749 nom = den = 1; in radeonfb_check_var()
756 den = 1; in radeonfb_check_var()
765 den = 1; in radeonfb_check_var()
776 den = 1; in radeonfb_check_var()
785 den = 1; in radeonfb_check_var()
816 if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram) in radeonfb_check_var()
/drivers/media/platform/soc_camera/
Dmx2_camera.c1005 unsigned int num, den; in mx2_emmaprp_resize() local
1031 den = out / m; in mx2_emmaprp_resize()
1035 if ((num >= 2 * den) && (den == 1) && in mx2_emmaprp_resize()
1068 int in_pos_inc = 2 * den; in mx2_emmaprp_resize()
1071 int init_carry = num - den; in mx2_emmaprp_resize()
1075 v = den + in_pos_inc; in mx2_emmaprp_resize()
Dmx3_camera.c733 unsigned int num, den; in configure_geometry() local
734 int ret = soc_mbus_samples_per_pixel(fmt, &num, &den); in configure_geometry()
736 width = width * num / den; in configure_geometry()
/drivers/video/fbdev/
Dcirrusfb.c408 static void bestclock(long freq, int *nom, int *den, int *div);
669 int nom, den, div; in cirrusfb_set_par_foo() local
845 bestclock(freq, &nom, &den, &div); in cirrusfb_set_par_foo()
848 freq, nom, den, div); in cirrusfb_set_par_foo()
885 tmp = den << 1; in cirrusfb_set_par_foo()
2739 static void bestclock(long freq, int *nom, int *den, int *div) in bestclock() argument
2745 assert(den != NULL); in bestclock()
2749 *den = 0; in bestclock()
2773 *den = temp; in bestclock()
2788 *den = d; in bestclock()
/drivers/staging/line6/
Dpodhd.c26 .den = 1,
Dpod.c65 .den = 2
Dtoneport.c30 .den = 1
/drivers/dma/sh/
Dsudmac.c94 u32 den = sudmac_readl(sc, SUDMAC_CH0DEN + sc->offset); in sudmac_is_busy() local
96 if (den) in sudmac_is_busy()
/drivers/net/wireless/b43/
Dphy_ht.c729 s32 num, den, pwr; in b43_phy_ht_tx_power_ctl_setup() local
734 den = 32768 + a1[c] * i; in b43_phy_ht_tx_power_ctl_setup()
735 pwr = max((4 * num + den / 2) / den, -8); in b43_phy_ht_tx_power_ctl_setup()
/drivers/media/platform/exynos4-is/
Dfimc-is-param.h818 u32 den; member
823 s32 den; member
/drivers/net/wireless/b43legacy/
Dphy.c1958 s32 b43legacy_tssi2dbm_ad(s32 num, s32 den) in b43legacy_tssi2dbm_ad() argument
1961 return num/den; in b43legacy_tssi2dbm_ad()
1963 return (num+den/2)/den; in b43legacy_tssi2dbm_ad()

12