Lines Matching +full:use +full:- +full:case
4 * SPDX-License-Identifier: Apache-2.0
47 return -1; in string_to_crc_type()
56 shell_print(sh, "-f This is the first packet"); in usage()
57 shell_print(sh, "-l This is the last packet"); in usage()
58 shell_print(sh, "-p <poly> Use polynomial 'poly'"); in usage()
59 shell_print(sh, "-r Reflect"); in usage()
60 shell_print(sh, "-s <seed> Use 'seed' as the initial value"); in usage()
61 shell_print(sh, "-t <type> Compute the CRC described by 'type'"); in usage()
72 size_t size = -1; in cmd_crc()
78 void *addr = (void *)-1; in cmd_crc()
83 while ((rv = getopt(argc, argv, "fhlp:rs:t:")) != -1) { in cmd_crc()
85 case 'f': in cmd_crc()
88 case 'h': in cmd_crc()
91 case 'l': in cmd_crc()
94 case 'p': in cmd_crc()
98 return -EINVAL; in cmd_crc()
101 case 'r': in cmd_crc()
104 case 's': in cmd_crc()
108 return -EINVAL; in cmd_crc()
111 case 't': in cmd_crc()
113 if (type == -1) { in cmd_crc()
115 return -EINVAL; in cmd_crc()
118 case '?': in cmd_crc()
121 return -EINVAL; in cmd_crc()
128 return -EINVAL; in cmd_crc()
134 return -EINVAL; in cmd_crc()
140 return -EINVAL; in cmd_crc()