Lines Matching refs:phase_map
643 static inline u32 test_phase_bit(u32 phase_map, unsigned int bit) in test_phase_bit() argument
646 return phase_map & (1 << bit); in test_phase_bit()
649 static int sd_get_phase_len(u32 phase_map, unsigned int start_bit) in sd_get_phase_len() argument
654 if (test_phase_bit(phase_map, start_bit + i) == 0) in sd_get_phase_len()
660 static u8 sd_search_final_phase(struct realtek_pci_sdmmc *host, u32 phase_map) in sd_search_final_phase() argument
666 if (phase_map == 0) { in sd_search_final_phase()
667 dev_err(sdmmc_dev(host), "phase error: [map:%x]\n", phase_map); in sd_search_final_phase()
672 len = sd_get_phase_len(phase_map, start); in sd_search_final_phase()
682 phase_map, len_final, final_phase); in sd_search_final_phase()
729 u8 opcode, u32 *phase_map) in sd_tuning_phase() argument
740 if (phase_map) in sd_tuning_phase()
741 *phase_map = raw_phase_map; in sd_tuning_phase()
749 u32 raw_phase_map[RX_TUNING_CNT] = {0}, phase_map; in sd_tuning_rx() local
761 phase_map = 0xFFFFFFFF; in sd_tuning_rx()
765 phase_map &= raw_phase_map[i]; in sd_tuning_rx()
767 dev_dbg(sdmmc_dev(host), "RX phase_map = 0x%08x\n", phase_map); in sd_tuning_rx()
769 if (phase_map) { in sd_tuning_rx()
770 final_phase = sd_search_final_phase(host, phase_map); in sd_tuning_rx()