HomeSort by: relevance | last modified time | path
    Searched refs:ncols (Results 1 - 25 of 118) sorted by relevancy

1 2 3 4 5

  /src/lib/libcurses/
resize.c 45 static int __resizeterm(WINDOW *win, int nlines, int ncols);
46 static int __resizewin(WINDOW *win, int nlines, int ncols);
56 int ncols = req_ncols; local in function:wresize
62 win, nlines, ncols);
75 if (win->begx + ncols > win->orig->begx + win->orig->maxx)
76 ncols = 0;
77 if (ncols <= 0)
78 ncols += win->orig->begx + win->orig->maxx - win->begx;
79 if (ncols < 1)
80 ncols = 1
    [all...]
newwin.c 47 static WINDOW *__makenew(SCREEN *screen, int nlines, int ncols, int by,
49 static WINDOW *__subwin(WINDOW *orig, int nlines, int ncols, int by, int bx,
58 derwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx)
74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
104 newwin(int nlines, int ncols, int by, int bx)
107 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE);
115 newpad(int nlines, int ncols)
118 if (nlines < 1 || ncols < 1
    [all...]
cur_hash.c 68 __hash_line(const __LDATA *cp, int ncols)
76 for (x = 0; x < ncols; x++) {
85 return __hash(cp, (size_t)(ncols * __LDATASIZE));
tstp.c 256 int nlines, ncols; local in function:__restartwin
290 ncols = COLS;
291 if (curscr->maxy != nlines || curscr->maxx != ncols)
292 wresize(curscr, nlines, ncols);
293 if (stdscr->maxy != nlines || stdscr->maxx != ncols)
294 wresize(stdscr, nlines, ncols);
  /src/sys/dev/ic/
pcdisplay_subr.c 66 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol) * 2
100 off = scr->cursorrow * scr->type->ncols + scr->cursorcol;
114 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol);
136 + row * scr->type->ncols + col;
163 off = row * scr->type->ncols + col;
166 if (__predict_false(off >= (scr->type->ncols * scr->type->nrows)))
179 pcdisplay_copycols(void *id, int row, int srccol, int dstcol, int ncols)
186 srcoff = dstoff = row * scr->type->ncols;
194 ncols);
196 memcpy(&scr->mem[dstoff], &scr->mem[srcoff], ncols * 2)
227 int ncols = scr->type->ncols; local in function:pcdisplay_copyrows
    [all...]
vga_raster.c 450 type->nrows * type->ncols * type->fontheight;
463 if (cpos < 0 || cpos >= type->nrows * type->ncols)
501 scr->cursorrow = cpos / type->ncols;
502 scr->cursorcol = cpos % type->ncols;
720 type->ncols * type->nrows, M_DEVBUF, M_WAITOK);
1048 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol) +
1072 off = scr->cursorrow * scr->type->ncols + scr->cursorcol;
1094 off = scr->cursorrow * scr->type->ncols + scr->cursorcol;
1132 off = row * scr->type->ncols + col;
1134 if (__predict_false(off >= (scr->type->ncols * scr->type->nrows))
1307 int ncols; local in function:vga_raster_copyrows
    [all...]
hd44780_subr.c 144 hlcd_copycols(void *id, int row, int srccol, int dstcol, int ncols)
148 if ((dstcol + ncols - 1) > hdscr->hlcd_sc->sc_cols)
149 ncols = hdscr->hlcd_sc->sc_cols - srccol;
154 ncols);
156 memmove(&hdscr->image[dstcol], &hdscr->image[srccol], ncols);
164 hlcd_erasecols(void *id, int row, int startcol, int ncols, long fillattr)
168 if ((startcol + ncols) > hdscr->hlcd_sc->sc_cols)
169 ncols = hdscr->hlcd_sc->sc_cols - startcol;
173 ' ', ncols);
175 memset(&hdscr->image[startcol], ' ', ncols);
183 int ncols = hdscr->hlcd_sc->sc_cols; local in function:hlcd_copyrows
195 int ncols = hdscr->hlcd_sc->sc_cols; local in function:hlcd_eraserows
    [all...]
