Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_leaf.c356 u8 channel, status, txerr, rxerr; member
798 if (es->txerr >= 128 || es->rxerr >= 128) in kvaser_usb_leaf_rx_error_update_can_state()
800 else if (es->txerr >= 96 || es->rxerr >= 96) in kvaser_usb_leaf_rx_error_update_can_state()
811 tx_state = (es->txerr >= es->rxerr) ? new_state : 0; in kvaser_usb_leaf_rx_error_update_can_state()
812 rx_state = (es->txerr <= es->rxerr) ? new_state : 0; in kvaser_usb_leaf_rx_error_update_can_state()
840 priv->bec.rxerr = es->rxerr; in kvaser_usb_leaf_rx_error_update_can_state()
931 cf->data[7] = es->rxerr; in kvaser_usb_leaf_rx_error()
962 if (es->rxerr != priv->bec.rxerr) { in kvaser_usb_leaf_usbcan_conditionally_rx_error()
987 es.rxerr = cmd->u.usbcan.chip_state_event.rx_errors_count; in kvaser_usb_leaf_usbcan_rx_error()
995 es.rxerr = cmd->u.usbcan.error_event.rx_errors_count_ch0; in kvaser_usb_leaf_usbcan_rx_error()
[all …]
Dkvaser_usb_hydra.c854 if (bec->txerr >= 128 || bec->rxerr >= 128) { in kvaser_usb_hydra_bus_status_to_can_state()
857 bec->txerr, bec->rxerr); in kvaser_usb_hydra_bus_status_to_can_state()
859 } else if (bec->txerr >= 96 || bec->rxerr >= 96) { in kvaser_usb_hydra_bus_status_to_can_state()
895 tx_state = (bec->txerr >= bec->rxerr) ? in kvaser_usb_hydra_update_state()
897 rx_state = (bec->txerr <= bec->rxerr) ? in kvaser_usb_hydra_update_state()
923 cf->data[7] = bec->rxerr; in kvaser_usb_hydra_update_state()
942 bec.rxerr = cmd->chip_state_event.rx_err_counter; in kvaser_usb_hydra_state_event()
946 priv->bec.rxerr = bec.rxerr; in kvaser_usb_hydra_state_event()
1031 bec.rxerr = err_frame_data->rx_err_counter; in kvaser_usb_hydra_error_frame()
1043 tx_state = (bec.txerr >= bec.rxerr) ? in kvaser_usb_hydra_error_frame()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/
Dmarvell,kirkwood-pinctrl.txt47 mpp35 35 gpio, mii(rxerr)
71 mii(col), mii-1(rxerr)
100 mpp35 35 gpio, ge1(rxerr), sata0(act), mii(rxerr)
115 mii(col), mii-1(rxerr), sata1(prsnt)
149 mpp35 35 gpio, ge1(rxerr), sata0(act), mii(rxerr), tdm(tx0ql)
164 mii(col), mii-1(rxerr), sata1(prsnt)
198 mpp35 35 gpio, ge1(rxerr), sata0(act), mii(rxerr), tdm(tx0ql)
227 mii-1(rxerr), sata1(prsnt)
267 mpp35 35 gpio, ge1(rxerr), sata0(act), mii(rxerr), tdm(tx0ql),
Dmarvell,orion-pinctrl.txt33 mpp9 9 gpio, ge(rxerr)
58 mpp9 9 gpio, ge(rxerr)
83 mpp9 9 gpio, ge(rxerr)
/Linux-v6.1/drivers/net/can/
Dkvaser_pciefd.c641 can->bec.rxerr = 0; in kvaser_pciefd_bus_on()
903 bec->rxerr = can->bec.rxerr; in kvaser_pciefd_get_berr_counter()
953 can->bec.rxerr = 0; in kvaser_pciefd_setup_can_ctrls()
1243 else if (bec->txerr >= 255 || bec->rxerr >= 255) in kvaser_pciefd_packet_to_state()
1247 else if (bec->txerr >= 128 || bec->rxerr >= 128) in kvaser_pciefd_packet_to_state()
1251 else if (bec->txerr >= 96 || bec->rxerr >= 96) in kvaser_pciefd_packet_to_state()
1256 *tx_state = bec->txerr >= bec->rxerr ? *new_state : 0; in kvaser_pciefd_packet_to_state()
1257 *rx_state = bec->txerr <= bec->rxerr ? *new_state : 0; in kvaser_pciefd_packet_to_state()
1274 bec.rxerr = (p->header[0] >> KVASER_PCIEFD_SPACK_RXERR_SHIFT) & 0xff; in kvaser_pciefd_rx_error_frame()
1302 can->bec.rxerr = bec.rxerr; in kvaser_pciefd_rx_error_frame()
[all …]
Dsun4i_can.c320 bec->rxerr = (errors >> 16) & 0xFF; in sun4ican_get_berr_counter()
529 unsigned int rxerr, txerr, errc; in sun4i_can_err() local
536 rxerr = (errc >> 16) & 0xFF; in sun4i_can_err()
572 cf->data[7] = rxerr; in sun4i_can_err()
625 tx_state = txerr >= rxerr ? state : 0; in sun4i_can_err()
626 rx_state = txerr <= rxerr ? state : 0; in sun4i_can_err()
Djanz-ican3.c1038 u8 isrc, ecc, status, rxerr, txerr; in ican3_handle_cevtind() local
1057 rxerr = msg->data[4]; in ican3_handle_cevtind()
1119 if (rxerr >= 128 || txerr >= 128) in ican3_handle_cevtind()
1152 cf->data[7] = rxerr; in ican3_handle_cevtind()
1160 cf->data[1] = (txerr > rxerr) ? in ican3_handle_cevtind()
1165 cf->data[1] = (txerr > rxerr) ? in ican3_handle_cevtind()
1171 cf->data[7] = rxerr; in ican3_handle_cevtind()
1184 mod->bec.rxerr = msg->data[5]; in ican3_handle_inquiry()
1818 bec->rxerr = mod->bec.rxerr; in ican3_get_berr_counter()
Dat91_can.c376 bec->rxerr = reg_ecr & 0xff; in at91_get_berr_counter()
888 cf->data[1] = (bec.txerr > bec.rxerr) ? in at91_irq_err_state()
904 cf->data[1] = (bec.txerr > bec.rxerr) ? in at91_irq_err_state()
982 if (bec.txerr < 96 && bec.rxerr < 96) in at91_get_state_by_bec()
984 else if (bec.txerr < 128 && bec.rxerr < 128) in at91_get_state_by_bec()
986 else if (bec.txerr < 256 && bec.rxerr < 256) in at91_get_state_by_bec()
/Linux-v6.1/drivers/net/can/peak_canfd/
Dpeak_canfd.c332 priv->bec.rxerr = msg->rx_err_cnt; in pucan_handle_error()
378 cf->data[1] = (priv->bec.txerr > priv->bec.rxerr) ? in pucan_handle_status()
382 cf->data[7] = priv->bec.rxerr; in pucan_handle_status()
391 cf->data[1] = (priv->bec.txerr > priv->bec.rxerr) ? in pucan_handle_status()
395 cf->data[7] = priv->bec.rxerr; in pucan_handle_status()
438 cf->data[7] = priv->bec.rxerr; in pucan_handle_cache_critical()
516 priv->bec.rxerr = 0; in peak_canfd_start()
/Linux-v6.1/drivers/net/can/sja1000/
Dsja1000.c272 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()
432 cf->data[7] = rxerr; in sja1000_err()
484 tx_state = txerr >= rxerr ? state : 0; in sja1000_err()
485 rx_state = txerr <= rxerr ? state : 0; in sja1000_err()
/Linux-v6.1/drivers/net/can/usb/
Dusb_8dev.c349 u8 rxerr = msg->data[1] & USB_8DEV_RP_MASK; in usb_8dev_rx_err_msg() local
417 cf->data[1] = (txerr > rxerr) ? in usb_8dev_rx_err_msg()
424 cf->data[1] = (txerr > rxerr) ? in usb_8dev_rx_err_msg()
445 cf->data[7] = rxerr; in usb_8dev_rx_err_msg()
449 priv->bec.rxerr = rxerr; in usb_8dev_rx_err_msg()
712 bec->rxerr = priv->bec.rxerr; in usb_8dev_get_berr_counter()
Desd_usb.c234 u8 rxerr = msg->msg.rx.data[2]; in esd_usb_rx_event() local
239 msg->msg.rx.dlc, state, ecc, rxerr, txerr); in esd_usb_rx_event()
268 rxerr = 0; in esd_usb_rx_event()
299 cf->data[1] = (txerr > rxerr) ? in esd_usb_rx_event()
304 cf->data[7] = rxerr; in esd_usb_rx_event()
308 priv->bec.rxerr = rxerr; in esd_usb_rx_event()
963 bec->rxerr = priv->bec.rxerr; in esd_usb_get_berr_counter()
Dmcba_usb.c509 priv->bec.rxerr = msg->rx_err_cnt; in mcba_usb_process_ka_can()
515 (priv->bec.rxerr > MCBA_CAN_STATE_ERR_PSV_TH)) in mcba_usb_process_ka_can()
519 (priv->bec.rxerr > MCBA_CAN_STATE_WRN_TH)) in mcba_usb_process_ka_can()
755 bec->rxerr = priv->bec.rxerr; in mcba_net_get_berr_counter()
Dems_usb.c163 u8 rxerr; member
360 u8 rxerr = msg->msg.error.cc.regs.sja1000.rxerr; in ems_usb_rx_err() local
390 cf->data[1] = (txerr > rxerr) ? in ems_usb_rx_err()
/Linux-v6.1/drivers/net/can/rcar/
Drcar_canfd.c976 u16 txerr, u16 rxerr) in rcar_canfd_error() argument
984 netdev_dbg(ndev, "ch erfl %x txerr %u rxerr %u\n", cerfl, txerr, rxerr); in rcar_canfd_error()
1052 cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_WARNING : in rcar_canfd_error()
1055 cf->data[7] = rxerr; in rcar_canfd_error()
1062 cf->data[1] = txerr > rxerr ? CAN_ERR_CRTL_TX_PASSIVE : in rcar_canfd_error()
1065 cf->data[7] = rxerr; in rcar_canfd_error()
1199 u16 txerr, u16 rxerr) in rcar_canfd_state_change() argument
1208 if (txerr < 96 && rxerr < 96) in rcar_canfd_state_change()
1210 else if (txerr < 128 && rxerr < 128) in rcar_canfd_state_change()
1215 state, priv->can.state, txerr, rxerr); in rcar_canfd_state_change()
[all …]
Drcar_can.c227 u8 eifr, txerr = 0, rxerr = 0; in rcar_can_error() local
235 rxerr = readb(&priv->regs->recr); 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()
340 cf->data[7] = rxerr; in rcar_can_error()
728 bec->rxerr = readb(&priv->regs->recr); in rcar_can_get_berr_counter()
/Linux-v6.1/drivers/net/can/slcan/
Dslcan-core.c264 u32 rxerr, txerr; in slcan_bump_state() local
294 if (kstrtou32(cmd, 10, &rxerr)) in slcan_bump_state()
299 tx_state = txerr >= rxerr ? state : 0; in slcan_bump_state()
300 rx_state = txerr <= rxerr ? state : 0; in slcan_bump_state()
308 cf->data[7] = rxerr; in slcan_bump_state()
/Linux-v6.1/drivers/net/can/usb/peak_usb/
Dpcan_usb.c485 (mc->pdev->bec.rxerr >= 128)) ? in pcan_usb_decode_error()
495 (mc->pdev->bec.txerr >= mc->pdev->bec.rxerr) ? in pcan_usb_decode_error()
498 (mc->pdev->bec.txerr <= mc->pdev->bec.rxerr) ? in pcan_usb_decode_error()
511 cf->data[7] = mc->pdev->bec.rxerr; in pcan_usb_decode_error()
543 pdev->bec.rxerr = mc->ptr[1]; in pcan_usb_handle_bus_evt()
842 pdev->bec.rxerr = 0; in pcan_usb_start()
Dpcan_usb_fd.c575 pdev->bec.rxerr = 0; in pcan_usb_fd_decode_status()
583 tx_state = (pdev->bec.txerr >= pdev->bec.rxerr) ? new_state : 0; in pcan_usb_fd_decode_status()
584 rx_state = (pdev->bec.txerr <= pdev->bec.rxerr) ? new_state : 0; in pcan_usb_fd_decode_status()
619 pdev->bec.rxerr = er->rx_err_cnt; in pcan_usb_fd_decode_error()
840 pdev->bec.rxerr = 0; in pcan_usb_fd_start()
/Linux-v6.1/drivers/net/can/spi/
Dhi311x.c415 bec->rxerr = hi3110_read(spi, HI3110_READ_REC); in hi3110_get_berr_counter()
663 u8 rxerr, txerr; in hi3110_can_ist() local
670 rxerr = hi3110_read(spi, HI3110_READ_REC); in hi3110_can_ist()
671 tx_state = txerr >= rxerr ? new_state : 0; in hi3110_can_ist()
672 rx_state = txerr <= rxerr ? new_state : 0; in hi3110_can_ist()
686 cf->data[7] = rxerr; in hi3110_can_ist()
/Linux-v6.1/drivers/net/can/ctucanfd/
Dctucanfd_base.c788 bec->rxerr = FIELD_GET(REG_REC_REC_VAL, err_ctrs); in ctucan_get_rec_tec()
817 __func__, isr, bec.rxerr, bec.txerr, in ctucan_err_interrupt()
851 cf->data[1] = (bec.rxerr > 127) ? in ctucan_err_interrupt()
855 cf->data[7] = bec.rxerr; in ctucan_err_interrupt()
862 cf->data[1] |= (bec.txerr > bec.rxerr) ? in ctucan_err_interrupt()
866 cf->data[7] = bec.rxerr; in ctucan_err_interrupt()
873 cf->data[7] = bec.rxerr; in ctucan_err_interrupt()
/Linux-v6.1/drivers/net/ethernet/arc/
Demac_main.c645 unsigned long miss, rxerr; in arc_emac_stats() local
648 rxerr = arc_reg_get(priv, R_RXERR); in arc_emac_stats()
651 rxcrc = rxerr; in arc_emac_stats()
652 rxfram = rxerr >> 8; in arc_emac_stats()
653 rxoflow = rxerr >> 16; in arc_emac_stats()
/Linux-v6.1/include/uapi/linux/can/
Dnetlink.h84 __u16 rxerr; member
/Linux-v6.1/arch/mips/include/asm/octeon/
Dcvmx-pcsx-defs.h514 uint64_t rxerr:1; member
528 uint64_t rxerr:1;
546 uint64_t rxerr:1; member
560 uint64_t rxerr:1;
/Linux-v6.1/drivers/net/can/ifi_canfd/
Difi_canfd.c443 bec->rxerr = (err >> IFI_CANFD_ERROR_RX_OFFSET) & in ifi_canfd_get_berr_counter()
497 cf->data[1] = (bec.txerr > bec.rxerr) ? in ifi_canfd_handle_state_change()
501 cf->data[7] = bec.rxerr; in ifi_canfd_handle_state_change()
510 cf->data[7] = bec.rxerr; in ifi_canfd_handle_state_change()

12