/linux/drivers/clk/mediatek/ |
H A D | clk-pll.c | 35 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_is_prepared() local 40 static unsigned long __mtk_pll_recalc_rate(struct mtk_clk_pll *pll, u32 fin, in __mtk_pll_recalc_rate() 67 static void __mtk_pll_tuner_enable(struct mtk_clk_pll *pll) in __mtk_pll_tuner_enable() 80 static void __mtk_pll_tuner_disable(struct mtk_clk_pll *pll) in __mtk_pll_tuner_disable() 93 static void mtk_pll_set_rate_regs(struct mtk_clk_pll *pll, u32 pcw, in mtk_pll_set_rate_regs() 138 void mtk_pll_calc_values(struct mtk_clk_pll *pll, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values() 178 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_set_rate() local 190 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_recalc_rate() local 206 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_round_rate() local 217 struct mtk_clk_pll *pll = to_mtk_clk_pll(hw); in mtk_pll_prepare() local [all …]
|
H A D | clk-fhctl.c | 55 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/sprd/ |
H A D | pll.c | 18 #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 D | clk-pll.c | 276 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 D | clk-pll.c | 78 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() 145 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_round_rate() local 159 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_gf40lp_frac_enable() local 178 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_gf40lp_frac_disable() local 188 struct pistachio_clk_pll *pll = to_pistachio_pll(hw); in pll_gf40lp_frac_is_enabled() local [all …]
|
/linux/drivers/clk/bcm/ |
H A D | clk-iproc-pll.c | 75 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 D | clk-pll.c | 26 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 D | pll.c | 30 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 D | hdmi_pll.c | 23 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 D | video-pll.c | 20 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 D | mach64_gx.c | 81 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 D | mach64_ct.c | 118 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 D | pll.c | 28 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 D | hdmi_pll.c | 23 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
|
H A D | video-pll.c | 18 struct dss_pll pll; member 54 static int dss_video_pll_enable(struct dss_pll *pll) in dss_video_pll_enable() 83 static void dss_video_pll_disable(struct dss_pll *pll) in dss_video_pll_disable() 143 struct dss_pll *pll; in dss_video_pll_init() local 190 void dss_video_pll_uninit(struct dss_pll *pll) in dss_video_pll_uninit()
|
/linux/drivers/clk/sophgo/ |
H A D | clk-cv18xx-pll.c | 36 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/baikal-t1/ |
H A D | ccu-pll.c | 88 static int ccu_pll_reset(struct ccu_pll *pll, unsigned long ref_clk, in ccu_pll_reset() 107 struct ccu_pll *pll = to_ccu_pll(hw); in ccu_pll_enable() local 134 struct ccu_pll *pll = to_ccu_pll(hw); in ccu_pll_disable() local 144 struct ccu_pll *pll = to_ccu_pll(hw); in ccu_pll_is_enabled() local 155 struct ccu_pll *pll = to_ccu_pll(hw); in ccu_pll_recalc_rate() local 248 struct ccu_pll *pll = to_ccu_pll(hw); in ccu_pll_set_rate_reset() local 279 struct ccu_pll *pll = to_ccu_pll(hw); in ccu_pll_set_rate_norst() local 306 struct ccu_pll *pll; member 313 struct ccu_pll *pll; member 372 struct ccu_pll *pll = bit->pll; in ccu_pll_dbgfs_bit_set() local [all …]
|
/linux/drivers/clk/mxs/ |
H A D | clk-pll.c | 34 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/gpu/drm/msm/hdmi/ |
H A D | hdmi_pll_8960.c | 237 static inline void pll_write(struct hdmi_pll_8960 *pll, u32 reg, u32 data) in pll_write() 242 static inline u32 pll_read(struct hdmi_pll_8960 *pll, u32 reg) in pll_read() 247 static inline struct hdmi_phy *pll_get_phy(struct hdmi_pll_8960 *pll) in pll_get_phy() 254 struct hdmi_pll_8960 *pll = hw_clk_to_pll(hw); in hdmi_pll_enable() local 339 struct hdmi_pll_8960 *pll = hw_clk_to_pll(hw); in hdmi_pll_disable() local 371 struct hdmi_pll_8960 *pll = hw_clk_to_pll(hw); in hdmi_pll_recalc_rate() local 387 struct hdmi_pll_8960 *pll = hw_clk_to_pll(hw); in hdmi_pll_set_rate() local 424 struct hdmi_pll_8960 *pll; in msm_hdmi_pll_8960_init() local
|
/linux/drivers/clk/imx/ |
H A D | clk-pllv1.c | 32 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/actions/ |
H A D | owl-pll.c | 62 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_round_rate() local 84 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_recalc_rate() local 112 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_is_enabled() local 139 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_enable() local 149 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_disable() local 158 struct owl_pll *pll = hw_to_owl_pll(hw); in owl_pll_set_rate() local
|
/linux/drivers/clk/at91/ |
H A D | clk-pll.c | 57 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_round_rate() local 246 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_set_rate() local 266 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_save_context() local 278 struct clk_pll *pll = to_clk_pll(hw); in clk_pll_restore_context() local 317 struct clk_pll *pll; in at91_clk_register_pll() local
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gk20a.c | 65 gk20a_pllg_read_mnp(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_read_mnp() 77 gk20a_pllg_write_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_write_mnp() 89 gk20a_pllg_calc_rate(struct gk20a_clk *clk, struct gk20a_pll *pll) in gk20a_pllg_calc_rate() 102 struct gk20a_pll *pll) in gk20a_pllg_calc_mnp() 215 struct gk20a_pll pll; in gk20a_pllg_slide() local 296 gk20a_pllg_program_mnp(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp() 335 gk20a_pllg_program_mnp_slide(struct gk20a_clk *clk, const struct gk20a_pll *pll) in gk20a_pllg_program_mnp_slide() 465 struct gk20a_pll pll; in gk20a_clk_read() local 550 struct gk20a_pll pll; in gk20a_clk_fini() local
|
/linux/drivers/clk/st/ |
H A D | clkgen-pll.c | 230 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 422 struct clkgen_pll *pll = to_clkgen_pll(hw); in set_rate_stm_pll3200c32() local [all …]
|
/linux/drivers/clk/x86/ |
H A D | clk-cgu-pll.c | 42 struct lgm_clk_pll *pll = to_lgm_clk_pll(hw); in lgm_pll_recalc_rate() local 57 struct lgm_clk_pll *pll = to_lgm_clk_pll(hw); in lgm_pll_is_enabled() local 67 struct lgm_clk_pll *pll = to_lgm_clk_pll(hw); in lgm_pll_enable() local 81 struct lgm_clk_pll *pll = to_lgm_clk_pll(hw); in lgm_pll_disable() local 98 struct lgm_clk_pll *pll; in lgm_clk_register_pll() local
|