Lines Matching refs:ulong

67 	const ulong num = (mpll_reg & SCU_MPLL_NUM_MASK) >> SCU_MPLL_NUM_SHIFT;  in ast2500_get_mpll_rate()
68 const ulong denum = (mpll_reg & SCU_MPLL_DENUM_MASK) in ast2500_get_mpll_rate()
70 const ulong post_div = (mpll_reg & SCU_MPLL_POST_MASK) in ast2500_get_mpll_rate()
86 const ulong num = (hpll_reg & SCU_HPLL_NUM_MASK) >> SCU_HPLL_NUM_SHIFT; in ast2500_get_hpll_rate()
87 const ulong denum = (hpll_reg & SCU_HPLL_DENUM_MASK) in ast2500_get_hpll_rate()
89 const ulong post_div = (hpll_reg & SCU_HPLL_POST_MASK) in ast2500_get_hpll_rate()
105 const ulong num = (dpll_reg & 0xff); in ast2500_get_dpll_rate()
106 const ulong denum = (dpll_reg >> 8) & 0x1f; in ast2500_get_dpll_rate()
107 const ulong post_div = (dpll_reg >> 13) & 0x3f; in ast2500_get_dpll_rate()
108 const ulong od_div = (dpll_reg >> 19) & 0x7; in ast2500_get_dpll_rate()
122 const ulong num = (d2pll_reg & 0xff); in ast2500_get_d2pll_rate()
123 const ulong denum = (d2pll_reg >> 8) & 0x1f; in ast2500_get_d2pll_rate()
124 const ulong post_div = (d2pll_reg >> 13) & 0x3f; in ast2500_get_d2pll_rate()
125 const ulong od_div = (d2pll_reg >> 19) & 0x7 ; in ast2500_get_d2pll_rate()
135 ulong ahb_div = 1 + ((readl(&scu->hwstrap) in ast2500_get_hclk()
139 ulong axi_div = 2; in ast2500_get_hclk()
149 ulong apb_div = 4 + 4 * ((readl(&scu->clk_sel1) in ast2500_get_pclk()
191 static ulong ast2500_clk_get_rate(struct clk *clk) in ast2500_clk_get_rate()
194 ulong rate; in ast2500_clk_get_rate()
243 ulong input_rate;
244 ulong rate;
252 static bool ast2500_get_clock_config_default(ulong input_rate, in ast2500_get_clock_config_default()
253 ulong requested_rate, in ast2500_get_clock_config_default()
281 static ulong ast2500_calc_clock_config(ulong input_rate, ulong requested_rate, in ast2500_calc_clock_config()
288 const ulong input_rate_khz = input_rate / 1000; in ast2500_calc_clock_config()
289 const ulong rate_khz = requested_rate / 1000; in ast2500_calc_clock_config()
292 ulong delta = rate_khz; in ast2500_calc_clock_config()
293 ulong new_rate_khz = 0; in ast2500_calc_clock_config()
329 static ulong ast2500_configure_ddr(struct ast2500_scu *scu, ulong rate) in ast2500_configure_ddr()
331 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_ddr()
353 static ulong ast2500_configure_d2pll(struct ast2500_scu *scu, ulong rate) in ast2500_configure_d2pll()
370 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_d2pll()
371 ulong new_rate; in ast2500_configure_d2pll()
404 static unsigned long ast2500_clk_set_rate(struct clk *clk, ulong rate) in ast2500_clk_set_rate()
408 ulong new_rate; in ast2500_clk_set_rate()
429 static ulong ast2500_configure_mac(struct ast2500_scu *scu, int index) in ast2500_configure_mac()
431 ulong hpll_rate = ast2500_get_hpll_rate(scu); in ast2500_configure_mac()
432 ulong required_rate; in ast2500_configure_mac()
504 static ulong ast2500_enable_sdclk(struct ast2500_scu *scu) in ast2500_enable_sdclk()
526 static ulong ast2500_enable_extsdclk(struct ast2500_scu *scu) in ast2500_enable_extsdclk()
544 static ulong ast2500_enable_usbahclk(struct ast2500_scu *scu) in ast2500_enable_usbahclk()
562 static ulong ast2500_enable_usbbhclk(struct ast2500_scu *scu) in ast2500_enable_usbbhclk()
651 ulong id;