Lines Matching refs:xt

1453 	const pmu1_xtaltab0_t	*xt;
1460 for (xt = bhnd_pmu1_xtaltab0(sc); xt != NULL && xt->fref != 0; xt++) {
1461 if (xt->xf == xf)
1466 if (xt == NULL || xt->fref == 0)
1467 xt = bhnd_pmu1_xtaldef0(sc);
1469 if (xt == NULL || xt->fref == 0) {
1474 return (xt->fref * 1000);
1481 const pmu0_xtaltab0_t *xt;
1495 for (xt = pmu0_xtaltab0; xt->freq; xt ++) {
1496 if (xt->freq == xtal)
1500 if (xt->freq == 0)
1501 xt = &pmu0_xtaltab0[PMU0_XTAL0_DEFAULT];
1504 xt->xf);
1509 if (xf == xt->xf) {
1519 xt->freq / 1000, xt->freq % 1000);
1526 xt->freq / 1000, xt->freq % 1000,
1531 xt->freq / 1000, xt->freq % 1000);
1554 if (xt->freq >= BHND_PMU0_PLL0_PC0_PDIV_FREQ) {
1564 BHND_PMU_SET_BITS(xt->wbint, BHND_PMU0_PLL0_PC1_WILD_INT) |
1565 BHND_PMU_SET_BITS(xt->wbfrac, BHND_PMU0_PLL0_PC1_WILD_FRAC);
1567 if (xt->wbfrac == 0) {
1580 pll_data = BHND_PMU_SET_BITS(xt->wbint, BHND_PMU0_PLL0_PC2_WILD_INT);
1590 pmu_ctrl |= BHND_PMU_SET_BITS(((xt->freq + 127) / 128) - 1,
1592 pmu_ctrl |= BHND_PMU_SET_BITS(xt->xf, BHND_PMU_CTRL_XTALFREQ);
1601 const pmu0_xtaltab0_t *xt;
1607 for (xt = pmu0_xtaltab0; xt->freq; xt++)
1608 if (xt->xf == xf)
1612 if (xt == NULL || xt->freq == 0)
1615 return (xt->freq * 1000);
1670 const pmu1_xtaltab0_t *xt;
1689 for (xt = bhnd_pmu1_xtaltab0(&sc->query); xt != NULL && xt->fref != 0;
1690 xt++)
1692 if (xt->fref == xtal)
1699 if (xt == NULL || xt->fref == 0) {
1708 if (BHND_PMU_GET_BITS(pmuctrl, BHND_PMU_CTRL_XTALFREQ) == xt->xf &&
1713 xt->fref / 1000, xt->fref % 1000);
1717 PMU_DEBUG(sc, "XTAL %d.%dMHz (%d)\n", xtal / 1000, xtal % 1000, xt->xf);
1718 PMU_DEBUG(sc, "Programming PLL for %d.%dMHz\n", xt->fref / 1000,
1719 xt->fref % 1000);
1753 if (xt->fref == 38400)
1755 else if (xt->fref == 37400)
1757 else if (xt->fref == 26000)
1770 if (xt->fref == 38400 ||
1771 xt->fref == 37400 ||
1772 xt->fref == 26000) {
1846 BHND_PMU_SET_BITS(xt->p1div, BHND_PMU1_PLL0_PC0_P1DIV) |
1847 BHND_PMU_SET_BITS(xt->p2div, BHND_PMU1_PLL0_PC0_P2DIV);
1853 if (!xt->ndiv_frac) {
1876 if (!(xt->ndiv_frac))
1885 BHND_PMU_SET_BITS(xt->ndiv_int, BHND_PMU1_PLL0_PC2_NDIV_INT) |
1892 BHND_PMU_SET_BITS(xt->ndiv_frac, BHND_PMU1_PLL0_PC3_NDIV_FRAC),
1899 if (!xt->ndiv_frac)
1928 if (!xt->ndiv_frac) {
1952 xt->fref != XTAL_FREQ_30000MHZ)
1956 switch (xt->fref) {
1965 xt->fref);
1980 pmuctrl |= BHND_PMU_SET_BITS(((xt->fref + 127) / 128) - 1,
1982 pmuctrl |= BHND_PMU_SET_BITS(xt->xf, BHND_PMU_CTRL_XTALFREQ);