Lines Matching refs:tb

110 static void init_text_buf(TEXT_BUF * tb)  in init_text_buf()  argument
112 tb->num_y = &y_size; in init_text_buf()
113 tb->num_x = &x_size; in init_text_buf()
114 tb->start = tb->cur = alloc_line_buf(); in init_text_buf()
213 TEXT_BUF *tb = &(tc->text_buf); in m_putchar() local
220 if (tb->cur->next == NULL) in m_putchar()
222 tmp = tb->cur; /* Recalculate the display start buffer */ in m_putchar()
223 for (i = 0; i < *(tb->num_y) - 1 && i < LINE_BUF_Y_SIZE; i++) in m_putchar()
229 tb->start = tmp; in m_putchar()
238 …link_line_buf(tb->cur, tmp); /* Link the obtained buffer to the next buffer from the curren… in m_putchar()
240 tb->cur = tmp; /* Update the current buffer */ in m_putchar()
241 tb->cur->cur_count = 0; in m_putchar()
242 tb->cur->last_count = 0; in m_putchar()
246 tb->cur = tb->cur->next; in m_putchar()
247 tb->cur->cur_count = 0; in m_putchar()
248 tb->cur->last_count = 0; in m_putchar()
252 tb->cur->cur_count = 0; in m_putchar()
255 tb->cur->cur_count += TAB_SIZE; in m_putchar()
256 if (tb->cur->cur_count > LINE_BUF_X_SIZE) in m_putchar()
257 tb->cur->cur_count = LINE_BUF_X_SIZE; in m_putchar()
258 if (tb->cur->cur_count > tb->cur->last_count) in m_putchar()
259 tb->cur->last_count = tb->cur->cur_count; in m_putchar()
262 tb->cur = tb->start; in m_putchar()
263 tb->cur->cur_count = 0; in m_putchar()
264 tb->cur->last_count = 0; in m_putchar()
269 if (tb->cur->cur_count > 0) in m_putchar()
270 tb->cur->cur_count--; in m_putchar()
275 tb->cur->buf[tb->cur->cur_count] = c; in m_putchar()
276 tb->cur->col[tb->cur->cur_count] = tc->palette; in m_putchar()
277 tb->cur->cur_count++; in m_putchar()
278 if (tb->cur->cur_count > LINE_BUF_X_SIZE) in m_putchar()
280 tb->cur->cur_count = LINE_BUF_X_SIZE; in m_putchar()
283 if (tb->cur->cur_count > tb->cur->last_count) in m_putchar()
284 tb->cur->last_count = tb->cur->cur_count; in m_putchar()
302 TEXT_BUF *tb = &(tc->text_buf); in text_buf_to_vram() local
305 lb = tb->start; in text_buf_to_vram()
309 for (line_no = 0; line_no < (*tb->num_y + 1); line_no++) in text_buf_to_vram()
316 if (x_line >= (*tb->num_x + 1)) in text_buf_to_vram()
329 if (x_line <= *tb->num_x) in text_buf_to_vram()
336 for (; line_no <= *tb->num_y; line_no++) in text_buf_to_vram()