/drivers/clk/ |
D | clk-highbank.c | 56 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare() argument 58 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare() 73 static void clk_pll_unprepare(struct clk_hw *hwclk) in clk_pll_unprepare() argument 75 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare() 83 static int clk_pll_enable(struct clk_hw *hwclk) in clk_pll_enable() argument 85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable() 95 static void clk_pll_disable(struct clk_hw *hwclk) in clk_pll_disable() argument 97 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable() 105 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument 108 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate() [all …]
|
/drivers/clk/socfpga/ |
D | clk-gate.c | 39 static u8 socfpga_clk_get_parent(struct clk_hw *hwclk) in socfpga_clk_get_parent() argument 44 if (streq(hwclk->init->name, SOCFPGA_L4_MP_CLK)) { in socfpga_clk_get_parent() 48 if (streq(hwclk->init->name, SOCFPGA_L4_SP_CLK)) { in socfpga_clk_get_parent() 54 if (streq(hwclk->init->name, SOCFPGA_MMC_CLK)) in socfpga_clk_get_parent() 56 if (streq(hwclk->init->name, SOCFPGA_NAND_CLK) || in socfpga_clk_get_parent() 57 streq(hwclk->init->name, SOCFPGA_NAND_X_CLK)) in socfpga_clk_get_parent() 65 static int socfpga_clk_set_parent(struct clk_hw *hwclk, u8 parent) in socfpga_clk_set_parent() argument 69 if (streq(hwclk->init->name, SOCFPGA_L4_MP_CLK)) { in socfpga_clk_set_parent() 74 } else if (streq(hwclk->init->name, SOCFPGA_L4_SP_CLK)) { in socfpga_clk_set_parent() 81 if (streq(hwclk->init->name, SOCFPGA_MMC_CLK)) { in socfpga_clk_set_parent() [all …]
|
D | clk-periph-a10.c | 31 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate() argument 34 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate() 50 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument 52 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_get_parent() 56 if (streq(hwclk->init->name, SOCFPGA_MPU_FREE_CLK) || in clk_periclk_get_parent() 57 streq(hwclk->init->name, SOCFPGA_NOC_FREE_CLK) || in clk_periclk_get_parent() 58 streq(hwclk->init->name, SOCFPGA_SDMMC_FREE_CLK)) in clk_periclk_get_parent()
|
D | clk-pll-a10.c | 45 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument 48 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate() 61 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument 63 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
|
D | clk-pll.c | 48 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument 51 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate() 68 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument 71 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
|
D | clk-gate-a10.c | 32 static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_gate_clk_recalc_rate() argument 35 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate() 49 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare() argument 51 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_prepare()
|
D | clk-periph.c | 27 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate() argument 30 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate() 47 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
|
/drivers/clk/mvebu/ |
D | clk-cpu.c | 50 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate() argument 53 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate() 61 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate() argument 76 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate() argument 80 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate() 110 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate() argument 115 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate() 124 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate() 153 static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_set_rate() argument 156 if (__clk_is_enabled(hwclk->clk)) in clk_cpu_set_rate() [all …]
|
D | clk-corediv.c | 76 static int clk_corediv_is_enabled(struct clk_hw *hwclk) in clk_corediv_is_enabled() argument 78 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_is_enabled() 86 static int clk_corediv_enable(struct clk_hw *hwclk) in clk_corediv_enable() argument 88 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_enable() 105 static void clk_corediv_disable(struct clk_hw *hwclk) in clk_corediv_disable() argument 107 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_disable() 122 static unsigned long clk_corediv_recalc_rate(struct clk_hw *hwclk, in clk_corediv_recalc_rate() argument 125 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_recalc_rate() 135 static long clk_corediv_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_round_rate() argument 150 static int clk_corediv_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_set_rate() argument [all …]
|