Lines Matching refs:status
260 /* check the status of the link */
518 static void ks8842_update_rx_err_counters(struct net_device *netdev, u32 status)
520 netdev_dbg(netdev, "RX error, status: %x\n", status);
523 if (status & RXSR_TOO_LONG)
525 if (status & RXSR_CRC_ERROR)
527 if (status & RXSR_RUNT)
531 static void ks8842_update_rx_counters(struct net_device *netdev, u32 status,
538 if (status & RXSR_MULTICAST)
599 u32 status;
609 status = *((u32 *)skb->data);
611 netdev_dbg(netdev, "%s - rx_data: status: %x\n",
612 __func__, status & 0xffff);
614 /* check the status */
615 if ((status & RXSR_VALID) && !(status & RXSR_ERROR)) {
616 int len = (status >> 16) & 0x7ff;
618 ks8842_update_rx_counters(netdev, status, len);
620 /* reserve 4 bytes which is the status word */
627 ks8842_update_rx_err_counters(netdev, status);
635 u32 status;
639 status = ks8842_read16(adapter, 17, REG_QMU_DATA_LO);
641 netdev_dbg(netdev, "%s - rx_data: status: %x\n",
642 __func__, status);
644 status = ks8842_read32(adapter, 17, REG_QMU_DATA_LO);
645 len = (status >> 16) & 0x7ff;
646 status &= 0xffff;
647 netdev_dbg(netdev, "%s - rx_data: status: %x\n",
648 __func__, status);
651 /* check the status */
652 if ((status & RXSR_VALID) && !(status & RXSR_ERROR)) {
657 ks8842_update_rx_counters(netdev, status, len);
684 ks8842_update_rx_err_counters(netdev, status);