Lines Matching full:scratch
112 u16 scratch; in sdhci_o2_enable_internal_clock() local
132 scratch = sdhci_readw(host, O2_PLL_DLL_WDT_CONTROL1); in sdhci_o2_enable_internal_clock()
133 if (scratch & O2_PLL_LOCK_STATUS) in sdhci_o2_enable_internal_clock()
321 u16 scratch = 0; in sdhci_o2_execute_tuning() local
338 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
339 scratch |= O2_SD_PWR_FORCE_L0; in sdhci_o2_execute_tuning()
340 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
420 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
421 scratch &= ~(O2_SD_PWR_FORCE_L0); in sdhci_o2_execute_tuning()
422 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
581 u8 scratch; in sdhci_pci_o2_set_clock() local
595 pci_read_config_byte(chip->pdev, O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_set_clock()
596 scratch &= 0x7f; in sdhci_pci_o2_set_clock()
597 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_set_clock()
627 pci_read_config_byte(chip->pdev, O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_set_clock()
628 scratch |= 0x80; in sdhci_pci_o2_set_clock()
629 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_set_clock()
813 u8 scratch; in sdhci_pci_o2_probe() local
824 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
827 scratch &= 0x7f; in sdhci_pci_o2_probe()
828 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
835 O2_SD_CLKREQ, &scratch); in sdhci_pci_o2_probe()
838 scratch |= 0x20; in sdhci_pci_o2_probe()
839 pci_write_config_byte(chip->pdev, O2_SD_CLKREQ, scratch); in sdhci_pci_o2_probe()
844 ret = pci_read_config_byte(chip->pdev, O2_SD_CAPS, &scratch); in sdhci_pci_o2_probe()
847 scratch |= 0x01; in sdhci_pci_o2_probe()
848 pci_write_config_byte(chip->pdev, O2_SD_CAPS, scratch); in sdhci_pci_o2_probe()
857 O2_SD_INF_MOD, &scratch); in sdhci_pci_o2_probe()
860 scratch |= 0x08; in sdhci_pci_o2_probe()
861 pci_write_config_byte(chip->pdev, O2_SD_INF_MOD, scratch); in sdhci_pci_o2_probe()
865 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
868 scratch |= 0x80; in sdhci_pci_o2_probe()
869 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
876 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
880 scratch &= 0x7f; in sdhci_pci_o2_probe()
881 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
962 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
965 scratch |= 0x80; in sdhci_pci_o2_probe()
966 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
972 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
976 scratch &= 0x7f; in sdhci_pci_o2_probe()
977 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
1018 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
1021 scratch |= 0x80; in sdhci_pci_o2_probe()
1022 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
1029 ret = pci_read_config_byte(chip->pdev, O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
1032 scratch &= 0x7f; in sdhci_pci_o2_probe()
1033 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
1058 ret = pci_read_config_byte(chip->pdev, O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
1061 scratch |= 0x80; in sdhci_pci_o2_probe()
1062 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()