Home
last modified time | relevance | path

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

/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_pro.c360 static int pcan_usb_pro_set_bitrate(struct peak_usb_device *dev, u32 ccbt) in pcan_usb_pro_set_bitrate() argument
367 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBTR, dev->ctrl_idx, ccbt); in pcan_usb_pro_set_bitrate()
370 pdev->cached_ccbt = ccbt; in pcan_usb_pro_set_bitrate()
464 u32 ccbt; in pcan_usb_pro_set_bittiming() local
466 ccbt = (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 0x00800000 : 0; in pcan_usb_pro_set_bittiming()
467 ccbt |= (bt->sjw - 1) << 24; in pcan_usb_pro_set_bittiming()
468 ccbt |= (bt->phase_seg2 - 1) << 20; in pcan_usb_pro_set_bittiming()
469 ccbt |= (bt->prop_seg + bt->phase_seg1 - 1) << 16; /* = tseg1 */ in pcan_usb_pro_set_bittiming()
470 ccbt |= bt->brp - 1; in pcan_usb_pro_set_bittiming()
472 netdev_info(dev->netdev, "setting ccbt=0x%08x\n", ccbt); in pcan_usb_pro_set_bittiming()
[all …]