Searched refs:ccbt (Results 1 – 1 of 1) sorted by relevance
372 static int pcan_usb_pro_set_bitrate(struct peak_usb_device *dev, u32 ccbt) in pcan_usb_pro_set_bitrate() argument379 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBTR, dev->ctrl_idx, ccbt); in pcan_usb_pro_set_bitrate()382 pdev->cached_ccbt = ccbt; in pcan_usb_pro_set_bitrate()465 u32 ccbt; in pcan_usb_pro_set_bittiming() local467 ccbt = (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 0x00800000 : 0; in pcan_usb_pro_set_bittiming()468 ccbt |= (bt->sjw - 1) << 24; in pcan_usb_pro_set_bittiming()469 ccbt |= (bt->phase_seg2 - 1) << 20; in pcan_usb_pro_set_bittiming()470 ccbt |= (bt->prop_seg + bt->phase_seg1 - 1) << 16; /* = tseg1 */ in pcan_usb_pro_set_bittiming()471 ccbt |= bt->brp - 1; in pcan_usb_pro_set_bittiming()473 netdev_info(dev->netdev, "setting ccbt=0x%08x\n", ccbt); in pcan_usb_pro_set_bittiming()[all …]