Home
last modified time | relevance | path

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

12345678910>>...36

/drivers/media/v4l2-core/
Dv4l2-clk.c29 struct v4l2_clk *clk; in v4l2_clk_find() local
40 struct v4l2_clk *clk; in v4l2_clk_get() local
68 void v4l2_clk_put(struct v4l2_clk *clk) in v4l2_clk_put()
91 static int v4l2_clk_lock_driver(struct v4l2_clk *clk) in v4l2_clk_lock_driver()
111 static void v4l2_clk_unlock_driver(struct v4l2_clk *clk) in v4l2_clk_unlock_driver()
116 int v4l2_clk_enable(struct v4l2_clk *clk) in v4l2_clk_enable()
145 void v4l2_clk_disable(struct v4l2_clk *clk) in v4l2_clk_disable()
167 unsigned long v4l2_clk_get_rate(struct v4l2_clk *clk) in v4l2_clk_get_rate()
191 int v4l2_clk_set_rate(struct v4l2_clk *clk, unsigned long rate) in v4l2_clk_set_rate()
224 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()
209 unsigned long followparent_recalc(struct clk *clk) in followparent_recalc()
237 static void __clk_disable(struct clk *clk) in __clk_disable()
251 void clk_disable(struct clk *clk) in clk_disable()
264 static int __clk_enable(struct clk *clk) in __clk_enable()
291 int clk_enable(struct clk *clk) in clk_enable()
[all …]
/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.c40 nvkm_clk_adjust(struct nvkm_clk *clk, bool adjust, in nvkm_clk_adjust()
78 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog()
138 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new()
175 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog()
206 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local
241 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc()
251 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info()
307 nvkm_pstate_new(struct nvkm_clk *clk, int idx) in nvkm_pstate_new()
376 nvkm_clk_ustate_update(struct nvkm_clk *clk, int req) in nvkm_clk_ustate_update()
400 nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen) in nvkm_clk_nstate()
[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()
142 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_read() local
187 struct gt215_clk *clk = gt215_clk(base); in gt215_clk_info() local
235 struct gt215_clk *clk = gt215_clk(base); in gt215_pll_info() local
271 calc_clk(struct gt215_clk *clk, struct nvkm_cstate *cstate, in calc_clk()
282 calc_host(struct gt215_clk *clk, struct nvkm_cstate *cstate) in calc_host()
304 gt215_clk_pre(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_pre()
339 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()
125 read_clk(struct gf100_clk *clk, int idx) in read_clk()
152 struct gf100_clk *clk = gf100_clk(base); in gf100_clk_read() local
202 calc_div(struct gf100_clk *clk, int idx, u32 ref, u32 freq, u32 *ddiv) in calc_div()
213 calc_src(struct gf100_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src()
242 calc_pll(struct gf100_clk *clk, int idx, u32 freq, u32 *coef) in calc_pll()
266 calc_clk(struct gf100_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) in calc_clk()
319 struct gf100_clk *clk = gf100_clk(base); in gf100_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
Dgk20a.c125 gk20a_pllg_read_mnp(struct gk20a_clk *clk) in gk20a_pllg_read_mnp()
137 gk20a_pllg_calc_rate(struct gk20a_clk *clk) in gk20a_pllg_calc_rate()
150 gk20a_pllg_calc_mnp(struct gk20a_clk *clk, unsigned long rate) in gk20a_pllg_calc_mnp()
268 gk20a_pllg_slide(struct gk20a_clk *clk, u32 n) in gk20a_pllg_slide()
327 _gk20a_pllg_enable(struct gk20a_clk *clk) in _gk20a_pllg_enable()
335 _gk20a_pllg_disable(struct gk20a_clk *clk) in _gk20a_pllg_disable()
343 _gk20a_pllg_program_mnp(struct gk20a_clk *clk, bool allow_slide) in _gk20a_pllg_program_mnp()
431 gk20a_pllg_program_mnp(struct gk20a_clk *clk) in gk20a_pllg_program_mnp()
443 gk20a_pllg_disable(struct gk20a_clk *clk) in gk20a_pllg_disable()
565 struct gk20a_clk *clk = gk20a_clk(base); in gk20a_clk_read() local
[all …]
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/ti/
Ddpll3xxx.c50 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()
395 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
141 struct clk *clk; in omap_clk_register_apll() local
229 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_is_enabled() local
244 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_recalc() local
254 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_enable() local
285 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_disable() local
302 static void omap2_apll_set_autoidle(struct clk_hw_omap *clk, u32 val) in omap2_apll_set_autoidle()
316 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, void __iomem *reg, in _wait_idlest_generic()
92 static void _omap2_module_wait_ready(struct clk_hw_omap *clk) in _omap2_module_wait_ready()
141 void omap2_clk_dflt_find_companion(struct clk_hw_omap *clk, in omap2_clk_dflt_find_companion()
170 void omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk, in omap2_clk_dflt_find_idlest()
202 struct clk_hw_omap *clk; in omap2_dflt_clk_enable() local
263 struct clk_hw_omap *clk; in omap2_dflt_clk_disable() local
300 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_dflt_clk_is_enabled() local
Ddpll44xx.c40 static void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) in omap4_dpllmx_allow_gatectrl()
58 static void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk) in omap4_dpllmx_deny_gatectrl()
118 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap4_dpll_regm4xen_recalc() local
154 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap4_dpll_regm4xen_round_rate() local
205 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap4_dpll_regm4xen_determine_rate() local
/drivers/clk/ux500/
Dclk-prcmu.c32 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_prepare() local
43 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_unprepare() local
53 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_prepared() local
59 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_enable() local
66 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_disable() local
72 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_enabled() local
79 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_recalc_rate() local
86 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_round_rate() local
93 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_set_rate() local
100 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_prepare() local
[all …]
Dclk-prcc.c38 struct clk_prcc *clk = to_clk_prcc(hw); in clk_prcc_pclk_enable() local
50 struct clk_prcc *clk = to_clk_prcc(hw); in clk_prcc_pclk_disable() local
58 struct clk_prcc *clk = to_clk_prcc(hw); in clk_prcc_kclk_enable() local
70 struct clk_prcc *clk = to_clk_prcc(hw); in clk_prcc_kclk_disable() local
78 struct clk_prcc *clk = to_clk_prcc(hw); in clk_prcc_is_enabled() local
101 struct clk_prcc *clk; in clk_reg_prcc() local
/drivers/clk/mmp/
Dclk.c30 struct clk *clk; in mmp_register_fixed_rate_clks() local
51 struct clk *clk; in mmp_register_fixed_factor_clks() local
73 struct clk *clk; in mmp_register_general_gate_clks() local
99 struct clk *clk; in mmp_register_gate_clks() local
127 struct clk *clk; in mmp_register_mux_clks() local
155 struct clk *clk; in mmp_register_div_clks() local
179 struct clk *clk) in mmp_clk_add()
/drivers/clk/hisilicon/
Dclk.c78 struct clk *clk; in hisi_clk_register_fixed_rate() local
99 struct clk *clk; in hisi_clk_register_fixed_factor() local
119 struct clk *clk; in hisi_clk_register_mux() local
148 struct clk *clk; in hisi_clk_register_divider() local
177 struct clk *clk; in hisi_clk_register_gate() local
205 struct clk *clk; in hisi_clk_register_gate_sep() local
233 struct clk *clk; in hi6220_clk_register_divider() local
/drivers/clocksource/
Darm_arch_timer.c80 struct clock_event_device *clk) in arch_timer_reg_write()
109 struct clock_event_device *clk) in arch_timer_reg_read()
185 struct clock_event_device *clk) in timer_shutdown()
196 static int arch_timer_shutdown_virt(struct clock_event_device *clk) in arch_timer_shutdown_virt()
201 static int arch_timer_shutdown_phys(struct clock_event_device *clk) in arch_timer_shutdown_phys()
206 static int arch_timer_shutdown_virt_mem(struct clock_event_device *clk) in arch_timer_shutdown_virt_mem()
211 static int arch_timer_shutdown_phys_mem(struct clock_event_device *clk) in arch_timer_shutdown_phys_mem()
217 struct clock_event_device *clk) in set_next_event()
228 struct clock_event_device *clk) in arch_timer_set_next_event_virt()
235 struct clock_event_device *clk) in arch_timer_set_next_event_phys()
[all …]
/drivers/clk/
Dclk-scpi.c35 #define to_scpi_clk(clk) container_of(clk, struct scpi_clk, hw) argument
42 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_clk_recalc_rate() local
62 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_clk_set_rate() local
74 static long __scpi_dvfs_round_rate(struct scpi_clk *clk, unsigned long rate) in __scpi_dvfs_round_rate()
96 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_dvfs_recalc_rate() local
110 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_dvfs_round_rate() local
115 static int __scpi_find_dvfs_index(struct scpi_clk *clk, unsigned long rate) in __scpi_find_dvfs_index()
129 struct scpi_clk *clk = to_scpi_clk(hw); in scpi_dvfs_set_rate() local
154 struct clk *clk; in scpi_clk_ops_init() local
182 struct scpi_clk **clk; member
Dclk.c81 struct clk { struct
82 struct clk_core *core; argument
87 struct hlist_node clks_node; argument
275 const char *__clk_get_name(const struct clk *clk) in __clk_get_name()
287 struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
373 unsigned int __clk_get_enable_count(struct clk *clk) in __clk_get_enable_count()
413 unsigned long __clk_get_flags(struct clk *clk) in __clk_get_flags()
435 bool __clk_is_enabled(struct clk *clk) in __clk_is_enabled()
603 void clk_unprepare(struct clk *clk) in clk_unprepare()
658 int clk_prepare(struct clk *clk) in clk_prepare()
[all …]
Dclkdev.c35 struct clk *clk; in __of_clk_get() local
62 struct clk *clk = ERR_PTR(-ENOENT); in __of_clk_get_by_name() local
172 struct clk *clk = NULL; in clk_get_sys() local
200 struct clk *clk; in clk_get() local
212 void clk_put(struct clk *clk) in clk_put()
291 clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...) in clkdev_alloc()
313 struct clk_lookup *clkdev_create(struct clk *clk, const char *con_id, in clkdev_create()
370 int clk_register_clkdev(struct clk *clk, const char *con_id, in clk_register_clkdev()
398 int clk_register_clkdevs(struct clk *clk, struct clk_lookup *cl, size_t num) in clk_register_clkdevs()
Dclk-gpio.c38 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_enable() local
47 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_disable() local
54 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_is_enabled() local
76 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_mux_get_parent() local
83 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_mux_set_parent() local
103 struct clk *clk; in clk_register_gpio() local
216 struct clk *clk; member
226 struct clk *clk; in of_clk_gpio_delayed_register_get() local
/drivers/clk/pistachio/
Dclk.c64 struct clk *clk; in pistachio_clk_register_gate() local
80 struct clk *clk; in pistachio_clk_register_mux() local
98 struct clk *clk; in pistachio_clk_register_div() local
114 struct clk *clk; in pistachio_clk_register_fixed_factor() local
131 struct clk *clk = p->clk_data.clks[clk_ids[i]]; in pistachio_clk_force_enable() local
/drivers/clk/samsung/
Dclk.c96 void samsung_clk_add_lookup(struct samsung_clk_provider *ctx, struct clk *clk, in samsung_clk_add_lookup()
108 struct clk *clk; in samsung_clk_register_alias() local
142 struct clk *clk; in samsung_clk_register_fixed_rate() local
171 struct clk *clk; in samsung_clk_register_fixed_factor() local
192 struct clk *clk; in samsung_clk_register_mux() local
224 struct clk *clk; in samsung_clk_register_div() local
263 struct clk *clk; in samsung_clk_register_gate() local
313 struct clk *clk; in _get_rate() local

12345678910>>...36