Home
last modified time | relevance | path

Searched refs:rxerr (Results 1 – 24 of 24) sorted by relevance

/drivers/net/can/rcar/
Drcar_canfd.c921 u16 txerr, u16 rxerr) in rcar_canfd_error() argument
929 netdev_dbg(ndev, "ch erfl %x txerr %u rxerr %u\n", cerfl, txerr, rxerr); in rcar_canfd_error()
997 cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_WARNING : in rcar_canfd_error()
1000 cf->data[7] = rxerr; in rcar_canfd_error()
1007 cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_PASSIVE : in rcar_canfd_error()
1010 cf->data[7] = rxerr; in rcar_canfd_error()
1114 u16 txerr, u16 rxerr) in rcar_canfd_state_change() argument
1123 if (txerr < 96 && rxerr < 96) in rcar_canfd_state_change()
1125 else if (txerr < 128 && rxerr < 128) in rcar_canfd_state_change()
1130 state, priv->can.state, txerr, rxerr); in rcar_canfd_state_change()
[all …]
Drcar_can.c224 u8 eifr, txerr = 0, rxerr = 0; in rcar_can_error() local
232 rxerr = readb(&priv->regs->recr); in rcar_can_error()
236 cf->data[7] = rxerr; in rcar_can_error()
312 cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_WARNING : in rcar_can_error()
322 cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_PASSIVE : in rcar_can_error()
727 bec->rxerr = readb(&priv->regs->recr); in rcar_can_get_berr_counter()
/drivers/net/can/usb/
Dusb_8dev.c362 u8 rxerr = msg->data[1] & USB_8DEV_RP_MASK; in usb_8dev_rx_err_msg() local
430 cf->data[1] = (txerr > rxerr) ? in usb_8dev_rx_err_msg()
437 cf->data[1] = (txerr > rxerr) ? in usb_8dev_rx_err_msg()
457 cf->data[7] = rxerr; in usb_8dev_rx_err_msg()
460 priv->bec.rxerr = rxerr; in usb_8dev_rx_err_msg()
733 bec->rxerr = priv->bec.rxerr; in usb_8dev_get_berr_counter()
Dkvaser_usb.c437 u8 channel, status, txerr, rxerr; member
845 if ((es->txerr >= 128) || (es->rxerr >= 128)) in kvaser_usb_rx_error_update_can_state()
847 else if ((es->txerr >= 96) || (es->rxerr >= 96)) in kvaser_usb_rx_error_update_can_state()
858 tx_state = (es->txerr >= es->rxerr) ? new_state : 0; in kvaser_usb_rx_error_update_can_state()
859 rx_state = (es->txerr <= es->rxerr) ? new_state : 0; in kvaser_usb_rx_error_update_can_state()
889 priv->bec.rxerr = es->rxerr; in kvaser_usb_rx_error_update_can_state()
976 cf->data[7] = es->rxerr; in kvaser_usb_rx_error()
1007 if (es->rxerr != priv->bec.rxerr) { in kvaser_usbcan_conditionally_rx_error()
1032 es.rxerr = msg->u.usbcan.chip_state_event.rx_errors_count; in kvaser_usbcan_rx_error()
1040 es.rxerr = msg->u.usbcan.error_event.rx_errors_count_ch0; in kvaser_usbcan_rx_error()
[all …]
Desd_usb2.c238 u8 rxerr = msg->msg.rx.data[3]; in esd_usb2_rx_event() local
295 cf->data[1] = (txerr > rxerr) ? in esd_usb2_rx_event()
300 cf->data[7] = rxerr; in esd_usb2_rx_event()
304 priv->bec.rxerr = rxerr; in esd_usb2_rx_event()
956 bec->rxerr = priv->bec.rxerr; in esd_usb2_get_berr_counter()
Dems_usb.c174 u8 rxerr; member
369 u8 rxerr = msg->msg.error.cc.regs.sja1000.rxerr; in ems_usb_rx_err() local
398 cf->data[1] = (txerr > rxerr) ? in ems_usb_rx_err()
Dgs_usb.c104 u32 rxerr; member
/drivers/net/can/sja1000/
Dsja1000.c270 bec->rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_get_berr_counter()
398 unsigned int rxerr, txerr; in sja1000_err() local
406 rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_err()
409 cf->data[7] = rxerr; in sja1000_err()
483 tx_state = txerr >= rxerr ? state : 0; in sja1000_err()
484 rx_state = txerr <= rxerr ? state : 0; in sja1000_err()
/drivers/net/can/
Dsun4i_can.c309 bec->rxerr = (errors >> 16) & 0xFF; in sun4ican_get_berr_counter()
518 unsigned int rxerr, txerr, errc; in sun4i_can_err() local
525 rxerr = (errc >> 16) & 0xFF; in sun4i_can_err()
530 cf->data[7] = rxerr; in sun4i_can_err()
615 tx_state = txerr >= rxerr ? state : 0; in sun4i_can_err()
616 rx_state = txerr <= rxerr ? state : 0; in sun4i_can_err()
Dxilinx_can.c547 u32 err_status, status, txerr = 0, rxerr = 0; in xcan_err_interrupt() local
554 rxerr = ((priv->read_reg(priv, XCAN_ECR_OFFSET) & in xcan_err_interrupt()
571 cf->data[1] = (rxerr > 127) ? in xcan_err_interrupt()
575 cf->data[7] = rxerr; in xcan_err_interrupt()
582 cf->data[1] |= (txerr > rxerr) ? in xcan_err_interrupt()
586 cf->data[7] = rxerr; in xcan_err_interrupt()
936 bec->rxerr = ((priv->read_reg(priv, XCAN_ECR_OFFSET) & in xcan_get_berr_counter()
Djanz-ican3.c1041 u8 isrc, ecc, status, rxerr, txerr; in ican3_handle_cevtind() local
1060 rxerr = msg->data[4]; in ican3_handle_cevtind()
1122 if (rxerr >= 128 || txerr >= 128) in ican3_handle_cevtind()
1155 cf->data[7] = rxerr; in ican3_handle_cevtind()
1163 cf->data[1] = (txerr > rxerr) ? in ican3_handle_cevtind()
1168 cf->data[1] = (txerr > rxerr) ? in ican3_handle_cevtind()
1174 cf->data[7] = rxerr; in ican3_handle_cevtind()
1187 mod->bec.rxerr = msg->data[5]; in ican3_handle_inquiry()
1813 bec->rxerr = mod->bec.rxerr; in ican3_get_berr_counter()
Dat91_can.c380 bec->rxerr = reg_ecr & 0xff; in at91_get_berr_counter()
901 cf->data[1] = (bec.txerr > bec.rxerr) ? in at91_irq_err_state()
917 cf->data[1] = (bec.txerr > bec.rxerr) ? in at91_irq_err_state()
997 if (bec.txerr < 96 && bec.rxerr < 96) in at91_get_state_by_bec()
999 else if (bec.txerr < 128 && bec.rxerr < 128) in at91_get_state_by_bec()
1001 else if (bec.txerr < 256 && bec.rxerr < 256) in at91_get_state_by_bec()
Dbfin_can.c336 bec->rxerr = cec; in bfin_can_get_berr_counter()
476 u8 rxerr = cec; in bfin_can_err() local
482 cf->data[1] = (txerr > rxerr) ? in bfin_can_err()
487 cf->data[1] = (txerr > rxerr) ? in bfin_can_err()
Dgrcan.c458 bec->rxerr = (status & GRCAN_STAT_RXERRCNT) >> GRCAN_STAT_RXERRCNT_BIT; in grcan_get_berr_counter()
617 u32 rxerr = (status & GRCAN_STAT_RXERRCNT) in grcan_err() local
626 rxerr >= GRCAN_STAT_ERRCNT_WARNING_LIMIT) { in grcan_err()
656 if (rxerr >= GRCAN_STAT_ERRCNT_PASSIVE_LIMIT) in grcan_err()
667 if (rxerr >= GRCAN_STAT_ERRCNT_WARNING_LIMIT) in grcan_err()
681 cf.data[7] = rxerr; in grcan_err()
Dflexcan.c440 bec->rxerr = (reg >> 8) & 0xff; in __flexcan_get_berr_counter()
603 rx_state = bec.rxerr >= bec.txerr ? new_state : 0; in flexcan_poll_state()
604 tx_state = bec.rxerr <= bec.txerr ? new_state : 0; in flexcan_poll_state()
Dti_hecc.c458 bec->rxerr = hecc_read(priv, HECC_CANREC); in ti_hecc_get_berr_counter()
Dpch_can.c1174 bec->rxerr = (errc & PCH_REC) >> 8; in pch_can_get_berr_counter()
/drivers/net/ethernet/arc/
Demac_main.c592 unsigned long miss, rxerr; in arc_emac_stats() local
595 rxerr = arc_reg_get(priv, R_RXERR); in arc_emac_stats()
598 rxcrc = rxerr; in arc_emac_stats()
599 rxfram = rxerr >> 8; in arc_emac_stats()
600 rxoflow = rxerr >> 16; in arc_emac_stats()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c553 pdev->bec.rxerr = 0; in pcan_usb_fd_decode_status()
562 tx_state = (pdev->bec.txerr >= pdev->bec.rxerr) ? new_state : 0; in pcan_usb_fd_decode_status()
563 rx_state = (pdev->bec.txerr <= pdev->bec.rxerr) ? new_state : 0; in pcan_usb_fd_decode_status()
597 pdev->bec.rxerr = er->rx_err_cnt; in pcan_usb_fd_decode_error()
804 pdev->bec.rxerr = 0; in pcan_usb_fd_start()
/drivers/net/can/ifi_canfd/
Difi_canfd.c447 bec->rxerr = (err >> IFI_CANFD_ERROR_RX_OFFSET) & in ifi_canfd_get_berr_counter()
502 cf->data[1] = (bec.txerr > bec.rxerr) ? in ifi_canfd_handle_state_change()
506 cf->data[7] = bec.rxerr; in ifi_canfd_handle_state_change()
515 cf->data[7] = bec.rxerr; in ifi_canfd_handle_state_change()
/drivers/net/can/c_can/
Dc_can.c683 bec->rxerr = (reg_err_counter & ERR_CNT_REC_MASK) >> in __c_can_get_berr_counter()
922 cf->data[1] = (bec.txerr > bec.rxerr) ? in c_can_handle_state_change()
926 cf->data[7] = bec.rxerr; in c_can_handle_state_change()
938 cf->data[7] = bec.rxerr; in c_can_handle_state_change()
/drivers/net/can/m_can/
Dm_can.c534 bec->rxerr = (ecr & ECR_REC_MASK) >> ECR_REC_SHIFT; in __m_can_get_berr_counter()
607 cf->data[1] = (bec.txerr > bec.rxerr) ? in m_can_handle_state_change()
611 cf->data[7] = bec.rxerr; in m_can_handle_state_change()
622 cf->data[7] = bec.rxerr; in m_can_handle_state_change()
/drivers/net/can/mscan/
Dmscan.c544 bec->rxerr = in_8(&regs->canrxerr); in mscan_get_berr_counter()
/drivers/net/can/cc770/
Dcc770.c388 bec->rxerr = cc770_read_reg(priv, rx_error_counter); in cc770_get_berr_counter()