Lines Matching refs:irq_status

150 			     int bank, uint32_t irq_status)  in denali_clear_irq()  argument
153 iowrite32(irq_status, denali->reg + INTR_STATUS(bank)); in denali_clear_irq()
166 uint32_t irq_status; in __denali_check_irq() local
170 irq_status = ioread32(denali->reg + INTR_STATUS(i)); in __denali_check_irq()
171 denali_clear_irq(denali, i, irq_status); in __denali_check_irq()
176 denali->irq_status |= irq_status; in __denali_check_irq()
182 denali->irq_status = 0; in denali_reset_irq()
194 if (irq_mask & denali->irq_status) in denali_wait_for_irq()
195 return denali->irq_status; in denali_wait_for_irq()
206 return denali->irq_status; in denali_wait_for_irq()
213 return denali->irq_status; in denali_check_irq()
395 uint32_t irq_status; in denali_sw_ecc_fixup() local
450 irq_status = denali_wait_for_irq(denali, INTR__ECC_TRANSACTION_DONE); in denali_sw_ecc_fixup()
451 if (!(irq_status & INTR__ECC_TRANSACTION_DONE)) in denali_sw_ecc_fixup()
510 uint32_t irq_status, ecc_err_mask; in denali_pio_read() local
523 irq_status = denali_wait_for_irq(denali, INTR__PAGE_XFER_INC); in denali_pio_read()
524 if (!(irq_status & INTR__PAGE_XFER_INC)) in denali_pio_read()
527 if (irq_status & INTR__ERASED_PAGE) in denali_pio_read()
530 return irq_status & ecc_err_mask ? -EBADMSG : 0; in denali_pio_read()
538 uint32_t irq_status; in denali_pio_write() local
546 irq_status = denali_wait_for_irq(denali, in denali_pio_write()
548 if (!(irq_status & INTR__PROGRAM_COMP)) in denali_pio_write()
567 uint32_t irq_mask, irq_status, ecc_err_mask; in denali_dma_xfer() local
598 irq_status = denali_wait_for_irq(denali, irq_mask); in denali_dma_xfer()
599 if (!(irq_status & INTR__DMA_CMD_COMP)) in denali_dma_xfer()
601 else if (irq_status & ecc_err_mask) in denali_dma_xfer()
608 if (irq_status & INTR__ERASED_PAGE) in denali_dma_xfer()
915 uint32_t irq_status; in denali_waitfunc() local
918 irq_status = denali_wait_for_irq(denali, INTR__INT_ACT); in denali_waitfunc()
920 return irq_status & INTR__INT_ACT ? 0 : NAND_STATUS_FAIL; in denali_waitfunc()
926 uint32_t irq_status; in denali_erase() local
934 irq_status = denali_wait_for_irq(denali, in denali_erase()
937 return irq_status & INTR__ERASE_COMP ? 0 : NAND_STATUS_FAIL; in denali_erase()
1060 u32 irq_status; in denali_reset_banks() local
1071 irq_status = denali_wait_for_irq(denali, in denali_reset_banks()
1073 if (!(irq_status & INTR__INT_ACT)) in denali_reset_banks()