Lines Matching refs:cols
203 static int tty3270_input_size(int cols)
205 return cols * 2 - 11;
230 tp->view.cols * 2 - TTY3270_STATUS_AREA_SIZE - 2);
238 if (count < tp->view.cols * 2 - 11)
349 if (line->len < tp->view.cols)
364 if (line->len < tp->view.cols)
692 len = tty3270_input_size(tp->view.cols) - 6 - rrq->rescnt;
758 raw3270_request_set_data(rrq, tp->input, tty3270_input_size(tp->view.cols));
893 unsigned int cols, int *allocated_out)
903 screen[lines].cells = kcalloc(cols, sizeof(struct tty3270_cell), GFP_KERNEL);
917 static char **tty3270_alloc_recall(int cols)
926 lines[i] = kcalloc(1, tty3270_input_size(cols) + 1, GFP_KERNEL);
1008 tp->view.cols = new_cols;
1031 ws.ws_col = tp->view.cols;
1120 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols,
1133 prompt_sz = tty3270_input_size(tp->view.cols);
1147 tp->rcl_lines = tty3270_alloc_recall(tp->view.cols);
1207 tty->winsize.ws_col = tp->view.cols;
1340 if (n > tp->view.cols - tp->cx)
1341 n = tp->view.cols - tp->cx;
1342 k = min_t(int, line->len - tp->cx, tp->view.cols - tp->cx - n);
1346 if (line->len > tp->view.cols)
1347 line->len = tp->view.cols;
1388 tp->cx = min_t(int, tp->cx, tp->view.cols - 1);
1408 end = tp->view.cols;
1416 end = tp->view.cols;
1541 tp->cx = min_t(int, tp->view.cols - 1, max_cx);
1763 if (tp->cx >= tp->view.cols) {
1794 if (tp->cx >= tp->view.cols) {
2072 if (tp->cx >= tp->view.cols) {