/linux-5.19.10/drivers/clk/tegra/ |
D | clk-periph-gate.c | 31 #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()
|
D | clk.c | 32 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()
|
D | clk-sdmmc-mux.c | 235 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()
|
D | clk-tegra-audio.c | 67 int clk_num; member 78 .clk_num = _num,\ 243 clk_base, CLK_SET_RATE_PARENT, data->clk_num, in tegra_audio_clk_init()
|
D | clk.h | 566 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-5.19.10/drivers/media/platform/mediatek/vcodec/ |
D | mtk_vcodec_enc_pm.c | 29 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()
|
D | mtk_vcodec_dec_pm.c | 26 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-5.19.10/drivers/clk/uniphier/ |
D | clk-uniphier-core.c | 49 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-5.19.10/drivers/clk/mvebu/ |
D | clk-corediv.c | 268 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()
|
D | common.c | 121 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-5.19.10/drivers/memory/ |
D | mtk-smi.c | 136 unsigned int clk_num; member 444 smi->clk_num = clk_nr_required + clk_nr_optional; in mtk_smi_dts_clk_init() 503 ret = clk_bulk_prepare_enable(larb->smi.clk_num, larb->smi.clks); in mtk_smi_larb_resume() 527 clk_bulk_disable_unprepare(larb->smi.clk_num, larb->smi.clks); in mtk_smi_larb_suspend() 701 ret = clk_bulk_prepare_enable(common->clk_num, common->clks); in mtk_smi_common_resume() 719 clk_bulk_disable_unprepare(common->clk_num, common->clks); in mtk_smi_common_suspend()
|
/linux-5.19.10/drivers/clk/ |
D | clk-scpi.c | 172 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-5.19.10/sound/soc/meson/ |
D | aiu-encoder-spdif.c | 188 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()
|
D | aiu-encoder-i2s.c | 308 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()
|
D | aiu.h | 26 unsigned int clk_num; member
|
/linux-5.19.10/drivers/clk/pistachio/ |
D | clk.c | 27 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-5.19.10/drivers/clk/mediatek/ |
D | clk-mtk.c | 21 struct clk_hw_onecell_data *mtk_alloc_clk_data(unsigned int clk_num) in mtk_alloc_clk_data() argument 26 clk_data = kzalloc(struct_size(clk_data, hws, clk_num), GFP_KERNEL); in mtk_alloc_clk_data() 30 clk_data->num = clk_num; in mtk_alloc_clk_data() 32 for (i = 0; i < clk_num; i++) in mtk_alloc_clk_data()
|
/linux-5.19.10/drivers/clk/st/ |
D | clk-flexgen.c | 687 __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-5.19.10/drivers/clk/nxp/ |
D | clk-lpc18xx-creg.c | 164 .clk_num = CREG_CLK_MAX, 193 .clk_num = CREG_CLK_MAX,
|
/linux-5.19.10/drivers/clk/sunxi/ |
D | clk-sun6i-apb0-gates.c | 87 clk_data->clk_num = ngates + 1; in sun6i_a31_apb0_gates_clk_probe()
|
D | clk-sun8i-bus-gates.c | 93 clk_data->clk_num = number + 1; in sun8i_h3_bus_gates_init()
|
/linux-5.19.10/drivers/clk/renesas/ |
D | clk-mstp.c | 245 group->data.clk_num = max(group->data.clk_num, in cpg_mstp_clocks_init()
|
D | clk-r8a7778.c | 115 cpg->data.clk_num = num_clks; in r8a7778_cpg_clocks_init()
|
/linux-5.19.10/drivers/clk/ux500/ |
D | abx500-clk.c | 82 ab8500_clk_data.clk_num = ARRAY_SIZE(ab8500_clks); in ab8500_reg_clks()
|
/linux-5.19.10/drivers/clk/imx/ |
D | clk-imx1.c | 70 clk_data.clk_num = ARRAY_SIZE(clk); in mx1_clocks_init_dt()
|