Searched refs:btr0 (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/net/can/usb/ |
D | ems_usb.c | 145 u8 btr0; member 923 u8 btr0, btr1; in ems_usb_set_bittiming() local 925 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ems_usb_set_bittiming() 931 netdev_info(netdev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in ems_usb_set_bittiming() 933 dev->active_params.msg.can_params.cc_params.sja1000.btr0 = btr0; in ems_usb_set_bittiming() 962 sja1000->btr0 = 0; in init_params_sja1000()
|
/Linux-v4.19/drivers/net/can/sja1000/ |
D | sja1000.c | 248 u8 btr0, btr1; in sja1000_set_bittiming() local 250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming() 256 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in sja1000_set_bittiming() 258 priv->write_reg(priv, SJA1000_BTR0, btr0); in sja1000_set_bittiming()
|
/Linux-v4.19/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 220 u8 btr0, btr1; in pcan_usb_set_bittiming() local 222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming() 229 btr0, btr1); in pcan_usb_set_bittiming() 232 args[1] = btr0; in pcan_usb_set_bittiming()
|
/Linux-v4.19/drivers/net/can/mscan/ |
D | mscan.c | 522 u8 btr0, btr1; in mscan_do_set_bittiming() local 524 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming() 529 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in mscan_do_set_bittiming() 531 out_8(®s->canbtr0, btr0); in mscan_do_set_bittiming()
|
/Linux-v4.19/drivers/net/can/cc770/ |
D | cc770.c | 366 u8 btr0, btr1; in cc770_set_bittiming() local 368 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in cc770_set_bittiming() 374 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in cc770_set_bittiming() 376 cc770_write_reg(priv, bit_timing_0, btr0); in cc770_set_bittiming()
|
/Linux-v4.19/drivers/net/can/ |
D | janz-ican3.c | 784 u8 btr0, btr1; in ican3_set_bus_state() local 790 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ican3_set_bus_state() 804 msg.data[2] = btr0; in ican3_set_bus_state() 827 msg.data[2] = btr0; in ican3_set_bus_state()
|
D | xilinx_can.c | 338 u32 btr0, btr1; in xcan_set_bittiming() local 353 btr0 = (bt->brp - 1); in xcan_set_bittiming() 364 priv->write_reg(priv, XCAN_BRPR_OFFSET, btr0); in xcan_set_bittiming()
|