Lines Matching full:refclk
105 /* Refclk selection parameters */
206 * @refclk: reference clock index
215 unsigned int refclk; member
406 clk = gtr_phy->dev->clk[gtr_phy->refclk]; in xpsgtr_find_sscs()
418 rate, gtr_phy->refclk); in xpsgtr_find_sscs()
439 if (gtr_phy->refclk == gtr_phy->lane) in xpsgtr_configure_pll()
444 L0_REF_CLK_SEL_MASK, 1 << gtr_phy->refclk); in xpsgtr_configure_pll()
666 if (clk_prepare_enable(gtr_dev->clk[gtr_phy->refclk])) in xpsgtr_phy_init()
721 clk_disable_unprepare(gtr_dev->clk[gtr_phy->refclk]); in xpsgtr_phy_exit()
825 unsigned int refclk; in xpsgtr_xlate() local
855 refclk = args->args[3]; in xpsgtr_xlate()
856 if (refclk >= ARRAY_SIZE(gtr_dev->clk)) { in xpsgtr_xlate()
857 dev_err(dev, "Invalid reference clock number %u\n", refclk); in xpsgtr_xlate()
861 gtr_phy->refclk = refclk; in xpsgtr_xlate()
888 clk = gtr_phy->dev->clk[gtr_phy->refclk]; in xpsgtr_status_read()
894 seq_printf(seq, "Reference clock: %u (%pC)\n", gtr_phy->refclk, clk); in xpsgtr_status_read()
958 unsigned int refclk; in xpsgtr_get_ref_clocks() local
960 for (refclk = 0; refclk < ARRAY_SIZE(gtr_dev->clk); ++refclk) { in xpsgtr_get_ref_clocks()
964 snprintf(name, sizeof(name), "ref%u", refclk); in xpsgtr_get_ref_clocks()
969 refclk); in xpsgtr_get_ref_clocks()
975 gtr_dev->clk[refclk] = clk; in xpsgtr_get_ref_clocks()