Searched refs:btr1 (Results 1 – 7 of 7) sorted by relevance
/Linux-v6.1/drivers/net/can/usb/ |
D | ems_usb.c | 135 u8 btr1; member 923 u8 btr0, btr1; in ems_usb_set_bittiming() local 926 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in ems_usb_set_bittiming() 929 btr1 |= 0x80; in ems_usb_set_bittiming() 931 netdev_info(netdev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in ems_usb_set_bittiming() 934 dev->active_params.msg.can_params.cc_params.sja1000.btr1 = btr1; in ems_usb_set_bittiming() 963 sja1000->btr1 = 0; in init_params_sja1000()
|
/Linux-v6.1/drivers/net/can/sja1000/ |
D | sja1000.c | 250 u8 btr0, btr1; in sja1000_set_bittiming() local 253 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in sja1000_set_bittiming() 256 btr1 |= 0x80; in sja1000_set_bittiming() 258 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in sja1000_set_bittiming() 261 priv->write_reg(priv, SJA1000_BTR1, btr1); in sja1000_set_bittiming()
|
/Linux-v6.1/drivers/net/can/ |
D | xilinx_can.c | 420 u32 btr0, btr1; in xcan_set_bittiming() local 438 btr1 = (bt->prop_seg + bt->phase_seg1 - 1); in xcan_set_bittiming() 441 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 444 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 447 priv->write_reg(priv, XCAN_BTR_OFFSET, btr1); in xcan_set_bittiming() 463 btr1 = dbt->prop_seg + dbt->phase_seg1 - 1; in xcan_set_bittiming() 466 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming() 469 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming() 472 priv->write_reg(priv, XCAN_F_BTR_OFFSET, btr1); in xcan_set_bittiming()
|
D | janz-ican3.c | 781 u8 btr0, btr1; in ican3_set_bus_state() local 788 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in ican3_set_bus_state() 791 btr1 |= 0x80; in ican3_set_bus_state() 802 msg.data[3] = btr1; in ican3_set_bus_state() 825 msg.data[3] = btr1; in ican3_set_bus_state()
|
/Linux-v6.1/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 277 u8 btr0, btr1; in pcan_usb_set_bittiming() local 280 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in pcan_usb_set_bittiming() 283 btr1 |= 0x80; in pcan_usb_set_bittiming() 286 btr0, btr1); in pcan_usb_set_bittiming() 288 args[0] = btr1; in pcan_usb_set_bittiming()
|
/Linux-v6.1/drivers/net/can/cc770/ |
D | cc770.c | 359 u8 btr0, btr1; in cc770_set_bittiming() local 362 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in cc770_set_bittiming() 365 btr1 |= 0x80; in cc770_set_bittiming() 367 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in cc770_set_bittiming() 370 cc770_write_reg(priv, bit_timing_1, btr1); in cc770_set_bittiming()
|
/Linux-v6.1/drivers/net/can/mscan/ |
D | mscan.c | 513 u8 btr0, btr1; in mscan_do_set_bittiming() local 516 btr1 = (BTR1_SET_TSEG1(bt->prop_seg + bt->phase_seg1) | in mscan_do_set_bittiming() 520 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in mscan_do_set_bittiming() 523 out_8(®s->canbtr1, btr1); in mscan_do_set_bittiming()
|