Home
last modified time | relevance | path

Searched defs:pll (Results 1 – 25 of 145) sorted by relevance

123456

/linux/drivers/clk/mediatek/
H A Dclk-pll.c36 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_is_prepared() local
43 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_fenc_is_prepared() local
48 static unsigned long __mtk_pll_recalc_rate(struct mtk_clk_pll *pll, u32 fin, in __mtk_pll_recalc_rate()
75 static void __mtk_pll_tuner_enable(struct mtk_clk_pll *pll) in __mtk_pll_tuner_enable()
88 static void __mtk_pll_tuner_disable(struct mtk_clk_pll *pll) in __mtk_pll_tuner_disable()
101 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw, in mtk_pll_set_rate_regs()
146 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values()
186 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_set_rate() local
198 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_recalc_rate() local
213 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_determine_rate() local
[all …]
H A Dclk-fhctl.c55 static void dump_hw(struct mtk_clk_pll *pll, struct fh_pll_regs *regs, in dump_hw()
68 static int fhctl_set_ssc_regs(struct mtk_clk_pll *pll, struct fh_pll_regs *regs, in fhctl_set_ssc_regs()
116 static int hopping_hw_flow(struct mtk_clk_pll *pll, struct fh_pll_regs *regs, in hopping_hw_flow()
161 static unsigned int __get_postdiv(struct mtk_clk_pll *pll) in __get_postdiv()
171 static void __set_postdiv(struct mtk_clk_pll *pll, unsigned int postdiv) in __set_postdiv()
187 struct mtk_clk_pll *pll = &fh->clk_pll; in fhctl_hopping() local
217 struct mtk_clk_pll *pll = &fh->clk_pll; in fhctl_ssc_enable() local
/linux/drivers/clk/rockchip/
H A Dclk-pll.c51 struct rockchip_clk_pll *pll, unsigned long rate) in rockchip_get_pll_settings()
67 struct rockchip_clk_pll *pll = to_rockchip_clk_pll(hw); in rockchip_pll_determine_rate() local
91 static int rockchip_pll_wait_lock(struct rockchip_clk_pll *pll) in rockchip_pll_wait_lock()
125 static int rockchip_rk3036_pll_wait_lock(struct rockchip_clk_pll *pll) in rockchip_rk3036_pll_wait_lock()
144 static void rockchip_rk3036_pll_get_params(struct rockchip_clk_pll *pll, in rockchip_rk3036_pll_get_params()
171 struct rockchip_clk_pll *pll = to_rockchip_clk_pll(hw); in rockchip_rk3036_pll_recalc_rate() local
194 static int rockchip_rk3036_pll_set_params(struct rockchip_clk_pll *pll, in rockchip_rk3036_pll_set_params()
258 struct rockchip_clk_pll *pll = to_rockchip_clk_pll(hw); in rockchip_rk3036_pll_set_rate() local
277 struct rockchip_clk_pll *pll = to_rockchip_clk_pll(hw); in rockchip_rk3036_pll_enable() local
288 struct rockchip_clk_pll *pll = to_rockchip_clk_pll(hw); in rockchip_rk3036_pll_disable() local
[all …]
/linux/drivers/clk/sprd/
H A Dpll.c18 #define pindex(pll, member) \ argument
21 #define pshift(pll, member) \ argument
24 #define pwidth(pll, member) \ argument
27 #define pmask(pll, member) \ argument
32 #define pinternal(pll, cfg, member) \ argument
35 #define pinternal_val(pll, cfg, member) \ argument
39 sprd_pll_read(const struct sprd_pll *pll, u8 index) in sprd_pll_read()
53 sprd_pll_write(const struct sprd_pll *pll, u8 index, in sprd_pll_write()
69 static unsigned long pll_get_refin(const struct sprd_pll *pll) in pll_get_refin()
98 static unsigned long _sprd_pll_recalc_rate(const struct sprd_pll *pll, in _sprd_pll_recalc_rate()
[all …]
/linux/drivers/clk/tegra/
H A Dclk-pll.c276 static void clk_pll_enable_lock(struct tegra_clk_pll *pll) in clk_pll_enable_lock()
291 static int clk_pll_wait_for_lock(struct tegra_clk_pll *pll) in clk_pll_wait_for_lock()
325 int tegra_pll_wait_for_lock(struct tegra_clk_pll *pll) in tegra_pll_wait_for_lock()
330 static bool pllm_clk_is_gated_by_pmc(struct tegra_clk_pll *pll) in pllm_clk_is_gated_by_pmc()
340 struct tegra_clk_pll *pll = to_clk_pll(hw); in clk_pll_is_enabled() local
358 struct tegra_clk_pll *pll = to_clk_pll(hw); in _clk_pll_enable() local
391 struct tegra_clk_pll *pll = to_clk_pll(hw); in _clk_pll_disable() local
420 static void pll_clk_start_ss(struct tegra_clk_pll *pll) in pll_clk_start_ss()
430 static void pll_clk_stop_ss(struct tegra_clk_pll *pll) in pll_clk_stop_ss()
442 struct tegra_clk_pll *pll = to_clk_pll(hw); in clk_pll_enable() local
[all …]
/linux/drivers/clk/pistachio/
H A Dclk-pll.c78 static inline u32 pll_readl(struct pistachio_clk_pll *pll, u32 reg) in pll_readl()
83 static inline void pll_writel(struct pistachio_clk_pll *pll, u32 val, u32 reg) in pll_writel()
88 static inline void pll_lock(struct pistachio_clk_pll *pll) in pll_lock()
107 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_frac_get_mode() local
116 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_frac_set_mode() local
129 pll_get_params(struct pistachio_clk_pll *pll, unsigned long fref, in pll_get_params()
144 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_determine_rate() local
163 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_gf40lp_frac_enable() local
182 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_gf40lp_frac_disable() local
192 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_gf40lp_frac_is_enabled() local
[all …]
/linux/drivers/clk/bcm/
H A Dclk-iproc-pll.c75 struct iproc_pll *pll; member
118 static int pll_get_rate_index(struct iproc_pll *pll, unsigned int target_rate) in pll_get_rate_index()
147 static int pll_wait_for_lock(struct iproc_pll *pll) in pll_wait_for_lock()
163 static void iproc_pll_write(const struct iproc_pll *pll, void __iomem *base, in iproc_pll_write()
175 static void __pll_disable(struct iproc_pll *pll) in __pll_disable()
204 static int __pll_enable(struct iproc_pll *pll) in __pll_enable()
233 static void __pll_put_in_reset(struct iproc_pll *pll) in __pll_put_in_reset()
247 static void __pll_bring_out_reset(struct iproc_pll *pll, unsigned int kp, in __pll_bring_out_reset()
276 static bool pll_fractional_change_only(struct iproc_pll *pll, in pll_fractional_change_only()
308 struct iproc_pll *pll = clk->pll; in pll_set_rate() local
[all …]
/linux/drivers/clk/qcom/
H A Dclk-pll.c26 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_enable() local
67 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_disable() local
82 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_recalc_rate() local
128 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_determine_rate() local
143 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_set_rate() local
179 static int wait_for_pll(struct clk_pll *pll) in wait_for_pll()
218 static void clk_pll_configure(struct clk_pll *pll, struct regmap *regmap, in clk_pll_configure()
245 void clk_pll_configure_sr(struct clk_pll *pll, struct regmap *regmap, in clk_pll_configure_sr()
254 void clk_pll_configure_sr_hpm_lp(struct clk_pll *pll, struct regmap *regmap, in clk_pll_configure_sr_hpm_lp()
265 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_sr2_enable() local
[all …]
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dpll.c30 int dss_pll_register(struct dss_pll *pll) in dss_pll_register()
44 void dss_pll_unregister(struct dss_pll *pll) in dss_pll_unregister()
68 int dss_pll_enable(struct dss_pll *pll) in dss_pll_enable()
96 void dss_pll_disable(struct dss_pll *pll) in dss_pll_disable()
108 int dss_pll_set_config(struct dss_pll *pll, const struct dss_pll_clock_info *cinfo) in dss_pll_set_config()
121 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc()
146 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc()
214 int dss_pll_wait_reset_done(struct dss_pll *pll) in dss_pll_wait_reset_done()
224 static int dss_wait_hsdiv_ack(struct dss_pll *pll, u32 hsdiv_ack_mask) in dss_wait_hsdiv_ack()
238 int dss_pll_write_config_type_a(struct dss_pll *pll, in dss_pll_write_config_type_a()
[all …]
H A Dhdmi_pll.c23 void hdmi_pll_dump(struct hdmi_pll_data *pll, struct seq_file *s) in hdmi_pll_dump()
39 void hdmi_pll_compute(struct hdmi_pll_data *pll, in hdmi_pll_compute()
101 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_enable() local
111 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_disable() local
174 struct dss_pll *pll = &hpll->pll; in dsi_init_pll_data() local
208 int hdmi_pll_init(struct platform_device *pdev, struct hdmi_pll_data *pll, in hdmi_pll_init()
232 struct dss_pll *pll = &hpll->pll; in hdmi_pll_uninit() local
H A Dvideo-pll.c20 struct dss_pll pll; member
56 static int dss_video_pll_enable(struct dss_pll *pll) in dss_video_pll_enable()
85 static void dss_video_pll_disable(struct dss_pll *pll) in dss_video_pll_disable()
135 struct dss_pll *pll; in dss_video_pll_init() local
186 void dss_video_pll_uninit(struct dss_pll *pll) in dss_video_pll_uninit()
/linux/drivers/video/fbdev/aty/
H A Dmach64_gx.c81 const union aty_pll *pll, u32 bpp, u32 accel) in aty_set_dac_514()
124 u32 bpp, union aty_pll *pll) in aty_var_to_pll_514()
162 const union aty_pll *pll) in aty_pll_514_to_var()
176 const union aty_pll *pll) in aty_set_pll_514()
206 const union aty_pll *pll, u32 bpp, in aty_set_dac_ATI68860_B()
289 const union aty_pll *pll, u32 bpp, in aty_set_dac_ATT21C498()
342 u32 bpp, union aty_pll *pll) in aty_var_to_pll_18818()
399 const union aty_pll *pll) in aty_pll_18818_to_var()
428 const union aty_pll *pll) in aty_set_pll18818()
496 u32 bpp, union aty_pll *pll) in aty_var_to_pll_1703()
[all …]
H A Dmach64_ct.c118 static int aty_dsp_gt(const struct fb_info *info, u32 bpp, struct pll_ct *pll) in aty_dsp_gt()
207 static int aty_valid_pll_ct(const struct fb_info *info, u32 vclk_per, struct pll_ct *pll) in aty_valid_pll_ct()
249 static int aty_var_to_pll_ct(const struct fb_info *info, u32 vclk_per, u32 bpp, union aty_pll *pll) in aty_var_to_pll_ct()
262 static u32 aty_pll_to_var_ct(const struct fb_info *info, const union aty_pll *pll) in aty_pll_to_var_ct()
279 void aty_set_pll_ct(const struct fb_info *info, const union aty_pll *pll) in aty_set_pll_ct()
378 static void aty_get_pll_ct(const struct fb_info *info, union aty_pll *pll) in aty_get_pll_ct()
401 static int aty_init_pll_ct(const struct fb_info *info, union aty_pll *pll) in aty_init_pll_ct()
607 union aty_pll *pll) in aty_resume_pll_ct()
/linux/drivers/gpu/drm/omapdrm/dss/
H A Dpll.c28 int dss_pll_register(struct dss_device *dss, struct dss_pll *pll) in dss_pll_register()
43 void dss_pll_unregister(struct dss_pll *pll) in dss_pll_unregister()
72 struct dss_pll *pll; in dss_pll_find_by_src() local
123 int dss_pll_enable(struct dss_pll *pll) in dss_pll_enable()
151 void dss_pll_disable(struct dss_pll *pll) in dss_pll_disable()
163 int dss_pll_set_config(struct dss_pll *pll, const struct dss_pll_clock_info *cinfo) in dss_pll_set_config()
176 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc_a()
205 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a()
272 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b()
356 int dss_pll_wait_reset_done(struct dss_pll *pll) in dss_pll_wait_reset_done()
[all …]
H A Dhdmi_pll.c23 void hdmi_pll_dump(struct hdmi_pll_data *pll, struct seq_file *s) in hdmi_pll_dump()
41 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_enable() local
59 struct hdmi_pll_data *pll = container_of(dsspll, struct hdmi_pll_data, pll); in hdmi_pll_disable() local
132 struct dss_pll *pll = &hpll->pll; in hdmi_init_pll_data() local
162 struct hdmi_pll_data *pll, struct hdmi_wp_data *wp) in hdmi_pll_init()
184 struct dss_pll *pll = &hpll->pll; in hdmi_pll_uninit() local
/linux/drivers/clk/imx/
H A Dclk-pllv3.c61 static int clk_pllv3_wait_lock(struct clk_pllv3 *pll) in clk_pllv3_wait_lock()
75 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_prepare() local
90 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_unprepare() local
103 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_is_prepared() local
114 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_recalc_rate() local
133 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_set_rate() local
163 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_sys_recalc_rate() local
191 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_sys_set_rate() local
220 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_av_recalc_rate() local
269 struct clk_pllv3 *pll = to_clk_pllv3(hw); in clk_pllv3_av_set_rate() local
[all …]
H A Dclk-pllv4.c60 static inline int clk_pllv4_wait_lock(struct clk_pllv4 *pll) in clk_pllv4_wait_lock()
70 struct clk_pllv4 *pll = to_clk_pllv4(hw); in clk_pllv4_is_prepared() local
81 struct clk_pllv4 *pll = to_clk_pllv4(hw); in clk_pllv4_recalc_rate() local
101 struct clk_pllv4 *pll = to_clk_pllv4(hw); in clk_pllv4_determine_rate() local
165 static bool clk_pllv4_is_valid_mult(struct clk_pllv4 *pll, unsigned int mult) in clk_pllv4_is_valid_mult()
187 struct clk_pllv4 *pll = to_clk_pllv4(hw); in clk_pllv4_set_rate() local
218 struct clk_pllv4 *pll = to_clk_pllv4(hw); in clk_pllv4_prepare() local
230 struct clk_pllv4 *pll = to_clk_pllv4(hw); in clk_pllv4_unprepare() local
249 struct clk_pllv4 *pll; in imx_clk_hw_pllv4() local
H A Dclk-frac-pll.c44 static int clk_wait_lock(struct clk_frac_pll *pll) in clk_wait_lock()
52 static int clk_wait_ack(struct clk_frac_pll *pll) in clk_wait_ack()
67 struct clk_frac_pll *pll = to_clk_frac_pll(hw); in clk_pll_prepare() local
79 struct clk_frac_pll *pll = to_clk_frac_pll(hw); in clk_pll_unprepare() local
89 struct clk_frac_pll *pll = to_clk_frac_pll(hw); in clk_pll_is_prepared() local
99 struct clk_frac_pll *pll = to_clk_frac_pll(hw); in clk_pll_recalc_rate() local
160 struct clk_frac_pll *pll = to_clk_frac_pll(hw); in clk_pll_set_rate() local
212 struct clk_frac_pll *pll; in imx_clk_hw_frac_pll() local
H A Dclk-pllv1.c32 static inline bool is_imx1_pllv1(struct clk_pllv1 *pll) in is_imx1_pllv1()
37 static inline bool is_imx21_pllv1(struct clk_pllv1 *pll) in is_imx21_pllv1()
42 static inline bool is_imx27_pllv1(struct clk_pllv1 *pll) in is_imx27_pllv1()
47 static inline bool mfn_is_negative(struct clk_pllv1 *pll, unsigned int mfn) in mfn_is_negative()
55 struct clk_pllv1 *pll = to_clk_pllv1(hw); in clk_pllv1_recalc_rate() local
117 struct clk_pllv1 *pll; in imx_clk_hw_pllv1() local
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-pll.c36 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in ipll_recalc_rate() local
91 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in ipll_determine_rate() local
135 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in ipll_set_rate() local
159 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in pll_enable() local
166 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in pll_disable() local
173 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in pll_is_enable() local
191 static bool fpll_is_factional_mode(struct cv1800_clk_pll *pll) in fpll_is_factional_mode()
223 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in fpll_recalc_rate() local
282 static int fpll_find_rate(struct cv1800_clk_pll *pll, in fpll_find_rate()
329 struct cv1800_clk_pll *pll = hw_to_cv1800_clk_pll(hw); in fpll_determine_rate() local
[all …]
/linux/drivers/clk/mxs/
H A Dclk-pll.c34 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_prepare() local
45 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_unprepare() local
52 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_enable() local
61 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_disable() local
69 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_recalc_rate() local
85 struct clk_pll *pll; in mxs_clk_pll() local
/linux/drivers/clk/actions/
H A Dowl-pll.c62 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_determine_rate() local
91 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_recalc_rate() local
119 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_is_enabled() local
146 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_enable() local
156 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_disable() local
165 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_set_rate() local
/linux/drivers/clk/at91/
H A Dclk-pll.c57 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_prepare() local
100 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_is_prepared() local
107 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_unprepare() local
116 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_recalc_rate() local
124 static long clk_pll_get_best_div_mul(struct clk_pll *pll, unsigned long rate, in clk_pll_get_best_div_mul()
237 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_determine_rate() local
248 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_set_rate() local
268 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_save_context() local
280 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_restore_context() local
319 struct clk_pll *pll; in at91_clk_register_pll() local
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgk20a.c66 gk20a_pllg_read_mnp(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_read_mnp()
78 gk20a_pllg_write_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_write_mnp()
90 gk20a_pllg_calc_rate(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_calc_rate()
103 struct gk20a_pll *pll) in gk20a_pllg_calc_mnp()
216 struct gk20a_pll pll; in gk20a_pllg_slide() local
297 gk20a_pllg_program_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp()
336 gk20a_pllg_program_mnp_slide(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp_slide()
466 struct gk20a_pll pll; in gk20a_clk_read() local
551 struct gk20a_pll pll; in gk20a_clk_fini() local
/linux/drivers/clk/st/
H A Dclkgen-pll.c230 struct clkgen_pll *pll = to_clkgen_pll(hw); in clkgen_pll_is_locked() local
238 struct clkgen_pll *pll = to_clkgen_pll(hw); in clkgen_pll_is_enabled() local
245 struct clkgen_pll *pll = to_clkgen_pll(hw); in __clkgen_pll_enable() local
271 struct clkgen_pll *pll = to_clkgen_pll(hw); in clkgen_pll_enable() local
288 struct clkgen_pll *pll = to_clkgen_pll(hw); in __clkgen_pll_disable() local
303 struct clkgen_pll *pll = to_clkgen_pll(hw); in clkgen_pll_disable() local
316 struct stm_pll *pll) in clk_pll3200c32_get_params()
365 static int clk_pll3200c32_get_rate(unsigned long input, struct stm_pll *pll, in clk_pll3200c32_get_rate()
379 struct clkgen_pll *pll = to_clkgen_pll(hw); in recalc_stm_pll3200c32() local
425 struct clkgen_pll *pll = to_clkgen_pll(hw); in set_rate_stm_pll3200c32() local
[all …]

123456