/linux/drivers/clocksource/ |
A 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()
|
A 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()
|
A D | timer-sun5i.c | 53 struct clocksource clksrc; member 57 container_of(x, struct sun5i_timer_clksrc, clksrc) 156 static u64 sun5i_clksrc_read(struct clocksource *clksrc) in sun5i_clksrc_read() argument 172 clocksource_unregister(&cs->clksrc); in sun5i_rate_cb_clksrc() 176 clocksource_register_hz(&cs->clksrc, ndata->new_rate); in sun5i_rate_cb_clksrc() 226 cs->clksrc.name = node->name; in sun5i_setup_clocksource() 227 cs->clksrc.rating = 340; in sun5i_setup_clocksource() 228 cs->clksrc.read = sun5i_clksrc_read; in sun5i_setup_clocksource() 229 cs->clksrc.mask = CLOCKSOURCE_MASK(32); in sun5i_setup_clocksource() 230 cs->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in sun5i_setup_clocksource() [all …]
|
A D | timer-microchip-pit64b.c | 85 struct clocksource clksrc; member 90 struct mchp_pit64b_clksrc, clksrc)) 353 cs->clksrc.name = MCHP_PIT64B_NAME; in mchp_pit64b_init_clksrc() 354 cs->clksrc.mask = CLOCKSOURCE_MASK(64); in mchp_pit64b_init_clksrc() 355 cs->clksrc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in mchp_pit64b_init_clksrc() 356 cs->clksrc.rating = 210; in mchp_pit64b_init_clksrc() 357 cs->clksrc.read = mchp_pit64b_clksrc_read; in mchp_pit64b_init_clksrc() 358 cs->clksrc.suspend = mchp_pit64b_clksrc_suspend; in mchp_pit64b_init_clksrc() 359 cs->clksrc.resume = mchp_pit64b_clksrc_resume; in mchp_pit64b_init_clksrc() 361 ret = clocksource_register_hz(&cs->clksrc, clk_rate); in mchp_pit64b_init_clksrc()
|
A D | timer-ti-dm-systimer.c | 716 struct dmtimer_systimer *t = &clksrc->t; in dmtimer_clocksource_read_cycles() 731 struct dmtimer_systimer *t = &clksrc->t; in dmtimer_clocksource_suspend() 733 clksrc->loadval = readl_relaxed(t->base + t->counter); in dmtimer_clocksource_suspend() 741 struct dmtimer_systimer *t = &clksrc->t; in dmtimer_clocksource_resume() 749 writel_relaxed(clksrc->loadval, t->base + t->counter); in dmtimer_clocksource_resume() 756 struct dmtimer_clocksource *clksrc; in dmtimer_clocksource_init() local 761 clksrc = kzalloc(sizeof(*clksrc), GFP_KERNEL); in dmtimer_clocksource_init() 762 if (!clksrc) in dmtimer_clocksource_init() 765 dev = &clksrc->dev; in dmtimer_clocksource_init() 766 t = &clksrc->t; in dmtimer_clocksource_init() [all …]
|
A 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() 450 clksrc.name = kbasename(node->parent->full_name); in tcb_clksrc_init() 452 pr_debug("%s at %d.%03d MHz\n", clksrc.name, divided_rate / 1000000, in tcb_clksrc_init() 459 clksrc.read = tc_get_cycles32; in tcb_clksrc_init() 480 ret = clocksource_register_hz(&clksrc, divided_rate); in tcb_clksrc_init() 497 clocksource_unregister(&clksrc); in tcb_clksrc_init()
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_clocking.c | 44 u64 clksrc; member 67 u64 clksrc; member 97 u64 clksrc; member 171 int clksrc; in sja1105_cgu_mii_tx_clk_config() local 182 mii_tx_clk.clksrc = clksrc; in sja1105_cgu_mii_tx_clk_config() 344 int clksrc; in sja1105_cgu_rgmii_tx_clk_config() local 350 clksrc = CLKSRC_PLL0; in sja1105_cgu_rgmii_tx_clk_config() 354 clksrc = clk_sources[port]; in sja1105_cgu_rgmii_tx_clk_config() 358 txc.clksrc = clksrc; in sja1105_cgu_rgmii_tx_clk_config() 833 .clksrc = 0x3, in sja1110_disable_microcontroller() [all …]
|
/linux/Documentation/devicetree/bindings/clock/ti/davinci/ |
A 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";
|
A 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/arch/m68k/atari/ |
A 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/drivers/spi/ |
A D | spi-rspi.c | 255 unsigned long clksrc; in rspi_set_rate() local 258 clksrc = clk_get_rate(rspi->clk); in rspi_set_rate() 259 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz) - 1; in rspi_set_rate() 340 unsigned long clksrc; in qspi_set_config_register() local 347 clksrc = clk_get_rate(rspi->clk); in qspi_set_config_register() 348 if (rspi->speed_hz >= clksrc) { in qspi_set_config_register() 350 rspi->speed_hz = clksrc; in qspi_set_config_register() 352 spbr = DIV_ROUND_UP(clksrc, 2 * rspi->speed_hz); in qspi_set_config_register() 1271 unsigned long clksrc; in rspi_probe() local 1324 clksrc = clk_get_rate(rspi->clk); in rspi_probe() [all …]
|
A D | spi-sh-msiof.c | 1265 unsigned long clksrc; in sh_msiof_spi_probe() local 1341 clksrc = clk_get_rate(p->clk); in sh_msiof_spi_probe() 1342 ctlr->min_speed_hz = DIV_ROUND_UP(clksrc, 1024); in sh_msiof_spi_probe() 1343 ctlr->max_speed_hz = DIV_ROUND_UP(clksrc, 1 << p->min_div_pow); in sh_msiof_spi_probe()
|
/linux/include/linux/ |
A D | sm501.h | 13 int clksrc, unsigned long freq); 16 int clksrc, unsigned long req_freq);
|
/linux/drivers/memory/tegra/ |
A D | tegra210-emc-core.c | 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() 1139 u32 tegra210_emc_dll_prelock(struct tegra210_emc *emc, u32 clksrc) in tegra210_emc_dll_prelock() argument [all …]
|
A 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/sound/soc/codecs/ |
A D | cs35l36.c | 54 int clksrc; member 1012 prev_clksrc = cs35l36->clksrc; in cs35l36_component_set_sysclk() 1016 cs35l36->clksrc = CS35L36_PLLSRC_SCLK; in cs35l36_component_set_sysclk() 1019 cs35l36->clksrc = CS35L36_PLLSRC_LRCLK; in cs35l36_component_set_sysclk() 1022 cs35l36->clksrc = CS35L36_PLLSRC_PDMCLK; in cs35l36_component_set_sysclk() 1025 cs35l36->clksrc = CS35L36_PLLSRC_SELF; in cs35l36_component_set_sysclk() 1028 cs35l36->clksrc = CS35L36_PLLSRC_MCLK; in cs35l36_component_set_sysclk() 1051 cs35l36->clksrc); in cs35l36_component_set_sysclk() 1082 if (cs35l36->clksrc == CS35L36_PLLSRC_PDMCLK) { in cs35l36_component_set_sysclk()
|
A D | cs35l41.c | 869 int extclk_cfg, clksrc; in cs35l41_component_set_sysclk() local 873 clksrc = CS35L41_PLLSRC_SCLK; in cs35l41_component_set_sysclk() 876 clksrc = CS35L41_PLLSRC_LRCLK; in cs35l41_component_set_sysclk() 879 clksrc = CS35L41_PLLSRC_MCLK; in cs35l41_component_set_sysclk() 904 CS35L41_PLL_CLK_SEL_MASK, clksrc); in cs35l41_component_set_sysclk()
|
A 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/sound/soc/fsl/ |
A 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()
|
A D | fsl_spdif.c | 451 u8 clksrc = spdif_priv->rxclk_src; in spdif_set_rx_clksrc() local 453 if (clksrc >= SRPC_CLKSRC_MAX || gainsel >= GAINSEL_MULTI_MAX) in spdif_set_rx_clksrc() 458 SRPC_CLKSRC_SEL_SET(clksrc) | SRPC_GAINSEL_SET(gainsel)); in spdif_set_rx_clksrc() 997 u8 clksrc; in spdif_get_rxclk_rate() local 1002 clksrc = (phaseconf >> SRPC_CLKSRC_SEL_OFFSET) & 0xf; in spdif_get_rxclk_rate() 1005 if (srpc_dpll_locked[clksrc] && (phaseconf & SRPC_DPLL_LOCKED)) in spdif_get_rxclk_rate()
|
/linux/drivers/gpu/drm/shmobile/ |
A D | shmob_drm_drv.c | 68 enum shmob_drm_clk_source clksrc) in shmob_drm_setup_clocks() argument 73 switch (clksrc) { in shmob_drm_setup_clocks()
|
/linux/drivers/mfd/ |
A 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/drivers/mmc/host/ |
A D | sdhci-s3c.c | 183 struct clk *clksrc = ourhost->clk_bus[src]; in sdhci_s3c_consider_clock() local 186 if (IS_ERR(clksrc)) in sdhci_s3c_consider_clock() 194 rate = clk_round_rate(clksrc, wanted); in sdhci_s3c_consider_clock()
|
/linux/drivers/tty/serial/ |
A D | max310x.c | 558 unsigned int div, clksrc, pllcfg = 0; in max310x_set_ref_clk() local 600 clksrc = MAX310X_CLKSRC_EXTCLK_BIT | (xtal ? MAX310X_CLKSRC_CRYST_BIT : 0); in max310x_set_ref_clk() 604 clksrc |= MAX310X_CLKSRC_PLL_BIT; in max310x_set_ref_clk() 607 clksrc |= MAX310X_CLKSRC_PLLBYP_BIT; in max310x_set_ref_clk() 609 regmap_write(s->regmap, MAX310X_CLKSRC_REG, clksrc); in max310x_set_ref_clk()
|
/linux/arch/arm/boot/dts/ |
A D | da850.dtsi | 139 clock-names = "clksrc", "extclksrc"; 407 compatible = "ti,da850-async1-clksrc"; 413 compatible = "ti,da850-async3-clksrc"; 699 clock-names = "clksrc";
|