Lines Matching refs:cause
196 u32 cause = readl(adapter->regs + FPGA_GMAC_ADDR_INTERRUPT_CAUSE);
199 if (cause & (1 << p)) {
206 writel(cause, adapter->regs + FPGA_GMAC_ADDR_INTERRUPT_CAUSE);
215 u32 cause = readl(adapter->regs + A_PL_CAUSE);
217 cause &= ~F_PL_INTR_SGE_DATA;
218 if (cause & F_PL_INTR_SGE_ERR)
221 if (cause & FPGA_PCIX_INTERRUPT_GMAC)
224 if (cause & FPGA_PCIX_INTERRUPT_TP) {
234 if (cause & FPGA_PCIX_INTERRUPT_PCIX)
238 if (cause)
239 writel(cause, adapter->regs + A_PL_CAUSE);
241 return cause != 0;
671 u32 cause;
673 t1_tpi_read(adapter, A_ELMER0_INT_CAUSE, &cause);
684 if (!(cause & (1 << port_bit)))
695 if (cause & ELMER0_GP_BIT1) { /* Marvell 88E1111 interrupt */
705 * Elmer0's interrupt cause isn't useful here because there is
722 if (cause & ELMER0_GP_BIT6) { /* Marvell 88x2010 interrupt */
733 "External interrupt cause 0x%x\n", cause);
734 if (cause & ELMER0_GP_BIT1) { /* PMC3393 INTB */
739 if (cause & ELMER0_GP_BIT5) { /* XPAK MOD_DETECT */
750 t1_tpi_write(adapter, A_ELMER0_INT_CAUSE, cause);
847 u32 cause = readl(adapter->regs + A_PL_CAUSE);
849 cause &= adapter->slow_intr_mask;
850 if (!cause)
852 if (cause & F_PL_INTR_SGE_ERR)
854 if (cause & F_PL_INTR_TP)
856 if (cause & F_PL_INTR_ESPI)
858 if (cause & F_PL_INTR_PCIX)
860 if (cause & F_PL_INTR_EXT)
864 writel(cause, adapter->regs + A_PL_CAUSE);