Lines Matching refs:cause
293 uint32_t cause, irqsrc; in mpic_intr() local
301 for (cause = MPIC_CPU_READ(sc, MPIC_PPI_CAUSE); cause > 0; in mpic_intr()
302 cause >>= 1, irq++) { in mpic_intr()
303 if (cause & 1) { in mpic_intr()
516 uint32_t cause; in mv_mpic_get_msi() local
520 cause = MPIC_DRBL_READ(mv_mpic_sc, 0); in mv_mpic_get_msi()
522 if (cause) in mv_mpic_get_msi()
523 bit_off = ffs(cause) - 1; in mv_mpic_get_msi()
527 debugf("%s: irq:%x cause:%x\n", __func__, bit_off, cause); in mv_mpic_get_msi()
529 cause &= ~(1 << bit_off); in mv_mpic_get_msi()
530 MPIC_DRBL_WRITE(mv_mpic_sc, 0, cause); in mv_mpic_get_msi()