Lines Matching refs:cons

56 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()
86 void z_shell_multiline_data_calc(struct shell_multiline_cons *cons, in z_shell_multiline_data_calc() argument
92 cons->cur_x = (buff_pos + cons->name_len) % cons->terminal_wid + 1; in z_shell_multiline_data_calc()
93 cons->cur_y = (buff_pos + cons->name_len) / cons->terminal_wid + 1; in z_shell_multiline_data_calc()
96 cons->cur_y_end = (buff_len + cons->name_len) / cons->terminal_wid + 1; in z_shell_multiline_data_calc()
97 cons->cur_x_end = (buff_len + cons->name_len) % cons->terminal_wid + 1; in z_shell_multiline_data_calc()