vga.c 455 scr->maxdispoffset = 0x8000 - type->nrows * type->ncols * 2;
464 if (cpos < 0 || cpos >= type->nrows * type->ncols)
487 scr->pcs.cursorrow = cpos / type->ncols;
488 scr->pcs.cursorcol = cpos % type->ncols;
877 malloc(scr1->pcs.type->ncols * scr1->pcs.type->nrows * 2,
885 scr->pcs.mem = malloc(type->ncols * type->nrows * 2,
1039 oldtype->ncols * oldtype->nrows);
1057 scr->pcs.dispoffset, scr->pcs.mem, type->ncols * type->nrows);
1136 int ncols = scr->pcs.type->ncols; local in function:vga_copyrows
    [all...]
  /src/usr.bin/sort/
init.c 83 int ncols = 0; variable in typeref:typename:int
101 p = realloc(clist, (ncols + 2) * sizeof(*clist));
105 memset(&clist[ncols], 0, sizeof(clist[ncols]));
107 for (i = 0; i < ncols; i++)
111 memmove(clist+i+1, clist+i, sizeof(COLDESC)*(ncols-i));
113 ncols++;
116 for (i = 0; i < ncols; i++)
120 memmove(clist+i+1, clist+i,sizeof(COLDESC)*(ncols-i));
122 ncols++
    [all...]
fields.c 110 for (i = 0; i < ncols; i++) {
127 for (; i <= ncols; i++)
185 lineend = clist[ncols].end;
  /src/sys/dev/wscons/
vt100_base.h 35 u_int nrows, ncols, crow, ccol; member in struct:vt100base_data
83 if ((d)->ccol > ((d)->ncols >> 1) - 1) \
84 (d)->ccol = ((d)->ncols >> 1) - 1; \
88 #define NCOLS(d) ((d)->ncols >> (d)->dw)
89 #define COLS_LEFT(d) (NCOLS(d) - (d)->ccol - 1)
wsemul_dumb.c 74 u_int nrows, ncols, crow, ccol; member in struct:wsemul_dumb_emuldata
91 edp->ncols = type->ncols;
114 edp->ncols = type->ncols;
153 edp->ncols - edp->ccol - 1);
177 if (edp->ccol < edp->ncols)
wsemul_sun.c 84 u_int nrows, ncols, crow, ccol; member in struct:wsemul_sun_emuldata
112 #define COLS_LEFT (edp->ncols - edp->ccol - 1)
128 edp->ncols = type->ncols;
189 edp->ncols = type->ncols;
280 if (edp->ccol < edp->ncols)
350 if (dst < edp->ncols) {
352 src, dst, edp->ncols - dst);
380 edp->ccol = uimin(NORMALIZE_ARG(0), edp->ncols) - 1
    [all...]
wscons_rops.c 148 rcons_copycols(void *id, int row, int srccol, int dstcol, int ncols)
156 nx = rc->rc_font->width * ncols;
167 rcons_erasecols(void *id, int row, int startcol, int ncols, long fillattr)
174 nx = rc->rc_font->width * ncols;
wsemul_vt100.c 152 vd->ncols = type->ncols;
301 KASSERT(type->ncols >= 0);
303 KASSERT(type->ncols <= 1024);
306 edp->bd.ncols = MAX(0, MIN(type->ncols, 1024));
350 memset(vd->tabs, 0, vd->ncols);
351 for (i = 8; i < vd->ncols; i += 8)
485 for (n = vd->ccol + 1; n < NCOLS(vd) - 1; n++)
918 for (i = 0; i < vd->ncols / 2; i++
    [all...]
wsdisplay_vcons.c 528 scr->scr_type->ncols = ri->ri_cols;
907 t->ncols = scr->scr_ri.ri_cols;
979 vcons_copycols_buffer(void *cookie, int row, int srccol, int dstcol, int ncols)
988 ncols * sizeof(long));
990 ncols * sizeof(uint32_t));
996 vcons_copycols(void *cookie, int row, int srccol, int dstcol, int ncols)
1001 vcons_copycols_buffer(cookie, row, srccol, dstcol, ncols);
1012 ncols);
1019 vcons_copycols_noread(void *cookie, int row, int srccol, int dstcol, int ncols)
1039 for (c = dstcol; c < (dstcol + ncols); c++)
    [all...]
  /src/sys/dev/isa/
