/drivers/net/can/ |
D | dev.c | 108 int best_tseg = 0, best_brp = 0, brp = 0; in can_calc_bittiming() local 131 brp = priv->clock.freq / (tsegall * bt->bitrate) + tseg % 2; in can_calc_bittiming() 133 brp = (brp / btc->brp_inc) * btc->brp_inc; in can_calc_bittiming() 134 if ((brp < btc->brp_min) || (brp > btc->brp_max)) in can_calc_bittiming() 136 rate = priv->clock.freq / (brp * tsegall); in can_calc_bittiming() 155 best_brp = brp; in can_calc_bittiming() 197 bt->brp = best_brp; in can_calc_bittiming() 199 bt->bitrate = priv->clock.freq / (bt->brp * (tseg1 + tseg2 + 1)); in can_calc_bittiming() 240 bt->brp = (u32)brp64; in can_fixup_bittiming() 242 if (bt->brp < btc->brp_min || bt->brp > btc->brp_max) in can_fixup_bittiming() [all …]
|
D | ti_hecc.c | 297 if (bit_timing->brp > 4) in ti_hecc_set_btc() 304 can_btc |= ((bit_timing->brp - 1) & 0xFF) << 16; in ti_hecc_set_btc()
|
D | pch_can.c | 793 canbit = (bt->brp - 1) & PCH_MSK_BITT_BRP; in pch_set_bittiming() 797 bepe = ((bt->brp - 1) & PCH_MSK_BRPE_BRPE) >> PCH_BIT_BRPE_BRPE_SHIFT; in pch_set_bittiming()
|
D | bfin_can.c | 70 clk = bt->brp - 1; in bfin_can_set_bittiming()
|
D | xilinx_can.c | 269 btr0 = (bt->brp - 1); in xcan_set_bittiming()
|
D | rcar_can.c | 429 RCAR_CAN_BCR_BPR(bt->brp - 1) | RCAR_CAN_BCR_SJW(bt->sjw - 1) | in rcar_can_set_bittiming()
|
D | at91_can.c | 383 ((bt->brp - 1) << 16) | ((bt->sjw - 1) << 12) | in at91_set_bittiming()
|
D | flexcan.c | 854 reg |= FLEXCAN_CTRL_PRESDIV(bt->brp - 1) | in flexcan_set_bittiming()
|
D | grcan.c | 425 scaler = (bt->brp - 1); in grcan_set_bittiming()
|
D | janz-ican3.c | 1630 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ican3_set_bittiming()
|
/drivers/net/can/mscan/ |
D | mscan.h | 260 #define BTR0_SET_BRP(brp) (((brp) - 1) & BTR0_BRP_MASK) argument
|
D | mscan.c | 544 btr0 = BTR0_SET_BRP(bt->brp) | BTR0_SET_SJW(bt->sjw); in mscan_do_set_bittiming()
|
/drivers/net/can/m_can/ |
D | m_can.c | 809 u16 brp, sjw, tseg1, tseg2; in m_can_set_bittiming() local 812 brp = bt->brp - 1; in m_can_set_bittiming() 816 reg_btp = (brp << BTR_BRP_SHIFT) | (sjw << BTR_SJW_SHIFT) | in m_can_set_bittiming() 821 brp = dbt->brp - 1; in m_can_set_bittiming() 825 reg_btp = (brp << FBTR_FBRP_SHIFT) | (sjw << FBTR_FSJW_SHIFT) | in m_can_set_bittiming()
|
/drivers/net/can/usb/ |
D | gs_usb.c | 101 u32 brp; member 414 dbt->brp = bt->brp; in gs_usb_set_bittiming()
|
D | usb_8dev.c | 270 bebrp = cpu_to_be16((u16)bt->brp); in usb_8dev_cmd_open()
|
D | ems_usb.c | 934 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in ems_usb_set_bittiming()
|
D | esd_usb2.c | 919 canbtr |= (bt->brp - 1) & (ESD_USB2_BRP_MAX - 1); in esd_usb2_set_bittiming()
|
/drivers/net/can/c_can/ |
D | c_can.c | 511 u8 brp, brpe, sjw, tseg1, tseg2; in c_can_set_bittiming() local 518 ten_bit_brp = bt->brp - 1; in c_can_set_bittiming() 519 brp = ten_bit_brp & BTR_BRP_MASK; in c_can_set_bittiming() 525 reg_btr = brp | (sjw << BTR_SJW_SHIFT) | (tseg1 << BTR_TSEG1_SHIFT) | in c_can_set_bittiming()
|
/drivers/scsi/libfc/ |
D | fc_fcp.c | 709 struct fc_ba_rjt *brp; in fc_fcp_abts_resp() local 717 brp = fc_frame_payload_get(fp, sizeof(*brp)); in fc_fcp_abts_resp() 718 if (brp && brp->br_reason == FC_BA_RJT_LOG_ERR) in fc_fcp_abts_resp()
|
/drivers/net/can/softing/ |
D | softing_fw.c | 505 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop() 545 iowrite16(bt->brp, &card->dpram[DPRAM_FCT_PARAM + 2]); in softing_startstop()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 222 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in pcan_usb_set_bittiming()
|
D | pcan_usb_pro.c | 471 ccbt |= bt->brp - 1; in pcan_usb_pro_set_bittiming()
|
/drivers/net/can/sja1000/ |
D | sja1000.c | 247 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in sja1000_set_bittiming()
|
/drivers/net/can/cc770/ |
D | cc770.c | 368 btr0 = ((bt->brp - 1) & 0x3f) | (((bt->sjw - 1) & 0x3) << 6); in cc770_set_bittiming()
|
/drivers/net/can/spi/ |
D | mcp251x.c | 598 (bt->brp - 1)); in mcp251x_do_set_bittiming()
|