Lines Matching refs:phase_map
606 static inline u32 get_phase_point(u32 phase_map, unsigned int idx) in get_phase_point() argument
609 return phase_map & (1 << idx); in get_phase_point()
612 static int get_phase_len(u32 phase_map, unsigned int idx) in get_phase_len() argument
617 if (get_phase_point(phase_map, idx + i) == 0) in get_phase_len()
623 static u8 sd_search_final_phase(struct rtsx_usb_sdmmc *host, u32 phase_map) in sd_search_final_phase() argument
629 if (phase_map == 0) { in sd_search_final_phase()
630 dev_dbg(sdmmc_dev(host), "Phase: [map:%x]\n", phase_map); in sd_search_final_phase()
635 len = get_phase_len(phase_map, start); in sd_search_final_phase()
645 phase_map, len_final, final_phase); in sd_search_final_phase()
687 u8 opcode, u16 *phase_map) in sd_tuning_phase() argument
698 if (phase_map) in sd_tuning_phase()
699 *phase_map = raw_phase_map; in sd_tuning_phase()
705 u16 raw_phase_map[RX_TUNING_CNT] = {0}, phase_map; in sd_tuning_rx() local
723 phase_map = 0xFFFF; in sd_tuning_rx()
727 phase_map &= raw_phase_map[i]; in sd_tuning_rx()
729 dev_dbg(sdmmc_dev(host), "RX phase_map = 0x%04x\n", phase_map); in sd_tuning_rx()
731 if (phase_map) { in sd_tuning_rx()
732 final_phase = sd_search_final_phase(host, phase_map); in sd_tuning_rx()