Lines Matching refs:data_length
692 int data_length; in can_mcan_get_message() local
744 data_length = can_dlc_to_bytes(frame.dlc); in can_mcan_get_message()
745 if (data_length <= sizeof(frame.data)) { in can_mcan_get_message()
746 if ((frame.flags & CAN_FRAME_RTR) == 0U && data_length != 0U) { in can_mcan_get_message()
751 ROUND_UP(data_length, sizeof(uint32_t))); in can_mcan_get_message()
910 size_t data_length = can_dlc_to_bytes(frame->dlc); in can_mcan_send() local
929 LOG_DBG("Sending %zu bytes. Id: 0x%x, ID type: %s %s %s %s", data_length, frame->id, in can_mcan_send()
954 if (data_length > sizeof(frame->data)) { in can_mcan_send()
955 LOG_ERR("data length (%zu) > max frame data length (%zu)", data_length, in can_mcan_send()
1017 if ((frame->flags & CAN_FRAME_RTR) == 0U && data_length != 0U) { in can_mcan_send()
1021 &frame->data_32, ROUND_UP(data_length, sizeof(uint32_t))); in can_mcan_send()