Lines Matching refs:endptr
441 char *endptr; in cmd_can_bitrate_set() local
449 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_bitrate_set()
450 if (*endptr != '\0') { in cmd_can_bitrate_set()
456 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_bitrate_set()
457 if (*endptr != '\0') { in cmd_can_bitrate_set()
472 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_bitrate_set()
473 if (*endptr != '\0') { in cmd_can_bitrate_set()
512 char *endptr; in cmd_can_dbitrate_set() local
520 bitrate = (uint32_t)strtoul(argv[2], &endptr, 10); in cmd_can_dbitrate_set()
521 if (*endptr != '\0') { in cmd_can_dbitrate_set()
527 sample_pnt = (uint32_t)strtoul(argv[3], &endptr, 10); in cmd_can_dbitrate_set()
528 if (*endptr != '\0') { in cmd_can_dbitrate_set()
543 timing.sjw = (uint16_t)strtoul(argv[4], &endptr, 10); in cmd_can_dbitrate_set()
544 if (*endptr != '\0') { in cmd_can_dbitrate_set()
580 char *endptr; in can_shell_parse_timing() local
582 timing->sjw = (uint32_t)strtoul(argv[2], &endptr, 10); in can_shell_parse_timing()
583 if (*endptr != '\0') { in can_shell_parse_timing()
588 timing->prop_seg = (uint32_t)strtoul(argv[3], &endptr, 10); in can_shell_parse_timing()
589 if (*endptr != '\0') { in can_shell_parse_timing()
594 timing->phase_seg1 = (uint32_t)strtoul(argv[4], &endptr, 10); in can_shell_parse_timing()
595 if (*endptr != '\0') { in can_shell_parse_timing()
600 timing->phase_seg2 = (uint32_t)strtoul(argv[5], &endptr, 10); in can_shell_parse_timing()
601 if (*endptr != '\0') { in can_shell_parse_timing()
606 timing->prescaler = (uint32_t)strtoul(argv[6], &endptr, 10); in can_shell_parse_timing()
607 if (*endptr != '\0') { in can_shell_parse_timing()
678 char *endptr; in cmd_can_mode_set() local
699 raw = (can_mode_t)strtoul(argv[i], &endptr, 16); in cmd_can_mode_set()
700 if (*endptr == '\0') { in cmd_can_mode_set()
730 char *endptr; in cmd_can_send() local
777 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_send()
778 if (*endptr != '\0') { in cmd_can_send()
802 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_send()
803 if (*endptr != '\0') { in cmd_can_send()
849 char *endptr; in cmd_can_filter_add() local
884 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_filter_add()
885 if (*endptr != '\0') { in cmd_can_filter_add()
901 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_filter_add()
902 if (*endptr != '\0') { in cmd_can_filter_add()
946 char *endptr; in cmd_can_filter_remove() local
954 filter_id = (int)strtol(argv[2], &endptr, 10); in cmd_can_filter_remove()
955 if (*endptr != '\0') { in cmd_can_filter_remove()
971 char *endptr; in cmd_can_recover() local
981 millisec = (int)strtol(argv[2], &endptr, 10); in cmd_can_recover()
982 if (*endptr != '\0') { in cmd_can_recover()