Lines Matching refs:intmask
514 static int bcm2835_check_cmd_error(struct bcm2835_host *host, u32 intmask) in bcm2835_check_cmd_error() argument
518 if (!(intmask & SDHSTS_ERROR_MASK)) in bcm2835_check_cmd_error()
524 printf("sdhost_busy_irq: intmask %08x\n", intmask); in bcm2835_check_cmd_error()
525 if (intmask & SDHSTS_CRC7_ERROR) { in bcm2835_check_cmd_error()
527 } else if (intmask & (SDHSTS_CRC16_ERROR | in bcm2835_check_cmd_error()
530 } else if (intmask & (SDHSTS_REW_TIME_OUT | SDHSTS_CMD_TIME_OUT)) { in bcm2835_check_cmd_error()
537 static int bcm2835_check_data_error(struct bcm2835_host *host, u32 intmask) in bcm2835_check_data_error() argument
543 if (intmask & (SDHSTS_CRC16_ERROR | SDHSTS_FIFO_ERROR)) in bcm2835_check_data_error()
545 if (intmask & SDHSTS_REW_TIME_OUT) in bcm2835_check_data_error()
556 u32 intmask = readl(host->ioaddr + SDHSTS); in bcm2835_transmit() local
560 ret = bcm2835_check_data_error(host, intmask); in bcm2835_transmit()
564 ret = bcm2835_check_cmd_error(host, intmask); in bcm2835_transmit()
569 if (host->use_busy && (intmask & SDHSTS_BUSY_IRPT)) { in bcm2835_transmit()