Home
last modified time | relevance | path

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

1234

/linux/drivers/clk/tegra/
A 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()
A Dclk.c27 static int clk_num; variable
239 clk_num = num; in tegra_clk_init()
323 for (i = 0; i < clk_num; i++) { in tegra_add_of_provider()
334 clk_data.clk_num = clk_num; in tegra_add_of_provider()
359 for (i = 0; i < clk_num; i++) { in tegra_register_devclks()
A 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()
A 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()
A 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/drivers/clk/uniphier/
A 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/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_enc_pm.c49 enc_clk->clk_num = of_property_count_strings(pdev->dev.of_node, in mtk_vcodec_init_enc_pm()
51 if (enc_clk->clk_num > 0) { in mtk_vcodec_init_enc_pm()
53 enc_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_enc_pm()
65 for (i = 0; i < enc_clk->clk_num; i++) { in mtk_vcodec_init_enc_pm()
102 for (i = 0; i < enc_clk->clk_num; i++) { in mtk_vcodec_enc_clock_on()
129 for (i = enc_clk->clk_num - 1; i >= 0; i--) in mtk_vcodec_enc_clock_off()
A Dmtk_vcodec_dec_pm.c44 dec_clk->clk_num = in mtk_vcodec_init_dec_pm()
46 if (dec_clk->clk_num > 0) { in mtk_vcodec_init_dec_pm()
48 dec_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_dec_pm()
60 for (i = 0; i < dec_clk->clk_num; i++) { in mtk_vcodec_init_dec_pm()
116 for (i = 0; i < dec_clk->clk_num; i++) { in mtk_vcodec_dec_clock_on()
143 for (i = dec_clk->clk_num - 1; i >= 0; i--) in mtk_vcodec_dec_clock_off()
/linux/drivers/clk/mediatek/
A Dclk-mtk.c22 struct clk_onecell_data *mtk_alloc_clk_data(unsigned int clk_num) in mtk_alloc_clk_data() argument
31 clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); in mtk_alloc_clk_data()
35 clk_data->clk_num = clk_num; in mtk_alloc_clk_data()
37 for (i = 0; i < clk_num; i++) in mtk_alloc_clk_data()
/linux/drivers/clk/mvebu/
A 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()
A 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/drivers/memory/
A Dmtk-smi.c131 unsigned int clk_num; member
423 smi->clk_num = clk_nr_required + clk_nr_optional; in mtk_smi_dts_clk_init()
482 ret = clk_bulk_prepare_enable(larb->smi.clk_num, larb->smi.clks); in mtk_smi_larb_resume()
496 clk_bulk_disable_unprepare(larb->smi.clk_num, larb->smi.clks); in mtk_smi_larb_suspend()
663 ret = clk_bulk_prepare_enable(common->clk_num, common->clks); in mtk_smi_common_resume()
681 clk_bulk_disable_unprepare(common->clk_num, common->clks); in mtk_smi_common_suspend()
/linux/drivers/clk/
A 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/drivers/clk/st/
A 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/drivers/clk/pistachio/
A 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/sound/soc/meson/
A 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()
A 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()
A Daiu.h26 unsigned int clk_num; member
/linux/drivers/clk/nxp/
A Dclk-lpc18xx-creg.c164 .clk_num = CREG_CLK_MAX,
193 .clk_num = CREG_CLK_MAX,
/linux/drivers/clk/renesas/
A Dclk-mstp.c245 group->data.clk_num = max(group->data.clk_num, in cpg_mstp_clocks_init()
/linux/drivers/clk/sunxi/
A Dclk-sun6i-apb0-gates.c87 clk_data->clk_num = ngates + 1; in sun6i_a31_apb0_gates_clk_probe()
A Dclk-sun8i-bus-gates.c93 clk_data->clk_num = number + 1; in sun8i_h3_bus_gates_init()
/linux/drivers/clk/ingenic/
A Dcgu.c778 cgu->clocks.clk_num = num_clocks; in ingenic_cgu_new()
795 cgu->clocks.clks = kcalloc(cgu->clocks.clk_num, sizeof(struct clk *), in ingenic_cgu_register_clocks()
802 for (i = 0; i < cgu->clocks.clk_num; i++) { in ingenic_cgu_register_clocks()
816 for (i = 0; i < cgu->clocks.clk_num; i++) { in ingenic_cgu_register_clocks()
/linux/drivers/clk/ux500/
A Dabx500-clk.c82 ab8500_clk_data.clk_num = ARRAY_SIZE(ab8500_clks); in ab8500_reg_clks()
/linux/drivers/clk/imx/
A Dclk-imx1.c70 clk_data.clk_num = ARRAY_SIZE(clk); in mx1_clocks_init_dt()

Completed in 44 milliseconds

1234