/drivers/clk/samsung/ |
D | clk-exynos-clkout.c | 35 static struct exynos_clkout *clkout; variable 39 clkout->pmu_debug_save = readl(clkout->reg + EXYNOS_PMU_DEBUG_REG); in exynos_clkout_suspend() 46 writel(clkout->pmu_debug_save, clkout->reg + EXYNOS_PMU_DEBUG_REG); in exynos_clkout_resume() 62 clkout = kzalloc(struct_size(clkout, data.hws, EXYNOS_CLKOUT_NR_CLKS), in exynos_clkout_init() 64 if (!clkout) in exynos_clkout_init() 67 spin_lock_init(&clkout->slock); in exynos_clkout_init() 87 clkout->reg = of_iomap(node, 0); in exynos_clkout_init() 88 if (!clkout->reg) in exynos_clkout_init() 91 clkout->gate.reg = clkout->reg + EXYNOS_PMU_DEBUG_REG; in exynos_clkout_init() 92 clkout->gate.bit_idx = EXYNOS_CLKOUT_DISABLE_SHIFT; in exynos_clkout_init() [all …]
|
D | clk-s3c2410-dclk.c | 59 struct s3c24xx_clkout *clkout = to_s3c24xx_clkout(hw); in s3c24xx_clkout_get_parent() local 63 val = clkout->modify_misccr(0, 0) >> clkout->shift; in s3c24xx_clkout_get_parent() 64 val >>= clkout->shift; in s3c24xx_clkout_get_parent() 65 val &= clkout->mask; in s3c24xx_clkout_get_parent() 75 struct s3c24xx_clkout *clkout = to_s3c24xx_clkout(hw); in s3c24xx_clkout_set_parent() local 77 clkout->modify_misccr((clkout->mask << clkout->shift), in s3c24xx_clkout_set_parent() 78 (index << clkout->shift)); in s3c24xx_clkout_set_parent() 94 struct s3c24xx_clkout *clkout; in s3c24xx_register_clkout() local 102 clkout = kzalloc(sizeof(*clkout), GFP_KERNEL); in s3c24xx_register_clkout() 103 if (!clkout) in s3c24xx_register_clkout() [all …]
|
D | Makefile | 18 obj-$(CONFIG_ARCH_EXYNOS) += clk-exynos-clkout.o
|
/drivers/clk/ |
D | clk-si5351.c | 63 struct si5351_hw_data *clkout; member 917 __func__, clk_hw_get_name(&drvdata->clkout[num].hw), in _si5351_clkout_reset_pll() 935 if (pdata->clkout[hwdata->num].pll_reset) in si5351_clkout_prepare() 1229 pdata->clkout[num].multisynth_src = in si5351_dt_parse() 1233 pdata->clkout[num].multisynth_src = in si5351_dt_parse() 1247 pdata->clkout[num].clkout_src = in si5351_dt_parse() 1251 pdata->clkout[num].clkout_src = in si5351_dt_parse() 1255 pdata->clkout[num].clkout_src = in si5351_dt_parse() 1265 pdata->clkout[num].clkout_src = in si5351_dt_parse() 1283 pdata->clkout[num].drive = val; in si5351_dt_parse() [all …]
|
D | clk-cdce706.c | 85 struct cdce706_hw_data clkout[6]; member 599 for (i = 0; i < ARRAY_SIZE(cdce->clkout); ++i) { in cdce706_register_clkouts() 605 cdce->clkout[i].parent = val & CDCE706_CLKOUT_DIVIDER_MASK; in cdce706_register_clkouts() 608 cdce->clkout[i].parent); in cdce706_register_clkouts() 611 return cdce706_register_hw(cdce, cdce->clkout, in cdce706_register_clkouts() 612 ARRAY_SIZE(cdce->clkout), in cdce706_register_clkouts() 622 if (idx >= ARRAY_SIZE(cdce->clkout)) { in of_clk_cdce_get() 627 return &cdce->clkout[idx].hw; in of_clk_cdce_get()
|
/drivers/staging/clocking-wizard/ |
D | clk-xlnx-clock-wizard.c | 59 struct clk *clkout[WZRD_NUM_OUTPUTS]; member 244 clk_wzrd->clkout[i] = clk_register_fixed_factor in clk_wzrd_probe() 246 if (IS_ERR(clk_wzrd->clkout[i])) { in clk_wzrd_probe() 250 clk_unregister(clk_wzrd->clkout[j]); in clk_wzrd_probe() 253 ret = PTR_ERR(clk_wzrd->clkout[i]); in clk_wzrd_probe() 260 clk_wzrd->clk_data.clks = clk_wzrd->clkout; in clk_wzrd_probe() 261 clk_wzrd->clk_data.clk_num = ARRAY_SIZE(clk_wzrd->clkout); in clk_wzrd_probe() 300 clk_unregister(clk_wzrd->clkout[i]); in clk_wzrd_remove()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 42 unsigned long fint, clkdco, clkout; in hdmi_pll_compute() local 79 clkout = clkdco / m2; in hdmi_pll_compute() 86 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in hdmi_pll_compute() 96 pi->clkout[0] = clkout; in hdmi_pll_compute()
|
D | dpi.c | 186 ctx->dsi_cinfo.clkout[HSDIV_DISPC] = dispc; in dpi_calc_hsdiv_cb() 292 *fck = ctx.dsi_cinfo.clkout[HSDIV_DISPC]; in dpi_set_dsi_clk() 516 fck = ctx.dsi_cinfo.clkout[HSDIV_DISPC]; in dpi_check_timings()
|
D | dss.h | 112 unsigned long clkout[DSS_PLL_MAX_HSDIVS]; member
|
D | dsi.c | 1234 return dsi->pll.cinfo.clkout[HSDIV_DISPC]; in dsi_get_pll_hsdiv_dispc_rate() 1241 return dsi->pll.cinfo.clkout[HSDIV_DSI]; in dsi_get_pll_hsdiv_dsi_rate() 1375 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck() 1492 cinfo->clkout[HSDIV_DISPC], in dsi_dump_dsidev_clocks() 1501 cinfo->clkout[HSDIV_DSI], in dsi_dump_dsidev_clocks() 4431 ctx->dsi_cinfo.clkout[HSDIV_DISPC] = dispc; in dsi_cm_calc_hsdiv_cb() 4719 ctx->dsi_cinfo.clkout[HSDIV_DISPC] = dispc; in dsi_vm_calc_hsdiv_cb() 4819 r = dsi_lp_clock_calc(ctx.dsi_cinfo.clkout[HSDIV_DSI], in dsi_set_config()
|
D | hdmi5.c | 196 hdmi_cinfo.clkout[0]); in hdmi_power_on_full()
|
D | hdmi4.c | 179 hdmi_cinfo.clkout[0]); in hdmi_power_on_full()
|
/drivers/net/can/cc770/ |
D | cc770_platform.c | 119 priv->clkout |= (cdv - 1) & CLKOUT_CD_MASK; in cc770_get_of_node_data() 133 priv->clkout |= (slew << CLKOUT_SL_SHIFT) & in cc770_get_of_node_data() 152 priv->clkout = pdata->cor; in cc770_get_platform_data() 209 priv->cpu_interface, priv->bus_config, priv->clkout); in cc770_platform_probe()
|
D | cc770.h | 35 u8 clkout; /* Clock Out Register */ member 186 u8 clkout; /* Clock out register */ member
|
D | cc770_isa.c | 254 priv->clkout = cor[idx]; in cc770_isa_probe() 256 priv->clkout = cor[0]; in cc770_isa_probe() 258 priv->clkout = COR_DEFAULT; in cc770_isa_probe()
|
D | cc770.c | 247 cc770_write_reg(priv, clkout, priv->clkout); in chipset_init()
|
/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 269 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local 301 clkout = clkdco / m2; in dss_pll_calc_b() 308 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in dss_pll_calc_b() 318 cinfo->clkout[0] = clkout; in dss_pll_calc_b()
|
D | dpi.c | 184 ctx->pll_cinfo.clkout[ctx->clkout_idx] = dispc; in dpi_calc_hsdiv_cb() 247 ctx->dispc_cinfo.lck = ctx->pll_cinfo.clkout[0]; in dpi_pll_clk_calc() 365 fck = ctx.pll_cinfo.clkout[ctx.clkout_idx]; in dpi_clock_update()
|
D | dss.h | 133 unsigned long clkout[DSS_PLL_MAX_HSDIVS]; member
|
D | dsi.c | 1182 return dsi->pll.cinfo.clkout[HSDIV_DISPC]; in dsi_get_pll_hsdiv_dispc_rate() 1187 return dsi->pll.cinfo.clkout[HSDIV_DSI]; in dsi_get_pll_hsdiv_dsi_rate() 1315 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck() 1409 cinfo->clkout[HSDIV_DISPC], in dsi_dump_dsi_clocks() 1418 cinfo->clkout[HSDIV_DSI], in dsi_dump_dsi_clocks() 4329 ctx->dsi_cinfo.clkout[HSDIV_DISPC] = dispc; in dsi_cm_calc_hsdiv_cb() 4620 ctx->dsi_cinfo.clkout[HSDIV_DISPC] = dispc; in dsi_vm_calc_hsdiv_cb() 4721 r = dsi_lp_clock_calc(ctx.dsi_cinfo.clkout[HSDIV_DSI], in dsi_set_config()
|
/drivers/rtc/ |
D | rtc-rv3028.c | 655 int clkout, ret; in rv3028_clkout_recalc_rate() local 658 ret = regmap_read(rv3028->regmap, RV3028_CLKOUT, &clkout); in rv3028_clkout_recalc_rate() 662 clkout &= RV3028_CLKOUT_FD_MASK; in rv3028_clkout_recalc_rate() 663 return clkout_rates[clkout]; in rv3028_clkout_recalc_rate() 722 int clkout, ret; in rv3028_clkout_is_prepared() local 725 ret = regmap_read(rv3028->regmap, RV3028_CLKOUT, &clkout); in rv3028_clkout_is_prepared() 729 return !!(clkout & RV3028_CLKOUT_CLKOE); in rv3028_clkout_is_prepared()
|
D | rtc-rv3032.c | 564 int clkout, ret; in rv3032_clkout_recalc_rate() local 567 ret = regmap_read(rv3032->regmap, RV3032_CLKOUT2, &clkout); in rv3032_clkout_recalc_rate() 571 if (clkout & RV3032_CLKOUT2_OS) { in rv3032_clkout_recalc_rate() 572 unsigned long rate = FIELD_GET(RV3032_CLKOUT2_HFD_MSK, clkout) << 8; in rv3032_clkout_recalc_rate() 574 ret = regmap_read(rv3032->regmap, RV3032_CLKOUT1, &clkout); in rv3032_clkout_recalc_rate() 578 rate += clkout + 1; in rv3032_clkout_recalc_rate() 583 return clkout_xtal_rates[FIELD_GET(RV3032_CLKOUT2_FD_MSK, clkout)]; in rv3032_clkout_recalc_rate()
|
/drivers/mfd/ |
D | db8500-prcmu.c | 638 int prcmu_config_clkout(u8 clkout, u8 source, u8 div) in prcmu_config_clkout() argument 648 BUG_ON(clkout > 1); in prcmu_config_clkout() 650 BUG_ON((clkout == 0) && (source > PRCMU_CLKSRC_CLK009)); in prcmu_config_clkout() 652 if (!div && !requests[clkout]) in prcmu_config_clkout() 655 if (clkout == 0) { in prcmu_config_clkout() 686 requests[clkout] += (div ? 1 : -1); in prcmu_config_clkout()
|
/drivers/pinctrl/nomadik/ |
D | pinctrl-nomadik-db8500.c | 866 DB8500_FUNC_GROUPS(clkout, "clkout1_a_1", "clkout1_a_2", "clkout1_c_1", 935 FUNCTION(clkout),
|
/drivers/pinctrl/nuvoton/ |
D | pinctrl-npcm7xx.c | 619 NPCM7XX_GRP(clkout), \ 762 NPCM7XX_SFUNC(clkout); 880 NPCM7XX_MKFUNC(clkout), 1089 …NPCM7XX_PINCFG(160, clkout, MFSEL1, 21, none, NONE, 0, none, NONE, 0, DSTR(8…
|