Searched refs:get_can_dlc (Results 1 – 25 of 31) sorted by relevance
12
91 #define get_can_dlc(i) (min_t(__u8, (i), CAN_MAX_DLC)) macro
451 len = get_can_dlc(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK); in mcp251x_hw_rx_frame()499 frame->can_dlc = get_can_dlc(buf[RXBDLC_OFF] & RXBDLC_LEN_MASK); in mcp251x_hw_rx()
362 frame->can_dlc = get_can_dlc(buf[HI3110_FIFO_WOTIME_DLC_OFF] & 0x0F); in hi3110_hw_rx()
981 cf->can_dlc = get_can_dlc(cmd->u.leaf.log_message.dlc); in kvaser_usb_leaf_rx_can_msg()999 cf->can_dlc = get_can_dlc(rx_data[5]); in kvaser_usb_leaf_rx_can_msg()
1183 cf->can_dlc = get_can_dlc(cmd->rx_can.dlc); in kvaser_usb_hydra_rx_msg_std()1260 cf->len = get_can_dlc(dlc); in kvaser_usb_hydra_rx_msg_ext()
313 return get_can_dlc(msg->dlc); in ucan_get_can_dlc()315 return get_can_dlc(len - (UCAN_IN_HDR_SIZE + sizeof(msg->id))); in ucan_get_can_dlc()
465 cf->can_dlc = get_can_dlc(msg->dlc & MCBA_DLC_MASK); in mcba_usb_process_can()
484 cf->can_dlc = get_can_dlc(msg->dlc & 0xF); in usb_8dev_rx_can_msg()
321 cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF); in ems_usb_rx_can_msg()
342 cf->can_dlc = get_can_dlc(hf->can_dlc); in gs_usb_receive_bulk_callback()
336 cf->can_dlc = get_can_dlc(msg->msg.rx.dlc & ~ESD_RTR); in esd_usb2_rx_can_msg()
697 cf->can_dlc = get_can_dlc((ioread32(&priv->regs-> in pch_can_rx_normal()729 dlc = get_can_dlc(ioread32(&priv->regs->ifregs[1].mcont) & in pch_can_tx_complete()
478 cf->can_dlc = get_can_dlc(fi & 0x0F); in sun4i_can_rx()
923 cf->can_dlc = get_can_dlc(desc->data[1] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()926 cf->can_dlc = get_can_dlc(desc->data[0] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()
554 cf->can_dlc = get_can_dlc(data & 0xF); in ti_hecc_rx_pkt()
370 cf->can_dlc = get_can_dlc(fi & 0x0F); in sja1000_rx()
641 cf->can_dlc = get_can_dlc(rec_len); in pcan_usb_decode_data()
504 cfd->len = get_can_dlc(pucan_msg_get_dlc(rm)); in pcan_usb_fd_decode_canmsg()
256 cf_len = get_can_dlc(pucan_msg_get_dlc(msg)); in pucan_handle_can_rx()
325 frame->can_dlc = get_can_dlc(in_8(®s->rx.dlr) & 0xf); in mscan_get_rx_frame()
497 cf->can_dlc = get_can_dlc((config & 0xf0) >> 4); in cc770_rx()
1455 cf->len = get_can_dlc(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()1471 cf->len = get_can_dlc(RCANFD_RFPTR_RFDLC(dlc)); in rcar_canfd_rx_pkt()
657 cf->can_dlc = get_can_dlc(dlc); in rcar_can_rx_pkt()
275 msg.can_dlc = get_can_dlc(*ptr++); in softing_handle_1()
276 cf->len = get_can_dlc(dlc); in ifi_canfd_read_fifo()