Home
last modified time | relevance | path

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

/drivers/net/can/usb/
Dems_usb.c133 u8 btr0; member
922 u8 btr0, btr1; in ems_usb_set_bittiming() local
924 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ems_usb_set_bittiming()
930 netdev_info(netdev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in ems_usb_set_bittiming()
932 dev->active_params.msg.can_params.cc_params.sja1000.btr0 = btr0; in ems_usb_set_bittiming()
961 sja1000->btr0 = 0; in init_params_sja1000()
/drivers/net/can/sja1000/
Dsja1000.c248 u8 btr0, btr1; in sja1000_set_bittiming() local
250 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()
256 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in sja1000_set_bittiming()
258 priv->write_reg(priv, SJA1000_BTR0, btr0); in sja1000_set_bittiming()
/drivers/net/can/mscan/
Dmscan.c511 u8 btr0, btr1; in mscan_do_set_bittiming() local
513 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming()
518 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in mscan_do_set_bittiming()
520 out_8(&regs->canbtr0, btr0); in mscan_do_set_bittiming()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c276 u8 btr0, btr1; in pcan_usb_set_bittiming() local
278 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
285 btr0, btr1); in pcan_usb_set_bittiming()
288 args[1] = btr0; in pcan_usb_set_bittiming()
/drivers/net/can/cc770/
Dcc770.c358 u8 btr0, btr1; in cc770_set_bittiming() local
360 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in cc770_set_bittiming()
366 netdev_info(dev, "setting BTR0=0x%02x BTR1=0x%02x\n", btr0, btr1); in cc770_set_bittiming()
368 cc770_write_reg(priv, bit_timing_0, btr0); in cc770_set_bittiming()
/drivers/net/can/
Dxilinx_can.c395 u32 btr0, btr1; in xcan_set_bittiming() local
410 btr0 = (bt->brp - 1); in xcan_set_bittiming()
421 priv->write_reg(priv, XCAN_BRPR_OFFSET, btr0); in xcan_set_bittiming()
427 btr0 = dbt->brp - 1; in xcan_set_bittiming()
438 priv->write_reg(priv, XCAN_F_BRPR_OFFSET, btr0); in xcan_set_bittiming()
Djanz-ican3.c780 u8 btr0, btr1; in ican3_set_bus_state() local
786 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ican3_set_bus_state()
800 msg.data[2] = btr0; in ican3_set_bus_state()
823 msg.data[2] = btr0; in ican3_set_bus_state()