Home
last modified time | relevance | path

Searched refs:dlc (Results 1 – 25 of 28) sorted by relevance

12

/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-tx.c39 u8 dlc; in mcp251xfd_tx_obj_from_skb() local
79 dlc = can_fd_len2dlc(cfd->len); in mcp251xfd_tx_obj_from_skb()
81 dlc = can_get_cc_dlc((struct can_frame *)cfd, in mcp251xfd_tx_obj_from_skb()
85 flags |= FIELD_PREP(MCP251XFD_OBJ_FLAGS_DLC_MASK, dlc); in mcp251xfd_tx_obj_from_skb()
Dmcp251xfd-rx.c114 u8 dlc; in mcp251xfd_hw_rx_obj_to_skb() local
130 dlc = FIELD_GET(MCP251XFD_OBJ_FLAGS_DLC_MASK, hw_rx_obj->flags); in mcp251xfd_hw_rx_obj_to_skb()
140 cfd->len = can_fd_dlc2len(dlc); in mcp251xfd_hw_rx_obj_to_skb()
145 can_frame_set_cc_len((struct can_frame *)cfd, dlc, in mcp251xfd_hw_rx_obj_to_skb()
/drivers/net/can/
Dxilinx_can.c586 u32 id, dlc, data[2] = {0, 0}; in xcan_write_frame() local
618 dlc = can_fd_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame()
621 dlc |= XCAN_DLCR_BRS_MASK; in xcan_write_frame()
622 dlc |= XCAN_DLCR_EDL_MASK; in xcan_write_frame()
637 priv->write_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_offset), dlc); in xcan_write_frame()
780 u32 id_xcan, dlc, data[2] = {0, 0}; in xcan_rx() local
790 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)) >> in xcan_rx()
794 cf->len = can_cc_dlc2len(dlc); in xcan_rx()
850 u32 id_xcan, dlc, data[2] = {0, 0}, dwindex = 0, i, dw_offset; in xcanfd_rx() local
853 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)); in xcanfd_rx()
[all …]
Dsun4i_can.c432 u8 dlc; in sun4ican_start_xmit() local
443 dlc = cf->len; in sun4ican_start_xmit()
444 msg_flag_n = dlc; in sun4ican_start_xmit()
462 for (i = 0; i < dlc; i++) in sun4ican_start_xmit()
Dkvaser_pciefd.c1489 int dlc = can_get_echo_skb(can->can.dev, echo_idx, NULL); in kvaser_pciefd_handle_eack_packet() local
1492 stats->tx_bytes += dlc; in kvaser_pciefd_handle_eack_packet()
1554 int dlc; in kvaser_pciefd_handle_ack_packet() local
1561 dlc = can_get_echo_skb(can->can.dev, echo_idx, NULL); in kvaser_pciefd_handle_ack_packet()
1572 stats->tx_bytes += dlc; in kvaser_pciefd_handle_ack_packet()
Dgrcan.c1343 u32 i, rtr, eff, dlc, tmp, err; in grcan_start_xmit() local
1387 dlc = cf->len; in grcan_start_xmit()
1394 slot[1] = ((dlc << GRCAN_MSG_DLC_BIT) & GRCAN_MSG_DLC); in grcan_start_xmit()
1397 for (i = 0; i < dlc; i++) { in grcan_start_xmit()
Djanz-ican3.c1291 u8 dlc = 0; in ican3_get_echo_skb() local
1301 dlc = cf->len; in ican3_get_echo_skb()
1306 return dlc; in ican3_get_echo_skb()
1314 return dlc; in ican3_get_echo_skb()
/drivers/net/can/usb/etas_es58x/
Des58x_fd.c41 __msg_len = can_cc_dlc2len(__msg.dlc); \
140 u8 dlc; in es58x_fd_rx_can_msg() local
143 dlc = can_fd_len2dlc(rx_can_msg->len); in es58x_fd_rx_can_msg()
145 dlc = rx_can_msg->dlc; in es58x_fd_rx_can_msg()
148 can_id, rx_can_msg->flags, dlc); in es58x_fd_rx_can_msg()
368 tx_can_msg->dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in es58x_fd_tx_can_msg()
Des581_4.h81 u8 dlc; member
111 u8 dlc; member
122 u8 dlc; member
Des58x_fd.h131 u8 dlc; /* Only if cmd_id is ES58X_FD_CMD_TYPE_CAN */ member
146 u8 dlc; /* Only if cmd_id is ES58X_FD_CMD_TYPE_CAN */ member
Des581_4.c32 offsetof(typeof(msg), data[can_cc_dlc2len((msg).dlc)])
134 rx_can_msg->dlc); in es581_4_rx_can_msg()
380 tx_can_msg->dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in es581_4_tx_can_msg()
Des58x_core.c569 canid_t can_id, enum es58x_flag es58x_flags, u8 dlc) in es58x_rx_can_msg() argument
577 if (dlc > CAN_MAX_RAW_DLC) { in es58x_rx_can_msg()
580 __func__, dlc, CAN_MAX_RAW_DLC); in es58x_rx_can_msg()
585 len = can_fd_dlc2len(dlc); in es58x_rx_can_msg()
588 len = can_cc_dlc2len(dlc); in es58x_rx_can_msg()
607 can_frame_set_cc_len(ccf, dlc, es58x_priv(netdev)->can.ctrlmode); in es58x_rx_can_msg()
/drivers/net/can/rcar/
Drcar_can.c46 u8 dlc; /* Data Length Code - bits [0..3] */ member
611 writeb(cf->len, &priv->regs->mb[RCAR_CAN_TX_FIFO_MBX].dlc); in rcar_can_start_xmit()
644 u8 dlc; in rcar_can_rx_pkt() local
658 dlc = readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].dlc); in rcar_can_rx_pkt()
659 cf->len = can_cc_dlc2len(dlc); in rcar_can_rx_pkt()
663 for (dlc = 0; dlc < cf->len; dlc++) in rcar_can_rx_pkt()
664 cf->data[dlc] = in rcar_can_rx_pkt()
665 readb(&priv->regs->mb[RCAR_CAN_RX_FIFO_MBX].data[dlc]); in rcar_can_rx_pkt()
Drcar_canfd.c1475 u32 sts = 0, id, dlc; in rcar_canfd_start_xmit() local
1492 dlc = RCANFD_CFPTR_CFDLC(can_fd_len2dlc(cf->len)); in rcar_canfd_start_xmit()
1498 RCANFD_F_CFPTR(gpriv, ch, RCANFD_CFFIFO_IDX), dlc); in rcar_canfd_start_xmit()
1519 RCANFD_C_CFPTR(ch, RCANFD_CFFIFO_IDX), dlc); in rcar_canfd_start_xmit()
1549 u32 sts = 0, id, dlc; in rcar_canfd_rx_pkt() local
1555 dlc = rcar_canfd_read(priv->base, RCANFD_F_RFPTR(gpriv, ridx)); in rcar_canfd_rx_pkt()
1567 dlc = rcar_canfd_read(priv->base, RCANFD_C_RFPTR(ridx)); in rcar_canfd_rx_pkt()
1583 cf->len = can_fd_dlc2len(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()
1585 cf->len = can_cc_dlc2len(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()
1601 cf->len = can_cc_dlc2len(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()
/drivers/net/can/dev/
Dlength.c15 u8 can_fd_dlc2len(u8 dlc) in can_fd_dlc2len() argument
17 return dlc2len[dlc & 0x0F]; in can_fd_dlc2len()
/drivers/net/can/usb/
Dmcba_usb.c95 u8 dlc; member
347 usb_msg.dlc = cf->len; in mcba_usb_start_xmit()
349 memcpy(usb_msg.data, cf->data, usb_msg.dlc); in mcba_usb_start_xmit()
352 usb_msg.dlc |= MCBA_DLC_RTR_MASK; in mcba_usb_start_xmit()
446 cf->len = can_cc_dlc2len(msg->dlc & MCBA_DLC_MASK); in mcba_usb_process_can()
448 if (msg->dlc & MCBA_DLC_RTR_MASK) { in mcba_usb_process_can()
Desd_usb.c127 u8 dlc; member
137 u8 dlc; member
239 msg->msg.rx.dlc, state, ecc, rxerr, txerr); in esd_usb_rx_event()
340 can_frame_set_cc_len(cf, msg->msg.rx.dlc & ~ESD_RTR, in esd_usb_rx_can_msg()
346 if (msg->msg.rx.dlc & ESD_RTR) { in esd_usb_rx_can_msg()
761 msg->msg.tx.dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in esd_usb_start_xmit()
765 msg->msg.tx.dlc |= ESD_RTR; in esd_usb_start_xmit()
Dusb_8dev.c146 u8 dlc; /* data length code 0-8 bytes */ member
157 u8 dlc; /* data length code 0-8 bytes */ member
471 can_frame_set_cc_len(cf, msg->dlc & 0xF, priv->can.ctrlmode); in usb_8dev_rx_can_msg()
633 msg->dlc = can_get_cc_dlc(cf, priv->can.ctrlmode); in usb_8dev_start_xmit()
Ducan.c213 u8 dlc; /* RTR dlc */ member
309 return can_cc_dlc2len(msg->dlc); in ucan_can_cc_dlc2len()
1081 offsetof(struct ucan_can_msg, dlc) + in ucan_prepare_tx_urb()
1082 sizeof(m->msg.can_msg.dlc); in ucan_prepare_tx_urb()
1083 m->msg.can_msg.dlc = cf->len; in ucan_prepare_tx_urb()
/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c243 u8 dlc; member
257 u8 dlc; member
349 u8 dlc; member
1266 cf->len = can_cc_dlc2len(cmd->rx_can.dlc); in kvaser_usb_hydra_rx_msg_std()
1290 u8 dlc; in kvaser_usb_hydra_rx_msg_ext() local
1301 dlc = (kcan_header & KVASER_USB_KCAN_DATA_DLC_MASK) >> in kvaser_usb_hydra_rx_msg_ext()
1339 cf->len = can_fd_dlc2len(dlc); in kvaser_usb_hydra_rx_msg_ext()
1345 cf->len = can_cc_dlc2len(dlc); in kvaser_usb_hydra_rx_msg_ext()
1445 u8 dlc = can_fd_len2dlc(cf->len); in kvaser_usb_hydra_frame_to_cmd_ext() local
1471 cmd->tx_can.dlc = dlc; in kvaser_usb_hydra_frame_to_cmd_ext()
[all …]
/drivers/net/can/m_can/
Dm_can.c316 u32 dlc; member
491 if (fifo_header.dlc & RX_BUF_FDF) in m_can_read_fifo()
500 if (fifo_header.dlc & RX_BUF_FDF) in m_can_read_fifo()
501 cf->len = can_fd_dlc2len((fifo_header.dlc >> 16) & 0x0F); in m_can_read_fifo()
503 cf->len = can_cc_dlc2len((fifo_header.dlc >> 16) & 0x0F); in m_can_read_fifo()
515 if (!(fifo_header.dlc & RX_BUF_FDF) && (fifo_header.id & RX_BUF_RTR)) { in m_can_read_fifo()
518 if (fifo_header.dlc & RX_BUF_BRS) in m_can_read_fifo()
533 timestamp = FIELD_GET(RX_BUF_RXTS_MASK, fifo_header.dlc) << 16; in m_can_read_fifo()
1622 fifo_header.dlc = can_fd_len2dlc(cf->len) << 16; in m_can_tx_handler()
1691 fifo_header.dlc = FIELD_PREP(TX_BUF_MM_MASK, putidx) | in m_can_tx_handler()
/drivers/net/can/cc770/
Dcc770.c390 u8 dlc, rtr; in cc770_tx() local
394 dlc = cf->len; in cc770_tx()
406 (dlc << 4) | rtr | MSGCFG_XTD); in cc770_tx()
413 cc770_write_reg(priv, msgobj[mo].config, (dlc << 4) | rtr); in cc770_tx()
418 for (i = 0; i < dlc; i++) in cc770_tx()
/drivers/net/can/ifi_canfd/
Difi_canfd.c258 u32 dlc, id; in ifi_canfd_read_fifo() local
272 dlc = (rxdlc >> IFI_CANFD_RXFIFO_DLC_DLC_OFFSET) & in ifi_canfd_read_fifo()
275 cf->len = can_fd_dlc2len(dlc); in ifi_canfd_read_fifo()
277 cf->len = can_cc_dlc2len(dlc); in ifi_canfd_read_fifo()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c755 u8 dlc; in pcan_usb_fd_encode_msg() local
774 dlc = can_fd_len2dlc(cfd->len); in pcan_usb_fd_encode_msg()
785 dlc = can_get_cc_dlc((struct can_frame *)cfd, in pcan_usb_fd_encode_msg()
797 tx_msg->channel_dlc = PUCAN_MSG_CHANNEL_DLC(dev->ctrl_idx, dlc); in pcan_usb_fd_encode_msg()
/drivers/staging/media/atomisp/i2c/ov5693/
Dov5693.h165 #define vcm_dlc_mclk(dlc, mclk) (u16)((dlc << 3) | mclk | 0xa104) argument

12