Home
last modified time | relevance | path

Searched refs:nclks (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/clk/qcom/
Dclk-spmi-pmic-div.c179 int nclks; member
180 struct clkdiv clks[] __counted_by(nclks);
189 if (idx < 0 || idx >= cc->nclks) { in spmi_pmic_div_clk_hw_get()
191 __func__, clkspec->args[0], cc->nclks); in spmi_pmic_div_clk_hw_get()
208 int nclks, i, ret, cxo_hz; in spmi_pmic_clkdiv_probe() local
224 ret = of_property_read_u32(of_node, "qcom,num-clkdivs", &nclks); in spmi_pmic_clkdiv_probe()
231 if (!nclks) in spmi_pmic_clkdiv_probe()
234 cc = devm_kzalloc(dev, struct_size(cc, clks, nclks), GFP_KERNEL); in spmi_pmic_clkdiv_probe()
237 cc->nclks = nclks; in spmi_pmic_clkdiv_probe()
254 for (i = 0, clkdiv = cc->clks; i < nclks; i++) { in spmi_pmic_clkdiv_probe()
/linux-6.6.21/drivers/reset/
Dreset-uniphier-glue.c18 int nclks; member
35 clk_bulk_disable_unprepare(priv->data->nclks, priv->clk); in uniphier_clk_disable()
57 if (WARN_ON(!priv->data || priv->data->nclks > MAX_CLKS || in uniphier_glue_reset_probe()
66 for (i = 0; i < priv->data->nclks; i++) in uniphier_glue_reset_probe()
68 ret = devm_clk_bulk_get(dev, priv->data->nclks, priv->clk); in uniphier_glue_reset_probe()
79 ret = clk_bulk_prepare_enable(priv->data->nclks, priv->clk); in uniphier_glue_reset_probe()
110 .nclks = ARRAY_SIZE(uniphier_pro4_clock_reset_names),
121 .nclks = ARRAY_SIZE(uniphier_pxs2_clock_reset_names),
/linux-6.6.21/drivers/regulator/
Duniphier-regulator.c21 int nclks; member
64 for (i = 0; i < priv->data->nclks; i++) in uniphier_regulator_probe()
66 ret = devm_clk_bulk_get(dev, priv->data->nclks, priv->clk); in uniphier_regulator_probe()
77 ret = clk_bulk_prepare_enable(priv->data->nclks, priv->clk); in uniphier_regulator_probe()
113 clk_bulk_disable_unprepare(priv->data->nclks, priv->clk); in uniphier_regulator_probe()
126 clk_bulk_disable_unprepare(priv->data->nclks, priv->clk); in uniphier_regulator_remove()
159 .nclks = ARRAY_SIZE(uniphier_pro4_clock_reset_names),
172 .nclks = ARRAY_SIZE(uniphier_pxs2_clock_reset_names),
/linux-6.6.21/drivers/spmi/
Dspmi-mtk-pmif.c51 size_t nclks; member
474 arb->nclks = ARRAY_SIZE(pmif_clock_names); in mtk_spmi_probe()
475 for (i = 0; i < arb->nclks; i++) in mtk_spmi_probe()
478 err = clk_bulk_get(&pdev->dev, arb->nclks, arb->clks); in mtk_spmi_probe()
484 err = clk_bulk_prepare_enable(arb->nclks, arb->clks); in mtk_spmi_probe()
512 clk_bulk_disable_unprepare(arb->nclks, arb->clks); in mtk_spmi_probe()
514 clk_bulk_put(arb->nclks, arb->clks); in mtk_spmi_probe()
525 clk_bulk_disable_unprepare(arb->nclks, arb->clks); in mtk_spmi_remove()
526 clk_bulk_put(arb->nclks, arb->clks); in mtk_spmi_remove()
/linux-6.6.21/drivers/clk/renesas/
Drenesas-cpg-mssr.c957 unsigned int nclks, i; in cpg_mssr_common_init() local
966 nclks = info->num_total_core_clks + info->num_hw_mod_clks; in cpg_mssr_common_init()
967 priv = kzalloc(struct_size(priv, clks, nclks), GFP_KERNEL); in cpg_mssr_common_init()
1003 for (i = 0; i < nclks; i++) in cpg_mssr_common_init()
Drzg2l-cpg.c1348 unsigned int nclks, i; in rzg2l_cpg_probe() local
1366 nclks = info->num_total_core_clks + info->num_hw_mod_clks; in rzg2l_cpg_probe()
1367 clks = devm_kmalloc_array(dev, nclks, sizeof(*clks), GFP_KERNEL); in rzg2l_cpg_probe()
1378 for (i = 0; i < nclks; i++) in rzg2l_cpg_probe()
/linux-6.6.21/drivers/net/ethernet/socionext/
Dsni_ave.c256 int nclks; member
1176 for (nc = 0; nc < priv->nclks; nc++) { in ave_init()
1262 for (i = 0; i < priv->nclks; i++) in ave_uninit()
1649 priv->nclks++; in ave_probe()