Home
last modified time | relevance | path

Searched refs:cons (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/subsys/shell/
Dshell_utils.c56 static uint32_t line_num_with_buffer_offset_get(struct shell_multiline_cons *cons, in line_num_with_buffer_offset_get() argument
59 return ((buffer_pos + cons->name_len) / cons->terminal_wid); in line_num_with_buffer_offset_get()
63 static uint32_t col_num_with_buffer_offset_get(struct shell_multiline_cons *cons, in col_num_with_buffer_offset_get() argument
67 return (1 + ((buffer_pos + cons->name_len) % cons->terminal_wid)); in col_num_with_buffer_offset_get()
70 int32_t z_column_span_with_buffer_offsets_get(struct shell_multiline_cons *cons, in z_column_span_with_buffer_offsets_get() argument
74 return col_num_with_buffer_offset_get(cons, offset2) in z_column_span_with_buffer_offsets_get()
75 - col_num_with_buffer_offset_get(cons, offset1); in z_column_span_with_buffer_offsets_get()
78 int32_t z_row_span_with_buffer_offsets_get(struct shell_multiline_cons *cons, in z_row_span_with_buffer_offsets_get() argument
82 return line_num_with_buffer_offset_get(cons, offset2) in z_row_span_with_buffer_offsets_get()
83 - line_num_with_buffer_offset_get(cons, offset1); in z_row_span_with_buffer_offsets_get()
[all …]
Dshell_ops.c52 return (line_length % sh->ctx->vt100_ctx.cons.terminal_wid == 0U); in full_line_cmd()
60 sh->ctx->vt100_ctx.cons.terminal_wid == in z_shell_cursor_in_empty_line()
73 struct shell_multiline_cons *cons = &sh->ctx->vt100_ctx.cons; in z_shell_op_cursor_position_synchronize() local
76 z_shell_multiline_data_calc(cons, sh->ctx->cmd_buff_pos, in z_shell_op_cursor_position_synchronize()
78 last_line = (cons->cur_y == cons->cur_y_end); in z_shell_op_cursor_position_synchronize()
88 z_shell_op_cursor_horiz_move(sh, cons->cur_x - in z_shell_op_cursor_position_synchronize()
89 cons->cur_x_end); in z_shell_op_cursor_position_synchronize()
91 z_shell_op_cursor_vert_move(sh, cons->cur_y_end - cons->cur_y); in z_shell_op_cursor_position_synchronize()
92 z_shell_op_cursor_horiz_move(sh, cons->cur_x - in z_shell_op_cursor_position_synchronize()
93 cons->cur_x_end); in z_shell_op_cursor_position_synchronize()
[all …]
Dshell_utils.h18 int32_t z_row_span_with_buffer_offsets_get(struct shell_multiline_cons *cons,
22 int32_t z_column_span_with_buffer_offsets_get(struct shell_multiline_cons *cons,
26 void z_shell_multiline_data_calc(struct shell_multiline_cons *cons,
Dshell_help.c45 sh->ctx->vt100_ctx.cons.terminal_wid - terminal_offset) { in formatted_text_print()
67 length = sh->ctx->vt100_ctx.cons.terminal_wid in formatted_text_print()
80 sh->ctx->vt100_ctx.cons.terminal_wid) { in formatted_text_print()
Dshell_cmds.c193 sh->ctx->vt100_ctx.cons.terminal_wid = x; in terminal_size_get()
194 sh->ctx->vt100_ctx.cons.terminal_hei = y; in terminal_size_get()
408 sh->ctx->vt100_ctx.cons.terminal_wid = CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH; in cmd_resize_default()
409 sh->ctx->vt100_ctx.cons.terminal_hei = CONFIG_SHELL_DEFAULT_TERMINAL_HEIGHT; in cmd_resize_default()
426 sh->ctx->vt100_ctx.cons.terminal_wid = in cmd_resize()
428 sh->ctx->vt100_ctx.cons.terminal_hei = in cmd_resize()
Dshell_log_backend.c100 z_shell_multiline_data_calc(&sh->ctx->vt100_ctx.cons, in panic()
105 -sh->ctx->vt100_ctx.cons.cur_x); in panic()
Dshell.c142 columns = (sh->ctx->vt100_ctx.cons.terminal_wid in tab_item_print()
1234 sh->ctx->vt100_ctx.cons.terminal_wid = in instance_init()
1236 sh->ctx->vt100_ctx.cons.terminal_hei = in instance_init()
1243 sh->ctx->vt100_ctx.cons.name_len = z_shell_strlen(sh->ctx->prompt); in instance_init()
1694 sh->ctx->vt100_ctx.cons.name_len = prompt_length; in shell_prompt_change()
/Zephyr-latest/samples/boards/nordic/system_off/src/
Dmain.c34 const struct device *const cons = DEVICE_DT_GET(DT_CHOSEN(zephyr_console)); in main() local
36 if (!device_is_ready(cons)) { in main()
37 printf("%s: device not ready.\n", cons->name); in main()
89 rc = pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND); in main()
/Zephyr-latest/drivers/serial/
Duart_hvc_xen.c36 XENCONS_RING_IDX cons = hvc_data->intf->in_cons; in read_from_ring() local
41 __ASSERT((prod - cons) <= sizeof(hvc_data->intf->in), in read_from_ring()
44 while (cons != prod && recv < len) { in read_from_ring()
45 in_idx = MASK_XENCONS_IDX(cons, hvc_data->intf->in); in read_from_ring()
48 cons++; in read_from_ring()
52 hvc_data->intf->in_cons = cons; in read_from_ring()
62 XENCONS_RING_IDX cons = hvc_data->intf->out_cons; in write_to_ring() local
67 __ASSERT((prod - cons) <= sizeof(hvc_data->intf->out), in write_to_ring()
70 while ((sent < len) && ((prod - cons) < sizeof(hvc_data->intf->out))) { in write_to_ring()
/Zephyr-latest/include/zephyr/shell/
Dshell_types.h45 struct shell_multiline_cons cons; member
/Zephyr-latest/tests/lib/lockfree/src/
Dtest_spsc.c34 uint32_t *cons = spsc_consume(&ezspsc); in ZTEST() local
36 zassert_is_null(cons, "Consume should fail"); in ZTEST()
/Zephyr-latest/doc/services/ipc/ipc_service/
Dipc_service.rst181 with multiple backends simultaneously, combining the pros and cons of each