Lines Matching refs:status
629 int status = 0; in sport_check_status() local
633 status = sport->regs->stat; in sport_check_status()
634 if (status & (TOVF|TUVF|ROVF|RUVF)) in sport_check_status()
635 sport->regs->stat = (status & (TOVF|TUVF|ROVF|RUVF)); in sport_check_status()
637 *sport_stat = status; in sport_check_status()
642 status = get_dma_curr_irqstat(sport->dma_rx_chan); in sport_check_status()
643 if (status & (DMA_DONE|DMA_ERR)) in sport_check_status()
646 *rx_stat = status; in sport_check_status()
651 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_check_status()
652 if (status & (DMA_DONE|DMA_ERR)) in sport_check_status()
655 *tx_stat = status; in sport_check_status()
725 unsigned int status = 0; in err_handler() local
729 if (sport_check_status(sport, &status, NULL, NULL)) { in err_handler()
734 if (status & (TOVF|TUVF|ROVF|RUVF)) { in err_handler()
736 status & TOVF ? " TOVF" : "", in err_handler()
737 status & TUVF ? " TUVF" : "", in err_handler()
738 status & ROVF ? " ROVF" : "", in err_handler()
739 status & RUVF ? " RUVF" : ""); in err_handler()
740 if (status & TOVF || status & TUVF) { in err_handler()
756 status = sport->regs->stat; in err_handler()
757 if (status & (TOVF|TUVF|ROVF|RUVF)) in err_handler()
758 sport->regs->stat = (status & (TOVF|TUVF|ROVF|RUVF)); in err_handler()
1014 unsigned short status; in sport_send_and_recv() local
1052 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_send_and_recv()
1053 while (status & DMA_RUN) { in sport_send_and_recv()
1055 status = get_dma_curr_irqstat(sport->dma_tx_chan); in sport_send_and_recv()
1056 pr_debug("DMA status:0x%04x\n", status); in sport_send_and_recv()
1060 status = sport->regs->stat; in sport_send_and_recv()
1063 while (!(status & TXHRE)) { in sport_send_and_recv()
1064 pr_debug("sport status:0x%04x\n", status); in sport_send_and_recv()
1066 status = *(unsigned short *)&sport->regs->stat; in sport_send_and_recv()
1072 pr_debug("sport status:0x%04x\n", status); in sport_send_and_recv()