Lines Matching refs:bec
135 struct can_berr_counter bec; member
484 new_state = ((mc->pdev->bec.txerr >= 128) || in pcan_usb_decode_error()
485 (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()
510 cf->data[6] = mc->pdev->bec.txerr; 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()
544 pdev->bec.txerr = mc->ptr[2]; in pcan_usb_handle_bus_evt()
820 struct can_berr_counter *bec) in pcan_usb_get_berr_counter() argument
825 *bec = pdev->bec; in pcan_usb_get_berr_counter()
842 pdev->bec.rxerr = 0; in pcan_usb_start()
843 pdev->bec.txerr = 0; in pcan_usb_start()