Lines Matching refs:argc
41 static int cmd_list(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_list() argument
47 .subtree = (argc == 2 ? argv[1] : NULL) in cmd_list()
131 static int cmd_read(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_read() argument
137 if (argc > 2) { in cmd_read()
151 err = settings_load_subtree_direct(argv[argc - 1], settings_read_callback, ¶ms); in cmd_read()
163 static int cmd_write(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_write() argument
170 if (argc > 3) { in cmd_write()
180 buffer_len = hex2bin(argv[argc - 1], strlen(argv[argc - 1]), in cmd_write()
184 buffer_len = strlen(argv[argc - 1]) + 1; in cmd_write()
186 shell_error(shell_ptr, "%s is bigger than shell's buffer", argv[argc - 1]); in cmd_write()
190 memcpy(buffer, argv[argc - 1], buffer_len); in cmd_write()
199 err = settings_save_one(argv[argc - 2], buffer, buffer_len); in cmd_write()
208 static int cmd_delete(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_delete() argument
242 static int cmd_settings(const struct shell *shell_ptr, size_t argc, char **argv) in cmd_settings() argument