phase_map 632 drivers/mmc/host/rtsx_pci_sdmmc.c static inline u32 test_phase_bit(u32 phase_map, unsigned int bit) phase_map 635 drivers/mmc/host/rtsx_pci_sdmmc.c return phase_map & (1 << bit); phase_map 638 drivers/mmc/host/rtsx_pci_sdmmc.c static int sd_get_phase_len(u32 phase_map, unsigned int start_bit) phase_map 643 drivers/mmc/host/rtsx_pci_sdmmc.c if (test_phase_bit(phase_map, start_bit + i) == 0) phase_map 649 drivers/mmc/host/rtsx_pci_sdmmc.c static u8 sd_search_final_phase(struct realtek_pci_sdmmc *host, u32 phase_map) phase_map 655 drivers/mmc/host/rtsx_pci_sdmmc.c if (phase_map == 0) { phase_map 656 drivers/mmc/host/rtsx_pci_sdmmc.c dev_err(sdmmc_dev(host), "phase error: [map:%x]\n", phase_map); phase_map 661 drivers/mmc/host/rtsx_pci_sdmmc.c len = sd_get_phase_len(phase_map, start); phase_map 671 drivers/mmc/host/rtsx_pci_sdmmc.c phase_map, len_final, final_phase); phase_map 718 drivers/mmc/host/rtsx_pci_sdmmc.c u8 opcode, u32 *phase_map) phase_map 729 drivers/mmc/host/rtsx_pci_sdmmc.c if (phase_map) phase_map 730 drivers/mmc/host/rtsx_pci_sdmmc.c *phase_map = raw_phase_map; phase_map 738 drivers/mmc/host/rtsx_pci_sdmmc.c u32 raw_phase_map[RX_TUNING_CNT] = {0}, phase_map; phase_map 750 drivers/mmc/host/rtsx_pci_sdmmc.c phase_map = 0xFFFFFFFF; phase_map 754 drivers/mmc/host/rtsx_pci_sdmmc.c phase_map &= raw_phase_map[i]; phase_map 756 drivers/mmc/host/rtsx_pci_sdmmc.c dev_dbg(sdmmc_dev(host), "RX phase_map = 0x%08x\n", phase_map); phase_map 758 drivers/mmc/host/rtsx_pci_sdmmc.c if (phase_map) { phase_map 759 drivers/mmc/host/rtsx_pci_sdmmc.c final_phase = sd_search_final_phase(host, phase_map); phase_map 611 drivers/mmc/host/rtsx_usb_sdmmc.c static inline u32 get_phase_point(u32 phase_map, unsigned int idx) phase_map 614 drivers/mmc/host/rtsx_usb_sdmmc.c return phase_map & (1 << idx); phase_map 617 drivers/mmc/host/rtsx_usb_sdmmc.c static int get_phase_len(u32 phase_map, unsigned int idx) phase_map 622 drivers/mmc/host/rtsx_usb_sdmmc.c if (get_phase_point(phase_map, idx + i) == 0) phase_map 628 drivers/mmc/host/rtsx_usb_sdmmc.c static u8 sd_search_final_phase(struct rtsx_usb_sdmmc *host, u32 phase_map) phase_map 634 drivers/mmc/host/rtsx_usb_sdmmc.c if (phase_map == 0) { phase_map 635 drivers/mmc/host/rtsx_usb_sdmmc.c dev_dbg(sdmmc_dev(host), "Phase: [map:%x]\n", phase_map); phase_map 640 drivers/mmc/host/rtsx_usb_sdmmc.c len = get_phase_len(phase_map, start); phase_map 650 drivers/mmc/host/rtsx_usb_sdmmc.c phase_map, len_final, final_phase); phase_map 693 drivers/mmc/host/rtsx_usb_sdmmc.c u8 opcode, u16 *phase_map) phase_map 704 drivers/mmc/host/rtsx_usb_sdmmc.c if (phase_map) phase_map 705 drivers/mmc/host/rtsx_usb_sdmmc.c *phase_map = raw_phase_map; phase_map 711 drivers/mmc/host/rtsx_usb_sdmmc.c u16 raw_phase_map[RX_TUNING_CNT] = {0}, phase_map; phase_map 729 drivers/mmc/host/rtsx_usb_sdmmc.c phase_map = 0xFFFF; phase_map 733 drivers/mmc/host/rtsx_usb_sdmmc.c phase_map &= raw_phase_map[i]; phase_map 735 drivers/mmc/host/rtsx_usb_sdmmc.c dev_dbg(sdmmc_dev(host), "RX phase_map = 0x%04x\n", phase_map); phase_map 737 drivers/mmc/host/rtsx_usb_sdmmc.c if (phase_map) { phase_map 738 drivers/mmc/host/rtsx_usb_sdmmc.c final_phase = sd_search_final_phase(host, phase_map); phase_map 1612 drivers/staging/rts5208/sd.c static u8 sd_search_final_phase(struct rtsx_chip *chip, u32 phase_map, phase_map 1622 drivers/staging/rts5208/sd.c if (phase_map == 0xFFFFFFFF) { phase_map 1635 drivers/staging/rts5208/sd.c if (phase_map & (1 << i)) { phase_map 1736 drivers/staging/rts5208/sd.c u32 raw_phase_map[3], phase_map; phase_map 1767 drivers/staging/rts5208/sd.c phase_map = raw_phase_map[0] & raw_phase_map[1] & raw_phase_map[2]; phase_map 1772 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "RX phase_map = 0x%08x\n", phase_map); phase_map 1774 drivers/staging/rts5208/sd.c final_phase = sd_search_final_phase(chip, phase_map, TUNE_RX); phase_map 1790 drivers/staging/rts5208/sd.c u32 phase_map; phase_map 1798 drivers/staging/rts5208/sd.c phase_map = 0; phase_map 1816 drivers/staging/rts5208/sd.c phase_map |= 1 << i; phase_map 1825 drivers/staging/rts5208/sd.c phase_map); phase_map 1827 drivers/staging/rts5208/sd.c final_phase = sd_search_final_phase(chip, phase_map, TUNE_TX); phase_map 1846 drivers/staging/rts5208/sd.c u32 raw_phase_map[3], phase_map; phase_map 1879 drivers/staging/rts5208/sd.c phase_map = raw_phase_map[0] & raw_phase_map[1] & raw_phase_map[2]; phase_map 1884 drivers/staging/rts5208/sd.c dev_dbg(rtsx_dev(chip), "TX phase_map = 0x%08x\n", phase_map); phase_map 1886 drivers/staging/rts5208/sd.c final_phase = sd_search_final_phase(chip, phase_map, TUNE_TX);