/Linux-v6.1/drivers/gpu/drm/tegra/ |
D | gr3d.c | 46 unsigned int nclocks; member 328 if (gr3d->nclocks == 1) { in gr3d_power_up_legacy_domain() 334 for (i = 0; i < gr3d->nclocks; i++) { in gr3d_power_up_legacy_domain() 344 if (WARN_ON(i == gr3d->nclocks)) in gr3d_power_up_legacy_domain() 459 gr3d->nclocks = err; in gr3d_get_clocks() 461 if (gr3d->nclocks != gr3d->soc->num_clocks) { in gr3d_get_clocks() 462 dev_err(dev, "invalid number of clocks: %u\n", gr3d->nclocks); in gr3d_get_clocks() 589 clk_bulk_disable_unprepare(gr3d->nclocks, gr3d->clocks); in gr3d_runtime_suspend() 606 err = clk_bulk_prepare_enable(gr3d->nclocks, gr3d->clocks); in gr3d_runtime_resume() 621 clk_bulk_disable_unprepare(gr3d->nclocks, gr3d->clocks); in gr3d_runtime_resume()
|
/Linux-v6.1/drivers/media/platform/qcom/camss/ |
D | camss-csiphy.c | 142 for (i = 0; i < csiphy->nclocks; i++) { in csiphy_set_clock_rates() 211 ret = camss_enable_clocks(csiphy->nclocks, csiphy->clock, dev); in csiphy_set_power() 225 camss_disable_clocks(csiphy->nclocks, csiphy->clock); in csiphy_set_power() 614 csiphy->nclocks = 0; in msm_csiphy_subdev_init() 615 while (res->clock[csiphy->nclocks]) in msm_csiphy_subdev_init() 616 csiphy->nclocks++; in msm_csiphy_subdev_init() 619 csiphy->nclocks, sizeof(*csiphy->clock), in msm_csiphy_subdev_init() 625 csiphy->nclocks, in msm_csiphy_subdev_init() 631 for (i = 0; i < csiphy->nclocks; i++) { in msm_csiphy_subdev_init()
|
D | camss-csid.c | 102 for (i = 0; i < csid->nclocks; i++) { in csid_set_clock_rates() 191 ret = camss_enable_clocks(csid->nclocks, csid->clock, dev); in csid_set_power() 204 camss_disable_clocks(csid->nclocks, csid->clock); in csid_set_power() 214 camss_disable_clocks(csid->nclocks, csid->clock); in csid_set_power() 622 csid->nclocks = 0; in msm_csid_subdev_init() 623 while (res->clock[csid->nclocks]) in msm_csid_subdev_init() 624 csid->nclocks++; in msm_csid_subdev_init() 626 csid->clock = devm_kcalloc(dev, csid->nclocks, sizeof(*csid->clock), in msm_csid_subdev_init() 631 for (i = 0; i < csid->nclocks; i++) { in msm_csid_subdev_init()
|
D | camss.h | 127 int camss_enable_clocks(int nclocks, struct camss_clock *clock, 129 void camss_disable_clocks(int nclocks, struct camss_clock *clock);
|
D | camss-vfe.c | 451 for (i = 0; i < vfe->nclocks; i++) { in vfe_set_clock_rates() 534 for (i = 0; i < vfe->nclocks; i++) { in vfe_check_clock_rates() 597 ret = camss_enable_clocks(vfe->nclocks, vfe->clock, in vfe_get() 623 camss_disable_clocks(vfe->nclocks, vfe->clock); in vfe_get() 652 camss_disable_clocks(vfe->nclocks, vfe->clock); in vfe_put() 1334 vfe->nclocks = 0; in msm_vfe_subdev_init() 1335 while (res->clock[vfe->nclocks]) in msm_vfe_subdev_init() 1336 vfe->nclocks++; in msm_vfe_subdev_init() 1338 vfe->clock = devm_kcalloc(dev, vfe->nclocks, sizeof(*vfe->clock), in msm_vfe_subdev_init() 1343 for (i = 0; i < vfe->nclocks; i++) { in msm_vfe_subdev_init()
|
D | camss-ispif.c | 379 ret = camss_enable_clocks(ispif->nclocks, ispif->clock, dev); in ispif_set_power() 388 camss_disable_clocks(ispif->nclocks, ispif->clock); in ispif_set_power() 401 camss_disable_clocks(ispif->nclocks, ispif->clock); in ispif_set_power() 1179 ispif->nclocks = 0; in msm_ispif_subdev_init() 1180 while (res->clock[ispif->nclocks]) in msm_ispif_subdev_init() 1181 ispif->nclocks++; in msm_ispif_subdev_init() 1184 ispif->nclocks, sizeof(*ispif->clock), in msm_ispif_subdev_init() 1189 for (i = 0; i < ispif->nclocks; i++) { in msm_ispif_subdev_init()
|
D | camss-ispif.h | 56 int nclocks; member
|
D | camss-csiphy.h | 77 int nclocks; member
|
D | camss-csid.h | 154 int nclocks; member
|
D | camss.c | 889 int camss_enable_clocks(int nclocks, struct camss_clock *clock, in camss_enable_clocks() argument 895 for (i = 0; i < nclocks; i++) { in camss_enable_clocks() 917 void camss_disable_clocks(int nclocks, struct camss_clock *clock) in camss_disable_clocks() argument 921 for (i = nclocks - 1; i >= 0; i--) in camss_disable_clocks()
|
D | camss-vfe.h | 137 int nclocks; member
|
/Linux-v6.1/sound/pci/hda/ |
D | hda_tegra.c | 82 unsigned int nclocks; member 167 clk_bulk_disable_unprepare(hda->nclocks, hda->clocks); in hda_tegra_runtime_suspend() 185 rc = clk_bulk_prepare_enable(hda->nclocks, hda->clocks); in hda_tegra_runtime_resume() 521 hda->clocks[hda->nclocks++].id = "hda"; in hda_tegra_probe() 523 hda->clocks[hda->nclocks++].id = "hda2hdmi"; in hda_tegra_probe() 524 hda->clocks[hda->nclocks++].id = "hda2codec_2x"; in hda_tegra_probe() 526 err = devm_clk_bulk_get(&pdev->dev, hda->nclocks, hda->clocks); in hda_tegra_probe()
|
/Linux-v6.1/sound/soc/tegra/ |
D | tegra30_ahub.c | 48 clk_bulk_disable_unprepare(ahub->nclocks, ahub->clocks); in tegra30_ahub_runtime_suspend() 72 ret = clk_bulk_prepare_enable(ahub->nclocks, ahub->clocks); in tegra30_ahub_runtime_resume() 98 clk_bulk_disable_unprepare(ahub->nclocks, ahub->clocks); in tegra30_ahub_runtime_resume() 537 ahub->clocks[ahub->nclocks++].id = "apbif"; in tegra30_ahub_probe() 538 ahub->clocks[ahub->nclocks++].id = "d_audio"; in tegra30_ahub_probe() 540 ret = devm_clk_bulk_get(&pdev->dev, ahub->nclocks, ahub->clocks); in tegra30_ahub_probe()
|
D | tegra30_ahub.h | 517 unsigned int nclocks; member
|
/Linux-v6.1/drivers/i2c/busses/ |
D | i2c-tegra.c | 273 unsigned int nclocks; member 1691 i2c_dev->clocks[i2c_dev->nclocks++].id = "div-clk"; in tegra_i2c_init_clocks() 1694 i2c_dev->clocks[i2c_dev->nclocks++].id = "fast-clk"; in tegra_i2c_init_clocks() 1697 i2c_dev->clocks[i2c_dev->nclocks++].id = "slow"; in tegra_i2c_init_clocks() 1699 err = devm_clk_bulk_get(i2c_dev->dev, i2c_dev->nclocks, in tegra_i2c_init_clocks() 1704 err = clk_bulk_prepare(i2c_dev->nclocks, i2c_dev->clocks); in tegra_i2c_init_clocks() 1722 clk_bulk_unprepare(i2c_dev->nclocks, i2c_dev->clocks); in tegra_i2c_init_clocks() 1732 clk_bulk_unprepare(i2c_dev->nclocks, i2c_dev->clocks); in tegra_i2c_release_clocks() 1878 err = clk_bulk_enable(i2c_dev->nclocks, i2c_dev->clocks); in tegra_i2c_runtime_resume() 1896 clk_bulk_disable(i2c_dev->nclocks, i2c_dev->clocks); in tegra_i2c_runtime_resume() [all …]
|
D | i2c-qcom-cci.c | 133 int nclocks; member 472 return clk_bulk_prepare_enable(cci->nclocks, cci->clocks); in cci_enable_clocks() 477 clk_bulk_disable_unprepare(cci->nclocks, cci->clocks); in cci_disable_clocks() 596 cci->nclocks = ret; in cci_probe() 599 for (i = 0; i < cci->nclocks; i++) { in cci_probe()
|
/Linux-v6.1/drivers/staging/board/ |
D | board.h | 19 unsigned int nclocks; member
|
D | armadillo800eva.c | 76 .nclocks = ARRAY_SIZE(lcdc0_clocks),
|
D | board.c | 181 for (i = 0; i < dev->nclocks; i++) in board_staging_register_device()
|
/Linux-v6.1/drivers/clk/zynqmp/ |
D | clkc.c | 201 static int zynqmp_pm_clock_get_num_clocks(u32 *nclocks) in zynqmp_pm_clock_get_num_clocks() argument 210 *nclocks = ret_payload[1]; in zynqmp_pm_clock_get_num_clocks()
|
/Linux-v6.1/drivers/clk/rockchip/ |
D | clk.c | 605 int nclocks) in rockchip_clk_protect_critical() argument 610 for (i = 0; i < nclocks; i++) { in rockchip_clk_protect_critical()
|
D | clk.h | 922 void rockchip_clk_protect_critical(const char *const clocks[], int nclocks);
|