Lines Matching refs:irq_status
127 int bank, uint32_t irq_status) in denali_clear_irq() argument
130 iowrite32(irq_status, denali->reg + INTR_STATUS(bank)); in denali_clear_irq()
143 uint32_t irq_status; in __denali_check_irq() local
147 irq_status = ioread32(denali->reg + INTR_STATUS(i)); in __denali_check_irq()
148 denali_clear_irq(denali, i, irq_status); in __denali_check_irq()
153 denali->irq_status |= irq_status; in __denali_check_irq()
159 denali->irq_status = 0; in denali_reset_irq()
171 if (irq_mask & denali->irq_status) in denali_wait_for_irq()
172 return denali->irq_status; in denali_wait_for_irq()
183 return denali->irq_status; in denali_wait_for_irq()
190 return denali->irq_status; in denali_check_irq()
372 uint32_t irq_status; in denali_sw_ecc_fixup() local
427 irq_status = denali_wait_for_irq(denali, INTR__ECC_TRANSACTION_DONE); in denali_sw_ecc_fixup()
428 if (!(irq_status & INTR__ECC_TRANSACTION_DONE)) in denali_sw_ecc_fixup()
487 uint32_t irq_status, ecc_err_mask; in denali_pio_read() local
500 irq_status = denali_wait_for_irq(denali, INTR__PAGE_XFER_INC); in denali_pio_read()
501 if (!(irq_status & INTR__PAGE_XFER_INC)) in denali_pio_read()
504 if (irq_status & INTR__ERASED_PAGE) in denali_pio_read()
507 return irq_status & ecc_err_mask ? -EBADMSG : 0; in denali_pio_read()
515 uint32_t irq_status; in denali_pio_write() local
523 irq_status = denali_wait_for_irq(denali, in denali_pio_write()
525 if (!(irq_status & INTR__PROGRAM_COMP)) in denali_pio_write()
544 uint32_t irq_mask, irq_status, ecc_err_mask; in denali_dma_xfer() local
581 irq_status = denali_wait_for_irq(denali, irq_mask); in denali_dma_xfer()
582 if (!(irq_status & INTR__DMA_CMD_COMP)) in denali_dma_xfer()
584 else if (irq_status & ecc_err_mask) in denali_dma_xfer()
591 if (irq_status & INTR__ERASED_PAGE) in denali_dma_xfer()
898 uint32_t irq_status; in denali_waitfunc() local
901 irq_status = denali_wait_for_irq(denali, INTR__INT_ACT); in denali_waitfunc()
903 return irq_status & INTR__INT_ACT ? 0 : NAND_STATUS_FAIL; in denali_waitfunc()
909 uint32_t irq_status; in denali_erase() local
917 irq_status = denali_wait_for_irq(denali, in denali_erase()
920 return irq_status & INTR__ERASE_COMP ? 0 : NAND_STATUS_FAIL; in denali_erase()
1050 u32 irq_status; in denali_reset_banks() local
1061 irq_status = denali_wait_for_irq(denali, in denali_reset_banks()
1063 if (!(irq_status & INTR__INT_ACT)) in denali_reset_banks()
1225 u32 irq_status; in denali_wait_reset_complete() local
1227 irq_status = denali_wait_for_irq(denali, INTR__RST_COMP); in denali_wait_reset_complete()
1228 if (!(irq_status & INTR__RST_COMP)) in denali_wait_reset_complete()