Lines Matching refs:phase
668 static void SdhciSetDrvPhase(uint32_t id, uint32_t phase)
679 value |= (phase << SDHCI_DRV_CLK_PHASE_SHFT);
692 static void SdhciSetSampPhase(struct SdhciHost *host, uint32_t phase)
698 val |= phase;
840 uint32_t drvPhase, phase;
852 phase = host->tuningPhase;
855 phase = host->tuningPhase;
858 phase = SDHCI_SAMPLE_PHASE;
861 phase = SDHCI_SAMPLE_PHASE;
864 phase = 0;
867 phase = SDHCI_SAMPLE_PHASE;
874 phase = SDHCI_SAMPLE_PHASE;
878 phase = 0;
884 SdhciSetSampPhase(host, phase);
1360 static void SdhciSelectSamplPhase(struct SdhciHost *host, uint32_t phase)
1363 SdhciSetSampPhase(host, phase);
1399 uint32_t phase, fall, rise, fallUpdateFlag, index;
1408 HDF_LOGD("send tuning CMD%u fail! phase:%u err:%d.", opcode, index, err);
1432 phase = ((fall + rise) / SDHCI_DIV_MIDDLE + SDHCI_PHASE_SCALE_GAP) % SDHCI_PHASE_SCALE;
1433 host->tuningPhase = phase;
1434 SdhciSelectSamplPhase(host, phase);
1664 /* wait the phase switch over, 75us */