Lines Matching refs:shell_ptr

17 	const struct shell *shell_ptr;  member
34 shell_print(params->shell_ptr, "%s/%s", params->subtree, key); in settings_list_callback()
36 shell_print(params->shell_ptr, "%s", key); in settings_list_callback()
42 static int cmd_list(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_list() argument
47 .shell_ptr = shell_ptr, in cmd_list()
54 shell_error(shell_ptr, "Failed to load settings: %d", err); in cmd_list()
67 const struct shell *shell_ptr; member
92 shell_error(params->shell_ptr, "Failed to read value: %d", (int) num_read_bytes); in settings_read_callback()
97 shell_warn(params->shell_ptr, "Value is empty"); in settings_read_callback()
103 shell_hexdump(params->shell_ptr, buffer, num_read_bytes); in settings_read_callback()
108 shell_error(params->shell_ptr, "Value is not a string"); in settings_read_callback()
112 shell_print(params->shell_ptr, "%.*s", (int)num_read_bytes, buffer); in settings_read_callback()
117 shell_print(params->shell_ptr, "(The output has been truncated)"); in settings_read_callback()
136 static int cmd_read(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_read() argument
145 shell_error(shell_ptr, "Invalid type: %s", argv[1]); in cmd_read()
151 .shell_ptr = shell_ptr, in cmd_read()
159 shell_error(shell_ptr, "Failed to load setting: %d", err); in cmd_read()
162 shell_error(shell_ptr, "Setting not found"); in cmd_read()
169 static int cmd_write(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_write() argument
180 shell_error(shell_ptr, "Invalid type: %s", argv[1]); in cmd_write()
197 shell_error(shell_ptr, "Failed to parse value"); in cmd_write()
204 shell_error(shell_ptr, "Failed to write setting: %d", err); in cmd_write()
211 static int cmd_delete(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_delete() argument
218 shell_error(shell_ptr, "Failed to delete setting: %d", err); in cmd_delete()