Home
last modified time | relevance | path

Searched refs:bec (Results 1 – 18 of 18) sorted by relevance

/drivers/net/can/
Dat91_can.c395 struct can_berr_counter *bec) in at91_get_berr_counter() argument
400 bec->rxerr = reg_ecr & 0xff; in at91_get_berr_counter()
401 bec->txerr = reg_ecr >> 16; in at91_get_berr_counter()
906 struct can_berr_counter bec; in at91_irq_err_state() local
908 at91_get_berr_counter(dev, &bec); in at91_irq_err_state()
923 cf->data[1] = (bec.txerr > bec.rxerr) ? in at91_irq_err_state()
939 cf->data[1] = (bec.txerr > bec.rxerr) ? in at91_irq_err_state()
1012 struct can_berr_counter bec; in at91_get_state_by_bec() local
1015 err = at91_get_berr_counter(dev, &bec); in at91_get_state_by_bec()
1019 if (bec.txerr < 96 && bec.rxerr < 96) in at91_get_state_by_bec()
[all …]
Dflexcan.c431 struct can_berr_counter *bec) in __flexcan_get_berr_counter() argument
437 bec->txerr = (reg >> 0) & 0xff; in __flexcan_get_berr_counter()
438 bec->rxerr = (reg >> 8) & 0xff; in __flexcan_get_berr_counter()
444 struct can_berr_counter *bec) in flexcan_get_berr_counter() argument
457 err = __flexcan_get_berr_counter(dev, bec); in flexcan_get_berr_counter()
584 struct can_berr_counter bec; in do_state() local
586 __flexcan_get_berr_counter(dev, &bec); in do_state()
601 cf->data[1] = (bec.txerr > bec.rxerr) ? in do_state()
617 cf->data[1] = (bec.txerr > bec.rxerr) ? in do_state()
635 cf->data[1] = (bec.txerr > bec.rxerr) ? in do_state()
Djanz-ican3.c216 struct can_berr_counter bec; member
1079 mod->bec.rxerr = msg->data[5]; in ican3_handle_inquiry()
1080 mod->bec.txerr = msg->data[6]; in ican3_handle_inquiry()
1672 struct can_berr_counter *bec) in ican3_get_berr_counter() argument
1687 bec->rxerr = mod->bec.rxerr; in ican3_get_berr_counter()
1688 bec->txerr = mod->bec.txerr; in ican3_get_berr_counter()
Ddev.c880 struct can_berr_counter bec; in can_fill_info() local
900 !priv->do_get_berr_counter(dev, &bec) && in can_fill_info()
901 nla_put(skb, IFLA_CAN_BERR_COUNTER, sizeof(bec), &bec)) || in can_fill_info()
Dbfin_can.c224 struct can_berr_counter *bec) in bfin_can_get_berr_counter() argument
231 bec->txerr = cec >> 8; in bfin_can_get_berr_counter()
232 bec->rxerr = cec; in bfin_can_get_berr_counter()
Dxilinx_can.c932 struct can_berr_counter *bec) in xcan_get_berr_counter() argument
945 bec->txerr = priv->read_reg(priv, XCAN_ECR_OFFSET) & XCAN_ECR_TEC_MASK; in xcan_get_berr_counter()
946 bec->rxerr = ((priv->read_reg(priv, XCAN_ECR_OFFSET) & in xcan_get_berr_counter()
Drcar_can.c716 struct can_berr_counter *bec) in rcar_can_get_berr_counter() argument
724 bec->txerr = readb(&priv->regs->tecr); in rcar_can_get_berr_counter()
725 bec->rxerr = readb(&priv->regs->recr); in rcar_can_get_berr_counter()
Dti_hecc.c453 struct can_berr_counter *bec) in ti_hecc_get_berr_counter() argument
457 bec->txerr = hecc_read(priv, HECC_CANTEC); in ti_hecc_get_berr_counter()
458 bec->rxerr = hecc_read(priv, HECC_CANREC); in ti_hecc_get_berr_counter()
Dpch_can.c1168 struct can_berr_counter *bec) in pch_can_get_berr_counter() argument
1173 bec->txerr = errc & PCH_TEC; in pch_can_get_berr_counter()
1174 bec->rxerr = (errc & PCH_REC) >> 8; in pch_can_get_berr_counter()
Dgrcan.c451 struct can_berr_counter *bec) in grcan_get_berr_counter() argument
457 bec->txerr = (status & GRCAN_STAT_TXERRCNT) >> GRCAN_STAT_TXERRCNT_BIT; in grcan_get_berr_counter()
458 bec->rxerr = (status & GRCAN_STAT_RXERRCNT) >> GRCAN_STAT_RXERRCNT_BIT; in grcan_get_berr_counter()
/drivers/net/can/c_can/
Dc_can.c666 struct can_berr_counter *bec) in __c_can_get_berr_counter() argument
672 bec->rxerr = (reg_err_counter & ERR_CNT_REC_MASK) >> in __c_can_get_berr_counter()
674 bec->txerr = reg_err_counter & ERR_CNT_TEC_MASK; in __c_can_get_berr_counter()
680 struct can_berr_counter *bec) in c_can_get_berr_counter() argument
686 err = __c_can_get_berr_counter(dev, bec); in c_can_get_berr_counter()
875 struct can_berr_counter bec; in c_can_handle_state_change() local
902 __c_can_get_berr_counter(dev, &bec); in c_can_handle_state_change()
911 cf->data[1] = (bec.txerr > bec.rxerr) ? in c_can_handle_state_change()
914 cf->data[6] = bec.txerr; in c_can_handle_state_change()
915 cf->data[7] = bec.rxerr; in c_can_handle_state_change()
[all …]
/drivers/net/can/m_can/
Dm_can.c531 struct can_berr_counter *bec) in __m_can_get_berr_counter() argument
537 bec->rxerr = (ecr & ECR_REC_MASK) >> ECR_REC_SHIFT; in __m_can_get_berr_counter()
538 bec->txerr = ecr & ECR_TEC_MASK; in __m_can_get_berr_counter()
544 struct can_berr_counter *bec) in m_can_get_berr_counter() argument
559 __m_can_get_berr_counter(dev, bec); in m_can_get_berr_counter()
574 struct can_berr_counter bec; in m_can_handle_state_change() local
603 __m_can_get_berr_counter(dev, &bec); in m_can_handle_state_change()
609 cf->data[1] = (bec.txerr > bec.rxerr) ? in m_can_handle_state_change()
612 cf->data[6] = bec.txerr; in m_can_handle_state_change()
613 cf->data[7] = bec.rxerr; in m_can_handle_state_change()
[all …]
/drivers/net/can/usb/
Dusb_8dev.c146 struct can_berr_counter bec; member
460 priv->bec.txerr = txerr; in usb_8dev_rx_err_msg()
461 priv->bec.rxerr = rxerr; in usb_8dev_rx_err_msg()
733 struct can_berr_counter *bec) in usb_8dev_get_berr_counter() argument
737 bec->txerr = priv->bec.txerr; in usb_8dev_get_berr_counter()
738 bec->rxerr = priv->bec.rxerr; in usb_8dev_get_berr_counter()
Desd_usb2.c223 struct can_berr_counter bec; member
305 priv->bec.txerr = txerr; in esd_usb2_rx_event()
306 priv->bec.rxerr = rxerr; in esd_usb2_rx_event()
956 struct can_berr_counter *bec) in esd_usb2_get_berr_counter() argument
960 bec->txerr = priv->bec.txerr; in esd_usb2_get_berr_counter()
961 bec->rxerr = priv->bec.rxerr; in esd_usb2_get_berr_counter()
Dkvaser_usb.c311 struct can_berr_counter bec; member
770 priv->bec.txerr = txerr; in kvaser_usb_rx_error()
771 priv->bec.rxerr = rxerr; in kvaser_usb_rx_error()
1484 struct can_berr_counter *bec) in kvaser_usb_get_berr_counter() argument
1488 *bec = priv->bec; in kvaser_usb_get_berr_counter()
/drivers/net/can/sja1000/
Dsja1000.c262 struct can_berr_counter *bec) in sja1000_get_berr_counter() argument
266 bec->txerr = priv->read_reg(priv, SJA1000_TXERR); in sja1000_get_berr_counter()
267 bec->rxerr = priv->read_reg(priv, SJA1000_RXERR); in sja1000_get_berr_counter()
/drivers/net/can/cc770/
Dcc770.c383 struct can_berr_counter *bec) in cc770_get_berr_counter() argument
387 bec->txerr = cc770_read_reg(priv, tx_error_counter); in cc770_get_berr_counter()
388 bec->rxerr = cc770_read_reg(priv, rx_error_counter); in cc770_get_berr_counter()
/drivers/net/can/mscan/
Dmscan.c558 struct can_berr_counter *bec) in mscan_get_berr_counter() argument
563 bec->txerr = in_8(&regs->cantxerr); in mscan_get_berr_counter()
564 bec->rxerr = in_8(&regs->canrxerr); in mscan_get_berr_counter()