/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() 58 static void enet_misc_set(struct clk *clk, int enable) in enet_misc_set() 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() 127 static void swpkt_sar_set(struct clk *clk, int enable) in swpkt_sar_set() 142 static void swpkt_usb_set(struct clk *clk, int enable) in swpkt_usb_set() 157 static void enetsw_set(struct clk *clk, int enable) in enetsw_set() [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() 116 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() [all …]
|
/openbmc/qemu/hw/core/ |
H A D | clock.c | 23 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() 52 void clock_clear_callback(Clock *clk) in clock_clear_callback() 57 bool clock_set(Clock *clk, uint64_t period) in clock_set() 69 static uint64_t clock_get_child_period(Clock *clk) in clock_get_child_period() 78 static void clock_call_callback(Clock *clk, ClockEvent event) in clock_call_callback() 89 static void clock_propagate_period(Clock *clk, bool call_callbacks) in clock_propagate_period() 111 void clock_propagate(Clock *clk) in clock_propagate() 117 void clock_set_source(Clock *clk, Clock *src) in clock_set_source() [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 221 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register() 227 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister() 234 struct clk *clk, in devm_clk_notifier_register() 240 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy() 245 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() 250 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() 255 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle() [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 | 47 unsigned long omap1_uart_recalc(struct omap1_clk *clk, unsigned long p_rate) in omap1_uart_recalc() 53 unsigned long omap1_sossi_recalc(struct omap1_clk *clk, unsigned long p_rate) in omap1_sossi_recalc() 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() 166 unsigned long omap1_ckctl_recalc(struct omap1_clk *clk, unsigned long p_rate) in omap1_ckctl_recalc() 178 struct omap1_clk *clk = to_omap1_clk(hw); in omap1_clk_is_enabled() local 207 unsigned long omap1_ckctl_recalc_dsp_domain(struct omap1_clk *clk, unsigned long p_rate) in omap1_ckctl_recalc_dsp_domain() 230 int omap1_select_table_rate(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_select_table_rate() 265 int omap1_clk_set_rate_dsp_domain(struct omap1_clk *clk, unsigned long rate, unsigned long p_rate) in omap1_clk_set_rate_dsp_domain() 285 long omap1_clk_round_rate_ckctl_arm(struct omap1_clk *clk, unsigned long rate, in omap1_clk_round_rate_ckctl_arm() [all …]
|
/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 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/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() 97 static inline struct clk_div_table *clk_to_div_table(struct clk *clk) in clk_to_div_table() 102 static inline struct clk_div_mult_table *clk_to_div_mult_table(struct clk *clk) in clk_to_div_mult_table() 110 static long sh_clk_div_round_rate(struct clk *clk, unsigned long rate) in sh_clk_div_round_rate() 115 static unsigned long sh_clk_div_recalc(struct clk *clk) in sh_clk_div_recalc() 128 static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate) in sh_clk_div_set_rate() 150 static int sh_clk_div_enable(struct clk *clk) in sh_clk_div_enable() [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() 161 long clk_rate_div_range_round(struct clk *clk, unsigned int div_min, in clk_rate_div_range_round() 181 long clk_rate_mult_range_round(struct clk *clk, unsigned int mult_min, in clk_rate_mult_range_round() 195 int clk_rate_table_find(struct clk *clk, in clk_rate_table_find() 210 unsigned long followparent_recalc(struct clk *clk) in followparent_recalc() 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() [all …]
|
/openbmc/linux/drivers/clk/starfive/ |
H A D | clk-starfive-jh71x0.c | 20 static struct jh71x0_clk_priv *jh71x0_priv_from(struct jh71x0_clk *clk) in jh71x0_priv_from() 25 static u32 jh71x0_clk_reg_get(struct jh71x0_clk *clk) in jh71x0_clk_reg_get() 33 static void jh71x0_clk_reg_rmw(struct jh71x0_clk *clk, u32 mask, u32 value) in jh71x0_clk_reg_rmw() 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 [all …]
|
/openbmc/linux/drivers/clk/ti/ |
H A D | dpll3xxx.c | 47 static void _omap3_dpll_write_clken(struct clk_hw_omap *clk, u8 clken_bits) in _omap3_dpll_write_clken() 61 static int _omap3_wait_dpll_status(struct clk_hw_omap *clk, u8 state) in _omap3_wait_dpll_status() 93 static u16 _omap3_dpll_compute_freqsel(struct clk_hw_omap *clk, u8 n) in _omap3_dpll_compute_freqsel() 138 static int _omap3_noncore_dpll_lock(struct clk_hw_omap *clk) in _omap3_noncore_dpll_lock() 184 static int _omap3_noncore_dpll_bypass(struct clk_hw_omap *clk) in _omap3_noncore_dpll_bypass() 216 static int _omap3_noncore_dpll_stop(struct clk_hw_omap *clk) in _omap3_noncore_dpll_stop() 247 static void _lookup_dco(struct clk_hw_omap *clk, u8 *dco, u16 m, u8 n) in _lookup_dco() 272 static void _lookup_sddiv(struct clk_hw_omap *clk, u8 *sd_div, u16 m, u8 n) in _lookup_sddiv() 301 static void omap3_noncore_dpll_ssc_program(struct clk_hw_omap *clk) in omap3_noncore_dpll_ssc_program() 384 static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel) in omap3_noncore_dpll_program() [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() 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 …]
|
/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() 106 read_div(struct gk104_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div() 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 223 calc_div(struct gk104_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() 234 calc_src(struct gk104_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() 263 calc_pll(struct gk104_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() 287 calc_clk(struct gk104_clk *clk, in calc_clk() [all …]
|
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() 101 gk20a_pllg_calc_mnp(struct gk20a_clk *clk, unsigned long rate, in gk20a_pllg_calc_mnp() 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() 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() 462 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_read() local [all …]
|
H A D | gt215.c | 43 read_vco(struct gt215_clk *clk, int idx) in read_vco() 61 read_clk(struct gt215_clk *clk, int idx, bool ignore_en) in read_clk() 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 274 calc_clk(struct gt215_clk *clk, struct nvkm_cstate *cstate, in calc_clk() 285 calc_host(struct gt215_clk *clk, struct nvkm_cstate *cstate) in calc_host() 307 gt215_clk_pre(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_pre() 342 gt215_clk_post(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_post() [all …]
|
H A D | base.c | 41 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, in nvkm_clk_adjust() 79 nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate, in nvkm_cstate_valid() 112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() 145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() 160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() 225 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new() 267 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog() 302 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local 336 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc() 346 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info() [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() 98 read_div(struct gf100_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div() 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 210 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div() 221 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src() 250 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll() 274 calc_clk(struct gf100_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) in calc_clk() 327 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_calc() 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 158 static void sclk_apply_divider(struct clk_regmap *clk, in sclk_apply_divider() 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 [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/u-boot/arch/arm/mach-exynos/ |
H A D | clock.c | 187 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/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() 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 …]
|