/linux-6.6.21/drivers/clocksource/ |
D | mmio.c | 12 struct clocksource clksrc; member 17 return container_of(c, struct clocksource_mmio, clksrc); in to_mmio_clksrc() 63 cs->clksrc.name = name; in clocksource_mmio_init() 64 cs->clksrc.rating = rating; in clocksource_mmio_init() 65 cs->clksrc.read = read; in clocksource_mmio_init() 66 cs->clksrc.mask = CLOCKSOURCE_MASK(bits); in clocksource_mmio_init() 67 cs->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in clocksource_mmio_init() 69 return clocksource_register_hz(&cs->clksrc, hz); in clocksource_mmio_init()
|
D | timer-sun5i.c | 41 struct clocksource clksrc; member 48 container_of(x, struct sun5i_timer, clksrc) 141 static u64 sun5i_clksrc_read(struct clocksource *clksrc) in sun5i_clksrc_read() argument 143 struct sun5i_timer *cs = clksrc_to_sun5i_timer(clksrc); in sun5i_clksrc_read() 156 clocksource_unregister(&cs->clksrc); in sun5i_rate_cb() 160 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb() 183 cs->clksrc.name = pdev->dev.of_node->name; in sun5i_setup_clocksource() 184 cs->clksrc.rating = 340; in sun5i_setup_clocksource() 185 cs->clksrc.read = sun5i_clksrc_read; in sun5i_setup_clocksource() 186 cs->clksrc.mask = CLOCKSOURCE_MASK(32); in sun5i_setup_clocksource() [all …]
|
D | timer-atmel-pit.c | 40 struct clocksource clksrc; member 49 static inline struct pit_data *clksrc_to_pit_data(struct clocksource *clksrc) in clksrc_to_pit_data() argument 51 return container_of(clksrc, struct pit_data, clksrc); in clksrc_to_pit_data() 221 data->clksrc.mask = CLOCKSOURCE_MASK(bits); in at91sam926x_pit_dt_init() 222 data->clksrc.name = "pit"; in at91sam926x_pit_dt_init() 223 data->clksrc.rating = 175; in at91sam926x_pit_dt_init() 224 data->clksrc.read = read_pit_clk; in at91sam926x_pit_dt_init() 225 data->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in at91sam926x_pit_dt_init() 227 ret = clocksource_register_hz(&data->clksrc, pit_rate); in at91sam926x_pit_dt_init() 239 clocksource_unregister(&data->clksrc); in at91sam926x_pit_dt_init()
|
D | timer-ti-dm-systimer.c | 714 struct dmtimer_clocksource *clksrc = to_dmtimer_clocksource(cs); in dmtimer_clocksource_read_cycles() local 715 struct dmtimer_systimer *t = &clksrc->t; in dmtimer_clocksource_read_cycles() 729 struct dmtimer_clocksource *clksrc = to_dmtimer_clocksource(cs); in dmtimer_clocksource_suspend() local 730 struct dmtimer_systimer *t = &clksrc->t; in dmtimer_clocksource_suspend() 732 clksrc->loadval = readl_relaxed(t->base + t->counter); in dmtimer_clocksource_suspend() 739 struct dmtimer_clocksource *clksrc = to_dmtimer_clocksource(cs); in dmtimer_clocksource_resume() local 740 struct dmtimer_systimer *t = &clksrc->t; in dmtimer_clocksource_resume() 748 writel_relaxed(clksrc->loadval, t->base + t->counter); in dmtimer_clocksource_resume() 755 struct dmtimer_clocksource *clksrc; in dmtimer_clocksource_init() local 760 clksrc = kzalloc(sizeof(*clksrc), GFP_KERNEL); in dmtimer_clocksource_init() [all …]
|
D | timer-microchip-pit64b.c | 85 struct clocksource clksrc; member 90 struct mchp_pit64b_clksrc, clksrc)) 366 cs->clksrc.name = MCHP_PIT64B_NAME; in mchp_pit64b_init_clksrc() 367 cs->clksrc.mask = CLOCKSOURCE_MASK(64); in mchp_pit64b_init_clksrc() 368 cs->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in mchp_pit64b_init_clksrc() 369 cs->clksrc.rating = 210; in mchp_pit64b_init_clksrc() 370 cs->clksrc.read = mchp_pit64b_clksrc_read; in mchp_pit64b_init_clksrc() 371 cs->clksrc.suspend = mchp_pit64b_clksrc_suspend; in mchp_pit64b_init_clksrc() 372 cs->clksrc.resume = mchp_pit64b_clksrc_resume; in mchp_pit64b_init_clksrc() 374 ret = clocksource_register_hz(&cs->clksrc, clk_rate); in mchp_pit64b_init_clksrc()
|
D | timer-atmel-tcb.c | 113 static struct clocksource clksrc = { variable 124 return tc_get_cycles(&clksrc); in tc_sched_clock_read() 129 return tc_get_cycles32(&clksrc); in tc_sched_clock_read32() 136 return tc_get_cycles(&clksrc); in tc_delay_timer_read() 141 return tc_get_cycles32(&clksrc); in tc_delay_timer_read32() 451 clksrc.name = kbasename(node->parent->full_name); in tcb_clksrc_init() 453 pr_debug("%s at %d.%03d MHz\n", clksrc.name, divided_rate / 1000000, in tcb_clksrc_init() 460 clksrc.read = tc_get_cycles32; in tcb_clksrc_init() 481 ret = clocksource_register_hz(&clksrc, divided_rate); in tcb_clksrc_init() 498 clocksource_unregister(&clksrc); in tcb_clksrc_init()
|
D | timer-loongson1-pwm.c | 36 struct clocksource clksrc; member 41 return container_of(c, struct ls1x_clocksource, clksrc); in to_ls1x_clksrc() 207 .clksrc = { 231 return clocksource_register_hz(&ls1x_clocksource.clksrc, in ls1x_pwm_clocksource_init()
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_clocking.c | 44 u64 clksrc; member 67 u64 clksrc; member 97 u64 clksrc; member 107 sja1105_packing(buf, &idiv->clksrc, 28, 24, size, op); in sja1105_cgu_idiv_packing() 130 idiv.clksrc = 0x0A; /* 25MHz */ in sja1105_cgu_idiv_config() 146 sja1105_packing(buf, &cmd->clksrc, 28, 24, size, op); in sja1105_cgu_mii_control_packing() 171 int clksrc; in sja1105_cgu_mii_tx_clk_config() local 177 clksrc = mac_clk_sources[port]; in sja1105_cgu_mii_tx_clk_config() 179 clksrc = phy_clk_sources[port]; in sja1105_cgu_mii_tx_clk_config() 182 mii_tx_clk.clksrc = clksrc; in sja1105_cgu_mii_tx_clk_config() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/clock/ti/davinci/ |
D | pll.txt | 14 - for "ti,da850-pll0", shall be "clksrc", "extclksrc" 15 - for "ti,da850-pll1", shall be "clksrc" 60 clock-names = "clksrc", "extclksrc"; 84 clock-names = "clksrc";
|
D | da8xx-cfgchip.txt | 40 - compatible: shall be "ti,da850-async1-clksrc". 48 - compatible: shall be "ti,da850-async3-clksrc". 78 compatible = "ti,da850-async1-clksrc"; 84 compatible = "ti,da850-async3-clksrc";
|
/linux-6.6.21/arch/m68k/atari/ |
D | debug.c | 219 int clksrc, clkmode, div, reg3, reg5; in atari_init_scc_port() local 227 clksrc = clksrc_table[baud]; in atari_init_scc_port() 232 clksrc = 0x28; /* TRxC */ in atari_init_scc_port() 252 SCC_WRITE(11, clksrc); /* main clock source */ in atari_init_scc_port()
|
/linux-6.6.21/drivers/spi/ |
D | spi-rspi.c | 256 unsigned long clksrc; in rspi_set_rate() local 259 clksrc = clk_get_rate(rspi->clk); in rspi_set_rate() 260 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz) - 1; in rspi_set_rate() 268 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * (spbr + 1)); in rspi_set_rate() 341 unsigned long clksrc; in qspi_set_config_register() local 348 clksrc = clk_get_rate(rspi->clk); in qspi_set_config_register() 349 if (rspi->speed_hz >= clksrc) { in qspi_set_config_register() 351 rspi->speed_hz = clksrc; in qspi_set_config_register() 353 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz); in qspi_set_config_register() 359 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * spbr); in qspi_set_config_register() [all …]
|
/linux-6.6.21/include/linux/ |
D | sm501.h | 13 int clksrc, unsigned long freq); 16 int clksrc, unsigned long req_freq);
|
/linux-6.6.21/drivers/memory/tegra/ |
D | tegra210-emc-core.c | 720 static void tegra210_emc_set_clock(struct tegra210_emc *emc, u32 clksrc) in tegra210_emc_set_clock() argument 722 emc->sequence->set_clock(emc, clksrc); in tegra210_emc_set_clock() 731 u32 clksrc) in tegra210_change_dll_src() argument 737 emc_clk_src = (clksrc & EMC_CLK_EMC_2X_CLK_SRC_MASK) >> in tegra210_change_dll_src() 739 emc_clk_div = (clksrc & EMC_CLK_EMC_2X_CLK_DIVISOR_MASK) >> in tegra210_change_dll_src() 792 u32 clksrc; in tegra210_emc_set_refresh() local 794 clksrc = emc->provider.configs[index].value | in tegra210_emc_set_refresh() 800 tegra210_emc_set_clock(emc, clksrc); in tegra210_emc_set_refresh() 839 void tegra210_emc_do_clock_change(struct tegra210_emc *emc, u32 clksrc) in tegra210_emc_do_clock_change() argument 846 tegra210_clk_emc_update_setting(clksrc); in tegra210_emc_do_clock_change() [all …]
|
D | tegra210-emc.h | 939 void (*set_clock)(struct tegra210_emc *emc, u32 clksrc); 994 void tegra210_emc_do_clock_change(struct tegra210_emc *emc, u32 clksrc); 1008 u32 tegra210_emc_dll_prelock(struct tegra210_emc *emc, u32 clksrc);
|
/linux-6.6.21/sound/soc/codecs/ |
D | cs35l36.c | 54 int clksrc; member 1013 prev_clksrc = cs35l36->clksrc; in cs35l36_component_set_sysclk() 1017 cs35l36->clksrc = CS35L36_PLLSRC_SCLK; in cs35l36_component_set_sysclk() 1020 cs35l36->clksrc = CS35L36_PLLSRC_LRCLK; in cs35l36_component_set_sysclk() 1023 cs35l36->clksrc = CS35L36_PLLSRC_PDMCLK; in cs35l36_component_set_sysclk() 1026 cs35l36->clksrc = CS35L36_PLLSRC_SELF; in cs35l36_component_set_sysclk() 1029 cs35l36->clksrc = CS35L36_PLLSRC_MCLK; in cs35l36_component_set_sysclk() 1052 cs35l36->clksrc); in cs35l36_component_set_sysclk() 1083 if (cs35l36->clksrc == CS35L36_PLLSRC_PDMCLK) { in cs35l36_component_set_sysclk()
|
D | cs35l41.c | 837 int extclk_cfg, clksrc; in cs35l41_component_set_sysclk() local 841 clksrc = CS35L41_PLLSRC_SCLK; in cs35l41_component_set_sysclk() 844 clksrc = CS35L41_PLLSRC_LRCLK; in cs35l41_component_set_sysclk() 847 clksrc = CS35L41_PLLSRC_MCLK; in cs35l41_component_set_sysclk() 872 CS35L41_PLL_CLK_SEL_MASK, clksrc); in cs35l41_component_set_sysclk()
|
D | cs35l35.c | 716 int clksrc; in cs35l35_component_set_sysclk() local 721 clksrc = CS35L35_CLK_SOURCE_MCLK; in cs35l35_component_set_sysclk() 724 clksrc = CS35L35_CLK_SOURCE_SCLK; in cs35l35_component_set_sysclk() 727 clksrc = CS35L35_CLK_SOURCE_PDM; in cs35l35_component_set_sysclk() 754 clksrc << CS35L35_CLK_SOURCE_SHIFT); in cs35l35_component_set_sysclk()
|
/linux-6.6.21/drivers/gpu/drm/renesas/shmobile/ |
D | shmob_drm_drv.c | 69 enum shmob_drm_clk_source clksrc) in shmob_drm_setup_clocks() argument 74 switch (clksrc) { in shmob_drm_setup_clocks()
|
/linux-6.6.21/sound/soc/fsl/ |
D | fsl_esai.c | 263 struct clk *clksrc = esai_priv->extalclk; in fsl_esai_set_dai_sysclk() local 293 clksrc = esai_priv->fsysclk; in fsl_esai_set_dai_sysclk() 305 if (IS_ERR(clksrc)) { in fsl_esai_set_dai_sysclk() 308 return PTR_ERR(clksrc); in fsl_esai_set_dai_sysclk() 310 clk_rate = clk_get_rate(clksrc); in fsl_esai_set_dai_sysclk() 328 if (ratio == 1 && clksrc == esai_priv->extalclk) { in fsl_esai_set_dai_sysclk()
|
D | fsl_spdif.c | 488 u8 clksrc = spdif_priv->rxclk_src; in spdif_set_rx_clksrc() local 490 if (clksrc >= SRPC_CLKSRC_MAX || gainsel >= GAINSEL_MULTI_MAX) in spdif_set_rx_clksrc() 495 SRPC_CLKSRC_SEL_SET(clksrc) | SRPC_GAINSEL_SET(gainsel)); in spdif_set_rx_clksrc() 1070 u8 clksrc; in spdif_get_rxclk_rate() local 1075 clksrc = (phaseconf >> SRPC_CLKSRC_SEL_OFFSET) & 0xf; in spdif_get_rxclk_rate() 1078 if (srpc_dpll_locked[clksrc] && (phaseconf & SRPC_DPLL_LOCKED)) in spdif_get_rxclk_rate()
|
/linux-6.6.21/drivers/mmc/host/ |
D | sdhci-s3c.c | 182 struct clk *clksrc = ourhost->clk_bus[src]; in sdhci_s3c_consider_clock() local 185 if (IS_ERR(clksrc)) in sdhci_s3c_consider_clock() 193 rate = clk_round_rate(clksrc, wanted); in sdhci_s3c_consider_clock()
|
/linux-6.6.21/drivers/mfd/ |
D | sm501.c | 509 int clksrc, in sm501_set_clock() argument 526 switch (clksrc) { in sm501_set_clock() 590 clock = clock & ~(0xFF << clksrc); in sm501_set_clock() 591 clock |= reg<<clksrc; in sm501_set_clock() 640 int clksrc, in sm501_find_clock() argument 647 switch (clksrc) { in sm501_find_clock()
|
/linux-6.6.21/arch/arm/boot/dts/ti/davinci/ |
D | da850.dtsi | 139 clock-names = "clksrc", "extclksrc"; 407 compatible = "ti,da850-async1-clksrc"; 413 compatible = "ti,da850-async3-clksrc"; 700 clock-names = "clksrc";
|
/linux-6.6.21/drivers/clk/renesas/ |
D | rzg2l-cpg.c | 79 u8 clksrc; member 336 if (priv->mux_dsi_div_params.clksrc) in rzg2l_cpg_get_vclk_parent_rate() 441 parent = clk_hw_get_parent_by_index(hw, priv->mux_dsi_div_params.clksrc); in rzg2l_cpg_pll5_4_clk_mux_determine_rate() 534 if (priv->mux_dsi_div_params.clksrc) in rzg2l_cpg_get_vclk_rate() 675 priv->mux_dsi_div_params.clksrc = 1; /* Use clk src 1 for DSI */ in rzg2l_cpg_sipll5_register()
|