Home
last modified time | relevance | path

Searched defs:clk (Results 1 – 200 of 1061) sorted by relevance

123456

/linux-4.1.27/arch/mips/bcm63xx/
Dclk.c19 struct clk { struct
20 void (*set)(struct clk *, int); argument
29 static void clk_enable_unlocked(struct clk *clk) in clk_enable_unlocked()
35 static void clk_disable_unlocked(struct clk *clk) in clk_disable_unlocked()
56 static void enet_misc_set(struct clk *clk, int enable) in enet_misc_set()
80 static void enetx_set(struct clk *clk, int enable) in enetx_set()
111 static void ephy_set(struct clk *clk, int enable) in ephy_set()
125 static void enetsw_set(struct clk *clk, int enable) in enetsw_set()
155 static void pcm_set(struct clk *clk, int enable) in pcm_set()
170 static void usbh_set(struct clk *clk, int enable) in usbh_set()
[all …]
/linux-4.1.27/arch/avr32/mach-at32ap/
Dclock.h20 struct clk { struct
24 struct clk *parent; /* Parent clock, if any */ argument
25 void (*mode)(struct clk *clk, int enabled); argument
26 unsigned long (*get_rate)(struct clk *clk); argument
27 long (*set_rate)(struct clk *clk, unsigned long rate, argument
29 int (*set_parent)(struct clk *clk, struct clk *parent); argument
34 unsigned long pba_clk_get_rate(struct clk *clk); argument
Dclock.c31 void at32_clk_register(struct clk *clk) in at32_clk_register()
41 struct clk *clk; in __clk_get() local
54 struct clk *clk; in clk_get() local
65 void clk_put(struct clk *clk) in clk_put()
71 static void __clk_enable(struct clk *clk) in __clk_enable()
79 int clk_enable(struct clk *clk) in clk_enable()
94 static void __clk_disable(struct clk *clk) in __clk_disable()
108 void clk_disable(struct clk *clk) in clk_disable()
121 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
137 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
[all …]
Dat32ap700x.c110 static unsigned long osc_get_rate(struct clk *clk) in osc_get_rate()
115 static unsigned long pll_get_rate(struct clk *clk, unsigned long control) in pll_get_rate()
129 static long pll_set_rate(struct clk *clk, unsigned long rate, in pll_set_rate()
194 static unsigned long pll0_get_rate(struct clk *clk) in pll0_get_rate()
203 static void pll1_mode(struct clk *clk, int enabled) in pll1_mode()
238 static unsigned long pll1_get_rate(struct clk *clk) in pll1_get_rate()
247 static long pll1_set_rate(struct clk *clk, unsigned long rate, int apply) in pll1_set_rate()
267 static int pll1_set_parent(struct clk *clk, struct clk *parent) in pll1_set_parent()
338 static unsigned long bus_clk_get_rate(struct clk *clk, unsigned int shift) in bus_clk_get_rate()
343 static void cpu_clk_mode(struct clk *clk, int enabled) in cpu_clk_mode()
[all …]
/linux-4.1.27/arch/arm/mach-lpc32xx/
Dclock.h22 struct clk { struct
24 struct clk *parent; argument
28 int (*set_rate) (struct clk *, unsigned long); argument
29 unsigned long (*round_rate) (struct clk *, unsigned long); argument
30 unsigned long (*get_rate) (struct clk *clk); argument
31 int (*enable) (struct clk *, int); argument
34 void __iomem *enable_reg;
35 u32 enable_mask;
Dclock.c114 static unsigned long local_return_parent_rate(struct clk *clk) in local_return_parent_rate()
132 static int local_pll397_enable(struct clk *clk, int enable) in local_pll397_enable()
161 static int local_oscmain_enable(struct clk *clk, int enable) in local_oscmain_enable()
387 static int local_usbpll_enable(struct clk *clk, int enable) in local_usbpll_enable()
451 static unsigned long local_usbpll_round_rate(struct clk *clk, in local_usbpll_round_rate()
475 static int local_usbpll_set_rate(struct clk *clk, unsigned long rate) in local_usbpll_set_rate()
543 static int local_onoff_enable(struct clk *clk, int enable) in local_onoff_enable()
762 static int local_usb_enable(struct clk *clk, int enable) in local_usb_enable()
787 static int local_usb_otg_enable(struct clk *clk, int enable) in local_usb_otg_enable()
833 static int tsc_onoff_enable(struct clk *clk, int enable) in tsc_onoff_enable()
[all …]
/linux-4.1.27/include/linux/
Dclk.h59 struct clk *clk; member
76 struct clk *clk; member
143 static inline long clk_get_accuracy(struct clk *clk) in clk_get_accuracy()
148 static inline long clk_set_phase(struct clk *clk, int phase) in clk_set_phase()
153 static inline long clk_get_phase(struct clk *clk) in clk_get_phase()
176 static inline int clk_prepare(struct clk *clk) in clk_prepare()
195 static inline void clk_unprepare(struct clk *clk) in clk_unprepare()
409 static inline void clk_put(struct clk *clk) {} in clk_put()
411 static inline void devm_clk_put(struct device *dev, struct clk *clk) {} in devm_clk_put()
413 static inline int clk_enable(struct clk *clk) in clk_enable()
[all …]
Dsh_clk.h37 struct clk { struct
39 struct clk *parent; argument
40 struct clk **parent_table; /* list of parents to */ argument
44 struct sh_clk_ops *ops; argument
62 struct clk_mapping *mapping; argument
79 /* drivers/sh/clk.c */ argument
/linux-4.1.27/arch/arm/mach-omap1/
Dclock.c44 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 …]
Dclock.h48 #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-4.1.27/arch/m68k/coldfire/
Dclk.c30 void __clk_init_enabled(struct clk *clk) in __clk_init_enabled()
36 void __clk_init_disabled(struct clk *clk) in __clk_init_disabled()
42 static void __clk_enable0(struct clk *clk) in __clk_enable0()
47 static void __clk_disable0(struct clk *clk) in __clk_disable0()
58 static void __clk_enable1(struct clk *clk) in __clk_enable1()
63 static void __clk_disable1(struct clk *clk) in __clk_disable1()
78 struct clk *clk; in clk_get() local
89 int clk_enable(struct clk *clk) in clk_enable()
101 void clk_disable(struct clk *clk) in clk_disable()
111 void clk_put(struct clk *clk) in clk_put()
[all …]
/linux-4.1.27/drivers/clk/
Dclk.c83 struct clk { struct
84 struct clk_core *core; argument
89 struct hlist_node clks_node; argument
297 static int clk_debug_create_one(struct clk_core *clk, struct dentry *pdentry) in clk_debug_create_one()
372 static int clk_debug_register(struct clk_core *clk) in clk_debug_register()
397 static void clk_debug_unregister(struct clk_core *clk) in clk_debug_unregister()
433 struct clk_core *clk; in clk_debug_init() local
472 static inline int clk_debug_register(struct clk_core *clk) { return 0; } in clk_debug_register()
473 static inline void clk_debug_reparent(struct clk_core *clk, in clk_debug_reparent()
477 static inline void clk_debug_unregister(struct clk_core *clk) in clk_debug_unregister()
[all …]
Dclk-gpio-gate.c35 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_enable() local
44 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_disable() local
51 struct clk_gpio *clk = to_clk_gpio(hw); in clk_gpio_gate_is_enabled() local
77 struct clk *clk = ERR_PTR(-EINVAL); in clk_register_gpio_gate() local
143 struct clk *clk; member
151 struct clk *clk; in of_clk_gpio_gate_delayed_register_get() local
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()
246 vclkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, in vclkdev_alloc()
270 clkdev_alloc(struct clk *clk, const char *con_id, const char *dev_fmt, ...) in clkdev_alloc()
327 int clk_register_clkdev(struct clk *clk, const char *con_id, in clk_register_clkdev()
360 int clk_register_clkdevs(struct clk *clk, struct clk_lookup *cl, size_t num) in clk_register_clkdevs()
Dclk.h30 static inline void __clk_free_clk(struct clk *clk) { } in __clk_free_clk()
31 static struct clk_hw *__clk_get_hw(struct clk *clk) in __clk_get_hw()
Dclk-nspire.c45 static void nspire_clkinfo_cx(u32 val, struct nspire_clk_info *clk) in nspire_clkinfo_cx()
56 static void nspire_clkinfo_classic(u32 val, struct nspire_clk_info *clk) in nspire_clkinfo_classic()
72 struct clk *clk; in nspire_ahbdiv_setup() local
114 struct clk *clk; in nspire_clk_setup() local
Dclk-qoriq.c36 struct cmux_clk *clk = to_cmux_clk(hw); in cmux_set_parent() local
50 struct cmux_clk *clk = to_cmux_clk(hw); in cmux_get_parent() local
69 struct clk *clk; in core_mux_init() local
253 struct clk *clk; in sysclk_init() local
Dclk-devres.c19 struct clk **ptr, *clk; in devm_clk_get() local
47 void devm_clk_put(struct device *dev, struct clk *clk) in devm_clk_put()
Dclk-moxart.c21 struct clk *clk, *ref_clk; in moxart_of_pll_clk_init() local
59 struct clk *clk, *pll_clk; in moxart_of_apb_clk_init() local
Dclk-conf.c21 struct clk *clk, *pclk; in __set_clk_parents() local
83 struct clk *clk; in __set_clk_rates() local
Dclk-ls1x.c57 struct clk *clk; in clk_register_pll() local
89 struct clk *clk; in ls1x_clk_init() local
Dclk-fixed-rate.c64 struct clk *clk; in clk_register_fixed_rate_with_accuracy() local
117 struct clk *clk; in of_fixed_clk_setup() local
Dclk-gate.c127 struct clk *clk; in clk_register_gate() local
166 void clk_unregister_gate(struct clk *clk) in clk_unregister_gate()
Dclk-fixed-factor.c74 struct clk *clk; in clk_register_fixed_factor() local
108 struct clk *clk; in of_fixed_factor_clk_setup() local
Dclk-nomadik.c261 struct clk *clk; in pll_clk_register() local
353 struct clk *clk; in src_clk_register() local
513 struct clk *clk = ERR_PTR(-EINVAL); in of_nomadik_pll_setup() local
536 struct clk *clk = ERR_PTR(-EINVAL); in of_nomadik_hclk_setup() local
560 struct clk *clk = ERR_PTR(-EINVAL); in of_nomadik_src_clk_setup() local
Dclk-bcm2835.c32 struct clk *clk; in bcm2835_init_clocks() local
Dclk-mux.c122 struct clk *clk; in clk_register_mux_table() local
181 void clk_unregister_mux(struct clk *clk) in clk_unregister_mux()
Dclk-efm32gg.c19 static struct clk *clk[37]; variable
/linux-4.1.27/arch/c6x/platforms/
Dpll.c31 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-4.1.27/arch/arm/mach-davinci/
Dclock.c34 static void __clk_enable(struct clk *clk) in __clk_enable()
47 static void __clk_disable(struct clk *clk) in __clk_disable()
62 int davinci_clk_reset(struct clk *clk, bool reset) in davinci_clk_reset()
78 int davinci_clk_reset_assert(struct clk *clk) in davinci_clk_reset_assert()
87 int davinci_clk_reset_deassert(struct clk *clk) in davinci_clk_reset_deassert()
96 int clk_enable(struct clk *clk) in clk_enable()
111 void clk_disable(struct clk *clk) in clk_disable()
124 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
133 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
148 struct clk *clk; in propagate_rate() local
[all …]
Dclock.h87 struct clk { struct
98 struct clk *parent; argument
103 unsigned long (*recalc) (struct clk *); argument
104 int (*set_rate) (struct clk *clk, unsigned long rate); argument
105 int (*round_rate) (struct clk *clk, unsigned long rate); argument
106 int (*reset) (struct clk *clk, bool reset); argument
107 void (*clk_enable) (struct clk *clk); argument
108 void (*clk_disable) (struct clk *clk); argument
Dda850.c396 static void ehrpwm_tblck_enable(struct clk *clk) in ehrpwm_tblck_enable()
405 static void ehrpwm_tblck_disable(struct clk *clk) in ehrpwm_tblck_disable()
913 struct clk *clk, *newparent = pllnum ? &pll1_sysclk2 : &pll0_sysclk2; in da850_set_async3_src() local
1093 static int da850_round_armrate(struct clk *clk, unsigned long rate) in da850_round_armrate()
1116 static int da850_set_armrate(struct clk *clk, unsigned long index) in da850_set_armrate()
1123 static int da850_set_pll0rate(struct clk *clk, unsigned long index) in da850_set_pll0rate()
1147 static int da850_set_armrate(struct clk *clk, unsigned long rate) in da850_set_armrate()
1152 static int da850_set_pll0rate(struct clk *clk, unsigned long armrate) in da850_set_pll0rate()
1157 static int da850_round_armrate(struct clk *clk, unsigned long rate) in da850_round_armrate()
/linux-4.1.27/arch/arm/mach-sa1100/
Dclock.c26 struct clk { struct
27 const struct clkops *ops; argument
32 struct clk clk_##_name = { \ argument
38 static void clk_gpio27_enable(struct clk *clk) in clk_gpio27_enable()
49 static void clk_gpio27_disable(struct clk *clk) in clk_gpio27_disable()
56 static void clk_cpu_enable(struct clk *clk) in clk_cpu_enable()
60 static void clk_cpu_disable(struct clk *clk) in clk_cpu_disable()
64 static unsigned long clk_cpu_get_rate(struct clk *clk) in clk_cpu_get_rate()
69 int clk_enable(struct clk *clk) in clk_enable()
84 void clk_disable(struct clk *clk) in clk_disable()
[all …]
/linux-4.1.27/arch/mips/ralink/
Dclk.c19 struct clk { struct
20 struct clk_lookup cl; argument
26 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in ralink_clk_add() argument
42 int clk_enable(struct clk *clk) in clk_enable()
48 void clk_disable(struct clk *clk) in clk_disable()
53 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
59 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
67 struct clk *clk; in plat_time_init() local
/linux-4.1.27/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 …]
/linux-4.1.27/arch/blackfin/mach-common/
Dclock.h14 struct clk { struct
19 const struct clk_ops *ops; argument
20 const struct params *params;
21 void __iomem *reg;
22 u32 mask;
23 u32 shift;
/linux-4.1.27/arch/mips/jz4740/
Dclock.c105 struct clk clk; member
110 struct clk clk; member
116 struct clk clk; member
159 static int jz_clk_enable_gating(struct clk *clk) in jz_clk_enable_gating()
168 static int jz_clk_disable_gating(struct clk *clk) in jz_clk_disable_gating()
177 static int jz_clk_is_enabled_gating(struct clk *clk) in jz_clk_is_enabled_gating()
185 static unsigned long jz_clk_static_get_rate(struct clk *clk) in jz_clk_static_get_rate()
190 static int jz_clk_ko_enable(struct clk *clk) in jz_clk_ko_enable()
196 static int jz_clk_ko_disable(struct clk *clk) in jz_clk_ko_disable()
202 static int jz_clk_ko_is_enabled(struct clk *clk) in jz_clk_ko_is_enabled()
[all …]
Dclock.h45 struct clk { struct
47 struct clk *parent; argument
51 const struct clk_ops *ops; argument
64 int clk_is_enabled(struct clk *clk); argument
72 static inline void jz4740_clock_debugfs_add_clk(struct clk *clk) {}; in jz4740_clock_debugfs_add_clk()
73 static inline void jz4740_clock_debugfs_update_parent(struct clk *clk) {}; in jz4740_clock_debugfs_update_parent()
Dclock-debugfs.c31 struct clk *clk = data; in jz4740_clock_debugfs_show_enabled() local
39 struct clk *clk = data; in jz4740_clock_debugfs_set_enabled() local
56 struct clk *clk = data; in jz4740_clock_debugfs_show_rate() local
67 void jz4740_clock_debugfs_add_clk(struct clk *clk) in jz4740_clock_debugfs_add_clk()
88 void jz4740_clock_debugfs_update_parent(struct clk *clk) in jz4740_clock_debugfs_update_parent()
/linux-4.1.27/arch/mips/include/asm/
Dclock.h20 struct clk { struct
26 struct clk *parent; argument
27 struct clk_ops *ops; argument
40 int __clk_enable(struct clk *); argument
Dclkdev.h18 #define __clk_get(clk) ({ 1; }) argument
19 #define __clk_put(clk) do { } while (0) argument
/linux-4.1.27/arch/arm/mach-versatile/include/mach/
Dclkdev.h6 struct clk { struct
8 const struct clk_ops *ops; argument
13 #define __clk_get(clk) ({ 1; }) argument
14 #define __clk_put(clk) do { } while (0) argument
/linux-4.1.27/arch/arm/mach-ep93xx/
Dclock.c30 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
239 static void __clk_enable(struct clk *clk) in __clk_enable()
258 int clk_enable(struct clk *clk) in clk_enable()
273 static void __clk_disable(struct clk *clk) in __clk_disable()
292 void clk_disable(struct clk *clk) in clk_disable()
305 static unsigned long get_uart_rate(struct clk *clk) in get_uart_rate()
317 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
[all …]
/linux-4.1.27/arch/arm/mach-mmp/
Dclock.c19 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()
79 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
92 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
Dclock.h18 struct clk { struct
19 const struct clkops *ops; argument
21 void __iomem *clk_rst; /* clock reset control register */ argument
22 int fnclksel; /* functional clock select (APBC) */ argument
32 struct clk clk_##_name = { \ argument
Dclock-mmp2.c47 static void sdhc_clk_enable(struct clk *clk) in sdhc_clk_enable()
56 static void sdhc_clk_disable(struct clk *clk) in sdhc_clk_disable()
/linux-4.1.27/arch/mips/lantiq/
Dclk.h55 struct clk { struct
56 struct clk_lookup cl; argument
62 int (*enable) (struct clk *clk); argument
63 void (*disable) (struct clk *clk); argument
64 int (*activate) (struct clk *clk); argument
65 void (*deactivate) (struct clk *clk); argument
66 void (*reboot) (struct clk *clk); argument
Dclk.c62 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()
186 struct clk *clk; in plat_time_init() local
/linux-4.1.27/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 …]
/linux-4.1.27/arch/blackfin/include/asm/
Dclocks.h61 struct clk { struct
62 struct clk *parent; argument
67 const struct clk_ops *ops; argument
73 int clk_init(void); argument
Dclkdev.h12 #define __clk_put(clk) argument
13 #define __clk_get(clk) ({ 1; }) argument
/linux-4.1.27/arch/arm/plat-versatile/
Dclock.c21 int clk_enable(struct clk *clk) in clk_enable()
27 void clk_disable(struct clk *clk) in clk_disable()
32 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
38 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
47 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
56 long icst_clk_round(struct clk *clk, unsigned long rate) in icst_clk_round()
64 int icst_clk_set(struct clk *clk, unsigned long rate) in icst_clk_set()
/linux-4.1.27/arch/unicore32/kernel/
Dclock.c30 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-4.1.27/arch/arm/mach-omap2/
Ddpll3xxx.c43 static void _omap3_dpll_write_clken(struct clk_hw_omap *clk, u8 clken_bits) in _omap3_dpll_write_clken()
57 static int _omap3_wait_dpll_status(struct clk_hw_omap *clk, u8 state) in _omap3_wait_dpll_status()
89 static u16 _omap3_dpll_compute_freqsel(struct clk_hw_omap *clk, u8 n) in _omap3_dpll_compute_freqsel()
134 static int _omap3_noncore_dpll_lock(struct clk_hw_omap *clk) in _omap3_noncore_dpll_lock()
179 static int _omap3_noncore_dpll_bypass(struct clk_hw_omap *clk) in _omap3_noncore_dpll_bypass()
211 static int _omap3_noncore_dpll_stop(struct clk_hw_omap *clk) in _omap3_noncore_dpll_stop()
242 static void _lookup_dco(struct clk_hw_omap *clk, u8 *dco, u16 m, u8 n) in _lookup_dco()
267 static void _lookup_sddiv(struct clk_hw_omap *clk, u8 *sd_div, u16 m, u8 n) in _lookup_sddiv()
297 static int omap3_noncore_dpll_program(struct clk_hw_omap *clk, u16 freqsel) in omap3_noncore_dpll_program()
387 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap3_dpll_recalc() local
[all …]
Dclkt_clksel.c61 static const struct clksel *_get_clksel_by_parent(struct clk_hw_omap *clk, in _get_clksel_by_parent()
96 static void _write_clksel_reg(struct clk_hw_omap *clk, u32 field_val) in _write_clksel_reg()
119 static u32 _clksel_to_divisor(struct clk_hw_omap *clk, u32 field_val) in _clksel_to_divisor()
160 static u32 _divisor_to_clksel(struct clk_hw_omap *clk, u32 div) in _divisor_to_clksel()
200 static u32 _read_divisor(struct clk_hw_omap *clk) in _read_divisor()
228 u32 omap2_clksel_round_rate_div(struct clk_hw_omap *clk, in omap2_clksel_round_rate_div()
308 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_clksel_find_parent_index() local
360 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_clksel_recalc() local
391 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_clksel_round_rate() local
415 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_clksel_set_rate() local
[all …]
Dclock.c111 void omap2_clk_writel(u32 val, struct clk_hw_omap *clk, void __iomem *reg) in omap2_clk_writel()
119 u32 omap2_clk_readl(struct clk_hw_omap *clk, void __iomem *reg) in omap2_clk_readl()
205 static int _wait_idlest_generic(struct clk_hw_omap *clk, void __iomem *reg, in _wait_idlest_generic()
235 static void _omap2_module_wait_ready(struct clk_hw_omap *clk) in _omap2_module_wait_ready()
273 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_init_clk_clkdm() local
327 void omap2_clk_dflt_find_companion(struct clk_hw_omap *clk, in omap2_clk_dflt_find_companion()
356 void omap2_clk_dflt_find_idlest(struct clk_hw_omap *clk, in omap2_clk_dflt_find_idlest()
387 struct clk_hw_omap *clk; in omap2_dflt_clk_enable() local
441 struct clk_hw_omap *clk; in omap2_dflt_clk_disable() local
481 struct clk_hw_omap *clk; in omap2_clkops_enable_clkdm() local
[all …]
Ddpll44xx.c39 void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) in omap4_dpllmx_allow_gatectrl()
57 void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk) in omap4_dpllmx_deny_gatectrl()
117 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap4_dpll_regm4xen_recalc() local
153 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap4_dpll_regm4xen_round_rate() local
210 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap4_dpll_regm4xen_determine_rate() local
Dclock3517.c50 static void am35xx_clk_find_idlest(struct clk_hw_omap *clk, in am35xx_clk_find_idlest()
74 static void am35xx_clk_find_companion(struct clk_hw_omap *clk, in am35xx_clk_find_companion()
100 static void am35xx_clk_ipss_find_idlest(struct clk_hw_omap *clk, in am35xx_clk_ipss_find_idlest()
Dclock34xx.c40 static void omap3430es2_clk_ssi_find_idlest(struct clk_hw_omap *clk, in omap3430es2_clk_ssi_find_idlest()
78 static void omap3430es2_clk_dss_usbhost_find_idlest(struct clk_hw_omap *clk, in omap3430es2_clk_dss_usbhost_find_idlest()
115 static void omap3430es2_clk_hsotgusb_find_idlest(struct clk_hw_omap *clk, in omap3430es2_clk_hsotgusb_find_idlest()
Dclkt2xxx_dpll.c32 static void _allow_idle(struct clk_hw_omap *clk) in _allow_idle()
46 static void _deny_idle(struct clk_hw_omap *clk) in _deny_idle()
Dclkt_iclk.c26 void omap2_clkt_iclk_allow_idle(struct clk_hw_omap *clk) in omap2_clkt_iclk_allow_idle()
40 void omap2_clkt_iclk_deny_idle(struct clk_hw_omap *clk) in omap2_clkt_iclk_deny_idle()
Dclkt_dpll.c68 static int _dpll_test_fint(struct clk_hw_omap *clk, unsigned int n) in _dpll_test_fint()
206 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_init_dpll_parent() local
239 unsigned long omap2_get_dpll_rate(struct clk_hw_omap *clk) in omap2_get_dpll_rate()
286 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_dpll_round_rate() local
Dclkt2xxx_virt_prcm_set.c61 unsigned long omap2_table_mpu_recalc(struct clk_hw *clk, in omap2_table_mpu_recalc()
233 struct clk *clk; in omap2xxx_clkt_vps_init() local
Dclock2430.c43 static void omap2430_clk_i2chs_find_idlest(struct clk_hw_omap *clk, in omap2430_clk_i2chs_find_idlest()
/linux-4.1.27/arch/c6x/include/asm/
Dclock.h82 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
Dclkdev.h8 static inline int __clk_get(struct clk *clk) in __clk_get()
13 static inline void __clk_put(struct clk *clk) in __clk_put()
/linux-4.1.27/arch/arm/mach-pxa/
Dclock.c15 int clk_enable(struct clk *clk) in clk_enable()
31 void clk_disable(struct clk *clk) in clk_disable()
44 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
56 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
71 void clk_dummy_enable(struct clk *clk) in clk_dummy_enable()
75 void clk_dummy_disable(struct clk *clk) in clk_dummy_disable()
Dclock.h11 struct clk { struct
12 const struct clkops *ops; argument
19 void clk_dummy_enable(struct clk *); argument
Dclock-pxa3xx.c79 static unsigned long clk_pxa3xx_ac97_getrate(struct clk *clk) in clk_pxa3xx_ac97_getrate()
98 static unsigned long clk_pxa3xx_hsio_getrate(struct clk *clk) in clk_pxa3xx_hsio_getrate()
115 static unsigned long clk_pxa3xx_smemc_getrate(struct clk *clk) in clk_pxa3xx_smemc_getrate()
124 void clk_pxa3xx_cken_enable(struct clk *clk) in clk_pxa3xx_cken_enable()
136 void clk_pxa3xx_cken_disable(struct clk *clk) in clk_pxa3xx_cken_disable()
171 static void clk_pout_enable(struct clk *clk) in clk_pout_enable()
176 static void clk_pout_disable(struct clk *clk) in clk_pout_disable()
Dpxa25x.c98 static unsigned long clk_pxa25x_mem_getrate(struct clk *clk) in clk_pxa25x_mem_getrate()
123 static void clk_gpio12_enable(struct clk *clk) in clk_gpio12_enable()
128 static void clk_gpio12_disable(struct clk *clk) in clk_gpio12_disable()
146 static void clk_gpio11_enable(struct clk *clk) in clk_gpio11_enable()
151 static void clk_gpio11_disable(struct clk *clk) in clk_gpio11_disable()
Dclock-pxa2xx.c19 void clk_pxa2xx_cken_enable(struct clk *clk) in clk_pxa2xx_cken_enable()
24 void clk_pxa2xx_cken_disable(struct clk *clk) in clk_pxa2xx_cken_disable()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
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()
136 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new()
173 nvkm_pstate_prog(struct nvkm_clk *clk, int pstatei) in nvkm_pstate_prog()
203 struct nvkm_clk *clk = container_of(work, typeof(*clk), work); in nvkm_pstate_work() local
237 nvkm_pstate_calc(struct nvkm_clk *clk, bool wait) in nvkm_pstate_calc()
247 nvkm_pstate_info(struct nvkm_clk *clk, struct nvkm_pstate *pstate) in nvkm_pstate_info()
302 nvkm_pstate_new(struct nvkm_clk *clk, int idx) in nvkm_pstate_new()
371 nvkm_clk_ustate_update(struct nvkm_clk *clk, int req) in nvkm_clk_ustate_update()
395 nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen) in nvkm_clk_nstate()
[all …]
Dgf100.c51 struct nvkm_clk *clk = &priv->base; in read_vco() local
61 struct nvkm_clk *clk = &priv->base; in read_pll() local
124 read_clk(struct gf100_clk_priv *priv, int clk) in read_clk()
148 gf100_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) in gf100_clk_read()
199 calc_div(struct gf100_clk_priv *priv, int clk, u32 ref, u32 freq, u32 *ddiv) in calc_div()
210 calc_src(struct gf100_clk_priv *priv, int clk, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src()
239 calc_pll(struct gf100_clk_priv *priv, int clk, u32 freq, u32 *coef) in calc_pll()
263 struct nvkm_cstate *cstate, int clk, int dom) in calc_clk()
314 gf100_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) in gf100_clk_calc()
333 gf100_clk_prog_0(struct gf100_clk_priv *priv, int clk) in gf100_clk_prog_0()
[all …]
Dgk104.c141 read_clk(struct gk104_clk_priv *priv, int clk) in read_clk()
184 gk104_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) in gk104_clk_read()
217 calc_div(struct gk104_clk_priv *priv, int clk, u32 ref, u32 freq, u32 *ddiv) in calc_div()
228 calc_src(struct gk104_clk_priv *priv, int clk, u32 freq, u32 *dsrc, u32 *ddiv) in calc_src()
257 calc_pll(struct gk104_clk_priv *priv, int clk, u32 freq, u32 *coef) in calc_pll()
281 struct nvkm_cstate *cstate, int clk, int dom) in calc_clk()
332 gk104_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) in gk104_clk_calc()
350 gk104_clk_prog_0(struct gk104_clk_priv *priv, int clk) in gk104_clk_prog_0()
360 gk104_clk_prog_1_0(struct gk104_clk_priv *priv, int clk) in gk104_clk_prog_1_0()
367 gk104_clk_prog_1_1(struct gk104_clk_priv *priv, int clk) in gk104_clk_prog_1_1()
[all …]
Dgt215.c43 read_vco(struct gt215_clk_priv *priv, int clk) in read_vco()
60 read_clk(struct gt215_clk_priv *priv, int clk, bool ignore_en) in read_clk()
106 read_pll(struct gt215_clk_priv *priv, int clk, u32 pll) in read_pll()
137 gt215_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) in gt215_clk_read()
179 gt215_clk_info(struct nvkm_clk *clock, int clk, u32 khz, in gt215_clk_info()
226 gt215_pll_info(struct nvkm_clk *clock, int clk, u32 pll, u32 khz, in gt215_pll_info()
266 int clk, u32 pll, int idx) in calc_clk()
298 gt215_clk_pre(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_pre()
321 gt215_clk_post(struct nvkm_clk *clk, unsigned long *flags) in gt215_clk_post()
340 prog_pll(struct gt215_clk_priv *priv, int clk, u32 pll, int idx) in prog_pll()
[all …]
Dnv50.c54 struct nvkm_clk *clk = &priv->base; in read_pll_src() local
126 struct nvkm_clk *clk = &priv->base; in read_pll_ref() local
158 struct nvkm_clk *clk = &priv->base; in read_pll() local
190 nv50_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) in nv50_clk_read()
321 calc_pll(struct nv50_clk_priv *priv, u32 reg, u32 clk, int *N, int *M, int *P) in calc_pll()
364 nv50_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) in nv50_clk_calc()
489 nv50_clk_prog(struct nvkm_clk *clk) in nv50_clk_prog()
496 nv50_clk_tidy(struct nvkm_clk *clk) in nv50_clk_tidy()
Dnv40.c56 u32 ref = 27000, clk = 0; in read_pll_1() local
74 u32 ref = 27000, clk = 0; in read_pll_2() local
105 nv40_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) in nv40_clk_read()
130 nv40_clk_calc_pll(struct nv40_clk_priv *priv, u32 reg, u32 clk, in nv40_clk_calc_pll()
152 nv40_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) in nv40_clk_calc()
192 nv40_clk_prog(struct nvkm_clk *clk) in nv40_clk_prog()
205 nv40_clk_tidy(struct nvkm_clk *clk) in nv40_clk_tidy()
Dmcp77.c42 read_div(struct nvkm_clk *clk) in read_div()
48 read_pll(struct nvkm_clk *clk, u32 base) in read_pll()
79 mcp77_clk_read(struct nvkm_clk *clk, enum nv_clk_src src) in mcp77_clk_read()
166 struct nvkm_clk *clk = &priv->base; in calc_pll() local
200 mcp77_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) in mcp77_clk_calc()
295 mcp77_clk_prog(struct nvkm_clk *clk) in mcp77_clk_prog()
385 mcp77_clk_tidy(struct nvkm_clk *clk) in mcp77_clk_tidy()
Dnv04.c37 int clk, struct nvkm_pll_vals *pv) in nv04_clk_pll_calc()
53 nv04_clk_pll_prog(struct nvkm_clk *clk, u32 reg1, struct nvkm_pll_vals *pv) in nv04_clk_pll_prog()
/linux-4.1.27/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
Du8500_of_clk.c25 #define PRCC_SHOW(clk, base, bit) \ argument
27 #define PRCC_PCLK_STORE(clk, base, bit) \ argument
29 #define PRCC_KCLK_STORE(clk, base, bit) \ argument
64 struct clk *clk, *rtc_clk, *twd_clk; in u8500_of_clk_init() local
Dclk-sysctrl.c39 struct clk_sysctrl *clk = to_clk_sysctrl(hw); in clk_sysctrl_prepare() local
52 struct clk_sysctrl *clk = to_clk_sysctrl(hw); in clk_sysctrl_unprepare() local
61 struct clk_sysctrl *clk = to_clk_sysctrl(hw); in clk_sysctrl_recalc_rate() local
67 struct clk_sysctrl *clk = to_clk_sysctrl(hw); in clk_sysctrl_set_parent() local
97 struct clk_sysctrl *clk = to_clk_sysctrl(hw); in clk_sysctrl_get_parent() local
129 struct clk_sysctrl *clk; in clk_reg_sysctrl() local
Du8540_clk.c20 struct clk *clk; in u8540_clk_init() local
Du8500_clk.c22 struct clk *clk; in u8500_clk_init() local
/linux-4.1.27/drivers/clk/ti/
Dapll.c39 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_enable() local
90 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_disable() local
107 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in dra7_apll_is_enabled() local
138 struct clk *clk; in omap_clk_register_apll() local
228 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_is_enabled() local
243 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_recalc() local
253 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_enable() local
284 struct clk_hw_omap *clk = to_clk_hw_omap(hw); in omap2_apll_disable() local
301 static void omap2_apll_set_autoidle(struct clk_hw_omap *clk, u32 val) in omap2_apll_set_autoidle()
315 static void omap2_apll_allow_idle(struct clk_hw_omap *clk) in omap2_apll_allow_idle()
[all …]
Dautoidle.c37 static void ti_allow_autoidle(struct clk_ti_autoidle *clk) in ti_allow_autoidle()
51 static void ti_deny_autoidle(struct clk_ti_autoidle *clk) in ti_deny_autoidle()
107 struct clk_ti_autoidle *clk; in of_ti_clk_autoidle_setup() local
Dcomposite.c108 static inline struct clk_hw *_get_hw(struct clk_hw_omap_comp *clk, int idx) in _get_hw()
130 struct clk *clk; in ti_clk_register_composite() local
162 struct clk *clk; in _register_composite() local
278 struct component_clk *clk; in ti_clk_add_component() local
Dclk.c46 struct clk *clk; in ti_dt_clocks_register() local
201 struct clk *clk; in ti_clk_register_clk() local
264 struct clk *clk; in ti_clk_register_legacy_clks() local
Dgate.c65 static int omap36xx_gate_clk_enable_with_hsdiv_restore(struct clk_hw *clk) in omap36xx_gate_clk_enable_with_hsdiv_restore()
103 struct clk *clk; in _register_gate() local
218 struct clk *clk; in _of_ti_gate_clk_setup() local
Dinterface.c42 struct clk *clk; in _register_interface() local
107 struct clk *clk; in _of_ti_interface_clk_setup() local
Dclk-dra7-atl.c43 struct clk *clk; member
172 struct clk *clk; in of_dra7_atl_clock_setup() local
242 struct clk *clk; in of_dra7_atl_clk_probe() local
/linux-4.1.27/arch/sh/kernel/cpu/sh4/
Dclock-sh4-202.c25 static unsigned long emi_clk_recalc(struct clk *clk) in emi_clk_recalc()
31 static inline int frqcr3_lookup(struct clk *clk, unsigned long rate) in frqcr3_lookup()
53 static unsigned long femi_clk_recalc(struct clk *clk) in femi_clk_recalc()
68 static void shoc_clk_init(struct clk *clk) in shoc_clk_init()
91 static unsigned long shoc_clk_recalc(struct clk *clk) in shoc_clk_recalc()
97 static int shoc_clk_verify_rate(struct clk *clk, unsigned long rate) in shoc_clk_verify_rate()
112 static int shoc_clk_set_rate(struct clk *clk, unsigned long rate) in shoc_clk_set_rate()
159 struct clk *clk; in arch_clk_init() local
Dclock-sh4.c29 static void master_clk_init(struct clk *clk) in master_clk_init()
38 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
48 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
58 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
/linux-4.1.27/arch/m68k/include/asm/
Dmcfclk.h16 struct clk { struct
18 struct clk_ops *clk_ops; argument
24 extern struct clk *mcf_clks[]; argument
/linux-4.1.27/kernel/time/
Dposix-clock.c35 struct posix_clock *clk = fp->private_data; in get_posix_clock() local
47 static void put_posix_clock(struct posix_clock *clk) in put_posix_clock()
55 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_read() local
71 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_poll() local
87 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_fasync() local
103 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_mmap() local
120 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_ioctl() local
138 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_compat_ioctl() local
156 struct posix_clock *clk = in posix_clock_open() local
181 struct posix_clock *clk = fp->private_data; in posix_clock_release() local
[all …]
/linux-4.1.27/arch/mips/loongson/lemote-2f/
Dclock.c56 static void propagate_rate(struct clk *clk) in propagate_rate()
70 int clk_enable(struct clk *clk) in clk_enable()
76 void clk_disable(struct clk *clk) in clk_disable()
81 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
87 void clk_put(struct clk *clk) in clk_put()
92 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
126 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
/linux-4.1.27/arch/arm/mach-w90x900/
Dclock.c32 int clk_enable(struct clk *clk) in clk_enable()
45 void clk_disable(struct clk *clk) in clk_disable()
58 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
64 void nuc900_clk_enable(struct clk *clk, int enable) in nuc900_clk_enable()
79 void nuc900_subclk_enable(struct clk *clk, int enable) in nuc900_subclk_enable()
Dclock.h18 struct clk { struct
21 void (*enable)(struct clk *, int enable); argument
Dtime.c52 struct clock_event_device *clk) in nuc900_clockevent_setmode()
79 struct clock_event_device *clk) in nuc900_clockevent_setnextevent()
121 struct clk *clk = clk_get(NULL, "timer0"); in nuc900_clockevents_init() local
145 struct clk *clk = clk_get(NULL, "timer1"); in nuc900_clocksource_init() local
/linux-4.1.27/arch/blackfin/mach-bf609/
Dclock.c89 int clk_enable(struct clk *clk) in clk_enable()
98 void clk_disable(struct clk *clk) in clk_disable()
106 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
115 long clk_round_rate(struct clk *clk, unsigned long rate) in clk_round_rate()
124 int clk_set_rate(struct clk *clk, unsigned long rate) in clk_set_rate()
133 unsigned long vco_get_rate(struct clk *clk) in vco_get_rate()
138 unsigned long pll_get_rate(struct clk *clk) in pll_get_rate()
152 unsigned long pll_round_rate(struct clk *clk, unsigned long rate) in pll_round_rate()
159 int pll_set_rate(struct clk *clk, unsigned long rate) in pll_set_rate()
176 unsigned long cclk_get_rate(struct clk *clk) in cclk_get_rate()
[all …]
/linux-4.1.27/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()
Dclk-apmu.c21 #define to_clk_apmu(clk) (container_of(clk, struct clk_apmu, clk)) argument
73 struct clk *clk; in mmp_clk_register_apmu() local
Dclk-gate.c30 struct clk *clk = hw->clk; in mmp_clk_gate_enable() local
102 struct clk *clk; in mmp_clk_register_gate() local
/linux-4.1.27/arch/sh/kernel/cpu/sh4a/
Dclock-sh7780.c25 static void master_clk_init(struct clk *clk) in master_clk_init()
34 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
44 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
54 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
77 static unsigned long shyway_clk_recalc(struct clk *clk) in shyway_clk_recalc()
107 struct clk *clk; in arch_clk_init() local
Dclock-sh7763.c25 static void master_clk_init(struct clk *clk) in master_clk_init()
34 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
44 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
71 static unsigned long shyway_clk_recalc(struct clk *clk) in shyway_clk_recalc()
101 struct clk *clk; in arch_clk_init() local
Dclock-sh7770.c22 static void master_clk_init(struct clk *clk) in master_clk_init()
31 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
41 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
51 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7724.c59 static unsigned long fll_recalc(struct clk *clk) in fll_recalc()
83 static unsigned long pll_recalc(struct clk *clk) in pll_recalc()
103 static unsigned long div3_recalc(struct clk *clk) in div3_recalc()
138 static void div4_kick(struct clk *clk) in div4_kick()
/linux-4.1.27/arch/mips/lantiq/xway/
Dsysctrl.c109 static int cgu_enable(struct clk *clk) in cgu_enable()
116 static void cgu_disable(struct clk *clk) in cgu_disable()
122 static int pmu_enable(struct clk *clk) in pmu_enable()
137 static void pmu_disable(struct clk *clk) in pmu_disable()
144 static int pci_enable(struct clk *clk) in pci_enable()
168 static int pci_ext_enable(struct clk *clk) in pci_ext_enable()
176 static void pci_ext_disable(struct clk *clk) in pci_ext_disable()
183 static int clkout_enable(struct clk *clk) in clkout_enable()
208 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_pmu() local
224 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_cgu() local
[all …]
Dclk.c58 unsigned long clk; in ltq_danube_pp32_hz() local
105 unsigned long clk; in ltq_vr9_cpu_hz() local
145 unsigned long clk; in ltq_vr9_fpi_hz() local
178 unsigned long clk; in ltq_vr9_pp32_hz() local
Dgptu.c96 static int gptu_enable(struct clk *clk) in gptu_enable()
113 static void gptu_disable(struct clk *clk) in gptu_disable()
125 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_gptu() local
138 struct clk *clk; in gptu_probe() local
/linux-4.1.27/drivers/clk/hisilicon/
Dclk.c84 struct clk *clk; in hisi_clk_register_fixed_rate() local
105 struct clk *clk; in hisi_clk_register_fixed_factor() local
125 struct clk *clk; in hisi_clk_register_mux() local
154 struct clk *clk; in hisi_clk_register_divider() local
183 struct clk *clk; in hisi_clk_register_gate() local
211 struct clk *clk; in hisi_clk_register_gate_sep() local
Dclk-hix5hd2.c174 struct hix5hd2_clk_complex *clk = to_complex_clk(hw); in clk_ether_prepare() local
203 struct hix5hd2_clk_complex *clk = to_complex_clk(hw); in clk_ether_unprepare() local
218 struct hix5hd2_clk_complex *clk = to_complex_clk(hw); in clk_complex_enable() local
236 struct hix5hd2_clk_complex *clk = to_complex_clk(hw); in clk_complex_disable() local
263 struct clk *clk; in hix5hd2_clk_register_complex() local
/linux-4.1.27/arch/sh/kernel/cpu/sh3/
Dclock-sh7710.c27 static void master_clk_init(struct clk *clk) in master_clk_init()
36 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
46 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
56 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7705.c33 static void master_clk_init(struct clk *clk) in master_clk_init()
42 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
52 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
62 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7706.c25 static void master_clk_init(struct clk *clk) in master_clk_init()
37 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
49 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
61 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7709.c25 static void master_clk_init(struct clk *clk) in master_clk_init()
37 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
49 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
62 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh3.c29 static void master_clk_init(struct clk *clk) in master_clk_init()
41 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
53 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
65 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7712.c24 static void master_clk_init(struct clk *clk) in master_clk_init()
36 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
48 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
/linux-4.1.27/arch/sh/kernel/cpu/sh2a/
Dclock-sh7206.c27 static void master_clk_init(struct clk *clk) in master_clk_init()
36 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
46 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
55 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7201.c27 static void master_clk_init(struct clk *clk) in master_clk_init()
37 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
47 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
57 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
Dclock-sh7203.c30 static void master_clk_init(struct clk *clk) in master_clk_init()
39 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
49 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
Dclock-sh7269.c41 static unsigned long pll_recalc(struct clk *clk) in pll_recalc()
56 static unsigned long peripheral0_recalc(struct clk *clk) in peripheral0_recalc()
71 static unsigned long peripheral1_recalc(struct clk *clk) in peripheral1_recalc()
/linux-4.1.27/drivers/clk/pistachio/
Dclk.c63 struct clk *clk; in pistachio_clk_register_gate() local
79 struct clk *clk; in pistachio_clk_register_mux() local
97 struct clk *clk; in pistachio_clk_register_div() local
113 struct clk *clk; in pistachio_clk_register_fixed_factor() local
130 struct clk *clk = p->clk_data.clks[clk_ids[i]]; in pistachio_clk_force_enable() local
/linux-4.1.27/arch/sh/kernel/cpu/sh5/
Dclock-sh5.c25 static void master_clk_init(struct clk *clk) in master_clk_init()
35 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
45 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
55 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc()
/linux-4.1.27/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_set_mode()
201 struct clock_event_device *clk) in arch_timer_set_mode_virt()
207 struct clock_event_device *clk) in arch_timer_set_mode_phys()
213 struct clock_event_device *clk) in arch_timer_set_mode_virt_mem()
219 struct clock_event_device *clk) in arch_timer_set_mode_phys_mem()
225 struct clock_event_device *clk) in set_next_event()
236 struct clock_event_device *clk) in arch_timer_set_next_event_virt()
243 struct clock_event_device *clk) in arch_timer_set_next_event_phys()
[all …]
Darm_global_timer.c111 struct clock_event_device *clk) in gt_clockevent_set_mode()
167 static int gt_clockevents_init(struct clock_event_device *clk) in gt_clockevents_init()
185 static void gt_clockevents_stop(struct clock_event_device *clk) in gt_clockevents_stop()
Dtimer-sun5i.c42 struct clk *clk; member
183 struct clk *clk, int irq) in sun5i_setup_clocksource()
255 struct clk *clk, int irq) in sun5i_setup_clockevent()
323 struct clk *clk; in sun5i_timer_init() local
Dtime-armada-370-xp.c317 struct clk *clk = of_clk_get_by_name(np, "fixed"); in armada_xp_timer_init() local
331 struct clk *clk; in armada_375_timer_init() local
359 struct clk *clk = of_clk_get(np, 0); in armada_370_timer_init() local
Dmtk_timer.c106 struct clock_event_device *clk) in mtk_clkevt_mode()
129 struct clock_event_device *clk) in mtk_clkevt_next_event()
188 struct clk *clk; in mtk_timer_init() local
Dmoxart_timer.c62 struct clock_event_device *clk) in moxart_clkevt_mode()
123 struct clk *clk; in moxart_timer_init() local
Dsun4i_timer.c85 struct clock_event_device *clk) in sun4i_clkevt_mode()
149 struct clk *clk; in sun4i_timer_init() local
Dpxa_timer.c185 struct clk *clk; in pxa_timer_dt_init() local
217 struct clk *clk; in pxa_timer_nodt_init() local
/linux-4.1.27/arch/sh/kernel/
Dlocaltimer.c35 struct clock_event_device *clk = this_cpu_ptr(&local_clockevent); in local_timer_interrupt() local
43 struct clock_event_device *clk) in dummy_timer_set_mode()
49 struct clock_event_device *clk = &per_cpu(local_clockevent, cpu); in local_timer_setup() local
/linux-4.1.27/drivers/clk/samsung/
Dclk.c92 void samsung_clk_add_lookup(struct samsung_clk_provider *ctx, struct clk *clk, in samsung_clk_add_lookup()
104 struct clk *clk; in samsung_clk_register_alias() local
137 struct clk *clk; in samsung_clk_register_fixed_rate() local
166 struct clk *clk; in samsung_clk_register_fixed_factor() local
187 struct clk *clk; in samsung_clk_register_mux() local
219 struct clk *clk; in samsung_clk_register_div() local
258 struct clk *clk; in samsung_clk_register_gate() local
308 struct clk *clk; in _get_rate() local
/linux-4.1.27/arch/mips/lantiq/falcon/
Dsysctrl.c82 static inline void sysctl_wait(struct clk *clk, in sysctl_wait()
95 static int sysctl_activate(struct clk *clk) in sysctl_activate()
103 static void sysctl_deactivate(struct clk *clk) in sysctl_deactivate()
110 static int sysctl_clken(struct clk *clk) in sysctl_clken()
118 static void sysctl_clkdis(struct clk *clk) in sysctl_clkdis()
124 static void sysctl_reboot(struct clk *clk) in sysctl_reboot()
170 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_sys() local
/linux-4.1.27/drivers/clk/rockchip/
Dclk.c49 struct clk *clk; in rockchip_clk_register_branch() local
111 struct clk *clk; in rockchip_clk_register_frac_branch() local
183 void rockchip_clk_add_lookup(struct clk *clk, unsigned int id) in rockchip_clk_add_lookup()
192 struct clk *clk; in rockchip_clk_register_plls() local
216 struct clk *clk = NULL; in rockchip_clk_register_branches() local
306 struct clk *clk; in rockchip_clk_register_armclk() local
327 struct clk *clk = __clk_lookup(clocks[i]); in rockchip_clk_protect_critical() local
/linux-4.1.27/arch/sh/kernel/cpu/sh2/
Dclock-sh7619.c26 static void master_clk_init(struct clk *clk) in master_clk_init()
35 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc()
45 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc()
/linux-4.1.27/arch/mips/ath79/
Dclock.c31 struct clk { struct
37 struct clk *clk; in ath79_add_sys_clkdev() argument
459 struct clk *clk; in ath79_get_sys_clk_rate() local
475 int clk_enable(struct clk *clk) in clk_enable()
481 void clk_disable(struct clk *clk) in clk_disable()
486 unsigned long clk_get_rate(struct clk *clk) in clk_get_rate()
/linux-4.1.27/drivers/clk/zynq/
Dpll.c86 struct zynq_pll *clk = to_zynq_pll(hw); in zynq_pll_recalc_rate() local
111 struct zynq_pll *clk = to_zynq_pll(hw); in zynq_pll_is_enabled() local
131 struct zynq_pll *clk = to_zynq_pll(hw); in zynq_pll_enable() local
161 struct zynq_pll *clk = to_zynq_pll(hw); in zynq_pll_disable() local
201 struct clk *clk; in clk_register_zynq_pll() local
/linux-4.1.27/arch/arm/mach-shmobile/
Dclock-sh73a0.c94 static unsigned long pll_recalc(struct clk *clk) in pll_recalc()
201 static void div4_kick(struct clk *clk) in div4_kick()
242 static unsigned long twd_recalc(struct clk *clk) in twd_recalc()
259 static int zclk_set_rate(struct clk *clk, unsigned long rate) in zclk_set_rate()
298 static long zclk_round_rate(struct clk *clk, unsigned long rate) in zclk_round_rate()
309 static unsigned long zclk_recalc(struct clk *clk) in zclk_recalc()
323 static int kicker_set_rate(struct clk *clk, unsigned long rate) in kicker_set_rate()
440 static unsigned long dsiphy_recalc(struct clk *clk) in dsiphy_recalc()
462 static long dsiphy_round_rate(struct clk *clk, unsigned long rate) in dsiphy_round_rate()
467 static void dsiphy_disable(struct clk *clk) in dsiphy_disable()
[all …]
Dclock-r8a7740.c123 static unsigned long pllc01_recalc(struct clk *clk) in pllc01_recalc()
176 static int usb24s_enable(struct clk *clk) in usb24s_enable()
183 static void usb24s_disable(struct clk *clk) in usb24s_disable()
188 static int usb24s_set_parent(struct clk *clk, struct clk *parent) in usb24s_set_parent()
230 static unsigned long usb24_recalc(struct clk *clk) in usb24_recalc()
236 static int usb24_set_rate(struct clk *clk, unsigned long rate) in usb24_set_rate()
288 static void div4_kick(struct clk *clk) in div4_kick()
387 static unsigned long hdmi12_recalc(struct clk *clk) in hdmi12_recalc()
398 static int hdmi12_set_rate(struct clk *clk, unsigned long rate) in hdmi12_set_rate()
Dclock.c27 unsigned long shmobile_fixed_ratio_clk_recalc(struct clk *clk) in shmobile_fixed_ratio_clk_recalc()
/linux-4.1.27/drivers/clk/sunxi/
Dclk-sun6i-ar100.c39 struct ar100_clk *clk = to_ar100_clk(hw); in ar100_recalc_rate() local
116 struct ar100_clk *clk = to_ar100_clk(hw); in ar100_set_parent() local
131 struct ar100_clk *clk = to_ar100_clk(hw); in ar100_get_parent() local
140 struct ar100_clk *clk = to_ar100_clk(hw); in ar100_set_rate() local
181 struct clk *clk; in sun6i_a31_ar100_clk_probe() local
Dclk-a10-hosc.c28 struct clk *clk; in sun4i_osc_clk_setup() local
/linux-4.1.27/arch/arm/include/asm/
Dclkdev.h21 #define __clk_get(clk) ({ 1; }) argument
22 #define __clk_put(clk) do { } while (0) argument
/linux-4.1.27/include/asm-generic/
Dclkdev.h21 static inline int __clk_get(struct clk *clk) { return 1; } in __clk_get()
22 static inline void __clk_put(struct clk *clk) { } in __clk_put()
/linux-4.1.27/arch/sh/include/asm/
Dclkdev.h29 #define __clk_put(clk) argument
30 #define __clk_get(clk) ({ 1; }) argument
/linux-4.1.27/arch/arm/common/
Dtimer-sp.c36 static long __init sp804_get_clock_rate(struct clk *clk) in sp804_get_clock_rate()
76 struct clk *clk, in __sp804_clocksource_and_sched_clock_init()
183 void __init __sp804_clockevents_init(void __iomem *base, unsigned int irq, struct clk *clk, const c… in __sp804_clockevents_init()
274 struct clk *clk; in integrator_cp_of_init() local
/linux-4.1.27/drivers/clk/at91/
Dclk-slow.c129 struct clk *clk = NULL; in at91_clk_register_slow_osc() local
163 struct clk *clk; in of_at91sam9x5_clk_slow_osc_setup() local
241 struct clk *clk = NULL; in at91_clk_register_slow_rc_osc() local
273 struct clk *clk; in of_at91sam9x5_clk_slow_rc_osc_setup() local
338 struct clk *clk = NULL; in at91_clk_register_sam9x5_slow() local
370 struct clk *clk; in of_at91sam9x5_clk_slow_setup() local
414 struct clk *clk = NULL; in at91_clk_register_sam9260_slow() local
448 struct clk *clk; in of_at91sam9260_clk_slow_setup() local
Dclk-main.c150 struct clk *clk = NULL; in at91_clk_register_main_osc() local
195 struct clk *clk; in of_at91rm9200_clk_main_osc_setup() local
302 struct clk *clk = NULL; in at91_clk_register_main_rc_osc() local
343 struct clk *clk; in of_at91sam9x5_clk_main_rc_osc_setup() local
433 struct clk *clk = NULL; in at91_clk_register_rm9200_main() local
465 struct clk *clk; in of_at91rm9200_clk_main_setup() local
567 struct clk *clk = NULL; in at91_clk_register_sam9x5_main() local
610 struct clk *clk; in of_at91sam9x5_clk_main_setup() local
Dclk-usb.c204 struct clk *clk = NULL; in at91sam9x5_clk_register_usb() local
233 struct clk *clk = NULL; in at91sam9n12_clk_register_usb() local
348 struct clk *clk = NULL; in at91rm9200_clk_register_usb() local
375 struct clk *clk; in of_at91sam9x5_clk_usb_setup() local
403 struct clk *clk; in of_at91sam9n12_clk_usb_setup() local
423 struct clk *clk; in of_at91rm9200_clk_usb_setup() local
Dclk-plldiv.c87 struct clk *clk = NULL; in at91_clk_register_plldiv() local
114 struct clk *clk; in of_at91_clk_plldiv_setup() local
Dclk-utmi.c101 struct clk *clk = NULL; in at91_clk_register_utmi() local
135 struct clk *clk; in of_at91_clk_utmi_setup() local
Dclk-smd.c121 struct clk *clk = NULL; in at91sam9x5_clk_register_smd() local
147 struct clk *clk; in of_at91sam9x5_clk_smd_setup() local
/linux-4.1.27/drivers/base/power/
Dclock_ops.c31 struct clk *clk; member
73 struct clk *clk) in __pm_clk_add()
130 int pm_clk_add_clk(struct device *dev, struct clk *clk) in pm_clk_add_clk()
377 struct clk *clk; in enable_clock() local
394 struct clk *clk; in disable_clock() local
/linux-4.1.27/arch/mips/loongson/common/
Dserial.c22 #define PORT(int, clk) \ argument
31 #define PORT_M(int, clk) \ argument
/linux-4.1.27/arch/sh/boards/mach-sdk7786/
Dsetup.c167 static int sdk7786_pcie_clk_enable(struct clk *clk) in sdk7786_pcie_clk_enable()
173 static void sdk7786_pcie_clk_disable(struct clk *clk) in sdk7786_pcie_clk_disable()
194 struct clk *clk; in sdk7786_clk_init() local
/linux-4.1.27/drivers/usb/host/
Dohci-st.c52 int clk, ret; in st_ohci_platform_power_on() local
104 int clk; in st_ohci_platform_power_off() local
139 int err, irq, clk = 0; in st_ohci_platform_probe() local
248 int clk; in st_ohci_platform_remove() local
Dohci-platform.c51 int clk, ret, phy_num; in ohci_platform_power_on() local
92 int clk, phy_num; in ohci_platform_power_off() local
127 int err, irq, phy_num, clk = 0; in ohci_platform_probe() local
308 int clk; in ohci_platform_remove() local
Dehci-platform.c82 int clk, ret, phy_num; in ehci_platform_power_on() local
123 int clk, phy_num; in ehci_platform_power_off() local
158 int err, irq, phy_num, clk = 0; in ehci_platform_probe() local
332 int clk; in ehci_platform_remove() local
Dehci-st.c76 int clk, ret; in st_ehci_platform_power_on() local
127 int clk; in st_ehci_platform_power_off() local
163 int err, irq, clk = 0; in st_ehci_platform_probe() local
271 int clk; in st_ehci_platform_remove() local
Dxhci-plat.c74 struct clk *clk; in xhci_plat_probe() local
200 struct clk *clk = xhci->clk; in xhci_plat_remove() local
/linux-4.1.27/drivers/gpu/drm/armada/
Darmada_510.c20 struct clk *clk; in armada510_crtc_init() local
47 struct clk *clk = dcrtc->extclk[0]; in armada510_crtc_compute_clock() local
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dctrl.c39 struct nvkm_clk *clk = nvkm_clk(object); in nvkm_control_mthd_pstate_info() local
72 struct nvkm_clk *clk = nvkm_clk(object); in nvkm_control_mthd_pstate_attr() local
145 struct nvkm_clk *clk = nvkm_clk(object); in nvkm_control_mthd_pstate_user() local
/linux-4.1.27/arch/s390/include/asm/
Dtimex.h75 static inline void get_tod_clock_ext(char *clk) in get_tod_clock_ext()
84 unsigned char clk[STORE_CLOCK_EXT_SIZE]; in get_tod_clock() local
93 unsigned long long clk; in get_tod_clock_fast() local
/linux-4.1.27/arch/arm/mach-imx/
Dclk.c23 struct clk *clk = ERR_PTR(-ENODEV); in imx_obtain_fixed_clock_from_dt() local
43 struct clk *clk; in imx_obtain_fixed_clock() local
Dclk-pllv1.c31 #define to_clk_pllv1(clk) (container_of(clk, struct clk_pllv1, clk)) argument
104 struct clk *clk; in imx_clk_pllv1() local
/linux-4.1.27/drivers/clk/sirf/
Dclk-common.c76 struct clk_pll *clk = to_pllclk(hw); in pll_clk_recalc_rate() local
128 struct clk_pll *clk = to_pllclk(hw); in pll_clk_set_rate() local
253 static void usb_pll_clk_disable(struct clk_hw *clk) in usb_pll_clk_disable()
297 struct clk_dmn *clk = to_dmnclk(hw); in dmn_clk_get_parent() local
311 struct clk_dmn *clk = to_dmnclk(hw); in dmn_clk_set_parent() local
332 struct clk_dmn *clk = to_dmnclk(hw); in dmn_clk_recalc_rate() local
374 struct clk_dmn *clk = to_dmnclk(hw); in dmn_clk_set_rate() local
634 struct clk_std *clk = to_stdclk(hw); in std_clk_is_enabled() local
647 struct clk_std *clk = to_stdclk(hw); in std_clk_enable() local
664 struct clk_std *clk = to_stdclk(hw); in std_clk_disable() local
/linux-4.1.27/arch/arm/mach-netx/
Dtime.c38 struct clock_event_device *clk) in netx_set_mode()
74 struct clock_event_device *clk) in netx_set_next_event()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c53 struct nvkm_clk *clk = nvkm_clk(priv); in gk20a_pmu_dvfs_target() local
61 struct nvkm_clk *clk = nvkm_clk(priv); in gk20a_pmu_dvfs_get_cur_state() local
72 struct nvkm_clk *clk = nvkm_clk(priv); in gk20a_pmu_dvfs_get_target_state() local
120 struct nvkm_clk *clk = nvkm_clk(priv); in gk20a_pmu_dvfs_work() local
/linux-4.1.27/drivers/clk/tegra/
Dclk-tegra-fixed.c38 struct clk *clk, *osc; in tegra_osc_clk_init() local
86 struct clk *clk; in tegra_fixed_clk_init() local
Dclk-tegra-super-gen4.c56 struct clk *clk; in tegra_sclk_init() local
102 struct clk *clk; in tegra_super_clk_gen4_init() local
/linux-4.1.27/arch/sh/boards/mach-highlander/
Dsetup.c314 static int ivdr_clk_enable(struct clk *clk) in ivdr_clk_enable()
320 static void ivdr_clk_disable(struct clk *clk) in ivdr_clk_disable()
373 struct clk *clk = r7780rp_clocks[i]; in highlander_setup() local
/linux-4.1.27/drivers/clk/keystone/
Dpll.c132 struct clk *clk; in clk_register_pll() local
167 struct clk *clk; in _of_pll_clk_init() local
258 struct clk *clk; in of_pll_div_clk_init() local
301 struct clk *clk; in of_pll_mux_clk_init() local
/linux-4.1.27/sound/soc/pxa/
Draumfeld.c44 static void set_max9485_clk(char clk) in set_max9485_clk()
91 unsigned int clk = 0; in raumfeld_cs4270_hw_params() local
160 int ret = 0, clk = 0; in raumfeld_ak4104_hw_params() local
/linux-4.1.27/drivers/clk/shmobile/
Dclk-emev2.c74 struct clk *clk; in emev2_smu_clkdiv_init() local
92 struct clk *clk; in emev2_smu_gclk_init() local
Dclk-rcar-gen2.c143 struct clk *clk; in cpg_z_clk_register() local
172 struct clk *clk; in cpg_rcan_clk_register() local
215 struct clk *clk; in cpg_adsp_clk_register() local
404 struct clk *clk; in rcar_gen2_cpg_clocks_init() local
/linux-4.1.27/drivers/clk/st/
Dclkgen-pll.c399 struct clk *clk; in clkgen_pll_register() local
434 struct clk *clk; in clkgen_c65_lsdiv_register() local
553 struct clk *clk; in clkgen_odf_register() local
643 struct clk *clk; in clkgen_c32_pll_setup() local
686 struct clk *clk; in clkgen_c32_pll_setup() local
726 struct clk *clk; in clkgengpu_c32_pll_setup() local
Dclkgen-mux.c230 struct clk *clk; in clk_register_genamux() local
423 struct clk *clk; in st_of_clkgena_divmux_setup() local
493 struct clk *clk; in st_of_clkgena_prediv_setup() local
628 struct clk *clk; in st_of_clkgen_mux_setup() local
736 struct clk *clk; in st_of_clkgen_vcc_setup() local
/linux-4.1.27/arch/arm/plat-orion/
Dcommon.c29 struct clk *clk) in orion_clkdev_add()
80 static unsigned long __init uart_get_clk_rate(struct clk *clk) in uart_get_clk_rate()
93 struct clk *clk) in uart_complete()
127 struct clk *clk) in orion_uart0_init()
155 struct clk *clk) in orion_uart1_init()
183 struct clk *clk) in orion_uart2_init()
211 struct clk *clk) in orion_uart3_init()
/linux-4.1.27/arch/arm/kernel/
Dsmp_twd.c40 struct clock_event_device *clk) in twd_set_mode()
95 struct clock_event_device *clk = raw_cpu_ptr(twd_evt); in twd_timer_stop() local
272 struct clock_event_device *clk = raw_cpu_ptr(twd_evt); in twd_timer_setup() local
/linux-4.1.27/drivers/usb/musb/
Djz4740.c29 struct clk *clk; member
120 struct clk *clk; in jz4740_probe() local
/linux-4.1.27/drivers/mtd/nand/
Dorion_nand.c83 struct clk *clk; in orion_nand_probe() local
186 struct clk *clk; in orion_nand_remove() local
/linux-4.1.27/drivers/acpi/
Dacpi_apd.c50 struct clk *clk; member
61 struct clk *clk = ERR_PTR(-ENODEV); in acpi_apd_setup() local
/linux-4.1.27/sound/soc/sh/rcar/
Dadg.c20 struct clk *clk[CLKMAX]; member
304 struct clk *clk; in rsnd_adg_ssi_clk_try_start() local
364 struct clk *clk; in rsnd_adg_ssi_clk_init() local
416 struct clk *clk; in rsnd_adg_probe() local
/linux-4.1.27/drivers/clk/pxa/
Dclk-pxa.c72 const char *dev_id, struct clk *clk) in clkdev_pxa_register()
84 struct clk *clk; in clk_pxa_cken_init() local
/linux-4.1.27/drivers/char/hw_random/
Dbcm63xx-rng.c28 struct clk *clk; member
82 struct clk *clk; in bcm63xx_rng_probe() local
/linux-4.1.27/drivers/cpufreq/
Dls1x-cpufreq.c25 struct clk *clk; /* CPU clk */ member
142 struct clk *clk; in ls1x_cpufreq_probe() local
/linux-4.1.27/drivers/clk/spear/
Dspear3xx_clock.c143 struct clk *clk; in spear300_clk_init() local
173 struct clk *clk; in spear310_clk_init() local
251 struct clk *clk; in spear320_clk_init() local
392 struct clk *clk, *clk1, *ras_apb_clk; in spear3xx_clk_init() local
/linux-4.1.27/drivers/pcmcia/
Dsa11xx_base.c138 unsigned long clk = clk_get_rate(skt->clk); in sa1100_pcmcia_set_timing() local
223 struct clk *clk; in sa11xx_drv_pcmcia_probe() local
/linux-4.1.27/arch/powerpc/sysdev/qe_lib/
Dusb.c23 int qe_usb_clock_set(enum qe_clock clk, int rate) in qe_usb_clock_set()
/linux-4.1.27/include/linux/platform_data/
Dclk-lpss.h18 struct clk *clk; member
/linux-4.1.27/drivers/clk/x86/
Dclk-lpt.c24 struct clk *clk; in lpt_clk_probe() local
/linux-4.1.27/drivers/clk/versatile/
Dclk-realview.c53 struct clk *clk; in realview_clk_init() local
/linux-4.1.27/arch/mips/pistachio/
Dtime.c34 struct clk *clk; in plat_time_init() local
/linux-4.1.27/drivers/mmc/host/
Dsdhci-s3c.c187 struct clk *clk = ourhost->clk_bus[best_src]; in sdhci_s3c_set_clock() local
261 struct clk *clk; in sdhci_cmu_get_max_clock() local
283 struct clk *clk; in sdhci_cmu_get_min_clock() local
303 u16 clk = 0; in sdhci_cmu_set_clock() local
/linux-4.1.27/arch/microblaze/kernel/cpu/
Dcpuinfo.c116 struct clk *clk; in setup_cpuinfo_clk() local
/linux-4.1.27/drivers/tty/serial/
Dof_serial.c27 struct clk *clk; member
63 u32 clk, spd, prop; in of_platform_serial_setup() local

123456