Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/can/usb/
Dems_usb.c135 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()
Df81604.c818 u8 btr0, btr1; in f81604_set_bittiming() local
824 btr1 = FIELD_PREP(F81604_SEG1_MASK, in f81604_set_bittiming()
829 btr1 |= F81604_SJA1000_BTR1_SAMPLE_TRIPLE; in f81604_set_bittiming()
838 ret = f81604_sja1000_write(priv, F81604_SJA1000_BTR1, btr1); in f81604_set_bittiming()
/Linux-v6.6/drivers/net/can/sja1000/
Dsja1000.c250 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.6/drivers/net/can/
Dxilinx_can.c426 u32 btr0, btr1; in xcan_set_bittiming() local
444 btr1 = (bt->prop_seg + bt->phase_seg1 - 1); in xcan_set_bittiming()
447 btr1 |= (bt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
450 btr1 |= (bt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
453 priv->write_reg(priv, XCAN_BTR_OFFSET, btr1); in xcan_set_bittiming()
469 btr1 = dbt->prop_seg + dbt->phase_seg1 - 1; in xcan_set_bittiming()
472 btr1 |= (dbt->phase_seg2 - 1) << priv->devtype.btr_ts2_shift; in xcan_set_bittiming()
475 btr1 |= (dbt->sjw - 1) << priv->devtype.btr_sjw_shift; in xcan_set_bittiming()
478 priv->write_reg(priv, XCAN_F_BTR_OFFSET, btr1); in xcan_set_bittiming()
Djanz-ican3.c781 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.6/drivers/net/can/usb/peak_usb/
Dpcan_usb.c278 u8 btr0, btr1; in pcan_usb_set_bittiming() local
281 btr1 = ((bt->prop_seg + bt->phase_seg1 - 1) & 0xf) | in pcan_usb_set_bittiming()
284 btr1 |= 0x80; in pcan_usb_set_bittiming()
287 btr0, btr1); in pcan_usb_set_bittiming()
289 args[0] = btr1; in pcan_usb_set_bittiming()
/Linux-v6.6/drivers/net/can/cc770/
Dcc770.c359 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.6/drivers/net/can/mscan/
Dmscan.c513 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(&regs->canbtr1, btr1); in mscan_do_set_bittiming()