Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/can/usb/
Dems_usb.c134 u8 btr1; member
911 u8 btr0, btr1; in ems_usb_set_bittiming() local
914 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in ems_usb_set_bittiming()
917 btr1 |= 0x80; in ems_usb_set_bittiming()
919 netdev_info(netdev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in ems_usb_set_bittiming()
922 dev->active_params.msg.can_params.cc_params.sja1000.btr1 = btr1; in ems_usb_set_bittiming()
951 sja1000->btr1 = 0; in init_params_sja1000()
/Linux-v5.10/drivers/net/can/sja1000/
Dsja1000.c248 u8 btr0, btr1; in sja1000_set_bittiming() local
251 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in sja1000_set_bittiming()
254 btr1 |= 0x80; in sja1000_set_bittiming()
256 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in sja1000_set_bittiming()
259 priv->write_reg(priv, SJA1000_BTR1, btr1); in sja1000_set_bittiming()
/Linux-v5.10/drivers/net/can/
Dxilinx_can.c395 u32 btr0, btr1; in xcan_set_bittiming() local
413 btr1 = (bt->prop_seg + bt->phase_seg1 - 1); in xcan_set_bittiming()
416 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
419 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
422 priv->write_reg(priv, XCAN_BTR_OFFSET, btr1); in xcan_set_bittiming()
430 btr1 = dbt->prop_seg + dbt->phase_seg1 - 1; in xcan_set_bittiming()
433 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
436 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
439 priv->write_reg(priv, XCAN_F_BTR_OFFSET, btr1); in xcan_set_bittiming()
Djanz-ican3.c780 u8 btr0, btr1; in ican3_set_bus_state() local
787 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in ican3_set_bus_state()
790 btr1 |= 0x80; in ican3_set_bus_state()
801 msg.data[3] = btr1; in ican3_set_bus_state()
824 msg.data[3] = btr1; in ican3_set_bus_state()
/Linux-v5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb.c260 u8 btr0, btr1; in pcan_usb_set_bittiming() local
263 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in pcan_usb_set_bittiming()
266 btr1 |= 0x80; in pcan_usb_set_bittiming()
269 btr0, btr1); in pcan_usb_set_bittiming()
271 args[0] = btr1; in pcan_usb_set_bittiming()
/Linux-v5.10/drivers/net/can/cc770/
Dcc770.c358 u8 btr0, btr1; in cc770_set_bittiming() local
361 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in cc770_set_bittiming()
364 btr1 |= 0x80; in cc770_set_bittiming()
366 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in cc770_set_bittiming()
369 cc770_write_reg(priv, bit_timing_1, btr1); in cc770_set_bittiming()
/Linux-v5.10/drivers/net/can/mscan/
Dmscan.c511 u8 btr0, btr1; in mscan_do_set_bittiming() local
514 btr1 = (BTR1_SET_TSEG1(bt->prop_seg + bt->phase_seg1) | in mscan_do_set_bittiming()
518 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in mscan_do_set_bittiming()
521 out_8(&regs->canbtr1, btr1); in mscan_do_set_bittiming()