Home
last modified time | relevance | path

Searched refs:num_clocks (Results 1 – 25 of 49) sorted by relevance

12

/Linux-v6.6/drivers/usb/dwc3/
Ddwc3-of-simple.c28 int num_clocks; member
71 simple->num_clocks = ret; in dwc3_of_simple_probe()
72 ret = clk_bulk_prepare_enable(simple->num_clocks, simple->clks); in dwc3_of_simple_probe()
87 clk_bulk_disable_unprepare(simple->num_clocks, simple->clks); in dwc3_of_simple_probe()
88 clk_bulk_put_all(simple->num_clocks, simple->clks); in dwc3_of_simple_probe()
102 clk_bulk_disable_unprepare(simple->num_clocks, simple->clks); in __dwc3_of_simple_teardown()
103 clk_bulk_put_all(simple->num_clocks, simple->clks); in __dwc3_of_simple_teardown()
104 simple->num_clocks = 0; in __dwc3_of_simple_teardown()
133 clk_bulk_disable(simple->num_clocks, simple->clks); in dwc3_of_simple_runtime_suspend()
142 return clk_bulk_enable(simple->num_clocks, simple->clks); in dwc3_of_simple_runtime_resume()
Ddwc3-xilinx.c45 int num_clocks; member
281 priv_data->num_clocks = ret; in dwc3_xlnx_probe()
283 ret = clk_bulk_prepare_enable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_probe()
303 clk_bulk_disable_unprepare(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_probe()
315 clk_bulk_disable_unprepare(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_remove()
316 priv_data->num_clocks = 0; in dwc3_xlnx_remove()
327 clk_bulk_disable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_runtime_suspend()
336 return clk_bulk_enable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_runtime_resume()
354 clk_bulk_disable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_suspend()
364 ret = clk_bulk_enable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_resume()
Ddwc3-qcom.c73 int num_clocks; member
432 for (i = qcom->num_clocks - 1; i >= 0; i--) in dwc3_qcom_suspend()
464 for (i = 0; i < qcom->num_clocks; i++) { in dwc3_qcom_resume()
621 qcom->num_clocks = count; in dwc3_qcom_clk_init()
623 qcom->clks = devm_kcalloc(dev, qcom->num_clocks, in dwc3_qcom_clk_init()
628 for (i = 0; i < qcom->num_clocks; i++) { in dwc3_qcom_clk_init()
939 for (i = qcom->num_clocks - 1; i >= 0; i--) { in dwc3_qcom_probe()
962 for (i = qcom->num_clocks - 1; i >= 0; i--) { in dwc3_qcom_remove()
966 qcom->num_clocks = 0; in dwc3_qcom_remove()
/Linux-v6.6/drivers/interconnect/
Dicc-clk.c18 int num_clocks; member
19 struct icc_clk_node clocks[] __counted_by(num_clocks);
78 unsigned int num_clocks, in icc_clk_register() argument
87 onecell = devm_kzalloc(dev, struct_size(onecell, nodes, 2 * num_clocks), GFP_KERNEL); in icc_clk_register()
91 qp = devm_kzalloc(dev, struct_size(qp, clocks, num_clocks), GFP_KERNEL); in icc_clk_register()
95 qp->num_clocks = num_clocks; in icc_clk_register()
108 for (i = 0, j = 0; i < num_clocks; i++) { in icc_clk_register()
163 for (i = 0; i < qp->num_clocks; i++) { in icc_clk_unregister()
/Linux-v6.6/drivers/irqchip/
Dirq-gic-pm.c15 unsigned int num_clocks; member
32 ret = clk_bulk_prepare_enable(data->num_clocks, chip_pm->clks); in gic_runtime_resume()
60 clk_bulk_disable_unprepare(data->num_clocks, chip_pm->clks); in gic_runtime_suspend()
88 chip_pm->clks = devm_kcalloc(dev, data->num_clocks, in gic_probe()
93 for (i = 0; i < data->num_clocks; i++) in gic_probe()
96 ret = devm_clk_bulk_get(dev, data->num_clocks, chip_pm->clks); in gic_probe()
141 .num_clocks = ARRAY_SIZE(gic400_clocks),
/Linux-v6.6/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_pm.c28 pm->num_clocks = dev->variant->num_clocks; in s5p_mfc_init_pm()
34 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_init_pm()
86 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_power_on()
113 for (i = 0; i < pm->num_clocks; i++) in s5p_mfc_power_off()
/Linux-v6.6/drivers/gpu/drm/msm/
Dmsm_mdss.c36 size_t num_clocks; member
248 ret = clk_bulk_prepare_enable(msm_mdss->num_clocks, msm_mdss->clocks); in msm_mdss_enable()
298 clk_bulk_disable_unprepare(msm_mdss->num_clocks, msm_mdss->clocks); in msm_mdss_disable()
350 int num_clocks = 0; in mdp5_mdss_parse_clock() local
360 bulk[num_clocks++].id = "iface"; in mdp5_mdss_parse_clock()
361 bulk[num_clocks++].id = "bus"; in mdp5_mdss_parse_clock()
362 bulk[num_clocks++].id = "vsync"; in mdp5_mdss_parse_clock()
364 ret = devm_clk_bulk_get_optional(&pdev->dev, num_clocks, bulk); in mdp5_mdss_parse_clock()
370 return num_clocks; in mdp5_mdss_parse_clock()
408 msm_mdss->num_clocks = ret; in msm_mdss_init()
/Linux-v6.6/drivers/media/platform/verisilicon/
Dimx8m_vpu_hw.c58 ret = clk_bulk_prepare_enable(vpu->variant->num_clocks, vpu->clocks); in imx8mq_runtime_resume()
72 clk_bulk_disable_unprepare(vpu->variant->num_clocks, vpu->clocks); in imx8mq_runtime_resume()
357 .num_clocks = ARRAY_SIZE(imx8mq_clk_names),
374 .num_clocks = ARRAY_SIZE(imx8mq_g1_clk_names),
389 .num_clocks = ARRAY_SIZE(imx8mq_g2_clk_names),
401 .num_clocks = ARRAY_SIZE(imx8mq_g1_clk_names),
Drockchip_vpu_hw.c670 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names)
695 .num_clocks = ARRAY_SIZE(rk3066_vpu_clk_names)
715 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names)
731 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names),
753 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names)
766 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names)
780 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names)
797 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names)
813 .num_clocks = ARRAY_SIZE(rk3588_vpu981_vpu_clk_names)
Dhantro_drv.c95 clk_bulk_disable(vpu->variant->num_clocks, vpu->clocks); in hantro_job_finish()
182 ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks); in device_run()
1015 vpu->clocks = devm_kcalloc(&pdev->dev, vpu->variant->num_clocks, in hantro_probe()
1020 if (vpu->variant->num_clocks > 1) { in hantro_probe()
1021 for (i = 0; i < vpu->variant->num_clocks; i++) in hantro_probe()
1024 ret = devm_clk_bulk_get(&pdev->dev, vpu->variant->num_clocks, in hantro_probe()
1119 ret = clk_bulk_prepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe()
1175 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe()
1196 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_remove()
Dsama5d4_vdec_hw.c127 .num_clocks = ARRAY_SIZE(sama5d4_clk_names),
/Linux-v6.6/drivers/clk/tegra/
Dclk-bpmp.c476 unsigned int num_clocks, unsigned int id) in tegra_bpmp_clk_id_to_index() argument
480 for (i = 0; i < num_clocks; i++) in tegra_bpmp_clk_id_to_index()
489 unsigned int num_clocks, unsigned int id) in tegra_bpmp_clk_find() argument
493 i = tegra_bpmp_clk_id_to_index(clocks, num_clocks, id); in tegra_bpmp_clk_find()
495 if (i < num_clocks) in tegra_bpmp_clk_find()
505 unsigned int num_clocks) in tegra_bpmp_clk_register() argument
570 parent = tegra_bpmp_clk_find(clocks, num_clocks, in tegra_bpmp_clk_register()
636 bpmp->num_clocks = count; in tegra_bpmp_register_clocks()
653 for (i = 0; i < bpmp->num_clocks; i++) in tegra_bpmp_unregister_clocks()
663 for (i = 0; i < bpmp->num_clocks; i++) { in tegra_bpmp_clk_of_xlate()
/Linux-v6.6/drivers/firmware/arm_scmi/
Dclock.c27 __le16 num_clocks; member
99 int num_clocks; member
127 ci->num_clocks = le16_to_cpu(attr->num_clocks); in scmi_clock_protocol_attributes_get()
447 return ci->num_clocks; in scmi_clock_count_get()
456 if (clk_id >= ci->num_clocks) in scmi_clock_info_get()
544 return ci->num_clocks; in scmi_clk_get_num_sources()
594 cinfo->clk = devm_kcalloc(ph->dev, cinfo->num_clocks, in scmi_clock_protocol_init()
599 for (clkid = 0; clkid < cinfo->num_clocks; clkid++) { in scmi_clock_protocol_init()
/Linux-v6.6/drivers/iommu/
Drockchip-iommu.c111 int num_clocks; member
593 if (WARN_ON(clk_bulk_enable(iommu->num_clocks, iommu->clocks))) in rk_iommu_irq()
642 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_irq()
696 WARN_ON(clk_bulk_enable(iommu->num_clocks, in rk_iommu_zap_iova()
699 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_zap_iova()
910 WARN_ON(clk_bulk_enable(iommu->num_clocks, iommu->clocks)); in rk_iommu_disable()
918 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_disable()
928 ret = clk_bulk_enable(iommu->num_clocks, iommu->clocks); in rk_iommu_enable()
952 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_enable()
1259 iommu->num_clocks = ARRAY_SIZE(rk_iommu_clocks); in rk_iommu_probe()
[all …]
/Linux-v6.6/sound/pci/lola/
Dlola_proc.c51 int i, j, num_clocks; in print_clock_widget() local
56 num_clocks = val & 0xff; in print_clock_widget()
57 for (i = 0; i < num_clocks; i += 4) { in print_clock_widget()
71 if (i + j >= num_clocks) in print_clock_widget()
/Linux-v6.6/drivers/clk/mediatek/
Dclk-pllfh.c66 u32 num_clocks, pll_id, ssc_rate; in fhctl_parse_dt() local
81 num_clocks = of_clk_get_parent_count(node); in fhctl_parse_dt()
82 if (!num_clocks) { in fhctl_parse_dt()
87 for (i = 0; i < num_clocks; i++) { in fhctl_parse_dt()
/Linux-v6.6/drivers/gpu/drm/tegra/
Dgr3d.c36 unsigned int num_clocks; member
178 .num_clocks = 1,
184 .num_clocks = 2,
190 .num_clocks = 1,
454 if (gr3d->nclocks != gr3d->soc->num_clocks) { in gr3d_get_clocks()
/Linux-v6.6/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c108 int num_clocks; member
127 int num_clocks; member
1231 ctx->num_clocks = driver_data->num_clocks; in gsc_probe()
1263 for (i = 0; i < ctx->num_clocks; i++) { in gsc_probe()
1329 for (i = ctx->num_clocks - 1; i >= 0; i--) in gsc_runtime_suspend()
1342 for (i = 0; i < ctx->num_clocks; i++) { in gsc_runtime_resume()
1385 .num_clocks = 1,
1392 .num_clocks = 1,
1399 .num_clocks = 4,
/Linux-v6.6/drivers/media/platform/samsung/exynos-gsc/
Dgsc-core.c1047 .num_clocks = 1,
1059 .num_clocks = 1,
1069 .num_clocks = 1,
1080 .num_clocks = 4,
1130 gsc->num_clocks = drv_data->num_clocks; in gsc_probe()
1146 for (i = 0; i < gsc->num_clocks; i++) { in gsc_probe()
1155 for (i = 0; i < gsc->num_clocks; i++) { in gsc_probe()
1198 for (i = gsc->num_clocks - 1; i >= 0; i--) in gsc_probe()
1216 for (i = 0; i < gsc->num_clocks; i++) in gsc_remove()
1270 for (i = 0; i < gsc->num_clocks; i++) { in gsc_runtime_resume()
[all …]
/Linux-v6.6/drivers/clk/keystone/
Dsci-clk.c36 int num_clocks; member
390 clk = bsearch(&key, provider->clocks, provider->num_clocks, in sci_clk_get()
404 for (i = 0; i < p->num_clocks; i++) { in ti_sci_init_clocks()
490 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_fw()
626 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_dt()
/Linux-v6.6/include/linux/
Dinterconnect-clk.h18 unsigned int num_clocks,
/Linux-v6.6/drivers/comedi/drivers/
Dni_at_a2150.c94 int num_clocks; /* number of available master clock speeds */ member
111 .num_clocks = 4,
117 .num_clocks = 3,
257 glb_index = board->num_clocks - 1; in a2150_get_timing()
269 for (j = 0; j < board->num_clocks; j++) { in a2150_get_timing()
/Linux-v6.6/drivers/media/platform/nxp/
Dimx-mipi-csis.c308 unsigned int num_clocks; member
692 return clk_bulk_prepare_enable(csis->info->num_clocks, csis->clks); in mipi_csis_clk_enable()
697 clk_bulk_disable_unprepare(csis->info->num_clocks, csis->clks); in mipi_csis_clk_disable()
705 csis->clks = devm_kcalloc(csis->dev, csis->info->num_clocks, in mipi_csis_clk_get()
711 for (i = 0; i < csis->info->num_clocks; i++) in mipi_csis_clk_get()
714 ret = devm_clk_bulk_get(csis->dev, csis->info->num_clocks, in mipi_csis_clk_get()
1520 .num_clocks = 3,
1526 .num_clocks = 4,
/Linux-v6.6/drivers/clk/
Dclk-si5351.c1394 u8 num_parents, num_clocks; in si5351_i2c_probe() local
1573 num_clocks = (drvdata->variant == SI5351_VARIANT_A3) ? 3 : 8; in si5351_i2c_probe()
1580 drvdata->msynth = devm_kcalloc(&client->dev, num_clocks, in si5351_i2c_probe()
1582 drvdata->clkout = devm_kcalloc(&client->dev, num_clocks, in si5351_i2c_probe()
1584 drvdata->num_clkout = num_clocks; in si5351_i2c_probe()
1591 for (n = 0; n < num_clocks; n++) { in si5351_i2c_probe()
1615 for (n = 0; n < num_clocks; n++) { in si5351_i2c_probe()
/Linux-v6.6/drivers/clk/ingenic/
Dcgu.h234 unsigned num_clocks, struct device_node *np);

12