Lines Matching full:tap
334 static void tegra_sdhci_set_tap(struct sdhci_host *host, unsigned int tap) in tegra_sdhci_set_tap() argument
343 * Touching the tap values is a bit tricky on some SoC generations. in tegra_sdhci_set_tap()
345 * the tap values are changed. in tegra_sdhci_set_tap()
353 reg |= tap << SDHCI_CLOCK_CTRL_TAP_SHIFT; in tegra_sdhci_set_tap()
717 err = device_property_read_u32(mmc_dev(host->mmc), "nvidia,default-tap", in tegra_sdhci_parse_tap_and_trim()
858 u8 word, bit, edge1, tap, window; in tegra_sdhci_tap_correction() local
883 tap = word * TUNING_WORD_BIT_SIZE + bit; in tegra_sdhci_tap_correction()
888 first_fail_tap = tap; in tegra_sdhci_tap_correction()
893 start_pass_tap = tap; in tegra_sdhci_tap_correction()
896 first_pass_tap = tap; in tegra_sdhci_tap_correction()
902 end_pass_tap = tap - 1; in tegra_sdhci_tap_correction()
909 start_pass_tap = tap; in tegra_sdhci_tap_correction()
912 /* set tap at middle of valid window */ in tegra_sdhci_tap_correction()
913 tap = start_pass_tap + window / 2; in tegra_sdhci_tap_correction()
914 tegra_host->tuned_tap_delay = tap; in tegra_sdhci_tap_correction()
926 /* set tap location at fixed tap relative to the first edge */ in tegra_sdhci_tap_correction()
946 /* retain HW tuned tap to use incase if no correction is needed */ in tegra_sdhci_post_tuning()
964 * fixed tap is used when HW tuning result contains single edge in tegra_sdhci_post_tuning()
965 * and tap is set at fixed tap delay relative to the first edge in tegra_sdhci_post_tuning()
1022 /* Don't set default tap on tunable modes. */ in tegra_sdhci_set_uhs_signaling()
1073 * Start search for minimum tap value at 10, as smaller values are in tegra_sdhci_execute_tuning()
1085 /* Find the maximum tap value that still passes. */ in tegra_sdhci_execute_tuning()
1096 /* The TRM states the ideal tap value is at 75% in the passing range. */ in tegra_sdhci_execute_tuning()