Home
last modified time | relevance | path

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

/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 …]
/drivers/clk/socfpga/
Dclk-pll-s10.c40 static unsigned long n5x_clk_pll_recalc_rate(struct clk_hw *hwclk, in n5x_clk_pll_recalc_rate() argument
43 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in n5x_clk_pll_recalc_rate()
61 static unsigned long agilex_clk_pll_recalc_rate(struct clk_hw *hwclk, in agilex_clk_pll_recalc_rate() argument
64 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in agilex_clk_pll_recalc_rate()
82 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
85 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
106 static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk, in clk_boot_clk_recalc_rate() argument
109 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_clk_recalc_rate()
120 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
122 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
[all …]
Dclk-gate-s10.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()
37 static unsigned long socfpga_dbg_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_dbg_clk_recalc_rate() argument
40 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_dbg_clk_recalc_rate()
51 static u8 socfpga_gate_get_parent(struct clk_hw *hwclk) in socfpga_gate_get_parent() argument
53 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_get_parent()
56 const char *name = clk_hw_get_name(hwclk); in socfpga_gate_get_parent()
81 static u8 socfpga_agilex_gate_get_parent(struct clk_hw *hwclk) in socfpga_agilex_gate_get_parent() argument
83 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_agilex_gate_get_parent()
86 const char *name = clk_hw_get_name(hwclk); in socfpga_agilex_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 n5x_clk_peri_c_clk_recalc_rate(struct clk_hw *hwclk, in n5x_clk_peri_c_clk_recalc_rate() argument
21 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in n5x_clk_peri_c_clk_recalc_rate()
33 static unsigned long clk_peri_c_clk_recalc_rate(struct clk_hw *hwclk, in clk_peri_c_clk_recalc_rate() argument
36 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_c_clk_recalc_rate()
47 static unsigned long clk_peri_cnt_clk_recalc_rate(struct clk_hw *hwclk, in clk_peri_cnt_clk_recalc_rate() argument
50 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_cnt_clk_recalc_rate()
63 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
65 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-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-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-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
/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 …]
/drivers/cpufreq/
Dqoriq-cpufreq.c161 const struct clk_hw *hwclk; in qoriq_cpufreq_cpu_init() local
181 hwclk = __clk_get_hw(policy->clk); in qoriq_cpufreq_cpu_init()
182 count = clk_hw_get_num_parents(hwclk); in qoriq_cpufreq_cpu_init()
193 clk = clk_hw_get_parent_by_index(hwclk, i)->clk; in qoriq_cpufreq_cpu_init()
/drivers/clk/ti/
Dclkctrl.c744 struct clk_hw_omap *hwclk; in ti_clk_is_in_standby() local
752 hwclk = to_clk_hw_omap(hw); in ti_clk_is_in_standby()
754 val = ti_clk_ll_ops->clk_readl(&hwclk->enable_reg); in ti_clk_is_in_standby()