/linux/drivers/interconnect/ |
H A D | icc-clk.c | 18 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() 90 onecell->num_nodes = 2 * num_clocks; in icc_clk_register() 92 qp = devm_kzalloc(dev, struct_size(qp, clocks, num_clocks), GFP_KERNEL); in icc_clk_register() 96 qp->num_clocks = num_clocks; in icc_clk_register() 109 for (i = 0, j = 0; i < num_clocks; i++) { in icc_clk_register() 156 unsigned int num_clocks, const struct icc_clk_data *data) in devm_icc_clk_register() argument 160 prov = icc_clk_register(dev, first_id, num_clocks, data); in devm_icc_clk_register() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-gic-pm.c | 15 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/drivers/usb/dwc3/ |
H A D | dwc3-xilinx.c | 42 int num_clocks; member 306 priv_data->num_clocks = ret; in dwc3_xlnx_probe() 308 ret = clk_bulk_prepare_enable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_probe() 341 clk_bulk_disable_unprepare(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_probe() 353 clk_bulk_disable_unprepare(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_remove() 354 priv_data->num_clocks = 0; in dwc3_xlnx_remove() 364 clk_bulk_disable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_runtime_suspend() 373 return clk_bulk_enable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_runtime_resume() 391 clk_bulk_disable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_suspend() 401 ret = clk_bulk_enable(priv_data->num_clocks, priv_data->clks); in dwc3_xlnx_resume()
|
/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_pm.c | 22 pm->num_clocks = dev->variant->num_clocks; in s5p_mfc_init_pm() 28 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_init_pm() 73 for (i = 0; i < dev->pm.num_clocks; i++) { in s5p_mfc_power_on() 100 for (i = 0; i < dev->pm.num_clocks; i++) in s5p_mfc_power_off()
|
/linux/drivers/gpu/drm/msm/ |
H A D | msm_mdss.c | 33 size_t num_clocks; member 293 ret = clk_bulk_prepare_enable(msm_mdss->num_clocks, msm_mdss->clocks); in msm_mdss_enable() 345 clk_bulk_disable_unprepare(msm_mdss->num_clocks, msm_mdss->clocks); in msm_mdss_disable() 402 int num_clocks = 0; in mdp5_mdss_parse_clock() local 412 bulk[num_clocks++].id = "iface"; in mdp5_mdss_parse_clock() 413 bulk[num_clocks++].id = "bus"; in mdp5_mdss_parse_clock() 414 bulk[num_clocks++].id = "vsync"; in mdp5_mdss_parse_clock() 416 ret = devm_clk_bulk_get_optional(&pdev->dev, num_clocks, bulk); in mdp5_mdss_parse_clock() 422 return num_clocks; in mdp5_mdss_parse_clock() 459 msm_mdss->num_clocks = ret; in msm_mdss_init()
|
/linux/drivers/media/platform/verisilicon/ |
H A D | imx8m_vpu_hw.c | 58 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),
|
H A D | rockchip_vpu_hw.c | 669 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names) 694 .num_clocks = ARRAY_SIZE(rk3066_vpu_clk_names) 714 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names) 730 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names), 752 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names) 765 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names) 779 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names) 796 .num_clocks = ARRAY_SIZE(rockchip_vpu_clk_names) 812 .num_clocks = ARRAY_SIZE(rk3588_vpu981_vpu_clk_names)
|
H A D | stm32mp25_vpu_hw.c | 166 .num_clocks = ARRAY_SIZE(stm32mp25_vdec_clk_names), 185 .num_clocks = ARRAY_SIZE(stm32mp25_venc_clk_names)
|
H A D | hantro_drv.c | 95 clk_bulk_disable(vpu->variant->num_clocks, vpu->clocks); in hantro_job_finish() 183 ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks); in device_run() 1073 vpu->clocks = devm_kcalloc(&pdev->dev, vpu->variant->num_clocks, in hantro_probe() 1078 if (vpu->variant->num_clocks > 1) { in hantro_probe() 1079 for (i = 0; i < vpu->variant->num_clocks; i++) in hantro_probe() 1082 ret = devm_clk_bulk_get(&pdev->dev, vpu->variant->num_clocks, in hantro_probe() 1177 ret = clk_bulk_prepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe() 1233 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe() 1254 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_remove()
|
H A D | sama5d4_vdec_hw.c | 127 .num_clocks = ARRAY_SIZE(sama5d4_clk_names),
|
H A D | sunxi_vpu_hw.c | 125 .num_clocks = ARRAY_SIZE(sunxi_clk_names),
|
/linux/drivers/clk/tegra/ |
H A D | clk-bpmp.c | 476 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/include/linux/ |
H A D | interconnect-clk.h | 20 unsigned int num_clocks, 23 unsigned int num_clocks, const struct icc_clk_data *data);
|
/linux/drivers/iommu/ |
H A D | rockchip-iommu.c | 113 int num_clocks; member 594 if (WARN_ON(clk_bulk_enable(iommu->num_clocks, iommu->clocks))) in rk_iommu_irq() 643 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_irq() 697 WARN_ON(clk_bulk_enable(iommu->num_clocks, in rk_iommu_zap_iova() 700 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_zap_iova() 914 WARN_ON(clk_bulk_enable(iommu->num_clocks, iommu->clocks)); in rk_iommu_disable() 922 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_disable() 932 ret = clk_bulk_enable(iommu->num_clocks, iommu->clocks); in rk_iommu_enable() 956 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_enable() 1234 iommu->num_clocks = ARRAY_SIZE(rk_iommu_clocks); in rk_iommu_probe() [all …]
|
/linux/sound/pci/lola/ |
H A D | lola_proc.c | 51 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/drivers/clk/mediatek/ |
H A D | clk-pllfh.c | 66 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/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 109 int num_clocks; member 128 int num_clocks; member 1232 ctx->num_clocks = driver_data->num_clocks; in gsc_probe() 1264 for (i = 0; i < ctx->num_clocks; i++) { in gsc_probe() 1328 for (i = ctx->num_clocks - 1; i >= 0; i--) in gsc_runtime_suspend() 1341 for (i = 0; i < ctx->num_clocks; i++) { in gsc_runtime_resume() 1384 .num_clocks = 1, 1391 .num_clocks = 1, 1398 .num_clocks = 4,
|
/linux/drivers/gpu/drm/tegra/ |
H A D | gr3d.c | 36 unsigned int num_clocks; member 179 .num_clocks = 1, 185 .num_clocks = 2, 191 .num_clocks = 1, 431 if (gr3d->nclocks != gr3d->soc->num_clocks) { in gr3d_get_clocks()
|
/linux/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 1047 .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/drivers/clk/keystone/ |
H A D | sci-clk.c | 36 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() 636 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_dt()
|
/linux/drivers/firmware/arm_scmi/ |
H A D | clock.c | 46 __le16 num_clocks; member 160 int num_clocks; member 184 if (clk_id >= ci->num_clocks) in scmi_clock_domain_lookup() 207 ci->num_clocks = le16_to_cpu(attr->num_clocks); in scmi_clock_protocol_attributes_get() 910 return ci->num_clocks; in scmi_clock_count_get() 1032 return ci->num_clocks; in scmi_clk_get_num_sources() 1083 cinfo->clk = devm_kcalloc(ph->dev, cinfo->num_clocks, in scmi_clock_protocol_init() 1088 for (clkid = 0; clkid < cinfo->num_clocks; clkid++) { in scmi_clock_protocol_init()
|
/linux/drivers/comedi/drivers/ |
H A D | ni_at_a2150.c | 94 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/drivers/media/platform/nxp/ |
H A D | imx-mipi-csis.c | 309 unsigned int num_clocks; member 697 return clk_bulk_prepare_enable(csis->info->num_clocks, csis->clks); in mipi_csis_clk_enable() 702 clk_bulk_disable_unprepare(csis->info->num_clocks, csis->clks); in mipi_csis_clk_disable() 710 csis->clks = devm_kcalloc(csis->dev, csis->info->num_clocks, in mipi_csis_clk_get() 716 for (i = 0; i < csis->info->num_clocks; i++) in mipi_csis_clk_get() 719 ret = devm_clk_bulk_get(csis->dev, csis->info->num_clocks, in mipi_csis_clk_get() 1558 .num_clocks = 3, 1564 .num_clocks = 4,
|
/linux/drivers/clk/ingenic/ |
H A D | cgu.h | 234 unsigned num_clocks, struct device_node *np);
|
/linux/drivers/clk/ |
H A D | clk-si5351.c | 1443 u8 num_parents, num_clocks; in si5351_i2c_probe() local 1623 num_clocks = (drvdata->variant == SI5351_VARIANT_A3) ? 3 : 8; in si5351_i2c_probe() 1630 drvdata->msynth = devm_kcalloc(&client->dev, num_clocks, in si5351_i2c_probe() 1632 drvdata->clkout = devm_kcalloc(&client->dev, num_clocks, in si5351_i2c_probe() 1634 drvdata->num_clkout = num_clocks; in si5351_i2c_probe() 1641 for (n = 0; n < num_clocks; n++) { in si5351_i2c_probe() 1665 for (n = 0; n < num_clocks; n++) { in si5351_i2c_probe()
|