Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/clk/socfpga/
Dclk-pll-s10.c34 static unsigned long agilex_clk_pll_recalc_rate(struct clk_hw *hwclk, in agilex_clk_pll_recalc_rate() argument
37 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in agilex_clk_pll_recalc_rate()
55 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
58 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
79 static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk, in clk_boot_clk_recalc_rate() argument
82 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_clk_recalc_rate()
93 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
95 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
103 static u8 clk_boot_get_parent(struct clk_hw *hwclk) in clk_boot_get_parent() argument
105 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_get_parent()
[all …]
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-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
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Domap-iommu.c55 struct clk_hw_omap *hwclk; in _get_pwrdm() local
82 hwclk = to_clk_hw_omap(__clk_get_hw(clk)); in _get_pwrdm()
84 if (!hwclk || !hwclk->clkdm_name) { in _get_pwrdm()
89 clkdm = clkdm_lookup(hwclk->clkdm_name); in _get_pwrdm()
91 dev_err(dev, "clkdm not found: %s\n", hwclk->clkdm_name); in _get_pwrdm()
Dpdata-quirks.c317 struct clk_hw_omap *hwclk; in ti_sysc_find_one_clockdomain() local
319 hwclk = to_clk_hw_omap(hw); in ti_sysc_find_one_clockdomain()
323 if (hwclk && hwclk->clkdm_name) in ti_sysc_find_one_clockdomain()
324 clkdm = clkdm_lookup(hwclk->clkdm_name); in ti_sysc_find_one_clockdomain()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/clk/ti/
Dclkctrl.c737 struct clk_hw_omap *hwclk; in ti_clk_is_in_standby() local
745 hwclk = to_clk_hw_omap(hw); in ti_clk_is_in_standby()
747 val = ti_clk_ll_ops->clk_readl(&hwclk->enable_reg); in ti_clk_is_in_standby()