Lines Matching refs:timing

438 	struct can_timing timing = { 0 };  in cmd_can_bitrate_set()  local
462 err = can_calc_timing(dev, &timing, bitrate, sample_pnt); in cmd_can_bitrate_set()
472 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set()
482 timing.sjw); in cmd_can_bitrate_set()
485 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_bitrate_set()
486 timing.prescaler); in cmd_can_bitrate_set()
488 err = can_set_timing(dev, &timing); in cmd_can_bitrate_set()
509 struct can_timing timing = { 0 }; in cmd_can_dbitrate_set() local
533 err = can_calc_timing_data(dev, &timing, bitrate, sample_pnt); in cmd_can_dbitrate_set()
543 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_dbitrate_set()
553 timing.sjw); in cmd_can_dbitrate_set()
556 timing.sjw, timing.prop_seg, timing.phase_seg1, timing.phase_seg2, in cmd_can_dbitrate_set()
557 timing.prescaler); in cmd_can_dbitrate_set()
559 err = can_set_timing_data(dev, &timing); in cmd_can_dbitrate_set()
578 struct can_timing *timing) in can_shell_parse_timing() argument
582 timing->sjw = (uint32_t)strtoul(argv[2], &endptr, 10); in can_shell_parse_timing()
588 timing->prop_seg = (uint32_t)strtoul(argv[3], &endptr, 10); in can_shell_parse_timing()
594 timing->phase_seg1 = (uint32_t)strtoul(argv[4], &endptr, 10); in can_shell_parse_timing()
600 timing->phase_seg2 = (uint32_t)strtoul(argv[5], &endptr, 10); in can_shell_parse_timing()
606 timing->prescaler = (uint32_t)strtoul(argv[6], &endptr, 10); in can_shell_parse_timing()
618 struct can_timing timing = { 0 }; in cmd_can_timing_set() local
626 err = can_shell_parse_timing(sh, argc, argv, &timing); in cmd_can_timing_set()
632 "prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_timing_set()
633 timing.phase_seg2, timing.prescaler); in cmd_can_timing_set()
635 err = can_set_timing(dev, &timing); in cmd_can_timing_set()
647 struct can_timing timing = { 0 }; in cmd_can_dtiming_set() local
655 err = can_shell_parse_timing(sh, argc, argv, &timing); in cmd_can_dtiming_set()
661 "phase_seg2 %u, prescaler %u", timing.sjw, timing.prop_seg, timing.phase_seg1, in cmd_can_dtiming_set()
662 timing.phase_seg2, timing.prescaler); in cmd_can_dtiming_set()
664 err = can_set_timing_data(dev, &timing); in cmd_can_dtiming_set()
1079 SHELL_CMD_ARG(timing, &dsub_can_device_name,