Lines Matching refs:dlc
258 * can_cc_dlc2len(value) - convert a given data length code (dlc) of a
264 #define can_cc_dlc2len(dlc) (min_t(u8, (dlc), CAN_MAX_DLEN))
269 /* return len8_dlc as dlc value only if all conditions apply */
275 /* return the payload length as dlc value */
280 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc,
283 /* the caller already ensured that dlc is a value from 0 .. 15 */
284 if (ctrlmode & CAN_CTRLMODE_CC_LEN8_DLC && dlc > CAN_MAX_DLEN)
285 cf->len8_dlc = dlc;
288 cf->len = can_cc_dlc2len(dlc);
292 u8 can_fd_dlc2len(u8 dlc);