Lines Matching defs:cols
201 static int tty3270_input_size(int cols)
203 return cols * 2 - 11;
228 tp->view.cols * 2 - TTY3270_STATUS_AREA_SIZE - 2);
236 if (count < tp->view.cols * 2 - 11)
347 if (line->len < tp->view.cols)
362 if (line->len < tp->view.cols)
690 len = tty3270_input_size(tp->view.cols) - 6 - rrq->rescnt;
756 raw3270_request_set_data(rrq, tp->input, tty3270_input_size(tp->view.cols));
891 unsigned int cols, int *allocated_out)
901 screen[lines].cells = kcalloc(cols, sizeof(struct tty3270_cell), GFP_KERNEL);
915 static char **tty3270_alloc_recall(int cols)
924 lines[i] = kcalloc(1, tty3270_input_size(cols) + 1, GFP_KERNEL);
1004 tp->view.cols = new_cols;
1026 ws.ws_col = tp->view.cols;
1114 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols,
1127 tp->input = kzalloc(tty3270_input_size(tp->view.cols), GFP_KERNEL | GFP_DMA);
1133 tp->prompt = kzalloc(tty3270_input_size(tp->view.cols), GFP_KERNEL);
1139 tp->rcl_lines = tty3270_alloc_recall(tp->view.cols);
1199 tty->winsize.ws_col = tp->view.cols;
1332 if (n > tp->view.cols - tp->cx)
1333 n = tp->view.cols - tp->cx;
1334 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n);
1338 if (line->len > tp->view.cols)
1339 line->len = tp->view.cols;
1380 tp->cx = min_t(int, tp->cx, tp->view.cols - 1);
1400 end = tp->view.cols;
1408 end = tp->view.cols;
1533 tp->cx = min_t(int, tp->view.cols - 1, max_cx);
1755 if (tp->cx >= tp->view.cols) {
1786 if (tp->cx >= tp->view.cols) {
2064 if (tp->cx >= tp->view.cols) {