Lines Matching refs:cause

207 	u32 cause = t1_read_reg_4(adapter, FPGA_GMAC_ADDR_INTERRUPT_CAUSE);
210 if (cause & (1 << p)) {
217 t1_write_reg_4(adapter, FPGA_GMAC_ADDR_INTERRUPT_CAUSE, cause);
226 u32 cause = t1_read_reg_4(adapter, A_PL_CAUSE);
228 cause &= ~F_PL_INTR_SGE_DATA;
229 if (cause & F_PL_INTR_SGE_ERR)
232 if (cause & FPGA_PCIX_INTERRUPT_GMAC)
235 if (cause & FPGA_PCIX_INTERRUPT_TP) {
251 if (cause & FPGA_PCIX_INTERRUPT_MC3)
254 if (cause & FPGA_PCIX_INTERRUPT_PCIX)
258 if (cause)
259 t1_write_reg_4(adapter, A_PL_CAUSE, cause);
261 return (cause != 0);
870 u32 cause;
872 (void) t1_tpi_read(adapter, A_ELMER0_INT_CAUSE, &cause);
881 if (!(cause & (1 << port_bit))) continue;
891 if (cause & ELMER0_GP_BIT1) { /* Marvell 88E1111 interrupt */
901 * Elmer0's interrupt cause isn't useful here because there is
918 if (cause & ELMER0_GP_BIT6) { /* Marvell 88x2010 interrupt */
927 CH_DBG(adapter, INTR, "External interrupt cause 0x%x\n",
928 cause);
929 if (cause & ELMER0_GP_BIT1) { /* PMC3393 INTB */
934 if (cause & ELMER0_GP_BIT5) { /* XPAK MOD_DETECT */
946 if (cause & ELMER0_GP_BIT1) { /* Vitesse MAC */
950 if (cause & ELMER0_GP_BIT5) { /* XPAK MOD_DETECT */
957 if (!(cause & (1 << port_bit))) continue;
968 (void) t1_tpi_write(adapter, A_ELMER0_INT_CAUSE, cause);
1106 u32 cause = t1_read_reg_4(adapter, A_PL_CAUSE);
1108 cause &= adapter->slow_intr_mask;
1109 if (!cause)
1111 if (cause & F_PL_INTR_SGE_ERR)
1113 if (cause & F_PL_INTR_TP)
1116 if (cause & F_PL_INTR_MC3)
1118 if (cause & F_PL_INTR_MC4)
1120 if (cause & F_PL_INTR_ULP)
1122 if (cause & F_PL_INTR_MC5)
1125 if (cause & F_PL_INTR_ESPI)
1127 if (cause & F_PL_INTR_PCIX)
1129 if (cause & F_PL_INTR_EXT)
1133 t1_write_reg_4(adapter, A_PL_CAUSE, cause);