Lines Matching refs:dest

486 					flexcan_frame_t *dest)  in mcux_flexcan_from_can_frame()  argument
488 memset(dest, 0, sizeof(*dest)); in mcux_flexcan_from_can_frame()
491 dest->format = kFLEXCAN_FrameFormatExtend; in mcux_flexcan_from_can_frame()
492 dest->id = FLEXCAN_ID_EXT(src->id); in mcux_flexcan_from_can_frame()
494 dest->format = kFLEXCAN_FrameFormatStandard; in mcux_flexcan_from_can_frame()
495 dest->id = FLEXCAN_ID_STD(src->id); in mcux_flexcan_from_can_frame()
499 dest->type = kFLEXCAN_FrameTypeRemote; in mcux_flexcan_from_can_frame()
501 dest->type = kFLEXCAN_FrameTypeData; in mcux_flexcan_from_can_frame()
502 dest->dataWord0 = sys_cpu_to_be32(src->data_32[0]); in mcux_flexcan_from_can_frame()
503 dest->dataWord1 = sys_cpu_to_be32(src->data_32[1]); in mcux_flexcan_from_can_frame()
506 dest->length = src->dlc; in mcux_flexcan_from_can_frame()
510 struct can_frame *dest) in mcux_flexcan_to_can_frame() argument
512 memset(dest, 0, sizeof(*dest)); in mcux_flexcan_to_can_frame()
515 dest->id = FLEXCAN_ID_TO_CAN_ID_STD(src->id); in mcux_flexcan_to_can_frame()
517 dest->flags |= CAN_FRAME_IDE; in mcux_flexcan_to_can_frame()
518 dest->id = FLEXCAN_ID_TO_CAN_ID_EXT(src->id); in mcux_flexcan_to_can_frame()
522 dest->flags |= CAN_FRAME_RTR; in mcux_flexcan_to_can_frame()
524 dest->data_32[0] = sys_be32_to_cpu(src->dataWord0); in mcux_flexcan_to_can_frame()
525 dest->data_32[1] = sys_be32_to_cpu(src->dataWord1); in mcux_flexcan_to_can_frame()
528 dest->dlc = src->length; in mcux_flexcan_to_can_frame()
530 dest->timestamp = src->timestamp; in mcux_flexcan_to_can_frame()
536 flexcan_fd_frame_t *dest) in mcux_flexcan_fd_from_can_frame() argument
540 memset(dest, 0, sizeof(*dest)); in mcux_flexcan_fd_from_can_frame()
543 dest->format = kFLEXCAN_FrameFormatExtend; in mcux_flexcan_fd_from_can_frame()
544 dest->id = FLEXCAN_ID_EXT(src->id); in mcux_flexcan_fd_from_can_frame()
546 dest->format = kFLEXCAN_FrameFormatStandard; in mcux_flexcan_fd_from_can_frame()
547 dest->id = FLEXCAN_ID_STD(src->id); in mcux_flexcan_fd_from_can_frame()
551 dest->type = kFLEXCAN_FrameTypeRemote; in mcux_flexcan_fd_from_can_frame()
553 dest->type = kFLEXCAN_FrameTypeData; in mcux_flexcan_fd_from_can_frame()
555 for (i = 0; i < ARRAY_SIZE(dest->dataWord); i++) { in mcux_flexcan_fd_from_can_frame()
556 dest->dataWord[i] = sys_cpu_to_be32(src->data_32[i]); in mcux_flexcan_fd_from_can_frame()
561 dest->edl = 1; in mcux_flexcan_fd_from_can_frame()
565 dest->brs = 1; in mcux_flexcan_fd_from_can_frame()
568 dest->length = src->dlc; in mcux_flexcan_fd_from_can_frame()
572 struct can_frame *dest) in mcux_flexcan_fd_to_can_frame() argument
576 memset(dest, 0, sizeof(*dest)); in mcux_flexcan_fd_to_can_frame()
579 dest->id = FLEXCAN_ID_TO_CAN_ID_STD(src->id); in mcux_flexcan_fd_to_can_frame()
581 dest->flags |= CAN_FRAME_IDE; in mcux_flexcan_fd_to_can_frame()
582 dest->id = FLEXCAN_ID_TO_CAN_ID_EXT(src->id); in mcux_flexcan_fd_to_can_frame()
586 dest->flags |= CAN_FRAME_RTR; in mcux_flexcan_fd_to_can_frame()
588 for (i = 0; i < ARRAY_SIZE(dest->data_32); i++) { in mcux_flexcan_fd_to_can_frame()
589 dest->data_32[i] = sys_be32_to_cpu(src->dataWord[i]); in mcux_flexcan_fd_to_can_frame()
594 dest->flags |= CAN_FRAME_FDF; in mcux_flexcan_fd_to_can_frame()
598 dest->flags |= CAN_FRAME_BRS; in mcux_flexcan_fd_to_can_frame()
602 dest->flags |= CAN_FRAME_ESI; in mcux_flexcan_fd_to_can_frame()
605 dest->dlc = src->length; in mcux_flexcan_fd_to_can_frame()
608 dest->timestamp = src->timestamp; in mcux_flexcan_fd_to_can_frame()
614 flexcan_rx_mb_config_t *dest, in mcux_flexcan_can_filter_to_mbconfig() argument
621 dest->format = kFLEXCAN_FrameFormatExtend; in mcux_flexcan_can_filter_to_mbconfig()
622 dest->id = FLEXCAN_ID_EXT(src->id); in mcux_flexcan_can_filter_to_mbconfig()
625 dest->format = kFLEXCAN_FrameFormatStandard; in mcux_flexcan_can_filter_to_mbconfig()
626 dest->id = FLEXCAN_ID_STD(src->id); in mcux_flexcan_can_filter_to_mbconfig()
630 dest->type = kFLEXCAN_FrameTypeData; in mcux_flexcan_can_filter_to_mbconfig()