Searched refs:phase_map (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/mmc/host/
H A Drtsx_pci_sdmmc.c650 static inline u32 test_phase_bit(u32 phase_map, unsigned int bit) test_phase_bit() argument
653 return phase_map & (1 << bit); test_phase_bit()
656 static int sd_get_phase_len(u32 phase_map, unsigned int start_bit) sd_get_phase_len() argument
661 if (test_phase_bit(phase_map, start_bit + i) == 0) sd_get_phase_len()
667 static u8 sd_search_final_phase(struct realtek_pci_sdmmc *host, u32 phase_map) sd_search_final_phase() argument
673 if (phase_map == 0) { sd_search_final_phase()
674 dev_err(sdmmc_dev(host), "phase error: [map:%x]\n", phase_map); sd_search_final_phase() local
679 len = sd_get_phase_len(phase_map, start); sd_search_final_phase()
689 phase_map, len_final, final_phase); sd_search_final_phase() local
731 u8 opcode, u32 *phase_map) sd_tuning_phase()
742 if (phase_map) sd_tuning_phase()
743 *phase_map = raw_phase_map; sd_tuning_phase()
751 u32 raw_phase_map[RX_TUNING_CNT] = {0}, phase_map; sd_tuning_rx() local
763 phase_map = 0xFFFFFFFF; sd_tuning_rx()
767 phase_map &= raw_phase_map[i]; sd_tuning_rx()
769 dev_dbg(sdmmc_dev(host), "RX phase_map = 0x%08x\n", phase_map); sd_tuning_rx() local
771 if (phase_map) { sd_tuning_rx()
772 final_phase = sd_search_final_phase(host, phase_map); sd_tuning_rx()
730 sd_tuning_phase(struct realtek_pci_sdmmc *host, u8 opcode, u32 *phase_map) sd_tuning_phase() argument
H A Drtsx_usb_sdmmc.c622 static inline u32 get_phase_point(u32 phase_map, unsigned int idx) get_phase_point() argument
625 return phase_map & (1 << idx); get_phase_point()
628 static int get_phase_len(u32 phase_map, unsigned int idx) get_phase_len() argument
633 if (get_phase_point(phase_map, idx + i) == 0) get_phase_len()
639 static u8 sd_search_final_phase(struct rtsx_usb_sdmmc *host, u32 phase_map) sd_search_final_phase() argument
645 if (phase_map == 0) { sd_search_final_phase()
646 dev_dbg(sdmmc_dev(host), "Phase: [map:%x]\n", phase_map); sd_search_final_phase() local
651 len = get_phase_len(phase_map, start); sd_search_final_phase()
661 phase_map, len_final, final_phase); sd_search_final_phase() local
704 u8 opcode, u16 *phase_map) sd_tuning_phase()
715 if (phase_map) sd_tuning_phase()
716 *phase_map = raw_phase_map; sd_tuning_phase()
722 u16 raw_phase_map[RX_TUNING_CNT] = {0}, phase_map; sd_tuning_rx() local
740 phase_map = 0xFFFF; sd_tuning_rx()
744 phase_map &= raw_phase_map[i]; sd_tuning_rx()
746 dev_dbg(sdmmc_dev(host), "RX phase_map = 0x%04x\n", phase_map); sd_tuning_rx() local
748 if (phase_map) { sd_tuning_rx()
749 final_phase = sd_search_final_phase(host, phase_map); sd_tuning_rx()
703 sd_tuning_phase(struct rtsx_usb_sdmmc *host, u8 opcode, u16 *phase_map) sd_tuning_phase() argument
/linux-4.4.14/drivers/staging/rts5208/
H A Dsd.c1796 static u8 sd_search_final_phase(struct rtsx_chip *chip, u32 phase_map, sd_search_final_phase() argument
1806 if (phase_map == 0xFFFFFFFF) { sd_search_final_phase()
1819 if (phase_map & (1 << i)) { sd_search_final_phase()
1920 u32 raw_phase_map[3], phase_map; sd_tuning_rx() local
1954 phase_map = raw_phase_map[0] & raw_phase_map[1] & raw_phase_map[2]; sd_tuning_rx()
1959 dev_dbg(rtsx_dev(chip), "RX phase_map = 0x%08x\n", phase_map); sd_tuning_rx() local
1961 final_phase = sd_search_final_phase(chip, phase_map, TUNE_RX); sd_tuning_rx()
1981 u32 phase_map; sd_ddr_pre_tuning_tx() local
1991 phase_map = 0; sd_ddr_pre_tuning_tx()
2010 phase_map |= 1 << i; sd_ddr_pre_tuning_tx()
2020 dev_dbg(rtsx_dev(chip), "DDR TX pre tune phase_map = 0x%08x\n", sd_ddr_pre_tuning_tx()
2021 phase_map); sd_ddr_pre_tuning_tx() local
2023 final_phase = sd_search_final_phase(chip, phase_map, TUNE_TX); sd_ddr_pre_tuning_tx()
2046 u32 raw_phase_map[3], phase_map; sd_tuning_tx() local
2082 phase_map = raw_phase_map[0] & raw_phase_map[1] & raw_phase_map[2]; sd_tuning_tx()
2087 dev_dbg(rtsx_dev(chip), "TX phase_map = 0x%08x\n", phase_map); sd_tuning_tx() local
2089 final_phase = sd_search_final_phase(chip, phase_map, TUNE_TX); sd_tuning_tx()

Completed in 211 milliseconds