Lines Matching refs:ctrl1
197 if (((dev->regs->ctrl1) & mask) == 0) {
325 dev->regs->ctrl1 |= SDHCI_SOFTWARE_RESET_CMD;
327 dev->regs->ctrl1 |= SDHCI_SOFTWARE_RESET_DAT;
624 regs->ctrl1 &= ~SDHCI_SD_CLOCK_ENABLE;
678 regs->ctrl1 |= SDHCI_SD_CLOCK_ENABLE;
749 regs->ctrl1 &= ~SDHCI_SD_CLOCK_ENABLE;
753 uint32_t ctrl1 = regs->ctrl1;
754 ctrl1 &= ~0xffe0;
755 ctrl1 |= ((divider_lo << 8) | (divider_hi << 6));
756 regs->ctrl1 = ctrl1;
760 regs->ctrl1 |= SDHCI_SD_CLOCK_ENABLE;
788 dev->regs->ctrl1 &= ~SDHCI_SD_CLOCK_ENABLE;
802 dev->regs->ctrl1 |= SDHCI_SD_CLOCK_ENABLE;
936 uint32_t ctrl1 = dev->regs->ctrl1;
939 ctrl1 |= SDHCI_SOFTWARE_RESET_ALL;
942 ctrl1 &= ~(SDHCI_INTERNAL_CLOCK_ENABLE | SDHCI_SD_CLOCK_ENABLE);
945 dev->regs->ctrl1 = ctrl1;
978 ctrl1 = dev->regs->ctrl1;
979 ctrl1 |= SDHCI_INTERNAL_CLOCK_ENABLE;
990 ctrl1 |= ((divider_lo << 8) | (divider_hi << 6));
993 ctrl1 |= (0xe << 16);
996 dev->regs->ctrl1 = ctrl1;
1001 if (((dev->regs->ctrl1) & SDHCI_INTERNAL_CLOCK_STABLE) != 0)
1013 ctrl1 |= dev->regs->ctrl1;
1014 ctrl1 |= SDHCI_SD_CLOCK_ENABLE;
1015 dev->regs->ctrl1 = ctrl1;