Searched refs:btr0 (Results 1 – 7 of 7) sorted by relevance
/drivers/net/can/usb/ |
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()
|
/drivers/net/can/sja1000/ |
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()
|
/drivers/net/can/mscan/ |
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()
|
/drivers/net/can/ |
D | xilinx_can.c | 420 u32 btr0, btr1; in xcan_set_bittiming() local 435 btr0 = (bt->brp - 1); in xcan_set_bittiming() 446 priv->write_reg(priv, XCAN_BRPR_OFFSET, btr0); in xcan_set_bittiming() 452 btr0 = dbt->brp - 1; in xcan_set_bittiming() 455 btr0 |= FIELD_PREP(XCAN_BRPR_TDCO_MASK, priv->can.tdc.tdco) | in xcan_set_bittiming() 458 btr0 |= FIELD_PREP(XCAN_2_BRPR_TDCO_MASK, priv->can.tdc.tdco) | in xcan_set_bittiming() 471 priv->write_reg(priv, XCAN_F_BRPR_OFFSET, btr0); in xcan_set_bittiming()
|
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()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 277 u8 btr0, btr1; in pcan_usb_set_bittiming() local 279 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming() 286 btr0, btr1); in pcan_usb_set_bittiming() 289 args[1] = btr0; in pcan_usb_set_bittiming()
|
/drivers/net/can/cc770/ |
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()
|