Lines Matching full:timing

349 	shell_print(sh, "timing:          sjw %u..%u, prop_seg %u..%u, "  in cmd_can_show()
361 shell_print(sh, "timing data: sjw %u..%u, prop_seg %u..%u, " in cmd_can_show()
391 struct can_timing timing = { 0 }; in cmd_can_bitrate_set() local
415 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set()
417 shell_error(sh, "failed to calculate timing for " in cmd_can_bitrate_set()
425 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set()
435 timing.sjw); in cmd_can_bitrate_set()
438 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_bitrate_set()
439 timing.prescaler); in cmd_can_bitrate_set()
441 err = can_set_timing(dev, &timing); in cmd_can_bitrate_set()
443 shell_error(sh, "failed to set timing (err %d)", err); in cmd_can_bitrate_set()
462 struct can_timing timing = { 0 }; in cmd_can_dbitrate_set() local
486 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set()
488 shell_error(sh, "failed to calculate timing for " in cmd_can_dbitrate_set()
496 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_dbitrate_set()
506 timing.sjw); in cmd_can_dbitrate_set()
509 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_dbitrate_set()
510 timing.prescaler); in cmd_can_dbitrate_set()
512 err = can_set_timing_data(dev, &timing); in cmd_can_dbitrate_set()
514 shell_error(sh, "failed to set data timing (err %d)", err); in cmd_can_dbitrate_set()
531 struct can_timing *timing) in can_shell_parse_timing() argument
535 timing->sjw = (uint32_t)strtoul(argv[2], &endptr, 10); in can_shell_parse_timing()
541 timing->prop_seg = (uint32_t)strtoul(argv[3], &endptr, 10); in can_shell_parse_timing()
547 timing->phase_seg1 = (uint32_t)strtoul(argv[4], &endptr, 10); in can_shell_parse_timing()
553 timing->phase_seg2 = (uint32_t)strtoul(argv[5], &endptr, 10); in can_shell_parse_timing()
559 timing->prescaler = (uint32_t)strtoul(argv[6], &endptr, 10); in can_shell_parse_timing()
571 struct can_timing timing = { 0 }; in cmd_can_timing_set() local
579 err = can_shell_parse_timing(sh, argc, argv, &timing); in cmd_can_timing_set()
584 shell_print(sh, "setting timing to sjw %u, prop_seg %u, phase_seg1 %u, phase_seg2 %u, " in cmd_can_timing_set()
585 "prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_timing_set()
586 timing.phase_seg2, timing.prescaler); in cmd_can_timing_set()
588 err = can_set_timing(dev, &timing); in cmd_can_timing_set()
590 shell_error(sh, "failed to set timing (err %d)", err); in cmd_can_timing_set()
600 struct can_timing timing = { 0 }; in cmd_can_dtiming_set() local
608 err = can_shell_parse_timing(sh, argc, argv, &timing); in cmd_can_dtiming_set()
613 shell_print(sh, "setting data phase timing to sjw %u, prop_seg %u, phase_seg1 %u, " in cmd_can_dtiming_set()
614 "phase_seg2 %u, prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_dtiming_set()
615 timing.phase_seg2, timing.prescaler); in cmd_can_dtiming_set()
617 err = can_set_timing_data(dev, &timing); in cmd_can_dtiming_set()
619 shell_error(sh, "failed to set data phase timing (err %d)", err); in cmd_can_dtiming_set()
1032 SHELL_CMD_ARG(timing, &dsub_can_device_name,
1033 "Set CAN controller timing\n"
1034 "Usage: can timing <device> <sjw> <prop_seg> <phase_seg1> <phase_seg2> <prescaler>",
1038 "Set CAN controller data phase timing\n"