Home
last modified time | relevance | path

Searched defs:clk (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/openbmc/qemu/hw/core/
H A Dclock.c23 void clock_setup_canonical_path(Clock *clk) in clock_setup_canonical_path()
32 Clock *clk; in clock_new() local
44 void clock_set_callback(Clock *clk, ClockCallback *cb, void *opaque, in clock_set_callback()
53 bool clock_set(Clock *clk, uint64_t period) in clock_set()
65 static uint64_t clock_get_child_period(Clock *clk) in clock_get_child_period()
74 static void clock_call_callback(Clock *clk, ClockEvent event) in clock_call_callback()
85 static void clock_propagate_period(Clock *clk, bool call_callbacks) in clock_propagate_period()
107 void clock_propagate(Clock *clk) in clock_propagate()
113 void clock_set_source(Clock *clk, Clock *src) in clock_set_source()
126 static void clock_disconnect(Clock *clk) in clock_disconnect()
[all …]
/openbmc/qemu/hw/misc/
H A Domap_clk.c27 struct clk { struct
30 struct clk *parent; argument
31 struct clk *child1; argument
32 struct clk *sibling; argument
42 int enabled; /* Is enabled, regardless of its input clk */ argument
50 static struct clk xtal_osc12m = { argument
582 void omap_clk_adduser(struct clk *clk, qemu_irq user) in omap_clk_adduser()
600 void omap_clk_get(struct clk *clk) in omap_clk_get()
605 void omap_clk_put(struct clk *clk) in omap_clk_put()
611 static void omap_clk_update(struct clk *clk) in omap_clk_update()
[all …]
/openbmc/u-boot/drivers/clk/tegra/
H A Dtegra-car-clk.c12 static int tegra_car_clk_request(struct clk *clk) in tegra_car_clk_request()
31 static int tegra_car_clk_free(struct clk *clk) in tegra_car_clk_free()
39 static ulong tegra_car_clk_get_rate(struct clk *clk) in tegra_car_clk_get_rate()
50 static ulong tegra_car_clk_set_rate(struct clk *clk, ulong rate) in tegra_car_clk_set_rate()
61 static int tegra_car_clk_enable(struct clk *clk) in tegra_car_clk_enable()
71 static int tegra_car_clk_disable(struct clk *clk) in tegra_car_clk_disable()
H A Dtegra186-clk.c12 static ulong tegra186_clk_get_rate(struct clk *clk) in tegra186_clk_get_rate()
31 static ulong tegra186_clk_set_rate(struct clk *clk, ulong rate) in tegra186_clk_set_rate()
51 static int tegra186_clk_en_dis(struct clk *clk, in tegra186_clk_en_dis()
68 static int tegra186_clk_enable(struct clk *clk) in tegra186_clk_enable()
76 static int tegra186_clk_disable(struct clk *clk) in tegra186_clk_disable()
/openbmc/u-boot/include/
H A Dclk.h55 struct clk { struct
77 struct clk *clks; argument
151 struct clk *clk) in clk_get_by_index()
162 struct clk *clk) in clk_get_by_name()
167 static inline int clk_release_all(struct clk *clk, int count) in clk_release_all()
305 static inline bool clk_valid(struct clk *clk) in clk_valid()
/openbmc/u-boot/drivers/clk/
H A Dclk-uclass.c25 struct phandle_1_arg *cells, struct clk *clk) in clk_get_by_index_platdata()
39 static int clk_of_xlate_default(struct clk *clk, in clk_of_xlate_default()
58 int index, struct clk *clk) in clk_get_by_indexed_prop()
101 int clk_get_by_index(struct udevice *dev, int index, struct clk *clk) in clk_get_by_index()
141 struct clk clk, parent_clk; in clk_set_default_parents() local
196 struct clk clk; in clk_set_default_rates() local
264 int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk) in clk_get_by_name()
280 int clk_release_all(struct clk *clk, int count) in clk_release_all()
305 int clk_request(struct udevice *dev, struct clk *clk) in clk_request()
319 int clk_free(struct clk *clk) in clk_free()
[all …]
H A Dclk-ti-sci.c42 static int ti_sci_clk_of_xlate(struct clk *clk, in ti_sci_clk_of_xlate()
62 static int ti_sci_clk_request(struct clk *clk) in ti_sci_clk_request()
68 static int ti_sci_clk_free(struct clk *clk) in ti_sci_clk_free()
74 static ulong ti_sci_clk_get_rate(struct clk *clk) in ti_sci_clk_get_rate()
95 static ulong ti_sci_clk_set_rate(struct clk *clk, ulong rate) in ti_sci_clk_set_rate()
112 static int ti_sci_clk_set_parent(struct clk *clk, struct clk *parent) in ti_sci_clk_set_parent()
156 static int ti_sci_clk_enable(struct clk *clk) in ti_sci_clk_enable()
176 static int ti_sci_clk_disable(struct clk *clk) in ti_sci_clk_disable()
H A Dclk_meson_axg.c51 static int meson_set_gate(struct clk *clk, bool on) in meson_set_gate()
70 static int meson_clk_enable(struct clk *clk) in meson_clk_enable()
75 static int meson_clk_disable(struct clk *clk) in meson_clk_disable()
80 static unsigned long meson_clk81_get_rate(struct clk *clk) in meson_clk81_get_rate()
150 static ulong meson_mpll_get_rate(struct clk *clk, unsigned long id) in meson_mpll_get_rate()
200 static ulong meson_pll_get_rate(struct clk *clk, unsigned long id) in meson_pll_get_rate()
235 static ulong meson_clk_get_rate_by_id(struct clk *clk, unsigned long id) in meson_clk_get_rate_by_id()
280 static ulong meson_clk_get_rate(struct clk *clk) in meson_clk_get_rate()
H A Dclk_meson.c195 static int meson_set_gate_by_id(struct clk *clk, unsigned long id, bool on) in meson_set_gate_by_id()
234 static int meson_clk_enable(struct clk *clk) in meson_clk_enable()
239 static int meson_clk_disable(struct clk *clk) in meson_clk_disable()
268 static ulong meson_div_get_rate(struct clk *clk, unsigned long id) in meson_div_get_rate()
315 static ulong meson_div_set_rate(struct clk *clk, unsigned long id, ulong rate, in meson_div_set_rate()
444 static ulong meson_mux_get_parent(struct clk *clk, unsigned long id) in meson_mux_get_parent()
489 static ulong meson_mux_set_parent(struct clk *clk, unsigned long id, in meson_mux_set_parent()
557 static ulong meson_mux_get_rate(struct clk *clk, unsigned long id) in meson_mux_get_rate()
567 static unsigned long meson_clk81_get_rate(struct clk *clk) in meson_clk81_get_rate()
638 static ulong meson_mpll_get_rate(struct clk *clk, unsigned long id) in meson_mpll_get_rate()
[all …]
H A Dclk-hsdk-cgu.c313 static inline void hsdk_idiv_write(struct hsdk_cgu_clk *clk, u32 val) in hsdk_idiv_write()
318 static inline u32 hsdk_idiv_read(struct hsdk_cgu_clk *clk) in hsdk_idiv_read()
323 static inline void hsdk_pll_write(struct hsdk_cgu_clk *clk, u32 reg, u32 val) in hsdk_pll_write()
328 static inline u32 hsdk_pll_read(struct hsdk_cgu_clk *clk, u32 reg) in hsdk_pll_read()
333 static inline void hsdk_pll_spcwrite(struct hsdk_cgu_clk *clk, u32 reg, u32 val) in hsdk_pll_spcwrite()
338 static inline u32 hsdk_pll_spcread(struct hsdk_cgu_clk *clk, u32 reg) in hsdk_pll_spcread()
343 static inline void hsdk_pll_set_cfg(struct hsdk_cgu_clk *clk, in hsdk_pll_set_cfg()
359 static inline bool hsdk_pll_is_locked(struct hsdk_cgu_clk *clk) in hsdk_pll_is_locked()
364 static inline bool hsdk_pll_is_err(struct hsdk_cgu_clk *clk) in hsdk_pll_is_err()
374 struct hsdk_cgu_clk *clk = dev_get_priv(sclk->dev); in pll_get() local
[all …]
H A Dclk_sandbox.c17 static ulong sandbox_clk_get_rate(struct clk *clk) in sandbox_clk_get_rate()
27 static ulong sandbox_clk_set_rate(struct clk *clk, ulong rate) in sandbox_clk_set_rate()
44 static int sandbox_clk_enable(struct clk *clk) in sandbox_clk_enable()
56 static int sandbox_clk_disable(struct clk *clk) in sandbox_clk_disable()
/openbmc/u-boot/arch/arm/mach-exynos/
H A Dclock.c187 struct exynos4_clock *clk = in exynos4_get_pll_clk() local
217 struct exynos4x12_clock *clk = in exynos4x12_get_pll_clk() local
247 struct exynos5_clock *clk = in exynos5_get_pll_clk() local
306 struct exynos5420_clock *clk = in exynos542x_get_pll_clk() local
369 struct exynos5_clock *clk = in exynos5_get_periph_rate() local
468 struct exynos5420_clock *clk = in exynos542x_get_periph_rate() local
571 struct exynos4_clock *clk = in exynos4_get_arm_clk() local
593 struct exynos4x12_clock *clk = in exynos4x12_get_arm_clk() local
615 struct exynos5_clock *clk = in exynos5_get_arm_clk() local
637 struct exynos4_clock *clk = in exynos4_get_pwm_clk() local
[all …]
/openbmc/qemu/include/hw/
H A Dclock.h166 static inline bool clock_has_source(const Clock *clk) in clock_has_source()
182 static inline bool clock_set_hz(Clock *clk, unsigned hz) in clock_set_hz()
187 static inline bool clock_set_ns(Clock *clk, unsigned ns) in clock_set_ns()
213 static inline void clock_update(Clock *clk, uint64_t value) in clock_update()
220 static inline void clock_update_hz(Clock *clk, unsigned hz) in clock_update_hz()
225 static inline void clock_update_ns(Clock *clk, unsigned ns) in clock_update_ns()
236 static inline uint64_t clock_get(const Clock *clk) in clock_get()
241 static inline unsigned clock_get_hz(Clock *clk) in clock_get_hz()
267 static inline uint64_t clock_ticks_to_ns(const Clock *clk, uint64_t ticks) in clock_ticks_to_ns()
305 static inline uint64_t clock_ns_to_ticks(const Clock *clk, uint64_t ns) in clock_ns_to_ticks()
[all …]
/openbmc/u-boot/drivers/clk/mediatek/
H A Dclk-mtk.c42 static int mtk_clk_find_parent_rate(struct clk *clk, int id, in mtk_clk_find_parent_rate()
112 static void mtk_pll_set_rate_regs(struct clk *clk, u32 pcw, int postdiv) in mtk_pll_set_rate_regs()
148 static void mtk_pll_calc_values(struct clk *clk, u32 *pcw, u32 *postdiv, in mtk_pll_calc_values()
173 static ulong mtk_apmixedsys_set_rate(struct clk *clk, ulong rate) in mtk_apmixedsys_set_rate()
184 static ulong mtk_apmixedsys_get_rate(struct clk *clk) in mtk_apmixedsys_get_rate()
202 static int mtk_apmixedsys_enable(struct clk *clk) in mtk_apmixedsys_enable()
231 static int mtk_apmixedsys_disable(struct clk *clk) in mtk_apmixedsys_disable()
268 static int mtk_topckgen_get_factor_rate(struct clk *clk, u32 off) in mtk_topckgen_get_factor_rate()
290 static int mtk_topckgen_get_mux_rate(struct clk *clk, u32 off) in mtk_topckgen_get_mux_rate()
307 static ulong mtk_topckgen_get_rate(struct clk *clk) in mtk_topckgen_get_rate()
[all …]
/openbmc/u-boot/drivers/clk/imx/
H A Dclk-imx8.c45 static ulong imx8_clk_get_rate(struct clk *clk) in imx8_clk_get_rate()
138 static ulong imx8_clk_set_rate(struct clk *clk, unsigned long rate) in imx8_clk_set_rate()
228 static int __imx8_clk_enable(struct clk *clk, bool enable) in __imx8_clk_enable()
314 static int imx8_clk_disable(struct clk *clk) in imx8_clk_disable()
319 static int imx8_clk_enable(struct clk *clk) in imx8_clk_enable()
328 struct clk clk; in soc_clk_dump() local
/openbmc/u-boot/arch/arm/mach-imx/mx7ulp/
H A Dpcc.c81 int pcc_clock_enable(enum pcc_clk clk, bool enable) in pcc_clock_enable()
111 int pcc_clock_sel(enum pcc_clk clk, enum scg_clk src) in pcc_clock_sel()
160 int pcc_clock_div_config(enum pcc_clk clk, bool frac, u8 div) in pcc_clock_div_config()
196 bool pcc_clock_is_enable(enum pcc_clk clk) in pcc_clock_is_enable()
212 int pcc_clock_get_clksrc(enum pcc_clk clk, enum scg_clk *src) in pcc_clock_get_clksrc()
253 u32 pcc_clock_get_rate(enum pcc_clk clk) in pcc_clock_get_rate()
/openbmc/u-boot/drivers/video/
H A Dipu.h22 struct clk { struct
25 /* Source clock this clk depends on */ argument
26 struct clk *parent; argument
28 struct clk *secondary; argument
42 void (*recalc) (struct clk *); argument
48 int (*set_rate) (struct clk *, unsigned long); argument
53 unsigned long (*round_rate) (struct clk *, unsigned long); argument
58 int (*enable) (struct clk *); argument
63 void (*disable) (struct clk *); argument
65 int (*set_parent) (struct clk *, struct clk *); argument
H A Dipu_common.c89 void clk_enable(struct clk *clk) in clk_enable()
98 void clk_disable(struct clk *clk) in clk_disable()
108 int clk_get_usecount(struct clk *clk) in clk_get_usecount()
116 u32 clk_get_rate(struct clk *clk) in clk_get_rate()
124 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent()
132 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
143 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
151 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent()
159 static int clk_ipu_enable(struct clk *clk) in clk_ipu_enable()
181 static void clk_ipu_disable(struct clk *clk) in clk_ipu_disable()
[all …]
/openbmc/u-boot/arch/arm/mach-sunxi/
H A Dclock_sun9i.c85 void clock_set_pll1(unsigned int clk) in clock_set_pll1()
112 void clock_set_pll2(unsigned int clk) in clock_set_pll2()
133 void clock_set_pll6(unsigned int clk) in clock_set_pll6()
147 void clock_set_pll12(unsigned int clk) in clock_set_pll12()
162 void clock_set_pll4(unsigned int clk) in clock_set_pll4()
/openbmc/u-boot/drivers/clk/renesas/
H A Dclk-rcar-gen3.c88 static int gen3_clk_get_parent(struct gen3_clk_priv *priv, struct clk *clk, in gen3_clk_get_parent()
110 static int gen3_clk_setup_sdif_div(struct clk *clk, ulong rate) in gen3_clk_setup_sdif_div()
141 static int gen3_clk_enable(struct clk *clk) in gen3_clk_enable()
148 static int gen3_clk_disable(struct clk *clk) in gen3_clk_disable()
155 static u64 gen3_clk_get_rate64(struct clk *clk) in gen3_clk_get_rate64()
319 static ulong gen3_clk_get_rate(struct clk *clk) in gen3_clk_get_rate()
324 static ulong gen3_clk_set_rate(struct clk *clk, ulong rate) in gen3_clk_set_rate()
331 static int gen3_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args) in gen3_clk_of_xlate()
H A Dclk-rcar-gen2.c60 static int gen2_clk_enable(struct clk *clk) in gen2_clk_enable()
67 static int gen2_clk_disable(struct clk *clk) in gen2_clk_disable()
74 static ulong gen2_clk_get_rate(struct clk *clk) in gen2_clk_get_rate()
209 static int gen2_clk_setup_mmcif_div(struct clk *clk, ulong rate) in gen2_clk_setup_mmcif_div()
249 static ulong gen2_clk_set_rate(struct clk *clk, ulong rate) in gen2_clk_set_rate()
256 static int gen2_clk_of_xlate(struct clk *clk, struct ofnode_phandle_args *args) in gen2_clk_of_xlate()
H A Drenesas-cpg-mssr.c64 bool renesas_clk_is_mod(struct clk *clk) in renesas_clk_is_mod()
69 int renesas_clk_get_mod(struct clk *clk, struct cpg_mssr_info *info, in renesas_clk_get_mod()
87 int renesas_clk_get_core(struct clk *clk, struct cpg_mssr_info *info, in renesas_clk_get_core()
104 int renesas_clk_get_parent(struct clk *clk, struct cpg_mssr_info *info, in renesas_clk_get_parent()
133 int renesas_clk_endisable(struct clk *clk, void __iomem *base, bool enable) in renesas_clk_endisable()
/openbmc/u-boot/arch/arm/mach-s5pc1xx/
H A Dclock.c27 struct s5pc100_clock *clk = in s5pc100_get_pll_clk() local
78 struct s5pc110_clock *clk = in s5pc110_get_pll_clk() local
135 struct s5pc110_clock *clk = in s5pc110_get_arm_clk() local
155 struct s5pc100_clock *clk = in s5pc100_get_arm_clk() local
177 struct s5pc100_clock *clk = in get_hclk() local
194 struct s5pc100_clock *clk = in get_pclkd1() local
215 struct s5pc110_clock *clk = in get_hclk_sys() local
244 struct s5pc110_clock *clk = in get_pclk_sys() local
/openbmc/u-boot/drivers/clk/sunxi/
H A Dclk_sunxi.c22 static int sunxi_set_gate(struct clk *clk, bool on) in sunxi_set_gate()
47 static int sunxi_clk_enable(struct clk *clk) in sunxi_clk_enable()
52 static int sunxi_clk_disable(struct clk *clk) in sunxi_clk_disable()
/openbmc/u-boot/drivers/clk/at91/
H A Dclk-plladiv.c14 static int at91_plladiv_clk_enable(struct clk *clk) in at91_plladiv_clk_enable()
19 static ulong at91_plladiv_clk_get_rate(struct clk *clk) in at91_plladiv_clk_get_rate()
38 static ulong at91_plladiv_clk_set_rate(struct clk *clk, ulong rate) in at91_plladiv_clk_set_rate()

12345678910>>...13