Searched refs:can_cc_dlc2len (Results 1 – 25 of 28) sorted by relevance
12
132 #define can_cc_dlc2len(dlc) (min_t(u8, (dlc), CAN_MAX_DLEN)) macro156 cf->len = can_cc_dlc2len(dlc); in can_frame_set_cc_len()
31 offsetof(typeof(msg), data[can_cc_dlc2len((msg).dlc)])
40 __msg_len = can_cc_dlc2len(__msg.dlc); \
686 cf->len = can_cc_dlc2len((ioread32(&priv->regs-> in pch_can_rx_normal()718 dlc = can_cc_dlc2len(ioread32(&priv->regs->ifregs[1].mcont) & in pch_can_tx_complete()
761 cf->len = can_cc_dlc2len(dlc); in xcan_rx()837 cf->len = can_cc_dlc2len((dlc & XCAN_DLCR_DLC_MASK) >> in xcanfd_rx()
919 cf->len = can_cc_dlc2len(desc->data[1] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()922 cf->len = can_cc_dlc2len(desc->data[0] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()
478 cf->len = can_cc_dlc2len(fi & 0x0F); in sun4i_can_rx()
569 cf->len = can_cc_dlc2len(data & 0xF); in ti_hecc_mailbox_read()
583 cf->len = can_cc_dlc2len((reg_msr >> 16) & 0xf); in at91_read_mb()
1204 cf->len = can_cc_dlc2len((slot[1] & GRCAN_MSG_DLC) in grcan_receive()
309 return can_cc_dlc2len(msg->dlc); in ucan_can_cc_dlc2len()311 return can_cc_dlc2len(len - (UCAN_IN_HDR_SIZE + sizeof(msg->id))); in ucan_can_cc_dlc2len()
456 cf->len = can_cc_dlc2len(msg->dlc & MCBA_DLC_MASK); in mcba_usb_process_can()
311 cf->len = can_cc_dlc2len(msg->msg.can_msg.length & 0xF); in ems_usb_rx_can_msg()
1047 cf->len = can_cc_dlc2len(cmd->u.leaf.log_message.dlc); in kvaser_usb_leaf_rx_can_msg()1065 cf->len = can_cc_dlc2len(rx_data[5]); in kvaser_usb_leaf_rx_can_msg()
1209 cf->len = can_cc_dlc2len(cmd->rx_can.dlc); in kvaser_usb_hydra_rx_msg_std()1286 cf->len = can_cc_dlc2len(dlc); in kvaser_usb_hydra_rx_msg_ext()
679 len = can_cc_dlc2len(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK); in mcp251x_hw_rx_frame()735 frame->len = can_cc_dlc2len(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK); in mcp251x_hw_rx()
344 frame->len = can_cc_dlc2len(buf[HI3110_FIFO_WOTIME_DLC_OFF] & 0x0F); in hi3110_hw_rx()
315 frame->len = can_cc_dlc2len(in_8(®s->rx.dlr) & 0xf); in mscan_get_rx_frame()
262 cf_len = can_cc_dlc2len(pucan_msg_get_dlc(msg)); in pucan_handle_can_rx()
489 cf->len = can_cc_dlc2len((config & 0xf0) >> 4); in cc770_rx()
1527 cf->len = can_cc_dlc2len(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()1543 cf->len = can_cc_dlc2len(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()
662 cf->len = can_cc_dlc2len(dlc); in rcar_can_rx_pkt()
263 msg.len = can_cc_dlc2len(*ptr++); in softing_handle_1()
276 cf->len = can_cc_dlc2len(dlc); in ifi_canfd_read_fifo()
377 frame->len = can_cc_dlc2len(ctrl & 0x0F); in c_can_read_msg_object()
Completed in 74 milliseconds