Home
last modified time | relevance | path

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

12345678910>>...49

/drivers/media/v4l2-core/
Dv4l2-clk.c27 struct v4l2_clk *clk; in v4l2_clk_find() local
38 struct v4l2_clk *clk; in v4l2_clk_get() local
73 void v4l2_clk_put(struct v4l2_clk *clk) in v4l2_clk_put()
96 static int v4l2_clk_lock_driver(struct v4l2_clk *clk) in v4l2_clk_lock_driver()
116 static void v4l2_clk_unlock_driver(struct v4l2_clk *clk) in v4l2_clk_unlock_driver()
121 int v4l2_clk_enable(struct v4l2_clk *clk) in v4l2_clk_enable()
150 void v4l2_clk_disable(struct v4l2_clk *clk) in v4l2_clk_disable()
172 unsigned long v4l2_clk_get_rate(struct v4l2_clk *clk) in v4l2_clk_get_rate()
196 int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate) in v4l2_clk_set_rate()
229 struct v4l2_clk *clk; in v4l2_clk_register() local
[all …]
/drivers/sh/clk/
Dcpg.c19 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 …]
Dcore.c39 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 …]
/drivers/clk/ti/
Ddpll3xxx.c47 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()
302 static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel) in omap3_noncore_dpll_program()
415 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_dpll_recalc() local
[all …]
Dapll.c42 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_enable() local
93 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_disable() local
110 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_is_enabled() local
142 struct clk *clk; in omap_clk_register_apll() local
243 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_is_enabled() local
258 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_recalc() local
268 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_enable() local
299 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_disable() local
316 static void omap2_apll_set_autoidle(struct clk_hw_omap *clk, u32 val) in omap2_apll_set_autoidle()
330 static void omap2_apll_allow_idle(struct clk_hw_omap *clk) in omap2_apll_allow_idle()
[all …]
Dclkt_dflt.c58 static int _wait_idlest_generic(struct clk_hw_omap *clk, in _wait_idlest_generic()
93 static void _omap2_module_wait_ready(struct clk_hw_omap *clk) in _omap2_module_wait_ready()
142 void omap2_clk_dflt_find_companion(struct clk_hw_omap *clk, in omap2_clk_dflt_find_companion()
171 void omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk, in omap2_clk_dflt_find_idlest()
204 struct clk_hw_omap *clk; in omap2_dflt_clk_enable() local
253 struct clk_hw_omap *clk; in omap2_dflt_clk_disable() local
281 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_dflt_clk_is_enabled() local
Dautoidle.c47 static int _omap2_clk_deny_idle(struct clk_hw_omap *clk) in _omap2_clk_deny_idle()
62 static int _omap2_clk_allow_idle(struct clk_hw_omap *clk) in _omap2_clk_allow_idle()
83 int omap2_clk_deny_idle(struct clk *clk) in omap2_clk_deny_idle()
102 int omap2_clk_allow_idle(struct clk *clk) in omap2_clk_allow_idle()
115 static void _allow_autoidle(struct clk_ti_autoidle *clk) in _allow_autoidle()
129 static void _deny_autoidle(struct clk_ti_autoidle *clk) in _deny_autoidle()
185 struct clk_ti_autoidle *clk; in of_ti_clk_autoidle_setup() local
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgk104.c50 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 …]
Dbase.c41 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()
223 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new()
265 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog()
300 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local
335 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc()
345 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info()
[all …]
Dgk20a.c65 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 …]
Dgt215.c43 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 …]
Dgf100.c49 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 …]
Dgm20b.c160 gm20b_pllg_read_mnp(struct gm20b_clk *clk, struct gm20b_pll *pll) in gm20b_pllg_read_mnp()
173 gm20b_pllg_write_mnp(struct gm20b_clk *clk, const struct gm20b_pll *pll) in gm20b_pllg_write_mnp()
189 gm20b_dvfs_calc_det_coeff(struct gm20b_clk *clk, s32 uv, in gm20b_dvfs_calc_det_coeff()
225 gm20b_dvfs_calc_ndiv(struct gm20b_clk *clk, u32 n_eff, u32 *n_int, u32 *sdm_din) in gm20b_dvfs_calc_ndiv()
266 gm20b_pllg_slide(struct gm20b_clk *clk, u32 n) in gm20b_pllg_slide()
322 gm20b_pllg_enable(struct gm20b_clk *clk) in gm20b_pllg_enable()
345 gm20b_pllg_disable(struct gm20b_clk *clk) in gm20b_pllg_disable()
360 gm20b_pllg_program_mnp(struct gm20b_clk *clk, const struct gk20a_pll *pll) in gm20b_pllg_program_mnp()
433 gm20b_pllg_program_mnp_slide(struct gm20b_clk *clk, const struct gk20a_pll *pll) in gm20b_pllg_program_mnp_slide()
466 struct gm20b_clk *clk = gm20b_clk(base); in gm20b_clk_calc() local
[all …]
Dnv50.c32 read_div(struct nv50_clk *clk) in read_div()
52 read_pll_src(struct nv50_clk *clk, u32 base) in read_pll_src()
125 read_pll_ref(struct nv50_clk *clk, u32 base) in read_pll_ref()
158 read_pll(struct nv50_clk *clk, u32 base) in read_pll()
194 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_read() local
325 calc_pll(struct nv50_clk *clk, u32 reg, u32 idx, int *N, int *M, int *P) in calc_pll()
370 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_calc() local
497 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_prog() local
504 struct nv50_clk *clk = nv50_clk(base); in nv50_clk_tidy() local
512 struct nv50_clk *clk; in nv50_clk_new_() local
Dnv40.c40 read_pll_1(struct nv40_clk *clk, u32 reg) in read_pll_1()
56 read_pll_2(struct nv40_clk *clk, u32 reg) in read_pll_2()
82 read_clk(struct nv40_clk *clk, u32 src) in read_clk()
99 struct nv40_clk *clk = nv40_clk(base); in nv40_clk_read() local
124 nv40_clk_calc_pll(struct nv40_clk *clk, u32 reg, u32 khz, in nv40_clk_calc_pll()
148 struct nv40_clk *clk = nv40_clk(base); in nv40_clk_calc() local
188 struct nv40_clk *clk = nv40_clk(base); in nv40_clk_prog() local
223 struct nv40_clk *clk; in nv40_clk_new() local
/drivers/clk/ux500/
Dclk-prcmu.c31 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_prepare() local
42 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_unprepare() local
52 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_prepared() local
58 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_enable() local
65 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_disable() local
71 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_enabled() local
78 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_recalc_rate() local
85 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_round_rate() local
92 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_set_rate() local
99 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_prepare() local
[all …]
/drivers/clk/meson/
Dsclk-div.c26 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_round_rate() local
111 static void sclk_apply_ratio(struct clk_regmap *clk, in sclk_apply_ratio()
127 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_set_duty_cycle() local
141 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_get_duty_cycle() local
157 static void sclk_apply_divider(struct clk_regmap *clk, in sclk_apply_divider()
169 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_set_rate() local
184 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_recalc_rate() local
192 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_enable() local
202 struct clk_regmap *clk = to_clk_regmap(hw); in sclk_div_disable() local
[all …]
Dclk-phase.c16 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
95 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_get_phase() local
107 struct clk_regmap *clk = to_clk_regmap(hw); in meson_clk_triphase_set_phase() local
Dclk-regmap.c12 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_gate_endisable() local
34 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_gate_is_enabled() local
62 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_div_recalc_rate() local
81 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_div_round_rate() local
107 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_div_set_rate() local
139 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_mux_get_parent() local
155 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_mux_set_parent() local
167 struct clk_regmap *clk = to_clk_regmap(hw); in clk_regmap_mux_determine_rate() local
/drivers/clk/imx/
Dclk-scu.c45 u8 clk; member
50 u8 clk; member
86 u8 clk; member
104 u8 clk; member
121 u8 clk; member
147 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_recalc_rate() local
191 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_atf_set_cpu_rate() local
219 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_set_rate() local
237 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_get_parent() local
262 struct clk_scu *clk = to_clk_scu(hw); in clk_scu_set_parent() local
[all …]
/drivers/clk/
Dclk-gpio.c33 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_enable() local
42 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_disable() local
49 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_is_enabled() local
63 struct clk_gpio *clk = to_clk_gpio(hw); in clk_sleeping_gpio_gate_prepare() local
72 struct clk_gpio *clk = to_clk_gpio(hw); in clk_sleeping_gpio_gate_unprepare() local
79 struct clk_gpio *clk = to_clk_gpio(hw); in clk_sleeping_gpio_gate_is_prepared() local
100 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_mux_get_parent() local
107 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_mux_set_parent() local
245 struct clk *clk; in gpio_clk_driver_probe() local
Dclk-hsdk-pll.c122 static inline void hsdk_pll_write(struct hsdk_pll_clk *clk, u32 reg, u32 val) in hsdk_pll_write()
127 static inline u32 hsdk_pll_read(struct hsdk_pll_clk *clk, u32 reg) in hsdk_pll_read()
132 static inline void hsdk_pll_set_cfg(struct hsdk_pll_clk *clk, in hsdk_pll_set_cfg()
148 static inline bool hsdk_pll_is_locked(struct hsdk_pll_clk *clk) in hsdk_pll_is_locked()
153 static inline bool hsdk_pll_is_err(struct hsdk_pll_clk *clk) in hsdk_pll_is_err()
169 struct hsdk_pll_clk *clk = to_hsdk_pll_clk(hw); in hsdk_pll_recalc_rate() local
201 struct hsdk_pll_clk *clk = to_hsdk_pll_clk(hw); in hsdk_pll_round_rate() local
219 static int hsdk_pll_comm_update_rate(struct hsdk_pll_clk *clk, in hsdk_pll_comm_update_rate()
239 static int hsdk_pll_core_update_rate(struct hsdk_pll_clk *clk, in hsdk_pll_core_update_rate()
277 struct hsdk_pll_clk *clk = to_hsdk_pll_clk(hw); in hsdk_pll_set_rate() local
Dclk-scpi.c24 #define to_scpi_clk(clk) container_of(clk, struct scpi_clk, hw) argument
31 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_clk_recalc_rate() local
51 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_clk_set_rate() local
63 static long __scpi_dvfs_round_rate(struct scpi_clk *clk, unsigned long rate) in __scpi_dvfs_round_rate()
85 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_dvfs_recalc_rate() local
99 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_dvfs_round_rate() local
104 static int __scpi_find_dvfs_index(struct scpi_clk *clk, unsigned long rate) in __scpi_find_dvfs_index()
118 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_dvfs_set_rate() local
171 struct scpi_clk **clk; member
/drivers/clk/mmp/
Dclk.c31 struct clk *clk; in mmp_register_fixed_rate_clks() local
52 struct clk *clk; in mmp_register_fixed_factor_clks() local
74 struct clk *clk; in mmp_register_general_gate_clks() local
100 struct clk *clk; in mmp_register_gate_clks() local
128 struct clk *clk; in mmp_register_mux_clks() local
156 struct clk *clk; in mmp_register_div_clks() local
180 struct clk *clk) in mmp_clk_add()
/drivers/clk/hisilicon/
Dclk.c94 struct clk *clk; in hisi_clk_register_fixed_rate() local
124 struct clk *clk; in hisi_clk_register_fixed_factor() local
153 struct clk *clk; in hisi_clk_register_mux() local
193 struct clk *clk; in hisi_clk_register_phase() local
215 struct clk *clk; in hisi_clk_register_divider() local
253 struct clk *clk; in hisi_clk_register_gate() local
290 struct clk *clk; in hisi_clk_register_gate_sep() local
319 struct clk *clk; in hi6220_clk_register_divider() local

12345678910>>...49