Home
last modified time | relevance | path

Searched refs:hwclk (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/drivers/clk/
Dclk-highbank.c44 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare() argument
46 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare()
61 static void clk_pll_unprepare(struct clk_hw *hwclk) in clk_pll_unprepare() argument
63 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare()
71 static int clk_pll_enable(struct clk_hw *hwclk) in clk_pll_enable() argument
73 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable()
83 static void clk_pll_disable(struct clk_hw *hwclk) in clk_pll_disable() argument
85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable()
93 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
96 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate()
[all …]
/Linux-v5.4/drivers/clk/socfpga/
Dclk-pll-s10.c30 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
33 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
52 static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk, in clk_boot_clk_recalc_rate() argument
55 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_clk_recalc_rate()
66 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
68 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
76 static u8 clk_boot_get_parent(struct clk_hw *hwclk) in clk_boot_get_parent() argument
78 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_get_parent()
86 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare() argument
88 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_prepare()
Dclk-gate-s10.c14 static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_gate_clk_recalc_rate() argument
17 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate()
30 static unsigned long socfpga_dbg_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_dbg_clk_recalc_rate() argument
33 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_dbg_clk_recalc_rate()
44 static u8 socfpga_gate_get_parent(struct clk_hw *hwclk) in socfpga_gate_get_parent() argument
46 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_get_parent()
Dclk-gate.c29 static u8 socfpga_clk_get_parent(struct clk_hw *hwclk) in socfpga_clk_get_parent() argument
33 const char *name = clk_hw_get_name(hwclk); in socfpga_clk_get_parent()
56 static int socfpga_clk_set_parent(struct clk_hw *hwclk, u8 parent) in socfpga_clk_set_parent() argument
59 const char *name = clk_hw_get_name(hwclk); in socfpga_clk_set_parent()
90 static unsigned long socfpga_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_clk_recalc_rate() argument
93 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_recalc_rate()
111 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare() argument
113 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_prepare()
Dclk-periph-s10.c18 static unsigned long clk_peri_c_clk_recalc_rate(struct clk_hw *hwclk, in clk_peri_c_clk_recalc_rate() argument
21 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_c_clk_recalc_rate()
32 static unsigned long clk_peri_cnt_clk_recalc_rate(struct clk_hw *hwclk, in clk_peri_cnt_clk_recalc_rate() argument
35 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_cnt_clk_recalc_rate()
48 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
50 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_periclk_get_parent()
Dclk-periph-a10.c20 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate() argument
23 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate()
39 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
41 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_get_parent()
43 const char *name = clk_hw_get_name(hwclk); in clk_periclk_get_parent()
Dclk-pll.c38 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
41 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
58 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
61 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
Dclk-pll-a10.c34 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
37 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
50 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
52 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
Dclk-gate-a10.c21 static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_gate_clk_recalc_rate() argument
24 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate()
38 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare() argument
40 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_prepare()
Dclk-periph.c17 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate() argument
20 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate()
37 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
/Linux-v5.4/drivers/clk/mvebu/
Dclk-cpu.c48 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate() argument
51 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
59 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate() argument
74 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate() argument
78 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
108 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate() argument
113 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
122 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate()
151 static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_set_rate() argument
154 if (__clk_is_enabled(hwclk->clk)) in clk_cpu_set_rate()
[all …]
Dclk-corediv.c79 static int clk_corediv_is_enabled(struct clk_hw *hwclk) in clk_corediv_is_enabled() argument
81 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_is_enabled()
89 static int clk_corediv_enable(struct clk_hw *hwclk) in clk_corediv_enable() argument
91 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_enable()
108 static void clk_corediv_disable(struct clk_hw *hwclk) in clk_corediv_disable() argument
110 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_disable()
125 static unsigned long clk_corediv_recalc_rate(struct clk_hw *hwclk, in clk_corediv_recalc_rate() argument
128 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_recalc_rate()
138 static long clk_corediv_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_round_rate() argument
153 static int clk_corediv_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_set_rate() argument
[all …]
/Linux-v5.4/drivers/cpufreq/
Dqoriq-cpufreq.c166 const struct clk_hw *hwclk; in qoriq_cpufreq_cpu_init() local
186 hwclk = __clk_get_hw(policy->clk); in qoriq_cpufreq_cpu_init()
187 count = clk_hw_get_num_parents(hwclk); in qoriq_cpufreq_cpu_init()
198 clk = clk_hw_get_parent_by_index(hwclk, i)->clk; in qoriq_cpufreq_cpu_init()
/Linux-v5.4/arch/arm/mach-omap2/
Dpdata-quirks.c476 struct clk_hw_omap *hwclk; in ti_sysc_find_one_clockdomain() local
478 hwclk = to_clk_hw_omap(__clk_get_hw(clk)); in ti_sysc_find_one_clockdomain()
479 if (hwclk && hwclk->clkdm_name) in ti_sysc_find_one_clockdomain()
480 clkdm = clkdm_lookup(hwclk->clkdm_name); in ti_sysc_find_one_clockdomain()