ega.c 346 scr->maxdispoffset = 0x8000 - type->nrows * type->ncols * 2;
353 if (cpos < 0 || cpos >= type->nrows * type->ncols)
368 scr->pcs.cursorrow = cpos / type->ncols;
369 scr->pcs.cursorcol = cpos % type->ncols;
595 malloc(type->ncols * type->nrows * 2, M_DEVBUF, M_WAITOK);
606 scr->pcs.mem = malloc(type->ncols * type->nrows * 2,
709 oldtype->ncols * oldtype->nrows);
728 type->ncols * type->nrows);
838 int ncols = scr->pcs.type->ncols; local in function:ega_copyrows
    [all...]
  /src/usr.bin/column/
column.c 218 char **cols, **ncols; local in function:maketbl
227 ncols = erealloc(cols, (maxcols +
228 DEFCOLS) * sizeof(*ncols));
231 cols = ncols;
  /src/usr.sbin/sunlabel/
sunlabel.c 971 int ncols; local in function:screen_columns
982 ncols = 80;
988 ncols = n;
993 ncols = wsz.ws_col;
997 ncols = tsz.ts_cols;
1000 if (ncols < 20)
1001 ncols = 20;
1002 return ncols;
1019 size_t ncols; local in function:print_part
1083 ncols = screen_columns() - 2
    [all...]
  /src/sys/dev/hpc/
hpcfb.c 241 /* XXX: ncols/nrows will be filled in -- shouldn't, they are global */
409 hpcfb_console_wsscreen.ncols = hpcfb_console_dc.dc_cols;
759 hpcfb_stdscreen.ncols = dc->dc_cols;
1067 int ncols)
1084 memcpy(dvc, svc, ncols*sizeof(struct hpcfb_vchar));
1085 if (vscn[row].maxcol < srccol+ncols-1)
1086 vscn[row].maxcol = srccol+ncols-1;
1087 if (vscn[row].maxcol < dstcol+ncols-1)
1088 vscn[row].maxcol = dstcol+ncols-1;
1096 hpcfb_copycols(void *cookie, int row, int srccol, int dstcol, int ncols)
    [all...]
  /src/sys/arch/amiga/dev/
amidisplaycc.c 277 int ncols; member in struct:amidisplaycc_screen
461 adp->gfxwidth = amidisplaycc_screentab[0].wsdescr.ncols *
509 if (row < 0 || col < 0 || row >= scr->nrows || col >= scr->ncols)
605 if (row < 0 || col < 0 || row >= scr->nrows || col >= scr->ncols)
702 amidisplaycc_copycols(void *screen, int row, int srccol, int dstcol, int ncols)
717 if (srccol < 0 || srccol + ncols > scr->ncols ||
718 dstcol < 0 || dstcol + ncols > scr->ncols ||
734 for (i = ncols - 1 ; i >= 0 ; i--
    [all...]
mntva.c 88 int ncols);
89 static void mntva_erasecols(void *cookie, int row, int startcol, int ncols,
223 sc->sc_defaultscreen_descr.ncols = ri->ri_cols;
435 mntva_copycols(void *cookie, int row, int srccol, int dstcol, int ncols)
450 w = ri->ri_font->fontwidth * ncols;
458 mntva_erasecols(void *cookie, int row, int startcol, int ncols, long fillattr)
472 w = ri->ri_font->fontwidth * ncols;
  /src/sys/arch/evbmips/gdium/
gdium_genfb.c 95 gdium_stdscreen.ncols = ri->ri_cols;
  /src/sys/arch/evbppc/explora/dev/
fb_elb.c 244 stdscreen.ncols = ri->ri_cols;
420 fb_erasecols(void *v, int row, int startcol, int ncols, long attr)
427 ncols *= ri->ri_font->fontwidth;
429 s3_fill(fb, startcol, row, ncols, ri->ri_font->fontheight,
447 fb_copycols(void *v, int row, int srccol, int dstcol, int ncols)
455 ncols *= ri->ri_font->fontwidth;
458 ncols, ri->ri_font->fontheight, 0x0f);
  /src/sys/arch/playstation2/ee/
gsfb.c 236 .ncols = 80,
451 _gsfb_copycols(void *cookie, int row, int srccol, int dstcol, int ncols)
461 for (i = ncols - 1; i >= 0; i--) {
466 for (i = 0; i < ncols; i++) {
474 _gsfb_erasecols(void *cookie, int row, int startcol, int ncols, long attr)
478 for (i = 0; i < ncols; i++)
511 for (i = 0; i < sc->sc_screen->ncols; i++)

Completed in 51 milliseconds

1 2 3 4 5