/openbmc/linux/arch/mips/bcm63xx/ |
H A D | clk.c | 21 struct clk { struct 22 void (*set)(struct clk *, int); argument 31 static void clk_enable_unlocked(struct clk *clk) in clk_enable_unlocked() 37 static void clk_disable_unlocked(struct clk *clk) in clk_disable_unlocked() 82 static void enetx_set(struct clk *clk, int enable) in enetx_set() 113 static void ephy_set(struct clk *clk, int enable) in ephy_set() 192 static void pcm_set(struct clk *clk, int enable) in pcm_set() 362 int clk_enable(struct clk *clk) in clk_enable() 374 void clk_disable(struct clk *clk) in clk_disable() 386 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() [all …]
|
/openbmc/linux/arch/m68k/coldfire/ |
H A D | clk.c | 31 void __clk_init_enabled(struct clk *clk) in __clk_init_enabled() 37 void __clk_init_disabled(struct clk *clk) in __clk_init_disabled() 43 static void __clk_enable0(struct clk *clk) in __clk_enable0() 48 static void __clk_disable0(struct clk *clk) in __clk_disable0() 59 static void __clk_enable1(struct clk *clk) in __clk_enable1() 64 static void __clk_disable1(struct clk *clk) in __clk_disable1() 76 int clk_enable(struct clk *clk) in clk_enable() 92 void clk_disable(struct clk *clk) in clk_disable() 106 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 123 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | clock.c | 21 void clock_setup_canonical_path(Clock *clk) in clock_setup_canonical_path() 30 Clock *clk; in clock_new() local 50 void clock_clear_callback(Clock *clk) in clock_clear_callback() 55 bool clock_set(Clock *clk, uint64_t period) in clock_set() 67 static uint64_t clock_get_child_period(Clock *clk) in clock_get_child_period() 109 void clock_propagate(Clock *clk) in clock_propagate() 116 void clock_set_source(Clock *clk, Clock *src) in clock_set_source() 129 static void clock_disconnect(Clock *clk) in clock_disconnect() 141 char *clock_display_freq(Clock *clk) in clock_display_freq() 158 Clock *clk = CLOCK(obj); in clock_initfn() local [all …]
|
/openbmc/linux/include/linux/ |
H A D | clk.h | 55 struct clk *clk; member 72 struct clk *clk; member 89 struct clk *clk; member 234 struct clk *clk, in devm_clk_notifier_register() 250 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() 311 static inline int clk_prepare(struct clk *clk) in clk_prepare() 343 static inline void clk_unprepare(struct clk *clk) in clk_unprepare() 977 static inline void clk_put(struct clk *clk) {} in clk_put() 985 static inline int clk_enable(struct clk *clk) in clk_enable() 1117 static inline int clk_drop_range(struct clk *clk) in clk_drop_range() [all …]
|
H A D | sh_clk.h | 38 struct clk { struct 40 struct clk *parent; argument 41 struct clk **parent_table; /* list of parents to */ argument 45 struct sh_clk_ops *ops; argument 63 struct clk_mapping *mapping; argument 80 /* drivers/sh/clk.c */ argument
|
/openbmc/linux/arch/arm/mach-omap1/ |
H A D | clock.c | 63 static void omap1_clk_allow_idle(struct omap1_clk *clk) in omap1_clk_allow_idle() 74 static void omap1_clk_deny_idle(struct omap1_clk *clk) in omap1_clk_deny_idle() 178 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_is_enabled() local 483 int omap1_init_ext_clk(struct omap1_clk *clk) in omap1_init_ext_clk() 528 static int omap1_clk_enable_generic(struct omap1_clk *clk) in omap1_clk_enable_generic() 576 static void omap1_clk_disable_generic(struct omap1_clk *clk) in omap1_clk_disable_generic() 700 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_recalc_rate() local 710 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_round_rate() local 720 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_set_rate() local 734 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_init_op() local [all …]
|
/openbmc/linux/arch/mips/lantiq/ |
H A D | clk.c | 61 static inline int clk_good(struct clk *clk) in clk_good() 66 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 81 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 101 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 118 int clk_enable(struct clk *clk) in clk_enable() 130 void clk_disable(struct clk *clk) in clk_disable() 140 int clk_activate(struct clk *clk) in clk_activate() 152 void clk_deactivate(struct clk *clk) in clk_deactivate() 162 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() 168 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() [all …]
|
H A D | clk.h | 58 struct clk { struct 59 struct clk_lookup cl; argument 65 int (*enable) (struct clk *clk); argument 66 void (*disable) (struct clk *clk); argument 67 int (*activate) (struct clk *clk); argument 68 void (*deactivate) (struct clk *clk); argument 69 void (*reboot) (struct clk *clk); argument
|
/openbmc/linux/drivers/sh/clk/ |
H A D | cpg.c | 19 static unsigned int sh_clk_read(struct clk *clk) in sh_clk_read() 29 static void sh_clk_write(int value, struct clk *clk) in sh_clk_write() 39 static int sh_clk_mstp_enable(struct clk *clk) in sh_clk_mstp_enable() 68 static void sh_clk_mstp_disable(struct clk *clk) in sh_clk_mstp_disable() 115 static unsigned long sh_clk_div_recalc(struct clk *clk) in sh_clk_div_recalc() 150 static int sh_clk_div_enable(struct clk *clk) in sh_clk_div_enable() 162 static void sh_clk_div_disable(struct clk *clk) in sh_clk_div_disable() 194 static int __init sh_clk_init_parent(struct clk *clk) in sh_clk_init_parent() 395 static unsigned long fsidiv_recalc(struct clk *clk) in fsidiv_recalc() 413 static void fsidiv_disable(struct clk *clk) in fsidiv_disable() [all …]
|
H A D | core.c | 39 void clk_rate_table_build(struct clk *clk, in clk_rate_table_build() 137 long clk_rate_table_round(struct clk *clk, in clk_rate_table_round() 195 int clk_rate_table_find(struct clk *clk, in clk_rate_table_find() 238 static void __clk_disable(struct clk *clk) in __clk_disable() 252 void clk_disable(struct clk *clk) in clk_disable() 265 static int __clk_enable(struct clk *clk) in __clk_enable() 292 int clk_enable(struct clk *clk) in clk_enable() 411 int clk_register(struct clk *clk) in clk_register() 452 void clk_unregister(struct clk *clk) in clk_unregister() 471 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() [all …]
|
/openbmc/linux/drivers/clk/starfive/ |
H A D | clk-starfive-jh71x0.c | 47 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_enable() local 55 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_disable() local 62 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_is_enabled() local 70 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_recalc_rate() local 79 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_determine_rate() local 109 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_set_rate() local 120 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_frac_recalc_rate() local 151 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_frac_set_rate() local 162 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_get_parent() local 170 struct jh71x0_clk *clk = jh71x0_clk_from(hw); in jh71x0_clk_set_parent() local [all …]
|
/openbmc/linux/drivers/clk/ti/ |
H A D | dpll3xxx.c | 501 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_dpll_recalc() local 524 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_enable() local 566 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_disable() local 588 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_determine_rate() local 622 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_set_parent() local 650 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_set_rate() local 878 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_core_dpll_save_context() local 907 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_core_dpll_restore_context() local 939 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_save_context() local 968 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_noncore_dpll_restore_context() local [all …]
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk-uclass.c | 25 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() 141 struct clk clk, parent_clk; in clk_set_default_parents() local 196 struct clk clk; in clk_set_default_rates() local 280 int clk_release_all(struct clk *clk, int count) in clk_release_all() 319 int clk_free(struct clk *clk) in clk_free() 331 ulong clk_get_rate(struct clk *clk) in clk_get_rate() 343 ulong clk_set_rate(struct clk *clk, ulong rate) in clk_set_rate() 367 int clk_enable(struct clk *clk) in clk_enable() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gk104.c | 50 read_vco(struct gk104_clk *clk, u32 dsrc) in read_vco() 60 read_pll(struct gk104_clk *clk, u32 pll) in read_pll() 133 read_mem(struct gk104_clk *clk) in read_mem() 145 read_clk(struct gk104_clk *clk, int idx) in read_clk() 191 struct gk104_clk *clk = gk104_clk(base); in gk104_clk_read() local 287 calc_clk(struct gk104_clk *clk, in calc_clk() 341 struct gk104_clk *clk = gk104_clk(base); in gk104_clk_calc() local 357 gk104_clk_prog_0(struct gk104_clk *clk, int idx) in gk104_clk_prog_0() 450 struct gk104_clk *clk = gk104_clk(base); in gk104_clk_prog() local 481 struct gk104_clk *clk = gk104_clk(base); in gk104_clk_tidy() local [all …]
|
H A D | gk20a.c | 211 gk20a_pllg_slide(struct gk20a_clk *clk, u32 n) in gk20a_pllg_slide() 256 gk20a_pllg_enable(struct gk20a_clk *clk) in gk20a_pllg_enable() 284 gk20a_pllg_disable(struct gk20a_clk *clk) in gk20a_pllg_disable() 462 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_read() local 482 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_calc() local 491 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_prog() local 507 gk20a_clk_setup_slide(struct gk20a_clk *clk) in gk20a_clk_setup_slide() 546 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_fini() local 567 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_init() local 615 struct gk20a_clk *clk) in gk20a_clk_ctor() [all …]
|
H A D | gt215.c | 43 read_vco(struct gt215_clk *clk, int idx) in read_vco() 108 read_pll(struct gt215_clk *clk, int idx, u32 pll) in read_pll() 145 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_read() local 190 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_info() local 238 struct gt215_clk *clk = gt215_clk(base); in gt215_pll_info() local 355 disable_clk_src(struct gt215_clk *clk, u32 src) in disable_clk_src() 415 prog_host(struct gt215_clk *clk) in prog_host() 443 prog_core(struct gt215_clk *clk, int dom) in prog_core() 461 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_calc() local 488 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_prog() local [all …]
|
H A D | base.c | 41 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, in nvkm_clk_adjust() 267 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog() 336 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc() 402 nvkm_pstate_new(struct nvkm_clk *clk, int idx) in nvkm_pstate_new() 473 nvkm_clk_ustate_update(struct nvkm_clk *clk, int req) in nvkm_clk_ustate_update() 521 nvkm_clk_ustate(struct nvkm_clk *clk, int req, int pwr) in nvkm_clk_ustate() 543 nvkm_clk_tstate(struct nvkm_clk *clk, u8 temp) in nvkm_clk_tstate() 552 nvkm_clk_dstate(struct nvkm_clk *clk, int req, int rel) in nvkm_clk_dstate() 582 struct nvkm_clk *clk = nvkm_clk(subdev); in nvkm_clk_fini() local 592 struct nvkm_clk *clk = nvkm_clk(subdev); in nvkm_clk_init() local [all …]
|
H A D | gf100.c | 49 read_vco(struct gf100_clk *clk, u32 dsrc) in read_vco() 59 read_pll(struct gf100_clk *clk, u32 pll) in read_pll() 133 read_clk(struct gf100_clk *clk, int idx) in read_clk() 160 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_read() local 327 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_calc() local 344 gf100_clk_prog_0(struct gf100_clk *clk, int idx) in gf100_clk_prog_0() 355 gf100_clk_prog_1(struct gf100_clk *clk, int idx) in gf100_clk_prog_1() 366 gf100_clk_prog_2(struct gf100_clk *clk, int idx) in gf100_clk_prog_2() 418 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_prog() local 444 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_tidy() local [all …]
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-phase.c | 16 meson_clk_phase_data(struct clk_regmap *clk) in meson_clk_phase_data() 39 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_phase_get_phase() local 50 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_phase_set_phase() local 76 meson_clk_triphase_data(struct clk_regmap *clk) in meson_clk_triphase_data() 83 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_sync() local 97 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_get_phase() local 109 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_set_phase() local 135 meson_sclk_ws_inv_data(struct clk_regmap *clk) in meson_sclk_ws_inv_data() 142 struct clk_regmap *clk = to_clk_regmap(hw); in meson_sclk_ws_inv_sync() local 155 struct clk_regmap *clk = to_clk_regmap(hw); in meson_sclk_ws_inv_get_phase() local [all …]
|
H A D | sclk-div.c | 26 meson_sclk_div_data(struct clk_regmap *clk) in meson_sclk_div_data() 102 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_determine_rate() local 112 static void sclk_apply_ratio(struct clk_regmap *clk, in sclk_apply_ratio() 128 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_set_duty_cycle() local 142 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_get_duty_cycle() local 170 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_set_rate() local 185 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_recalc_rate() local 193 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_enable() local 203 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_disable() local 211 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_is_enabled() local [all …]
|
/openbmc/u-boot/include/ |
H A D | clk.h | 55 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/qemu/hw/misc/ |
H A D | omap_clk.c | 27 struct clk { struct 30 struct clk *parent; argument 31 struct clk *child1; argument 32 struct clk *sibling; argument 45 int enabled; /* Is enabled, regardless of its input clk */ argument 53 static struct clk xtal_osc12m = { argument 1117 void omap_clk_get(struct clk *clk) in omap_clk_get() 1122 void omap_clk_put(struct clk *clk) in omap_clk_put() 1128 static void omap_clk_update(struct clk *clk) in omap_clk_update() 1197 void omap_clk_onoff(struct clk *clk, int on) in omap_clk_onoff() [all …]
|
/openbmc/u-boot/arch/arm/mach-exynos/ |
H A D | clock.c | 187 struct exynos4_clock *clk = in exynos4_get_pll_clk() local 247 struct exynos5_clock *clk = in exynos5_get_pll_clk() local 369 struct exynos5_clock *clk = in exynos5_get_periph_rate() local 571 struct exynos4_clock *clk = in exynos4_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 694 struct exynos4_clock *clk = in exynos4_get_uart_clk() local 785 struct exynos4_clock *clk = in exynos4_get_mmc_clk() local 835 struct exynos4_clock *clk = in exynos4_set_mmc_clk() local 870 struct exynos5_clock *clk = in exynos5_set_mmc_clk() local [all …]
|
/openbmc/u-boot/drivers/clk/tegra/ |
H A D | tegra-car-clk.c | 12 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()
|
/openbmc/u-boot/drivers/clk/mediatek/ |
H A D | clk-mtk.c | 42 static int mtk_clk_find_parent_rate(struct clk *clk, int id, in mtk_clk_find_parent_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() 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() 321 static int mtk_topckgen_enable(struct clk *clk) in mtk_topckgen_enable() 349 static int mtk_topckgen_disable(struct clk *clk) in mtk_topckgen_disable() 383 static int mtk_clk_gate_enable(struct clk *clk) in mtk_clk_gate_enable() 404 static int mtk_clk_gate_disable(struct clk *clk) in mtk_clk_gate_disable() [all …]
|