Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/clk/tegra/
Dclk-periph-gate.c31 #define periph_clk_to_bit(gate) (1 << (gate->clk_num % 32))
96 if (!gate->enable_refcnt[gate->clk_num]++) in clk_periph_enable()
111 WARN_ON(!gate->enable_refcnt[gate->clk_num]); in clk_periph_disable()
113 if (--gate->enable_refcnt[gate->clk_num] == 0) in clk_periph_disable()
131 if (!gate->enable_refcnt[gate->clk_num]) in clk_periph_disable_unused()
146 unsigned long flags, int clk_num, int *enable_refcnt) in tegra_clk_register_periph_gate() argument
153 pregs = get_reg_bank(clk_num); in tegra_clk_register_periph_gate()
171 gate->clk_num = clk_num; in tegra_clk_register_periph_gate()
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()
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.h569 int clk_num; member
589 unsigned long flags, int clk_num, int *enable_refcnt);
667 .clk_num = _clk_num, \
799 void __iomem *clk_base, u32 offset, u32 clk_num, u8 div_flags,
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
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()
Dmtk_vcodec_enc_pm.c66 enc_clk->clk_num = of_property_count_strings(pdev->dev.of_node, in mtk_vcodec_init_enc_pm()
68 if (enc_clk->clk_num > 0) { in mtk_vcodec_init_enc_pm()
70 enc_clk->clk_num, sizeof(*clk_info), in mtk_vcodec_init_enc_pm()
82 for (i = 0; i < enc_clk->clk_num; i++) { in mtk_vcodec_init_enc_pm()
119 for (i = 0; i < enc_clk->clk_num; i++) { in mtk_vcodec_enc_clock_on()
155 for (i = enc_clk->clk_num - 1; i >= 0; i--) in mtk_vcodec_enc_clock_off()
/kernel/linux/linux-5.10/drivers/clk/mediatek/
Dclk-mtk.c20 struct clk_onecell_data *mtk_alloc_clk_data(unsigned int clk_num) in mtk_alloc_clk_data() argument
29 clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); in mtk_alloc_clk_data()
33 clk_data->clk_num = clk_num; in mtk_alloc_clk_data()
35 for (i = 0; i < clk_num; i++) in mtk_alloc_clk_data()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/clk/st/
Dclk-flexgen.c353 __func__, clk_data->clk_num); in st_of_flexgen_setup()
356 clk_data->clk_num = ret; in st_of_flexgen_setup()
358 clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), in st_of_flexgen_setup()
369 for (i = 0; i < clk_data->clk_num; i++) { in st_of_flexgen_setup()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/clk/nxp/
Dclk-lpc18xx-creg.c164 .clk_num = CREG_CLK_MAX,
193 .clk_num = CREG_CLK_MAX,
/kernel/linux/linux-5.10/drivers/clk/sunxi/
Dclk-sun6i-apb0-gates.c89 clk_data->clk_num = ngates + 1; in sun6i_a31_apb0_gates_clk_probe()
Dclk-sun8i-bus-gates.c93 clk_data->clk_num = number + 1; in sun8i_h3_bus_gates_init()
/kernel/linux/linux-5.10/drivers/clk/renesas/
Dclk-mstp.c245 group->data.clk_num = max(group->data.clk_num, in cpg_mstp_clocks_init()
Dclk-r8a7778.c115 cpg->data.clk_num = num_clks; in r8a7778_cpg_clocks_init()
Dclk-rz.c102 cpg->data.clk_num = num_clks; in rz_cpg_clocks_init()
/kernel/linux/linux-5.10/drivers/clk/ux500/
Dabx500-clk.c82 ab8500_clk_data.clk_num = ARRAY_SIZE(ab8500_clks); in ab8500_reg_clks()
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk-imx1.c70 clk_data.clk_num = ARRAY_SIZE(clk); in mx1_clocks_init_dt()

1234