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

/linux-4.1.27/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_pro.c364 static int pcan_usb_pro_set_bitrate(struct peak_usb_device *dev, u32 ccbt) pcan_usb_pro_set_bitrate() argument
371 pcan_msg_add_rec(&um, PCAN_USBPRO_SETBTR, dev->ctrl_idx, ccbt); pcan_usb_pro_set_bitrate()
374 pdev->cached_ccbt = ccbt; pcan_usb_pro_set_bitrate()
457 u32 ccbt; pcan_usb_pro_set_bittiming() local
459 ccbt = (dev->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 0x00800000 : 0; pcan_usb_pro_set_bittiming()
460 ccbt |= (bt->sjw - 1) << 24; pcan_usb_pro_set_bittiming()
461 ccbt |= (bt->phase_seg2 - 1) << 20; pcan_usb_pro_set_bittiming()
462 ccbt |= (bt->prop_seg + bt->phase_seg1 - 1) << 16; /* = tseg1 */ pcan_usb_pro_set_bittiming()
463 ccbt |= bt->brp - 1; pcan_usb_pro_set_bittiming()
465 netdev_info(dev->netdev, "setting ccbt=0x%08x\n", ccbt); pcan_usb_pro_set_bittiming()
467 return pcan_usb_pro_set_bitrate(dev, ccbt); pcan_usb_pro_set_bittiming()

Completed in 47 milliseconds