Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/can/usb/
Desd_usb2.c909 u32 canbtr; in esd_usb2_set_bittiming() local
912 canbtr = ESD_USB2_UBR; in esd_usb2_set_bittiming()
914 canbtr |= ESD_USB2_LOM; in esd_usb2_set_bittiming()
916 canbtr |= (bt->brp - 1) & (ESD_USB2_BRP_MAX - 1); in esd_usb2_set_bittiming()
924 canbtr |= ((bt->sjw - 1) & (ESD_USB2_SJW_MAX - 1)) in esd_usb2_set_bittiming()
926 canbtr |= ((bt->prop_seg + bt->phase_seg1 - 1) in esd_usb2_set_bittiming()
929 canbtr |= ((bt->phase_seg2 - 1) & (ESD_USB2_TSEG2_MAX - 1)) in esd_usb2_set_bittiming()
932 canbtr |= ESD_USB2_3_SAMPLES; in esd_usb2_set_bittiming()
942 msg->msg.setbaud.baud = cpu_to_le32(canbtr); in esd_usb2_set_bittiming()
944 netdev_info(netdev, "setting BTR=%#x\n", canbtr); in esd_usb2_set_bittiming()