• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mmc/host/

Lines Matching refs:intmask

165 	u32 intmask;
169 intmask = SDHCI_INT_BUS_POWER | SDHCI_INT_DATA_END_BIT |
176 writel(intmask, host->ioaddr + SDHCI_INT_ENABLE);
177 writel(intmask, host->ioaddr + SDHCI_SIGNAL_ENABLE);
905 static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask)
907 BUG_ON(intmask == 0);
917 if (intmask & SDHCI_INT_RESPONSE)
920 if (intmask & SDHCI_INT_TIMEOUT)
922 else if (intmask & SDHCI_INT_CRC)
924 else if (intmask & (SDHCI_INT_END_BIT | SDHCI_INT_INDEX))
933 static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
935 BUG_ON(intmask == 0);
942 if (intmask & SDHCI_INT_DATA_END)
953 if (intmask & SDHCI_INT_DATA_TIMEOUT)
955 else if (intmask & SDHCI_INT_DATA_CRC)
957 else if (intmask & SDHCI_INT_DATA_END_BIT)
963 if (intmask & (SDHCI_INT_DATA_AVAIL | SDHCI_INT_SPACE_AVAIL))
971 if (intmask & SDHCI_INT_DMA_END)
975 if (intmask & SDHCI_INT_DATA_END)
984 u32 intmask;
988 intmask = readl(host->ioaddr + SDHCI_INT_STATUS);
990 if (!intmask || intmask == 0xffffffff) {
995 DBG("*** %s got interrupt: 0x%08x\n", host->slot_descr, intmask);
997 if (intmask & (SDHCI_INT_CARD_INSERT | SDHCI_INT_CARD_REMOVE)) {
998 writel(intmask & (SDHCI_INT_CARD_INSERT | SDHCI_INT_CARD_REMOVE),
1003 intmask &= ~(SDHCI_INT_CARD_INSERT | SDHCI_INT_CARD_REMOVE);
1005 if (intmask & SDHCI_INT_CMD_MASK) {
1006 writel(intmask & SDHCI_INT_CMD_MASK,
1008 sdhci_cmd_irq(host, intmask & SDHCI_INT_CMD_MASK);
1011 if (intmask & SDHCI_INT_DATA_MASK) {
1012 writel(intmask & SDHCI_INT_DATA_MASK,
1014 sdhci_data_irq(host, intmask & SDHCI_INT_DATA_MASK);
1017 intmask &= ~(SDHCI_INT_CMD_MASK | SDHCI_INT_DATA_MASK);
1019 if (intmask & SDHCI_INT_BUS_POWER) {
1025 intmask &= SDHCI_INT_BUS_POWER;
1027 if (intmask) {
1029 mmc_hostname(host->mmc), intmask);
1032 writel(intmask, host->ioaddr + SDHCI_INT_STATUS);