Lines Matching refs:shell
45 static inline void receive_state_change(const struct shell *sh, in receive_state_change()
51 static void cmd_buffer_clear(const struct shell *sh) in cmd_buffer_clear()
58 static void shell_internal_help_print(const struct shell *sh) in shell_internal_help_print()
79 static int cmd_precheck(const struct shell *sh, in cmd_precheck()
97 static inline void state_set(const struct shell *sh, enum shell_state state) in state_set()
112 static inline enum shell_state state_get(const struct shell *sh) in state_get()
118 selected_cmd_get(const struct shell *sh) in selected_cmd_get()
128 static void tab_item_print(const struct shell *sh, const char *option, in tab_item_print()
157 static void history_init(const struct shell *sh) in history_init()
166 static void history_purge(const struct shell *sh) in history_purge()
175 static void history_mode_exit(const struct shell *sh) in history_mode_exit()
185 static void history_put(const struct shell *sh, uint8_t *line, size_t length) in history_put()
194 static void history_handle(const struct shell *sh, bool up) in history_handle()
245 static inline uint16_t completion_space_get(const struct shell *sh) in completion_space_get()
253 static bool tab_prepare(const struct shell *sh, in tab_prepare()
325 static void find_completion_candidates(const struct shell *sh, in find_completion_candidates()
356 static void autocomplete(const struct shell *sh, in autocomplete()
425 static void tab_options_print(const struct shell *sh, in tab_options_print()
457 static uint16_t common_beginning_find(const struct shell *sh, in common_beginning_find()
497 static void partial_autocomplete(const struct shell *sh, in partial_autocomplete()
517 static int exec_cmd(const struct shell *sh, size_t argc, const char **argv, in exec_cmd()
595 static bool wildcard_check_report(const struct shell *sh, bool found, in wildcard_check_report()
628 static int execute(const struct shell *sh) in execute()
811 static void tab_handle(const struct shell *sh) in tab_handle()
844 static void alt_metakeys_handle(const struct shell *sh, char data) in alt_metakeys_handle()
870 static void ctrl_metakeys_handle(const struct shell *sh, char data) in ctrl_metakeys_handle()
943 static bool process_nl(const struct shell *sh, uint8_t data) in process_nl()
969 static void state_collect(const struct shell *sh) in state_collect()
1169 struct shell *sh = (struct shell *)ctx; in transport_evt_handler()
1178 static void shell_log_process(const struct shell *sh) in shell_log_process()
1209 static int instance_init(const struct shell *sh, in instance_init()
1271 static int instance_uninit(const struct shell *sh) in instance_uninit()
1298 typedef void (*shell_signal_handler_t)(const struct shell *sh);
1300 static void shell_signal_handle(const struct shell *sh, in shell_signal_handle()
1316 static void kill_handler(const struct shell *sh) in kill_handler()
1333 struct shell *sh = shell_handle; in shell_thread()
1384 int shell_init(const struct shell *sh, const void *transport_config, in shell_init()
1413 void shell_uninit(const struct shell *sh, shell_uninit_cb_t cb) in shell_uninit()
1437 int shell_start(const struct shell *sh) in shell_start()
1478 int shell_stop(const struct shell *sh) in shell_stop()
1499 void shell_process(const struct shell *sh) in shell_process()
1524 const struct shell *shell_backend_get_by_name(const char *backend_name) in shell_backend_get_by_name()
1526 STRUCT_SECTION_FOREACH(shell, backend) { in shell_backend_get_by_name()
1538 void shell_vfprintf(const struct shell *sh, enum shell_vt100_color color, in shell_vfprintf()
1579 void shell_fprintf_impl(const struct shell *sh, enum shell_vt100_color color, in shell_fprintf_impl()
1589 void shell_fprintf_info(const struct shell *sh, const char *fmt, ...) in shell_fprintf_info()
1598 void shell_fprintf_normal(const struct shell *sh, const char *fmt, ...) in shell_fprintf_normal()
1607 void shell_fprintf_warn(const struct shell *sh, const char *fmt, ...) in shell_fprintf_warn()
1616 void shell_fprintf_error(const struct shell *sh, const char *fmt, ...) in shell_fprintf_error()
1625 void shell_hexdump_line(const struct shell *sh, unsigned int offset, in shell_hexdump_line()
1667 void shell_hexdump(const struct shell *sh, const uint8_t *data, size_t len) in shell_hexdump()
1684 int shell_prompt_change(const struct shell *sh, const char *prompt) in shell_prompt_change()
1716 void shell_help(const struct shell *sh) in shell_help()
1725 int shell_execute_cmd(const struct shell *sh, const char *cmd) in shell_execute_cmd()
1764 int shell_insert_mode_set(const struct shell *sh, bool val) in shell_insert_mode_set()
1773 int shell_use_colors_set(const struct shell *sh, bool val) in shell_use_colors_set()
1782 int shell_use_vt100_set(const struct shell *sh, bool val) in shell_use_vt100_set()
1791 int shell_get_return_value(const struct shell *sh) in shell_get_return_value()
1800 int shell_echo_set(const struct shell *sh, bool val) in shell_echo_set()
1809 int shell_obscure_set(const struct shell *sh, bool val) in shell_obscure_set()
1818 int shell_mode_delete_set(const struct shell *sh, bool val) in shell_mode_delete_set()
1827 void shell_set_bypass(const struct shell *sh, shell_bypass_cb_t bypass) in shell_set_bypass()
1838 bool shell_ready(const struct shell *sh) in shell_ready()
1845 static int cmd_help(const struct shell *sh, size_t argc, char **argv) in cmd_help()