Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
135 clk_bulk_disable(simple->num_clocks, simple->clks); in dwc3_of_simple_runtime_suspend()
144 return clk_bulk_enable(simple->num_clocks, simple->clks); in dwc3_of_simple_runtime_resume()
Ddwc3-qcom.c72 int num_clocks; member
372 for (i = qcom->num_clocks - 1; i >= 0; i--) in dwc3_qcom_suspend()
398 for (i = 0; i < qcom->num_clocks; i++) { in dwc3_qcom_resume()
555 qcom->num_clocks = count; in dwc3_qcom_clk_init()
557 qcom->clks = devm_kcalloc(dev, qcom->num_clocks, in dwc3_qcom_clk_init()
562 for (i = 0; i < qcom->num_clocks; i++) { in dwc3_qcom_clk_init()
866 for (i = qcom->num_clocks - 1; i >= 0; i--) { in dwc3_qcom_probe()
884 for (i = qcom->num_clocks - 1; i >= 0; i--) { in dwc3_qcom_remove()
888 qcom->num_clocks = 0; in dwc3_qcom_remove()
/kernel/linux/linux-5.10/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()
62 clk_bulk_disable_unprepare(data->num_clocks, chip_pm->clks); in gic_runtime_suspend()
90 chip_pm->clks = devm_kcalloc(dev, data->num_clocks, in gic_probe()
95 for (i = 0; i < data->num_clocks; i++) in gic_probe()
98 ret = devm_clk_bulk_get(dev, data->num_clocks, chip_pm->clks); in gic_probe()
143 .num_clocks = ARRAY_SIZE(gic400_clocks),
/kernel/linux/linux-5.10/drivers/media/platform/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()
88 for (i = 0; i < pm->num_clocks; i++) { in s5p_mfc_power_on()
116 for (i = 0; i < pm->num_clocks; i++) in s5p_mfc_power_off()
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
Dclock.c21 __le16 num_clocks; member
71 int num_clocks; member
93 ci->num_clocks = le16_to_cpu(attr->num_clocks); in scmi_clock_protocol_attributes_get()
309 return ci->num_clocks; in scmi_clock_count_get()
350 cinfo->clk = devm_kcalloc(handle->dev, cinfo->num_clocks, in scmi_clock_protocol_init()
355 for (clkid = 0; clkid < cinfo->num_clocks; clkid++) { in scmi_clock_protocol_init()
/kernel/linux/linux-5.10/drivers/iommu/
Drockchip-iommu.c105 int num_clocks; member
533 if (WARN_ON(clk_bulk_enable(iommu->num_clocks, iommu->clocks))) in rk_iommu_irq()
582 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_irq()
636 WARN_ON(clk_bulk_enable(iommu->num_clocks, in rk_iommu_zap_iova()
639 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_zap_iova()
850 WARN_ON(clk_bulk_enable(iommu->num_clocks, iommu->clocks)); in rk_iommu_disable()
858 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_disable()
868 ret = clk_bulk_enable(iommu->num_clocks, iommu->clocks); in rk_iommu_enable()
892 clk_bulk_disable(iommu->num_clocks, iommu->clocks); in rk_iommu_enable()
1165 iommu->num_clocks = ARRAY_SIZE(rk_iommu_clocks); in rk_iommu_probe()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
Dimx8m_vpu_hw.c57 ret = clk_bulk_prepare_enable(vpu->variant->num_clocks, vpu->clocks); in imx8mq_runtime_resume()
71 clk_bulk_disable_unprepare(vpu->variant->num_clocks, vpu->clocks); in imx8mq_runtime_resume()
217 .num_clocks = ARRAY_SIZE(imx8mq_clk_names),
Dhantro_drv.c87 clk_bulk_disable(vpu->variant->num_clocks, vpu->clocks); in hantro_job_finish()
169 ret = clk_bulk_enable(ctx->dev->variant->num_clocks, ctx->dev->clocks); in device_run()
761 vpu->clocks = devm_kcalloc(&pdev->dev, vpu->variant->num_clocks, in hantro_probe()
766 for (i = 0; i < vpu->variant->num_clocks; i++) in hantro_probe()
768 ret = devm_clk_bulk_get(&pdev->dev, vpu->variant->num_clocks, in hantro_probe()
829 ret = clk_bulk_prepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe()
887 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_probe()
906 clk_bulk_unprepare(vpu->variant->num_clocks, vpu->clocks); in hantro_remove()
Drk3399_vpu_hw.c204 .num_clocks = ARRAY_SIZE(rk3399_clk_names)
221 .num_clocks = ARRAY_SIZE(rk3399_clk_names),
Drk3288_vpu_hw.c235 .num_clocks = ARRAY_SIZE(rk3288_clk_names)
/kernel/linux/linux-5.10/drivers/clk/tegra/
Dclk-bpmp.c453 unsigned int num_clocks, unsigned int id) in tegra_bpmp_clk_find() argument
457 for (i = 0; i < num_clocks; i++) in tegra_bpmp_clk_find()
468 unsigned int num_clocks) in tegra_bpmp_clk_register() argument
519 parent = tegra_bpmp_clk_find(clocks, num_clocks, in tegra_bpmp_clk_register()
549 bpmp->num_clocks = count; in tegra_bpmp_register_clocks()
576 for (i = 0; i < bpmp->num_clocks; i++) in tegra_bpmp_unregister_clocks()
586 for (i = 0; i < bpmp->num_clocks; i++) { in tegra_bpmp_clk_of_xlate()
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c110 int num_clocks; member
128 int num_clocks; member
1228 ctx->num_clocks = driver_data->num_clocks; in gsc_probe()
1260 for (i = 0; i < ctx->num_clocks; i++) { in gsc_probe()
1331 for (i = ctx->num_clocks - 1; i >= 0; i--) in gsc_runtime_suspend()
1344 for (i = 0; i < ctx->num_clocks; i++) { in gsc_runtime_resume()
1387 .num_clocks = 1,
1394 .num_clocks = 1,
1401 .num_clocks = 4,
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/
Dgsc-core.c1049 .num_clocks = 1,
1061 .num_clocks = 1,
1071 .num_clocks = 1,
1082 .num_clocks = 4,
1132 gsc->num_clocks = drv_data->num_clocks; in gsc_probe()
1151 for (i = 0; i < gsc->num_clocks; i++) { in gsc_probe()
1160 for (i = 0; i < gsc->num_clocks; i++) { in gsc_probe()
1203 for (i = gsc->num_clocks - 1; i >= 0; i--) in gsc_probe()
1219 for (i = 0; i < gsc->num_clocks; i++) in gsc_remove()
1275 for (i = 0; i < gsc->num_clocks; i++) { in gsc_runtime_resume()
[all …]
Dgsc-core.h308 int num_clocks; member
332 int num_clocks; member
/kernel/linux/linux-5.10/drivers/clk/keystone/
Dsci-clk.c45 int num_clocks; member
397 clk = bsearch(&key, provider->clocks, provider->num_clocks, in sci_clk_get()
411 for (i = 0; i < p->num_clocks; i++) { in ti_sci_init_clocks()
497 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_fw()
633 provider->num_clocks = num_clks; in ti_sci_scan_clocks_from_dt()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dni_at_a2150.c96 int num_clocks; /* number of available master clock speeds */ member
113 .num_clocks = 4,
119 .num_clocks = 3,
259 glb_index = board->num_clocks - 1; in a2150_get_timing()
271 for (j = 0; j < board->num_clocks; j++) { in a2150_get_timing()
/kernel/linux/linux-5.10/arch/c6x/platforms/
Dpll.c348 size_t num_clocks = 0; in c6x_clks_init() local
355 num_clocks++; in c6x_clks_init()
362 clkdev_add_table(clocks, num_clocks); in c6x_clks_init()
/kernel/linux/linux-5.10/drivers/clk/ingenic/
Dcgu.h220 unsigned num_clocks, struct device_node *np);
/kernel/linux/linux-5.10/drivers/clk/
Dclk-si5351.c1371 u8 num_parents, num_clocks; in si5351_i2c_probe() local
1550 num_clocks = (drvdata->variant == SI5351_VARIANT_A3) ? 3 : 8; in si5351_i2c_probe()
1557 drvdata->msynth = devm_kcalloc(&client->dev, num_clocks, in si5351_i2c_probe()
1559 drvdata->clkout = devm_kcalloc(&client->dev, num_clocks, in si5351_i2c_probe()
1561 drvdata->num_clkout = num_clocks; in si5351_i2c_probe()
1568 for (n = 0; n < num_clocks; n++) { in si5351_i2c_probe()
1592 for (n = 0; n < num_clocks; n++) { in si5351_i2c_probe()
/kernel/linux/linux-5.10/drivers/media/platform/s5p-jpeg/
Djpeg-core.h148 int num_clocks; member
/kernel/linux/linux-5.10/drivers/clk/ti/
Dclk.c458 void omap2_clk_enable_init_clocks(const char **clk_names, u8 num_clocks) in omap2_clk_enable_init_clocks() argument
463 for (i = 0; i < num_clocks; i++) { in omap2_clk_enable_init_clocks()
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dmedia-dev.h134 int num_clocks; member
/kernel/linux/linux-5.10/include/soc/tegra/
Dbpmp.h83 unsigned int num_clocks; member
/kernel/linux/linux-5.10/drivers/clk/imx/
Dclk-imx6q.c220 int index, ret, num_clocks; in pll6_bypassed() local
223 num_clocks = of_count_phandle_with_args(node, "assigned-clocks", in pll6_bypassed()
225 if (num_clocks < 0) in pll6_bypassed()
228 for (index = 0; index < num_clocks; index++) { in pll6_bypassed()
241 if (index == num_clocks) in pll6_bypassed()

12