/Linux-v4.19/arch/m68k/coldfire/ |
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() 79 struct clk *clk; in clk_get() local 90 int clk_enable(struct clk *clk) in clk_enable() 102 void clk_disable(struct clk *clk) in clk_disable() 116 void clk_put(struct clk *clk) in clk_put() [all …]
|
/Linux-v4.19/arch/mips/bcm63xx/ |
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 …]
|
/Linux-v4.19/arch/arm/mach-sa1100/ |
D | clock.c | 27 struct clk { struct 28 const struct clkops *ops; argument 33 struct clk clk_##_name = { \ argument 40 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 46 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 52 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() 58 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() 64 static void clk_gpio27_enable(struct clk *clk) in clk_gpio27_enable() 75 static void clk_gpio27_disable(struct clk *clk) in clk_gpio27_disable() 82 static void clk_cpu_enable(struct clk *clk) in clk_cpu_enable() [all …]
|
/Linux-v4.19/arch/arm/mach-omap1/ |
D | clock.c | 44 unsigned long omap1_uart_recalc(struct clk *clk) in omap1_uart_recalc() 50 unsigned long omap1_sossi_recalc(struct clk *clk) in omap1_sossi_recalc() 60 static void omap1_clk_allow_idle(struct clk *clk) in omap1_clk_allow_idle() 71 static void omap1_clk_deny_idle(struct clk *clk) in omap1_clk_deny_idle() 135 static int calc_dsor_exp(struct clk *clk, unsigned long rate) in calc_dsor_exp() 167 unsigned long omap1_ckctl_recalc(struct clk *clk) in omap1_ckctl_recalc() 175 unsigned long omap1_ckctl_recalc_dsp_domain(struct clk *clk) in omap1_ckctl_recalc_dsp_domain() 194 int omap1_select_table_rate(struct clk *clk, unsigned long rate) in omap1_select_table_rate() 229 int omap1_clk_set_rate_dsp_domain(struct clk *clk, unsigned long rate) in omap1_clk_set_rate_dsp_domain() 249 long omap1_clk_round_rate_ckctl_arm(struct clk *clk, unsigned long rate) in omap1_clk_round_rate_ckctl_arm() [all …]
|
D | clock.h | 48 #define __clk_get_name(clk) (clk->name) argument 49 #define __clk_get_parent(clk) (clk->parent) argument 50 #define __clk_get_rate(clk) (clk->rate) argument 141 struct clk { struct 143 const struct clkops *ops; argument 145 struct clk *parent; argument 150 unsigned long (*recalc)(struct clk *); argument 151 int (*set_rate)(struct clk *, unsigned long); argument 152 long (*round_rate)(struct clk *, unsigned long); argument 153 void (*init)(struct clk *); argument [all …]
|
/Linux-v4.19/include/linux/ |
D | clk.h | 58 struct clk *clk; member 75 struct clk *clk; member 92 struct clk *clk; member 180 static inline int clk_notifier_register(struct clk *clk, in clk_notifier_register() 186 static inline int clk_notifier_unregister(struct clk *clk, in clk_notifier_unregister() 192 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy() 197 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase() 202 static inline long clk_get_phase(struct clk *clk) in clk_get_phase() 207 static inline int clk_set_duty_cycle(struct clk *clk, unsigned int num, in clk_set_duty_cycle() 213 static inline unsigned int clk_get_scaled_duty_cycle(struct clk *clk, in clk_get_scaled_duty_cycle() [all …]
|
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
|
/Linux-v4.19/arch/c6x/platforms/ |
D | pll.c | 31 static void __clk_enable(struct clk *clk) in __clk_enable() 38 static void __clk_disable(struct clk *clk) in __clk_disable() 48 int clk_enable(struct clk *clk) in clk_enable() 63 void clk_disable(struct clk *clk) in clk_disable() 76 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 85 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 100 struct clk *clk; in propagate_rate() local 109 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 132 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() 159 int clk_register(struct clk *clk) in clk_register() [all …]
|
/Linux-v4.19/arch/mips/ralink/ |
D | clk.c | 20 struct clk { struct 21 struct clk_lookup cl; argument 27 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in ralink_clk_add() local 43 int clk_enable(struct clk *clk) in clk_enable() 49 void clk_disable(struct clk *clk) in clk_disable() 54 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 63 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 69 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 77 struct clk *clk; in plat_time_init() local
|
/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-clk.c | 30 struct v4l2_clk *clk; in v4l2_clk_find() local 41 struct v4l2_clk *clk; in v4l2_clk_get() local 76 void v4l2_clk_put(struct v4l2_clk *clk) in v4l2_clk_put() 99 static int v4l2_clk_lock_driver(struct v4l2_clk *clk) in v4l2_clk_lock_driver() 119 static void v4l2_clk_unlock_driver(struct v4l2_clk *clk) in v4l2_clk_unlock_driver() 124 int v4l2_clk_enable(struct v4l2_clk *clk) in v4l2_clk_enable() 153 void v4l2_clk_disable(struct v4l2_clk *clk) in v4l2_clk_disable() 175 unsigned long v4l2_clk_get_rate(struct v4l2_clk *clk) in v4l2_clk_get_rate() 199 int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate) in v4l2_clk_set_rate() 232 struct v4l2_clk *clk; in v4l2_clk_register() local [all …]
|
/Linux-v4.19/arch/arm/mach-ep93xx/ |
D | clock.c | 30 struct clk { struct 31 struct clk *parent; argument 38 unsigned long (*get_rate)(struct clk *clk); argument 39 int (*set_rate)(struct clk *clk, unsigned long rate); argument 247 static void __clk_enable(struct clk *clk) in __clk_enable() 266 int clk_enable(struct clk *clk) in clk_enable() 281 static void __clk_disable(struct clk *clk) in __clk_disable() 300 void clk_disable(struct clk *clk) in clk_disable() 313 static unsigned long get_uart_rate(struct clk *clk) in get_uart_rate() 325 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() [all …]
|
/Linux-v4.19/arch/mips/include/asm/ |
D | clock.h | 21 struct clk { struct 27 struct clk *parent; argument 28 struct clk_ops *ops; argument 41 int __clk_enable(struct clk *); argument
|
/Linux-v4.19/arch/arm/mach-w90x900/ |
D | clock.c | 32 int clk_enable(struct clk *clk) in clk_enable() 45 void clk_disable(struct clk *clk) in clk_disable() 61 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 67 void nuc900_clk_enable(struct clk *clk, int enable) in nuc900_clk_enable() 82 void nuc900_subclk_enable(struct clk *clk, int enable) in nuc900_subclk_enable() 98 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 105 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 112 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() 119 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent()
|
/Linux-v4.19/drivers/sh/clk/ |
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() 54 static int sh_clk_mstp_enable(struct clk *clk) in sh_clk_mstp_enable() 83 static void sh_clk_mstp_disable(struct clk *clk) in sh_clk_mstp_disable() 112 static inline struct clk_div_table *clk_to_div_table(struct clk *clk) in clk_to_div_table() 117 static inline struct clk_div_mult_table *clk_to_div_mult_table(struct clk *clk) in clk_to_div_mult_table() 125 static long sh_clk_div_round_rate(struct clk *clk, unsigned long rate) in sh_clk_div_round_rate() 130 static unsigned long sh_clk_div_recalc(struct clk *clk) in sh_clk_div_recalc() 143 static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate) in sh_clk_div_set_rate() 165 static int sh_clk_div_enable(struct clk *clk) in sh_clk_div_enable() [all …]
|
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 …]
|
/Linux-v4.19/arch/arm/mach-mmp/ |
D | clock.c | 19 static void apbc_clk_enable(struct clk *clk) in apbc_clk_enable() 27 static void apbc_clk_disable(struct clk *clk) in apbc_clk_disable() 37 static void apmu_clk_enable(struct clk *clk) in apmu_clk_enable() 42 static void apmu_clk_disable(struct clk *clk) in apmu_clk_disable() 54 int clk_enable(struct clk *clk) in clk_enable() 66 void clk_disable(struct clk *clk) in clk_disable() 82 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 95 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
|
/Linux-v4.19/arch/mips/lantiq/ |
D | clk.h | 60 struct clk { struct 61 struct clk_lookup cl; argument 67 int (*enable) (struct clk *clk); argument 68 void (*disable) (struct clk *clk); argument 69 int (*activate) (struct clk *clk); argument 70 void (*deactivate) (struct clk *clk); argument 71 void (*reboot) (struct clk *clk); argument
|
D | clk.c | 62 static inline int clk_good(struct clk *clk) in clk_good() 67 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 82 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 102 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate() 119 int clk_enable(struct clk *clk) in clk_enable() 131 void clk_disable(struct clk *clk) in clk_disable() 141 int clk_activate(struct clk *clk) in clk_activate() 153 void clk_deactivate(struct clk *clk) in clk_deactivate() 181 struct clk *clk; in plat_time_init() local
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
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 …]
|
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 …]
|
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() 111 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() 144 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() 159 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() 222 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new() 264 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog() 299 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local 334 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc() 344 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info() [all …]
|
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 …]
|
/Linux-v4.19/arch/unicore32/kernel/ |
D | clock.c | 30 struct clk { struct 36 static struct clk clk_ost_clk = { argument 62 struct clk *p, *clk = ERR_PTR(-ENOENT); in clk_get() local 77 void clk_put(struct clk *clk) in clk_put() 82 int clk_enable(struct clk *clk) in clk_enable() 88 void clk_disable(struct clk *clk) in clk_disable() 93 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate() 136 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate() 217 int clk_register(struct clk *clk) in clk_register() 228 void clk_unregister(struct clk *clk) in clk_unregister()
|
/Linux-v4.19/arch/c6x/include/asm/ |
D | clock.h | 82 struct clk { struct 89 struct clk *parent; argument 94 unsigned long (*recalc) (struct clk *); argument 95 int (*set_rate) (struct clk *clk, unsigned long rate); argument 96 int (*round_rate) (struct clk *clk, unsigned long rate); argument
|
/Linux-v4.19/drivers/clk/ti/ |
D | dpll3xxx.c | 50 static void _omap3_dpll_write_clken(struct clk_hw_omap *clk, u8 clken_bits) in _omap3_dpll_write_clken() 64 static int _omap3_wait_dpll_status(struct clk_hw_omap *clk, u8 state) in _omap3_wait_dpll_status() 96 static u16 _omap3_dpll_compute_freqsel(struct clk_hw_omap *clk, u8 n) in _omap3_dpll_compute_freqsel() 141 static int _omap3_noncore_dpll_lock(struct clk_hw_omap *clk) in _omap3_noncore_dpll_lock() 187 static int _omap3_noncore_dpll_bypass(struct clk_hw_omap *clk) in _omap3_noncore_dpll_bypass() 219 static int _omap3_noncore_dpll_stop(struct clk_hw_omap *clk) in _omap3_noncore_dpll_stop() 250 static void _lookup_dco(struct clk_hw_omap *clk, u8 *dco, u16 m, u8 n) in _lookup_dco() 275 static void _lookup_sddiv(struct clk_hw_omap *clk, u8 *sd_div, u16 m, u8 n) in _lookup_sddiv() 305 static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel) in omap3_noncore_dpll_program() 418 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_dpll_recalc() local [all …]
|