Lines Matching refs:params
30 struct settings_list_callback_params *params = param; in settings_list_callback() local
32 if (params->subtree != NULL) { in settings_list_callback()
33 shell_print(params->shell_ptr, "%s/%s", params->subtree, key); in settings_list_callback()
35 shell_print(params->shell_ptr, "%s", key); in settings_list_callback()
45 struct settings_list_callback_params params = { in cmd_list() local
50 err = settings_load_subtree_direct(params.subtree, settings_list_callback, ¶ms); in cmd_list()
78 struct settings_read_callback_params *params = param; in settings_read_callback() local
85 params->value_found = true; in settings_read_callback()
89 shell_error(params->shell_ptr, "Failed to read value: %d", (int) num_read_bytes); in settings_read_callback()
94 shell_warn(params->shell_ptr, "Value is empty"); in settings_read_callback()
98 switch (params->value_type) { in settings_read_callback()
100 shell_hexdump(params->shell_ptr, buffer, num_read_bytes); in settings_read_callback()
104 shell_error(params->shell_ptr, "Value is not a string"); in settings_read_callback()
107 shell_print(params->shell_ptr, "%s", buffer); in settings_read_callback()
112 shell_print(params->shell_ptr, "(The output has been truncated)"); in settings_read_callback()
145 struct settings_read_callback_params params = { in cmd_read() local
151 err = settings_load_subtree_direct(argv[argc - 1], settings_read_callback, ¶ms); in cmd_read()
155 } else if (!params.value_found) { in cmd_read()