Lines Matching refs:cause
200 u32 cause = readl(adapter->regs + FPGA_GMAC_ADDR_INTERRUPT_CAUSE);
203 if (cause & (1 << p)) {
210 writel(cause, adapter->regs + FPGA_GMAC_ADDR_INTERRUPT_CAUSE);
219 u32 cause = readl(adapter->regs + A_PL_CAUSE);
221 cause &= ~F_PL_INTR_SGE_DATA;
222 if (cause & F_PL_INTR_SGE_ERR)
225 if (cause & FPGA_PCIX_INTERRUPT_GMAC)
228 if (cause & FPGA_PCIX_INTERRUPT_TP) {
238 if (cause & FPGA_PCIX_INTERRUPT_PCIX)
242 if (cause)
243 writel(cause, adapter->regs + A_PL_CAUSE);
245 return cause != 0;
674 u32 cause;
676 t1_tpi_read(adapter, A_ELMER0_INT_CAUSE, &cause);
687 if (!(cause & (1 << port_bit)))
698 if (cause & ELMER0_GP_BIT1) { /* Marvell 88E1111 interrupt */
708 * Elmer0's interrupt cause isn't useful here because there is
725 if (cause & ELMER0_GP_BIT6) { /* Marvell 88x2010 interrupt */
734 CH_DBG(adapter, INTR, "External interrupt cause 0x%x\n",
735 cause);
736 if (cause & ELMER0_GP_BIT1) { /* PMC3393 INTB */
741 if (cause & ELMER0_GP_BIT5) { /* XPAK MOD_DETECT */
753 if (cause & ELMER0_GP_BIT1) { /* Vitesse MAC */
757 if (cause & ELMER0_GP_BIT5) { /* XPAK MOD_DETECT */
764 if (!(cause & (1 << port_bit)))
776 t1_tpi_write(adapter, A_ELMER0_INT_CAUSE, cause);
873 u32 cause = readl(adapter->regs + A_PL_CAUSE);
875 cause &= adapter->slow_intr_mask;
876 if (!cause)
878 if (cause & F_PL_INTR_SGE_ERR)
880 if (cause & F_PL_INTR_TP)
882 if (cause & F_PL_INTR_ESPI)
884 if (cause & F_PL_INTR_PCIX)
886 if (cause & F_PL_INTR_EXT)
890 writel(cause, adapter->regs + A_PL_CAUSE);