Home
last modified time | relevance | path

Searched refs:cclk (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v5.10/drivers/clk/ti/
Dcomposite.c124 struct clk_hw_omap_comp *cclk = to_clk_hw_comp(hw); in _register_composite() local
133 if (!cclk->comp_nodes[i]) in _register_composite()
136 comp = _lookup_component(cclk->comp_nodes[i]); in _register_composite()
139 cclk->comp_nodes[i]->name, node); in _register_composite()
146 if (cclk->comp_clks[comp->type] != NULL) { in _register_composite()
152 cclk->comp_clks[comp->type] = comp; in _register_composite()
155 cclk->comp_nodes[i] = NULL; in _register_composite()
160 comp = cclk->comp_clks[i]; in _register_composite()
177 _get_hw(cclk, CLK_COMPONENT_TYPE_MUX), in _register_composite()
179 _get_hw(cclk, CLK_COMPONENT_TYPE_DIVIDER), in _register_composite()
[all …]
/Linux-v5.10/drivers/clk/sprd/
Dcommon.c28 struct sprd_clk_common *cclk; in sprd_clk_set_regmap() local
31 cclk = desc->clk_clks[i]; in sprd_clk_set_regmap()
32 if (!cclk) in sprd_clk_set_regmap()
35 cclk->regmap = regmap; in sprd_clk_set_regmap()
/Linux-v5.10/sound/soc/samsung/
Dpcm.c128 struct clk *cclk; member
288 clk = pcm->cclk; in s3c_pcm_hw_params()
421 if (clk_get_rate(pcm->cclk) != freq) in s3c_pcm_set_sysclk()
422 clk_set_rate(pcm->cclk, freq); in s3c_pcm_set_sysclk()
520 pcm->cclk = devm_clk_get(&pdev->dev, "audio-bus"); in s3c_pcm_dev_probe()
521 if (IS_ERR(pcm->cclk)) { in s3c_pcm_dev_probe()
523 return PTR_ERR(pcm->cclk); in s3c_pcm_dev_probe()
525 ret = clk_prepare_enable(pcm->cclk); in s3c_pcm_dev_probe()
578 clk_disable_unprepare(pcm->cclk); in s3c_pcm_dev_probe()
587 clk_disable_unprepare(pcm->cclk); in s3c_pcm_dev_remove()
/Linux-v5.10/drivers/clk/sunxi-ng/
Dccu_common.c89 struct ccu_common *cclk = desc->ccu_clks[i]; in sunxi_ccu_probe() local
91 if (!cclk) in sunxi_ccu_probe()
94 cclk->base = reg; in sunxi_ccu_probe()
95 cclk->lock = &ccu_lock; in sunxi_ccu_probe()
/Linux-v5.10/drivers/spi/
Dspi-qup.c128 struct clk *cclk; /* core clock */ member
672 ret = clk_set_rate(controller->cclk, xfer->speed_hz); in spi_qup_io_prep()
998 struct clk *iclk, *cclk; in spi_qup_probe() local
1016 cclk = devm_clk_get(dev, "core"); in spi_qup_probe()
1017 if (IS_ERR(cclk)) in spi_qup_probe()
1018 return PTR_ERR(cclk); in spi_qup_probe()
1033 ret = clk_prepare_enable(cclk); in spi_qup_probe()
1041 clk_disable_unprepare(cclk); in spi_qup_probe()
1048 clk_disable_unprepare(cclk); in spi_qup_probe()
1078 controller->cclk = cclk; in spi_qup_probe()
[all …]
/Linux-v5.10/drivers/iio/adc/
Dti-adc12138.c41 struct clk *cclk; member
437 adc->cclk = devm_clk_get(&spi->dev, NULL); in adc12138_probe()
438 if (IS_ERR(adc->cclk)) in adc12138_probe()
439 return PTR_ERR(adc->cclk); in adc12138_probe()
461 ret = clk_prepare_enable(adc->cclk); in adc12138_probe()
499 clk_disable_unprepare(adc->cclk); in adc12138_probe()
514 clk_disable_unprepare(adc->cclk); in adc12138_remove()
/Linux-v5.10/Documentation/devicetree/bindings/clock/
Drenesas,h8300-div-clock.txt18 cclk: cclk {
/Linux-v5.10/drivers/clk/rockchip/
Dclk-cpu.c254 struct clk *clk, *cclk; in rockchip_clk_register_cpuclk() local
327 cclk = clk_register(NULL, &cpuclk->hw); in rockchip_clk_register_cpuclk()
328 if (IS_ERR(cclk)) { in rockchip_clk_register_cpuclk()
330 ret = PTR_ERR(cclk); in rockchip_clk_register_cpuclk()
334 return cclk; in rockchip_clk_register_cpuclk()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_common.h198 u32 cclk; /* Core Clock (KHz) */ member
311 return adapter->params.vpd.cclk / 1000; in core_ticks_per_usec()
317 return (us * adapter->params.vpd.cclk) / 1000; in us_to_core_ticks()
323 return (ticks * 1000) / adapter->params.vpd.cclk; in core_ticks_to_us()
/Linux-v5.10/drivers/net/can/m_can/
Dm_can_platform.c107 mcan_class->can.clock.freq = clk_get_rate(mcan_class->cclk); in m_can_plat_probe()
154 clk_disable_unprepare(mcan_class->cclk); in m_can_runtime_suspend()
170 err = clk_prepare_enable(mcan_class->cclk); in m_can_runtime_resume()
Dm_can.h78 struct clk *cclk; member
Dtcan4x5x.c459 if (IS_ERR(mcan_class->cclk)) { in tcan4x5x_can_probe()
463 freq = clk_get_rate(mcan_class->cclk); in tcan4x5x_can_probe()
Dm_can.c1766 m_can_dev->cclk = devm_clk_get(m_can_dev->dev, "cclk"); in m_can_class_get_clocks()
1768 if (IS_ERR(m_can_dev->cclk)) { in m_can_class_get_clocks()
/Linux-v5.10/arch/arm/boot/dts/
Dstm32mp153.dtsi34 clock-names = "hclk", "cclk";
47 clock-names = "hclk", "cclk";
Ddra76x.dtsi36 clock-names = "hclk", "cclk";
Dsama5d2.dtsi733 clock-names = "hclk", "cclk";
1139 clock-names = "hclk", "cclk";
/Linux-v5.10/drivers/scsi/csiostor/
Dcsio_hw.h265 uint32_t cclk; member
582 return (ticks * 1000 + hw->vpd.cclk/2) / hw->vpd.cclk; in csio_core_ticks_to_us()
588 return (us * hw->vpd.cclk) / 1000; in csio_us_to_core_ticks()
/Linux-v5.10/drivers/mmc/host/
Dmmci_stm32_sdmmc.c210 host->cclk = host->mclk; in mmci_sdmmc_set_clkreg()
215 host->cclk = host->mclk / (2 * clk); in mmci_sdmmc_set_clkreg()
224 host->cclk = host->mclk / (2 * clk); in mmci_sdmmc_set_clkreg()
229 host->mmc->actual_clock = host->cclk; in mmci_sdmmc_set_clkreg()
Dmmci.c358 if (host->cclk < 25000000) in mmci_reg_delay()
409 host->cclk = 0; in mmci_set_clkreg()
413 host->cclk = host->mclk; in mmci_set_clkreg()
418 host->cclk = host->mclk; in mmci_set_clkreg()
429 host->cclk = host->mclk / (clk + 2); in mmci_set_clkreg()
438 host->cclk = host->mclk / (2 * (clk + 1)); in mmci_set_clkreg()
448 host->mmc->actual_clock = host->cclk; in mmci_set_clkreg()
1142 clks = (unsigned long long)data->timeout_ns * host->cclk; in mmci_start_data()
1244 clks = (unsigned long long)cmd->busy_timeout * host->cclk; in mmci_start_command()
Dmmci.h406 unsigned int cclk; member
/Linux-v5.10/drivers/clk/tegra/
DMakefile16 obj-y += clk-tegra-super-cclk.o
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb3/
Dcommon.h355 unsigned int cclk; member
634 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec()
Dt3_hw.c198 u32 clkdiv = adap->params.vpd.cclk / (2 * adap->params.vpd.mdc) - 1; in mi1_init()
583 VPD_ENTRY(cclk, 6); /* core clock */
730 ret = vpdstrtouint(vpd.cclk_data, vpd.cclk_len, 10, &p->cclk); in get_vpd_params()
3040 unsigned int clk = adap->params.vpd.cclk * 1000; in t3_config_sched()
3081 tp_set_timers(adap, adap->params.vpd.cclk * 1000); in tp_init()
3567 V_I2C_CLKDIV(adapter->params.vpd.cclk / 80 - 1)); in early_hw_init()
Dxgmac.c407 thres = (adap->params.vpd.cclk * 1000) / 15625; in t3_mac_set_mtu()
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h392 unsigned int cclk; member
1687 return adap->params.vpd.cclk / 1000; in core_ticks_per_usec()
1693 return (us * adap->params.vpd.cclk) / 1000; in us_to_core_ticks()
1700 return ((ticks * 1000 + adapter->params.vpd.cclk/2) / in core_ticks_to_us()
1701 adapter->params.vpd.cclk); in core_ticks_to_us()

12