Searched refs:btr0 (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/drivers/net/can/usb/ |
H A D | ems_usb.c | 134 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()
|
H A D | f81604.c | 818 u8 btr0, btr1; in f81604_set_bittiming() local 821 btr0 = FIELD_PREP(F81604_BRP_MASK, bt->brp - 1) | in f81604_set_bittiming() 831 ret = f81604_sja1000_write(priv, F81604_SJA1000_BTR0, btr0); in f81604_set_bittiming()
|
/openbmc/u-boot/include/ |
H A D | sja1000.h | 21 u8 btr0; member
|
/openbmc/linux/drivers/net/can/sja1000/ |
H A D | sja1000.c | 250 u8 btr0, btr1; in sja1000_set_bittiming() local 252 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming() 258 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in sja1000_set_bittiming() 260 priv->write_reg(priv, SJA1000_BTR0, btr0); in sja1000_set_bittiming()
|
/openbmc/linux/drivers/net/can/mscan/ |
H A D | mscan.c | 513 u8 btr0, btr1; in mscan_do_set_bittiming() local 515 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming() 520 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in mscan_do_set_bittiming() 522 out_8(®s->canbtr0, btr0); in mscan_do_set_bittiming()
|
/openbmc/linux/drivers/net/can/ |
H A D | xilinx_can.c | 426 u32 btr0, btr1; in xcan_set_bittiming() local 441 btr0 = (bt->brp - 1); in xcan_set_bittiming() 452 priv->write_reg(priv, XCAN_BRPR_OFFSET, btr0); in xcan_set_bittiming() 458 btr0 = dbt->brp - 1; in xcan_set_bittiming() 461 btr0 |= FIELD_PREP(XCAN_BRPR_TDCO_MASK, priv->can.tdc.tdco) | in xcan_set_bittiming() 464 btr0 |= FIELD_PREP(XCAN_2_BRPR_TDCO_MASK, priv->can.tdc.tdco) | in xcan_set_bittiming() 477 priv->write_reg(priv, XCAN_F_BRPR_OFFSET, btr0); in xcan_set_bittiming()
|
H A D | janz-ican3.c | 781 u8 btr0, btr1; in ican3_set_bus_state() local 787 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ican3_set_bus_state() 801 msg.data[2] = btr0; in ican3_set_bus_state() 824 msg.data[2] = btr0; in ican3_set_bus_state()
|
/openbmc/linux/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb.c | 278 u8 btr0, btr1; in pcan_usb_set_bittiming() local 280 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming() 287 btr0, btr1); in pcan_usb_set_bittiming() 290 args[1] = btr0; in pcan_usb_set_bittiming()
|
/openbmc/linux/drivers/net/can/cc770/ |
H A D | cc770.c | 359 u8 btr0, btr1; in cc770_set_bittiming() local 361 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in cc770_set_bittiming() 367 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in cc770_set_bittiming() 369 cc770_write_reg(priv, bit_timing_0, btr0); in cc770_set_bittiming()
|