/drivers/clk/imx/ |
D | clk-imx7d.c | 25 static struct clk *clks[IMX7D_CLK_END]; variable 367 &clks[IMX7D_UART1_ROOT_CLK], 368 &clks[IMX7D_UART2_ROOT_CLK], 369 &clks[IMX7D_UART3_ROOT_CLK], 370 &clks[IMX7D_UART4_ROOT_CLK], 371 &clks[IMX7D_UART5_ROOT_CLK], 372 &clks[IMX7D_UART6_ROOT_CLK], 373 &clks[IMX7D_UART7_ROOT_CLK], 383 clks[IMX7D_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in imx7d_clocks_init() 384 clks[IMX7D_OSC_24M_CLK] = of_clk_get_by_name(ccm_node, "osc"); in imx7d_clocks_init() [all …]
|
D | clk-imx6sx.c | 92 static struct clk *clks[IMX6SX_CLK_CLK_END]; variable 139 &clks[IMX6SX_CLK_UART_IPG], 140 &clks[IMX6SX_CLK_UART_SERIAL], 150 clks[IMX6SX_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in imx6sx_clocks_init() 152 clks[IMX6SX_CLK_CKIL] = of_clk_get_by_name(ccm_node, "ckil"); in imx6sx_clocks_init() 153 clks[IMX6SX_CLK_OSC] = of_clk_get_by_name(ccm_node, "osc"); in imx6sx_clocks_init() 156 clks[IMX6SX_CLK_IPP_DI0] = of_clk_get_by_name(ccm_node, "ipp_di0"); in imx6sx_clocks_init() 157 clks[IMX6SX_CLK_IPP_DI1] = of_clk_get_by_name(ccm_node, "ipp_di1"); in imx6sx_clocks_init() 160 clks[IMX6SX_CLK_ANACLK1] = imx_obtain_fixed_clock("anaclk1", 0); in imx6sx_clocks_init() 167 …clks[IMX6SX_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_s… in imx6sx_clocks_init() [all …]
|
D | clk-imx6ul.c | 68 static struct clk *clks[IMX6UL_CLK_END]; variable 112 clks[IMX6UL_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in imx6ul_clocks_init() 114 clks[IMX6UL_CLK_CKIL] = of_clk_get_by_name(ccm_node, "ckil"); in imx6ul_clocks_init() 115 clks[IMX6UL_CLK_OSC] = of_clk_get_by_name(ccm_node, "osc"); in imx6ul_clocks_init() 118 clks[IMX6UL_CLK_IPP_DI0] = of_clk_get_by_name(ccm_node, "ipp_di0"); in imx6ul_clocks_init() 119 clks[IMX6UL_CLK_IPP_DI1] = of_clk_get_by_name(ccm_node, "ipp_di1"); in imx6ul_clocks_init() 126 …clks[IMX6UL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 127 …clks[IMX6UL_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 128 …clks[IMX6UL_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() 129 …clks[IMX6UL_PLL4_BYPASS_SRC] = imx_clk_mux("pll4_bypass_src", base + 0x70, 14, 1, pll_bypass_src_s… in imx6ul_clocks_init() [all …]
|
D | clk-imx6sl.c | 104 static struct clk *clks[IMX6SL_CLK_END]; variable 191 &clks[IMX6SL_CLK_UART], 192 &clks[IMX6SL_CLK_UART_SERIAL], 203 clks[IMX6SL_CLK_DUMMY] = imx_clk_fixed("dummy", 0); in imx6sl_clocks_init() 204 clks[IMX6SL_CLK_CKIL] = imx_obtain_fixed_clock("ckil", 0); in imx6sl_clocks_init() 205 clks[IMX6SL_CLK_OSC] = imx_obtain_fixed_clock("osc", 0); in imx6sl_clocks_init() 207 clks[IMX6SL_CLK_ANACLK1] = imx_obtain_fixed_clock("anaclk1", 0); in imx6sl_clocks_init() 214 …clks[IMX6SL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 215 …clks[IMX6SL_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() 216 …clks[IMX6SL_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 1, pll_bypass_src_s… in imx6sl_clocks_init() [all …]
|
/drivers/clk/hisilicon/ |
D | clk.c | 65 clk_data->clk_data.clks = clk_table; in hisi_clk_init() 75 void __init hisi_clk_register_fixed_rate(struct hisi_fixed_rate_clock *clks, in hisi_clk_register_fixed_rate() argument 82 clk = clk_register_fixed_rate(NULL, clks[i].name, in hisi_clk_register_fixed_rate() 83 clks[i].parent_name, in hisi_clk_register_fixed_rate() 84 clks[i].flags, in hisi_clk_register_fixed_rate() 85 clks[i].fixed_rate); in hisi_clk_register_fixed_rate() 88 __func__, clks[i].name); in hisi_clk_register_fixed_rate() 91 data->clk_data.clks[clks[i].id] = clk; in hisi_clk_register_fixed_rate() 95 void __init hisi_clk_register_fixed_factor(struct hisi_fixed_factor_clock *clks, in hisi_clk_register_fixed_factor() argument 103 clk = clk_register_fixed_factor(NULL, clks[i].name, in hisi_clk_register_fixed_factor() [all …]
|
D | clk-hix5hd2.c | 256 hix5hd2_clk_register_complex(struct hix5hd2_complex_clock *clks, int nums, in hix5hd2_clk_register_complex() argument 271 init.name = clks[i].name; in hix5hd2_clk_register_complex() 272 if (clks[i].type == TYPE_ETHER) in hix5hd2_clk_register_complex() 279 (clks[i].parent_name ? &clks[i].parent_name : NULL); in hix5hd2_clk_register_complex() 280 init.num_parents = (clks[i].parent_name ? 1 : 0); in hix5hd2_clk_register_complex() 282 p_clk->ctrl_reg = base + clks[i].ctrl_reg; in hix5hd2_clk_register_complex() 283 p_clk->ctrl_clk_mask = clks[i].ctrl_clk_mask; in hix5hd2_clk_register_complex() 284 p_clk->ctrl_rst_mask = clks[i].ctrl_rst_mask; in hix5hd2_clk_register_complex() 285 p_clk->phy_reg = base + clks[i].phy_reg; in hix5hd2_clk_register_complex() 286 p_clk->phy_clk_mask = clks[i].phy_clk_mask; in hix5hd2_clk_register_complex() [all …]
|
/drivers/clk/mmp/ |
D | clk.c | 20 unit->clk_data.clks = clk_table; in mmp_clk_init() 26 struct mmp_param_fixed_rate_clk *clks, in mmp_register_fixed_rate_clks() argument 33 clk = clk_register_fixed_rate(NULL, clks[i].name, in mmp_register_fixed_rate_clks() 34 clks[i].parent_name, in mmp_register_fixed_rate_clks() 35 clks[i].flags, in mmp_register_fixed_rate_clks() 36 clks[i].fixed_rate); in mmp_register_fixed_rate_clks() 39 __func__, clks[i].name); in mmp_register_fixed_rate_clks() 42 if (clks[i].id) in mmp_register_fixed_rate_clks() 43 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks() 48 struct mmp_param_fixed_factor_clk *clks, in mmp_register_fixed_factor_clks() argument [all …]
|
/drivers/clk/mxs/ |
D | clk-imx28.c | 151 static struct clk *clks[clk_max]; variable 173 clks[ref_xtal] = mxs_clk_fixed("ref_xtal", 24000000); in mx28_clocks_init() 174 clks[pll0] = mxs_clk_pll("pll0", "ref_xtal", PLL0CTRL0, 17, 480000000); in mx28_clocks_init() 175 clks[pll1] = mxs_clk_pll("pll1", "ref_xtal", PLL1CTRL0, 17, 480000000); in mx28_clocks_init() 176 clks[pll2] = mxs_clk_pll("pll2", "ref_xtal", PLL2CTRL0, 23, 50000000); in mx28_clocks_init() 177 clks[ref_cpu] = mxs_clk_ref("ref_cpu", "pll0", FRAC0, 0); in mx28_clocks_init() 178 clks[ref_emi] = mxs_clk_ref("ref_emi", "pll0", FRAC0, 1); in mx28_clocks_init() 179 clks[ref_io1] = mxs_clk_ref("ref_io1", "pll0", FRAC0, 2); in mx28_clocks_init() 180 clks[ref_io0] = mxs_clk_ref("ref_io0", "pll0", FRAC0, 3); in mx28_clocks_init() 181 clks[ref_pix] = mxs_clk_ref("ref_pix", "pll0", FRAC1, 0); in mx28_clocks_init() [all …]
|
D | clk-imx23.c | 96 static struct clk *clks[clk_max]; variable 118 clks[ref_xtal] = mxs_clk_fixed("ref_xtal", 24000000); in mx23_clocks_init() 119 clks[pll] = mxs_clk_pll("pll", "ref_xtal", PLLCTRL0, 16, 480000000); in mx23_clocks_init() 120 clks[ref_cpu] = mxs_clk_ref("ref_cpu", "pll", FRAC, 0); in mx23_clocks_init() 121 clks[ref_emi] = mxs_clk_ref("ref_emi", "pll", FRAC, 1); in mx23_clocks_init() 122 clks[ref_pix] = mxs_clk_ref("ref_pix", "pll", FRAC, 2); in mx23_clocks_init() 123 clks[ref_io] = mxs_clk_ref("ref_io", "pll", FRAC, 3); in mx23_clocks_init() 124 clks[saif_sel] = mxs_clk_mux("saif_sel", CLKSEQ, 0, 1, sel_pll, ARRAY_SIZE(sel_pll)); in mx23_clocks_init() 125 clks[lcdif_sel] = mxs_clk_mux("lcdif_sel", CLKSEQ, 1, 1, sel_pix, ARRAY_SIZE(sel_pix)); in mx23_clocks_init() 126 clks[gpmi_sel] = mxs_clk_mux("gpmi_sel", CLKSEQ, 4, 1, sel_io, ARRAY_SIZE(sel_io)); in mx23_clocks_init() [all …]
|
/drivers/clk/zynq/ |
D | clkc.c | 72 static struct clk *clks[clk_max]; variable 158 clks[fclk] = clk_register_gate(NULL, clk_name, in zynq_clk_register_fclk() 163 if (clk_prepare_enable(clks[fclk])) in zynq_clk_register_fclk() 182 clks[fclk] = ERR_PTR(-ENOMEM); in zynq_clk_register_fclk() 209 clks[clk0] = clk_register_gate(NULL, clk_name0, div_name, in zynq_clk_register_periph_clk() 212 clks[clk1] = clk_register_gate(NULL, clk_name1, div_name, in zynq_clk_register_periph_clk() 221 clks[clk0] = ERR_PTR(-ENOMEM); in zynq_clk_register_periph_clk() 223 clks[clk1] = ERR_PTR(-ENOMEM); in zynq_clk_register_periph_clk() 274 clks[armpll] = clk_register_mux(NULL, clk_output_name[armpll], in zynq_clk_setup() 280 clks[ddrpll] = clk_register_mux(NULL, clk_output_name[ddrpll], in zynq_clk_setup() [all …]
|
/drivers/clk/ |
D | clk-clps711x.c | 45 struct clk *clks[CLPS711X_CLK_MAX]; member 109 clps711x_clk->clks[CLPS711X_CLK_DUMMY] = in _clps711x_clk_init() 111 clps711x_clk->clks[CLPS711X_CLK_CPU] = in _clps711x_clk_init() 113 clps711x_clk->clks[CLPS711X_CLK_BUS] = in _clps711x_clk_init() 115 clps711x_clk->clks[CLPS711X_CLK_PLL] = in _clps711x_clk_init() 117 clps711x_clk->clks[CLPS711X_CLK_TIMERREF] = in _clps711x_clk_init() 120 clps711x_clk->clks[CLPS711X_CLK_TIMER1] = in _clps711x_clk_init() 124 clps711x_clk->clks[CLPS711X_CLK_TIMER2] = in _clps711x_clk_init() 128 clps711x_clk->clks[CLPS711X_CLK_PWM] = in _clps711x_clk_init() 130 clps711x_clk->clks[CLPS711X_CLK_SPIREF] = in _clps711x_clk_init() [all …]
|
/drivers/clk/versatile/ |
D | clk-impd1.c | 35 struct clk_lookup *clks[15]; member 109 imc->clks[0] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id); in integrator_impd1_clk_init() 110 imc->clks[1] = clkdev_alloc(clk, NULL, "lm%x:01000", id); in integrator_impd1_clk_init() 119 imc->clks[2] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00700", id); in integrator_impd1_clk_init() 120 imc->clks[3] = clkdev_alloc(clk, NULL, "lm%x:00700", id); in integrator_impd1_clk_init() 127 imc->clks[4] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00100", id); in integrator_impd1_clk_init() 128 imc->clks[5] = clkdev_alloc(clk, NULL, "lm%x:00100", id); in integrator_impd1_clk_init() 129 imc->clks[6] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00200", id); in integrator_impd1_clk_init() 130 imc->clks[7] = clkdev_alloc(clk, NULL, "lm%x:00200", id); in integrator_impd1_clk_init() 136 imc->clks[8] = clkdev_alloc(pclk, "apb_pclk", "lm%x:00300", id); in integrator_impd1_clk_init() [all …]
|
/drivers/clk/tegra/ |
D | clk.c | 78 static struct clk **clks; variable 211 clks = kzalloc(num * sizeof(struct clk *), GFP_KERNEL); in tegra_clk_init() 212 if (!clks) in tegra_clk_init() 217 return clks; in tegra_clk_init() 221 struct clk *clks[], int clk_max) in tegra_init_dup_clks() argument 226 clk = clks[dup_list->clk_id]; in tegra_init_dup_clks() 233 struct clk *clks[], int clk_max) in tegra_init_from_table() argument 238 clk = clks[tbl->clk_id]; in tegra_init_from_table() 248 struct clk *parent = clks[tbl->parent_id]; in tegra_init_from_table() 290 if (IS_ERR(clks[i])) { in tegra_add_of_provider() [all …]
|
D | clk-tegra20.c | 166 static struct clk **clks; variable 642 clks[TEGRA20_CLK_PLL_C] = clk; in tegra20_pll_init() 651 clks[TEGRA20_CLK_PLL_C_OUT1] = clk; in tegra20_pll_init() 657 clks[TEGRA20_CLK_PLL_M] = clk; in tegra20_pll_init() 666 clks[TEGRA20_CLK_PLL_M_OUT1] = clk; in tegra20_pll_init() 671 clks[TEGRA20_CLK_PLL_X] = clk; in tegra20_pll_init() 676 clks[TEGRA20_CLK_PLL_U] = clk; in tegra20_pll_init() 681 clks[TEGRA20_CLK_PLL_D] = clk; in tegra20_pll_init() 686 clks[TEGRA20_CLK_PLL_D_OUT0] = clk; in tegra20_pll_init() 691 clks[TEGRA20_CLK_PLL_A] = clk; in tegra20_pll_init() [all …]
|
/drivers/clk/pxa/ |
D | clk-pxa.c | 25 .clks = pxa_clocks, 80 int __init clk_pxa_cken_init(const struct desc_clk_cken *clks, int nb_clks) in clk_pxa_cken_init() argument 88 pxa_clk->is_in_low_power = clks[i].is_in_low_power; in clk_pxa_cken_init() 89 pxa_clk->lp = clks[i].lp; in clk_pxa_cken_init() 90 pxa_clk->hp = clks[i].hp; in clk_pxa_cken_init() 91 pxa_clk->gate = clks[i].gate; in clk_pxa_cken_init() 93 clk = clk_register_composite(NULL, clks[i].name, in clk_pxa_cken_init() 94 clks[i].parent_names, 2, in clk_pxa_cken_init() 98 clks[i].flags); in clk_pxa_cken_init() 99 clkdev_pxa_register(clks[i].ckid, clks[i].con_id, in clk_pxa_cken_init() [all …]
|
/drivers/clk/sunxi/ |
D | clk-a10-pll2.c | 50 struct clk **clks, *base_clk, *prediv_clk; in sun4i_pll2_setup() local 65 clks = kcalloc(SUN4I_PLL2_OUTPUTS, sizeof(struct clk *), GFP_KERNEL); in sun4i_pll2_setup() 66 if (!clks) in sun4i_pll2_setup() 130 clks[SUN4I_A10_PLL2_1X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup() 135 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_1X])); in sun4i_pll2_setup() 145 clks[SUN4I_A10_PLL2_2X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup() 149 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_2X])); in sun4i_pll2_setup() 154 clks[SUN4I_A10_PLL2_4X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup() 158 WARN_ON(IS_ERR(clks[SUN4I_A10_PLL2_4X])); in sun4i_pll2_setup() 163 clks[SUN4I_A10_PLL2_8X] = clk_register_fixed_factor(NULL, clk_name, in sun4i_pll2_setup() [all …]
|
/drivers/clk/mediatek/ |
D | clk-mtk.c | 36 clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); in mtk_alloc_clk_data() 37 if (!clk_data->clks) in mtk_alloc_clk_data() 43 clk_data->clks[i] = ERR_PTR(-ENOENT); in mtk_alloc_clk_data() 52 void __init mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, in mtk_clk_register_fixed_clks() argument 59 const struct mtk_fixed_clk *rc = &clks[i]; in mtk_clk_register_fixed_clks() 71 clk_data->clks[rc->id] = clk; in mtk_clk_register_fixed_clks() 75 void __init mtk_clk_register_factors(const struct mtk_fixed_factor *clks, in mtk_clk_register_factors() argument 82 const struct mtk_fixed_factor *ff = &clks[i]; in mtk_clk_register_factors() 94 clk_data->clks[ff->id] = clk; in mtk_clk_register_factors() 99 const struct mtk_gate *clks, in mtk_clk_register_gates() argument [all …]
|
/drivers/sh/clk/ |
D | cpg.c | 94 int __init sh_clk_mstp_register(struct clk *clks, int nr) in sh_clk_mstp_register() argument 101 clkp = clks + k; in sh_clk_mstp_register() 241 static int __init sh_clk_div_register_ops(struct clk *clks, int nr, in sh_clk_div_register_ops() argument 259 clkp = clks + k; in sh_clk_div_register_ops() 336 int __init sh_clk_div6_register(struct clk *clks, int nr) in sh_clk_div6_register() argument 338 return sh_clk_div_register_ops(clks, nr, &sh_clk_div6_table, in sh_clk_div6_register() 342 int __init sh_clk_div6_reparent_register(struct clk *clks, int nr) in sh_clk_div6_reparent_register() argument 344 return sh_clk_div_register_ops(clks, nr, &sh_clk_div6_table, in sh_clk_div6_reparent_register() 389 int __init sh_clk_div4_register(struct clk *clks, int nr, in sh_clk_div4_register() argument 392 return sh_clk_div_register_ops(clks, nr, table, &sh_clk_div_clk_ops); in sh_clk_div4_register() [all …]
|
/drivers/clk/pistachio/ |
D | clk.c | 27 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider() 28 if (!p->clk_data.clks) in pistachio_clk_alloc_provider() 41 kfree(p->clk_data.clks); in pistachio_clk_alloc_provider() 52 if (IS_ERR(p->clk_data.clks[i])) in pistachio_clk_register_provider() 54 PTR_ERR(p->clk_data.clks[i])); in pistachio_clk_register_provider() 72 p->clk_data.clks[gate[i].id] = clk; in pistachio_clk_register_gate() 90 p->clk_data.clks[mux[i].id] = clk; in pistachio_clk_register_mux() 106 p->clk_data.clks[div[i].id] = clk; in pistachio_clk_register_div() 120 p->clk_data.clks[ff[i].id] = clk; in pistachio_clk_register_fixed_factor() 131 struct clk *clk = p->clk_data.clks[clk_ids[i]]; in pistachio_clk_force_enable()
|
/drivers/clk/qcom/ |
D | common.c | 30 struct clk *clks[]; member 101 struct clk **clks; in qcom_cc_really_probe() local 105 struct clk_regmap **rclks = desc->clks; in qcom_cc_really_probe() 107 cc = devm_kzalloc(dev, sizeof(*cc) + sizeof(*clks) * num_clks, in qcom_cc_really_probe() 112 clks = cc->clks; in qcom_cc_really_probe() 114 data->clks = clks; in qcom_cc_really_probe() 119 clks[i] = ERR_PTR(-ENOENT); in qcom_cc_really_probe() 125 clks[i] = clk; in qcom_cc_really_probe()
|
/drivers/clk/shmobile/ |
D | clk-mstp.c | 166 struct clk **clks; in cpg_mstp_clocks_init() local 170 clks = kmalloc(MSTP_MAX_CLOCKS * sizeof(*clks), GFP_KERNEL); in cpg_mstp_clocks_init() 171 if (group == NULL || clks == NULL) { in cpg_mstp_clocks_init() 173 kfree(clks); in cpg_mstp_clocks_init() 179 group->data.clks = clks; in cpg_mstp_clocks_init() 187 kfree(clks); in cpg_mstp_clocks_init() 192 clks[i] = ERR_PTR(-ENOENT); in cpg_mstp_clocks_init() 222 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, in cpg_mstp_clocks_init() 224 if (!IS_ERR(clks[clkidx])) { in cpg_mstp_clocks_init() 235 clk_register_clkdev(clks[clkidx], name, NULL); in cpg_mstp_clocks_init() [all …]
|
D | clk-rz.c | 71 struct clk **clks; in rz_cpg_clocks_init() local 80 clks = kzalloc(num_clks * sizeof(*clks), GFP_KERNEL); in rz_cpg_clocks_init() 81 BUG_ON(!cpg || !clks); in rz_cpg_clocks_init() 83 cpg->data.clks = clks; in rz_cpg_clocks_init() 99 cpg->data.clks[i] = clk; in rz_cpg_clocks_init()
|
/drivers/video/fbdev/ |
D | simplefb.c | 175 struct clk **clks; member 212 par->clks = kcalloc(par->clk_count, sizeof(struct clk *), GFP_KERNEL); in simplefb_clocks_init() 213 if (!par->clks) in simplefb_clocks_init() 221 if (par->clks[i]) in simplefb_clocks_init() 222 clk_put(par->clks[i]); in simplefb_clocks_init() 224 kfree(par->clks); in simplefb_clocks_init() 231 par->clks[i] = clock; in simplefb_clocks_init() 235 if (par->clks[i]) { in simplefb_clocks_init() 236 ret = clk_prepare_enable(par->clks[i]); in simplefb_clocks_init() 241 clk_put(par->clks[i]); in simplefb_clocks_init() [all …]
|
/drivers/usb/host/ |
D | ohci-st.c | 34 struct clk *clks[USB_MAX_CLKS]; member 70 for (clk = 0; clk < USB_MAX_CLKS && priv->clks[clk]; clk++) { in st_ohci_platform_power_on() 71 ret = clk_prepare_enable(priv->clks[clk]); in st_ohci_platform_power_on() 90 clk_disable_unprepare(priv->clks[clk]); in st_ohci_platform_power_on() 115 if (priv->clks[clk]) in st_ohci_platform_power_off() 116 clk_disable_unprepare(priv->clks[clk]); in st_ohci_platform_power_off() 173 priv->clks[clk] = of_clk_get(dev->dev.of_node, clk); in st_ohci_platform_probe() 174 if (IS_ERR(priv->clks[clk])) { in st_ohci_platform_probe() 175 err = PTR_ERR(priv->clks[clk]); in st_ohci_platform_probe() 178 priv->clks[clk] = NULL; in st_ohci_platform_probe() [all …]
|
/drivers/clk/bcm/ |
D | clk-iproc-asiu.c | 41 struct iproc_asiu_clk *clks; member 201 asiu->clk_data.clks = kcalloc(num_clks, sizeof(*asiu->clk_data.clks), in iproc_asiu_setup() 203 if (WARN_ON(!asiu->clk_data.clks)) in iproc_asiu_setup() 206 asiu->clks = kcalloc(num_clks, sizeof(*asiu->clks), GFP_KERNEL); in iproc_asiu_setup() 207 if (WARN_ON(!asiu->clks)) in iproc_asiu_setup() 230 asiu_clk = &asiu->clks[i]; in iproc_asiu_setup() 246 asiu->clk_data.clks[i] = clk; in iproc_asiu_setup() 258 clk_unregister(asiu->clk_data.clks[i]); in iproc_asiu_setup() 265 kfree(asiu->clks); in iproc_asiu_setup() 268 kfree(asiu->clk_data.clks); in iproc_asiu_setup()
|