Lines Matching defs:stat
3627 u64 stat;
3629 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel));
3635 "%s(chan[%d]), stat[%llx] qlen=%d\n",
3636 __func__, rp->rx_channel, (unsigned long long)stat, qlen);
3653 stat = (RX_DMA_CTL_STAT_MEX |
3657 nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat);
3717 u64 stat)
3721 if (stat & RX_DMA_CTL_STAT_RBR_TMOUT)
3723 if (stat & RX_DMA_CTL_STAT_RSP_CNT_ERR)
3725 if (stat & RX_DMA_CTL_STAT_BYTE_EN_BUS)
3727 if (stat & RX_DMA_CTL_STAT_RSP_DAT_ERR)
3729 if (stat & RX_DMA_CTL_STAT_RCR_ACK_ERR)
3731 if (stat & RX_DMA_CTL_STAT_RCR_SHA_PAR)
3733 if (stat & RX_DMA_CTL_STAT_RBR_PRE_PAR)
3735 if (stat & RX_DMA_CTL_STAT_CONFIG_ERR)
3737 if (stat & RX_DMA_CTL_STAT_RCRINCON)
3739 if (stat & RX_DMA_CTL_STAT_RCRFULL)
3741 if (stat & RX_DMA_CTL_STAT_RBRFULL)
3743 if (stat & RX_DMA_CTL_STAT_RBRLOGPAGE)
3745 if (stat & RX_DMA_CTL_STAT_CFIGLOGPAGE)
3747 if (stat & RX_DMA_CTL_STAT_DC_FIFO_ERR)
3755 u64 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel));
3759 if (stat & (RX_DMA_CTL_STAT_CHAN_FATAL |
3764 netdev_err(np->dev, "RX channel %u error, stat[%llx]\n",
3766 (unsigned long long) stat);
3768 niu_log_rxchan_errors(np, rp, stat);
3772 stat & RX_DMA_CTL_WRITE_CLEAR_ERRS);
3833 netdev_err(np->dev, "MIF interrupt, stat[%llx] phy_mdint(%d)\n",
3957 static void niu_log_device_error(struct niu *np, u64 stat)
3961 if (stat & SYS_ERR_MASK_META2)
3963 if (stat & SYS_ERR_MASK_META1)
3965 if (stat & SYS_ERR_MASK_PEU)
3967 if (stat & SYS_ERR_MASK_TXC)
3969 if (stat & SYS_ERR_MASK_RDMC)
3971 if (stat & SYS_ERR_MASK_TDMC)
3973 if (stat & SYS_ERR_MASK_ZCP)
3975 if (stat & SYS_ERR_MASK_FFLP)
3977 if (stat & SYS_ERR_MASK_IPP)
3979 if (stat & SYS_ERR_MASK_MAC)
3981 if (stat & SYS_ERR_MASK_SMX)
3989 u64 stat = nr64(SYS_ERR_STAT);
3991 netdev_err(np->dev, "Core device error, stat[%llx]\n",
3992 (unsigned long long)stat);
3994 niu_log_device_error(np, stat);
4068 u64 stat_write, stat = le64_to_cpup(&mbox->rx_dma_ctl_stat);
4075 "%s() stat[%llx]\n", __func__, (unsigned long long)stat);