Home
last modified time | relevance | path

Searched refs:clk_num (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.1.9/drivers/clk/tegra/
Dclk-periph-gate.c31 #define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32))
88 if (!gate->enable_refcnt[gate->clk_num]++) in clk_periph_enable()
103 WARN_ON(!gate->enable_refcnt[gate->clk_num]); in clk_periph_disable()
105 if (--gate->enable_refcnt[gate->clk_num] == 0) in clk_periph_disable()
123 if (!gate->enable_refcnt[gate->clk_num]) in clk_periph_disable_unused()
138 unsigned long flags, int clk_num, int *enable_refcnt) in tegra_clk_register_periph_gate() argument
145 pregs = get_reg_bank(clk_num); in tegra_clk_register_periph_gate()
163 gate->clk_num = clk_num; in tegra_clk_register_periph_gate()
Dclk.c32 static int clk_num; variable
244 clk_num = num; in tegra_clk_init()
330 for (i = 0; i < clk_num; i++) { in tegra_add_of_provider()
341 clk_data.clk_num = clk_num; in tegra_add_of_provider()
366 for (i = 0; i < clk_num; i++) { in tegra_register_devclks()
Dclk-sdmmc-mux.c235 void __iomem *clk_base, u32 offset, u32 clk_num, u8 div_flags, in tegra_clk_register_sdmmc_mux_div() argument
249 bank = get_reg_bank(clk_num); in tegra_clk_register_sdmmc_mux_div()
264 sdmmc_mux->gate.clk_num = clk_num; in tegra_clk_register_sdmmc_mux_div()
Dclk-tegra-audio.c67 int clk_num; member
78 .clk_num = _num,\
243 clk_base, CLK_SET_RATE_PARENT, data->clk_num, in tegra_audio_clk_init()
Dclk.h566 int clk_num; member
585 unsigned long flags, int clk_num, int *enable_refcnt);
663 .clk_num = _clk_num, \
795 void __iomem *clk_base, u32 offset, u32 clk_num, u8 div_flags,
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_enc_pm.c29 enc_clk->clk_num = of_property_count_strings(pdev->dev.of_node, in mtk_vcodec_init_enc_clk()
31 if (enc_clk->clk_num > 0) { in mtk_vcodec_init_enc_clk()
33 enc_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_enc_clk()
42 for (i = 0; i < enc_clk->clk_num; i++) { in mtk_vcodec_init_enc_clk()
67 for (i = 0; i < enc_clk->clk_num; i++) { in mtk_vcodec_enc_clock_on()
88 for (i = enc_clk->clk_num - 1; i >= 0; i--) in mtk_vcodec_enc_clock_off()
Dmtk_vcodec_dec_pm.c26 dec_clk->clk_num = in mtk_vcodec_init_dec_clk()
28 if (dec_clk->clk_num > 0) { in mtk_vcodec_init_dec_clk()
30 dec_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_dec_clk()
39 for (i = 0; i < dec_clk->clk_num; i++) { in mtk_vcodec_init_dec_clk()
86 for (i = 0; i < dec_clk->clk_num; i++) { in mtk_vcodec_dec_clock_on()
107 for (i = dec_clk->clk_num - 1; i >= 0; i--) in mtk_vcodec_dec_clock_off()
/linux-6.1.9/drivers/clk/uniphier/
Dclk-uniphier-core.c49 int clk_num = 0; in uniphier_clk_probe() local
65 clk_num = max(clk_num, p->idx + 1); in uniphier_clk_probe()
67 hw_data = devm_kzalloc(dev, struct_size(hw_data, hws, clk_num), in uniphier_clk_probe()
72 hw_data->num = clk_num; in uniphier_clk_probe()
75 while (--clk_num >= 0) in uniphier_clk_probe()
76 hw_data->hws[clk_num] = ERR_PTR(-EINVAL); in uniphier_clk_probe()
/linux-6.1.9/drivers/clk/mediatek/
Dclk-mtk.c22 unsigned int clk_num) in mtk_init_clk_data() argument
26 clk_data->num = clk_num; in mtk_init_clk_data()
28 for (i = 0; i < clk_num; i++) in mtk_init_clk_data()
33 unsigned int clk_num) in mtk_devm_alloc_clk_data() argument
37 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, clk_num), in mtk_devm_alloc_clk_data()
42 mtk_init_clk_data(clk_data, clk_num); in mtk_devm_alloc_clk_data()
48 struct clk_hw_onecell_data *mtk_alloc_clk_data(unsigned int clk_num) in mtk_alloc_clk_data() argument
52 clk_data = kzalloc(struct_size(clk_data, hws, clk_num), GFP_KERNEL); in mtk_alloc_clk_data()
56 mtk_init_clk_data(clk_data, clk_num); in mtk_alloc_clk_data()
Dclk-mtk.h186 struct clk_hw_onecell_data *mtk_alloc_clk_data(unsigned int clk_num);
188 unsigned int clk_num);
/linux-6.1.9/drivers/clk/mvebu/
Dclk-corediv.c268 clk_data.clk_num = soc_desc->ndescs; in mvebu_corediv_clk_init()
271 clks = kcalloc(clk_data.clk_num, sizeof(struct clk *), in mvebu_corediv_clk_init()
276 corediv = kcalloc(clk_data.clk_num, sizeof(struct clk_corediv), in mvebu_corediv_clk_init()
283 for (i = 0; i < clk_data.clk_num; i++) { in mvebu_corediv_clk_init()
Dcommon.c121 clk_data.clk_num = 2 + desc->num_ratios; in mvebu_coreclk_setup()
125 clk_data.clk_num += 1; in mvebu_coreclk_setup()
127 clk_data.clks = kcalloc(clk_data.clk_num, sizeof(*clk_data.clks), in mvebu_coreclk_setup()
/linux-6.1.9/drivers/clk/
Dclk-scpi.c172 unsigned int clk_num; member
182 for (count = 0; count < clk_data->clk_num; count++) { in scpi_of_clk_src_get()
207 clk_data->clk_num = count; in scpi_clk_add()
/linux-6.1.9/drivers/memory/
Dmtk-smi.c141 unsigned int clk_num; member
526 smi->clk_num = clk_nr_required + clk_nr_optional; in mtk_smi_dts_clk_init()
585 ret = clk_bulk_prepare_enable(larb->smi.clk_num, larb->smi.clks); in mtk_smi_larb_resume()
607 clk_bulk_disable_unprepare(larb->smi.clk_num, larb->smi.clks); in mtk_smi_larb_suspend()
809 ret = clk_bulk_prepare_enable(common->clk_num, common->clks); in mtk_smi_common_resume()
827 clk_bulk_disable_unprepare(common->clk_num, common->clks); in mtk_smi_common_suspend()
/linux-6.1.9/drivers/clk/pistachio/
Dclk.c27 p->clk_data.clk_num = num_clks; in pistachio_clk_alloc_provider()
48 for (i = 0; i < p->clk_data.clk_num; i++) { in pistachio_clk_register_provider()
/linux-6.1.9/sound/soc/meson/
Daiu-encoder-spdif.c188 ret = clk_bulk_prepare_enable(aiu->spdif.clk_num, aiu->spdif.clks); in aiu_encoder_spdif_startup()
200 clk_bulk_disable_unprepare(aiu->spdif.clk_num, aiu->spdif.clks); in aiu_encoder_spdif_shutdown()
Daiu-encoder-i2s.c308 ret = clk_bulk_prepare_enable(aiu->i2s.clk_num, aiu->i2s.clks); in aiu_encoder_i2s_startup()
320 clk_bulk_disable_unprepare(aiu->i2s.clk_num, aiu->i2s.clks); in aiu_encoder_i2s_shutdown()
Daiu.h26 unsigned int clk_num; member
/linux-6.1.9/drivers/clk/st/
Dclk-flexgen.c687 __func__, clk_data->clk_num); in st_of_flexgen_setup()
690 clk_data->clk_num = ret; in st_of_flexgen_setup()
692 clk_data->clk_num = data->outputs_nb; in st_of_flexgen_setup()
694 clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), in st_of_flexgen_setup()
705 for (i = 0; i < clk_data->clk_num; i++) { in st_of_flexgen_setup()
/linux-6.1.9/drivers/clk/nxp/
Dclk-lpc18xx-creg.c161 .clk_num = CREG_CLK_MAX,
190 .clk_num = CREG_CLK_MAX,
/linux-6.1.9/drivers/clk/sunxi/
Dclk-sun6i-apb0-gates.c87 clk_data->clk_num = ngates + 1; in sun6i_a31_apb0_gates_clk_probe()
/linux-6.1.9/drivers/clk/renesas/
Dclk-mstp.c245 group->data.clk_num = max(group->data.clk_num, in cpg_mstp_clocks_init()
Dclk-r8a7778.c106 data->clk_num = num_clks; in r8a7778_cpg_clocks_init()
Dclk-rz.c99 data->clk_num = num_clks; in rz_cpg_clocks_init()
/linux-6.1.9/drivers/clk/ux500/
Dabx500-clk.c82 ab8500_clk_data.clk_num = ARRAY_SIZE(ab8500_clks); in ab8500_reg_clks()

1234