| /netbsd/src/lib/libcurses/ |
| D | 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; in wresize() local 62 win, nlines, ncols); in wresize() 75 if (win->begx + ncols > win->orig->begx + win->orig->maxx) in wresize() 76 ncols = 0; in wresize() 77 if (ncols <= 0) in wresize() 78 ncols += win->orig->begx + win->orig->maxx - win->begx; in wresize() 79 if (ncols < 1) in wresize() 80 ncols = 1; in wresize() [all …]
|
| D | 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) in derwin() argument 61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx, in derwin() 71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx) in subpad() argument 74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx, in subpad() 104 newwin(int nlines, int ncols, int by, int bx) in newwin() argument 107 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE); in newwin() 115 newpad(int nlines, int ncols) in newpad() argument 118 if (nlines < 1 || ncols < 1) in newpad() [all …]
|
| D | tstp.c | 256 int nlines, ncols; in __restartwin() local 290 ncols = COLS; in __restartwin() 291 if (curscr->maxy != nlines || curscr->maxx != ncols) in __restartwin() 292 wresize(curscr, nlines, ncols); in __restartwin() 293 if (stdscr->maxy != nlines || stdscr->maxx != ncols) in __restartwin() 294 wresize(stdscr, nlines, ncols); in __restartwin()
|
| D | cur_hash.c | 68 __hash_line(const __LDATA *cp, int ncols) in __hash_line() argument 76 for (x = 0; x < ncols; x++) { in __hash_line() 85 return __hash(cp, (size_t)(ncols * __LDATASIZE)); in __hash_line()
|
| /netbsd/src/sys/dev/ic/ |
| D | pcdisplay_subr.c | 66 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol) * 2 in pcdisplay_cursor_init() 100 off = scr->cursorrow * scr->type->ncols + scr->cursorcol; in pcdisplay_cursor() 114 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol); in pcdisplay_cursor() 136 + row * scr->type->ncols + col; in pcdisplay_cursor() 163 off = row * scr->type->ncols + col; in pcdisplay_putchar() 166 if (__predict_false(off >= (scr->type->ncols * scr->type->nrows))) in pcdisplay_putchar() 179 pcdisplay_copycols(void *id, int row, int srccol, int dstcol, int ncols) in pcdisplay_copycols() argument 186 srcoff = dstoff = row * scr->type->ncols; in pcdisplay_copycols() 194 ncols); in pcdisplay_copycols() 196 memcpy(&scr->mem[dstoff], &scr->mem[srcoff], ncols * 2); in pcdisplay_copycols() [all …]
|
| D | vga_raster.c | 450 type->nrows * type->ncols * type->fontheight; in vga_raster_init_screen() 463 if (cpos < 0 || cpos >= type->nrows * type->ncols) in vga_raster_init_screen() 501 scr->cursorrow = cpos / type->ncols; in vga_raster_init_screen() 502 scr->cursorcol = cpos % type->ncols; in vga_raster_init_screen() 720 type->ncols * type->nrows, M_DEVBUF, M_WAITOK); in vga_raster_alloc_screen() 1048 off = (scr->cursorrow * scr->type->ncols + scr->cursorcol) + in vga_raster_cursor_init() 1072 off = scr->cursorrow * scr->type->ncols + scr->cursorcol; in vga_raster_cursor() 1094 off = scr->cursorrow * scr->type->ncols + scr->cursorcol; in vga_raster_cursor() 1132 off = row * scr->type->ncols + col; in vga_raster_putchar() 1134 if (__predict_false(off >= (scr->type->ncols * scr->type->nrows))) in vga_raster_putchar() [all …]
|
| D | hd44780_subr.c | 144 hlcd_copycols(void *id, int row, int srccol, int dstcol, int ncols) in hlcd_copycols() argument 148 if ((dstcol + ncols - 1) > hdscr->hlcd_sc->sc_cols) in hlcd_copycols() 149 ncols = hdscr->hlcd_sc->sc_cols - srccol; in hlcd_copycols() 154 ncols); in hlcd_copycols() 156 memmove(&hdscr->image[dstcol], &hdscr->image[srccol], ncols); in hlcd_copycols() 164 hlcd_erasecols(void *id, int row, int startcol, int ncols, long fillattr) in hlcd_erasecols() argument 168 if ((startcol + ncols) > hdscr->hlcd_sc->sc_cols) in hlcd_erasecols() 169 ncols = hdscr->hlcd_sc->sc_cols - startcol; in hlcd_erasecols() 173 ' ', ncols); in hlcd_erasecols() 175 memset(&hdscr->image[startcol], ' ', ncols); in hlcd_erasecols() [all …]
|
| D | vga.c | 455 scr->maxdispoffset = 0x8000 - type->nrows * type->ncols * 2; in vga_init_screen() 464 if (cpos < 0 || cpos >= type->nrows * type->ncols) in vga_init_screen() 487 scr->pcs.cursorrow = cpos / type->ncols; in vga_init_screen() 488 scr->pcs.cursorcol = cpos % type->ncols; in vga_init_screen() 877 malloc(scr1->pcs.type->ncols * scr1->pcs.type->nrows * 2, in vga_alloc_screen() 885 scr->pcs.mem = malloc(type->ncols * type->nrows * 2, in vga_alloc_screen() 1039 oldtype->ncols * oldtype->nrows); in vga_doswitch() 1057 scr->pcs.dispoffset, scr->pcs.mem, type->ncols * type->nrows); in vga_doswitch() 1136 int ncols = scr->pcs.type->ncols; in vga_copyrows() local 1139 srcoff = srcrow * ncols + 0; in vga_copyrows() [all …]
|
| /netbsd/src/usr.bin/sort/ |
| D | init.c | 83 int ncols = 0; variable 101 p = realloc(clist, (ncols + 2) * sizeof(*clist)); in insertcol() 105 memset(&clist[ncols], 0, sizeof(clist[ncols])); in insertcol() 107 for (i = 0; i < ncols; i++) in insertcol() 111 memmove(clist+i+1, clist+i, sizeof(COLDESC)*(ncols-i)); in insertcol() 113 ncols++; in insertcol() 116 for (i = 0; i < ncols; i++) in insertcol() 120 memmove(clist+i+1, clist+i,sizeof(COLDESC)*(ncols-i)); in insertcol() 122 ncols++; in insertcol() 135 fldtab[0].tcol.p = clist + ncols - 1; in fldreset()
|
| /netbsd/src/sys/dev/wscons/ |
| D | wsemul_dumb.c | 74 u_int nrows, ncols, crow, ccol; member 91 edp->ncols = type->ncols; in wsemul_dumb_cnattach() 114 edp->ncols = type->ncols; in wsemul_dumb_attach() 153 edp->ncols - edp->ccol - 1); in wsemul_dumb_output() 177 if (edp->ccol < edp->ncols) in wsemul_dumb_output()
|
| D | wsemul_sun.c | 84 u_int nrows, ncols, crow, ccol; member 112 #define COLS_LEFT (edp->ncols - edp->ccol - 1) 128 edp->ncols = type->ncols; in wsemul_sun_cnattach() 189 edp->ncols = type->ncols; in wsemul_sun_attach() 280 if (edp->ccol < edp->ncols) in wsemul_sun_output_normal() 350 if (dst < edp->ncols) { in wsemul_sun_control() 352 src, dst, edp->ncols - dst); in wsemul_sun_control() 380 edp->ccol = uimin(NORMALIZE_ARG(0), edp->ncols) - 1; in wsemul_sun_control() 422 if (src < edp->ncols) { in wsemul_sun_control() 424 src, dst, edp->ncols - src); in wsemul_sun_control() [all …]
|
| D | vt100_base.h | 35 u_int nrows, ncols, crow, ccol; member 83 if ((d)->ccol > ((d)->ncols >> 1) - 1) \ 84 (d)->ccol = ((d)->ncols >> 1) - 1; \ 88 #define NCOLS(d) ((d)->ncols >> (d)->dw)
|
| D | wsemul_vt100.c | 152 vd->ncols = type->ncols; in wsemul_vt100_init() 301 KASSERT(type->ncols >= 0); in wsemul_vt100_resize() 303 KASSERT(type->ncols <= 1024); in wsemul_vt100_resize() 306 edp->bd.ncols = MAX(0, MIN(type->ncols, 1024)); in wsemul_vt100_resize() 350 memset(vd->tabs, 0, vd->ncols); in wsemul_vt100_reset() 351 for (i = 8; i < vd->ncols; i += 8) in wsemul_vt100_reset() 918 for (i = 0; i < vd->ncols / 2; i++) in wsemul_vt100_output_esc_hash() 923 i, vd->ncols - i, in wsemul_vt100_output_esc_hash() 933 for (i = vd->ncols / 2 - 1; i >= 0; i--) in wsemul_vt100_output_esc_hash() 937 for (i = 0; i < vd->ncols / 2; i++) in wsemul_vt100_output_esc_hash() [all …]
|
| D | wsemul_vt100_subr.c | 174 0, vd->ncols, in wsemul_vt100_el() 336 for (i = 0; i < vd->ncols; i++) in wsemul_vt100_handle_csi() 424 vd->ccol = uimin(DEF1_ARG(vd, 0) - 1, vd->ncols -1); in wsemul_vt100_handle_csi() 507 memset(vd->tabs, 0, vd->ncols); in wsemul_vt100_handle_csi() 603 vd->nrows, vd->ncols); in wsemul_vt100_handle_csi() 785 KASSERT(vd->ncols <= 1024); in wsemul_vt100_handle_dcs() 786 memset(vd->tabs, 0, vd->ncols); in wsemul_vt100_handle_dcs() 796 pos * 10 > vd->ncols - c0) { in wsemul_vt100_handle_dcs() 805 KASSERT(pos <= vd->ncols); in wsemul_vt100_handle_dcs() 818 KASSERT(pos <= vd->ncols); in wsemul_vt100_handle_dcs()
|
| D | wsdisplay_vcons.c | 528 scr->scr_type->ncols = ri->ri_cols; in vcons_load_font() 907 t->ncols = scr->scr_ri.ri_cols; in vcons_alloc_screen() 979 vcons_copycols_buffer(void *cookie, int row, int srccol, int dstcol, int ncols) in vcons_copycols_buffer() argument 988 ncols * sizeof(long)); in vcons_copycols_buffer() 990 ncols * sizeof(uint32_t)); in vcons_copycols_buffer() 996 vcons_copycols(void *cookie, int row, int srccol, int dstcol, int ncols) in vcons_copycols() argument 1001 vcons_copycols_buffer(cookie, row, srccol, dstcol, ncols); in vcons_copycols() 1012 ncols); in vcons_copycols() 1019 vcons_copycols_noread(void *cookie, int row, int srccol, int dstcol, int ncols) in vcons_copycols_noread() argument 1039 for (c = dstcol; c < (dstcol + ncols); c++) { in vcons_copycols_noread() [all …]
|
| D | wscons_rops.c | 148 rcons_copycols(void *id, int row, int srccol, int dstcol, int ncols) in rcons_copycols() argument 156 nx = rc->rc_font->width * ncols; in rcons_copycols() 167 rcons_erasecols(void *id, int row, int startcol, int ncols, long fillattr) in rcons_erasecols() argument 174 nx = rc->rc_font->width * ncols; in rcons_erasecols()
|
| /netbsd/src/sys/dev/isa/ |
| D | ega.c | 346 scr->maxdispoffset = 0x8000 - type->nrows * type->ncols * 2; in ega_init_screen() 353 if (cpos < 0 || cpos >= type->nrows * type->ncols) in ega_init_screen() 368 scr->pcs.cursorrow = cpos / type->ncols; in ega_init_screen() 369 scr->pcs.cursorcol = cpos % type->ncols; in ega_init_screen() 595 malloc(type->ncols * type->nrows * 2, M_DEVBUF, M_WAITOK); in ega_alloc_screen() 606 scr->pcs.mem = malloc(type->ncols * type->nrows * 2, in ega_alloc_screen() 709 oldtype->ncols * oldtype->nrows); in ega_doswitch() 728 type->ncols * type->nrows); in ega_doswitch() 838 int ncols = scr->pcs.type->ncols; in ega_copyrows() local 841 srcoff = srcrow * ncols + 0; in ega_copyrows() [all …]
|
| /netbsd/src/external/bsd/openldap/dist/servers/slapd/back-sql/ |
| D | sql-wrap.c | 142 rc = SQLNumResultCols( sth, &row->ncols ); in backsql_BindRowAsStrings_x() 159 "ncols=%d\n", (int)row->ncols ); in backsql_BindRowAsStrings_x() 162 row->col_names = (BerVarray)ber_memcalloc_x( row->ncols + 1, in backsql_BindRowAsStrings_x() 168 row->col_prec = (UDWORD *)ber_memcalloc_x( row->ncols, in backsql_BindRowAsStrings_x() 174 row->col_type = (SQLSMALLINT *)ber_memcalloc_x( row->ncols, in backsql_BindRowAsStrings_x() 180 row->cols = (char **)ber_memcalloc_x( row->ncols + 1, in backsql_BindRowAsStrings_x() 186 row->value_len = (SQLLEN *)ber_memcalloc_x( row->ncols, in backsql_BindRowAsStrings_x() 211 for ( i = 0; i < row->ncols; i++ ) { in backsql_BindRowAsStrings_x()
|
| /netbsd/src/usr.sbin/sunlabel/ |
| D | sunlabel.c | 971 int ncols; in screen_columns() local 982 ncols = 80; in screen_columns() 988 ncols = n; in screen_columns() 993 ncols = wsz.ws_col; in screen_columns() 997 ncols = tsz.ts_cols; in screen_columns() 1000 if (ncols < 20) in screen_columns() 1001 ncols = 20; in screen_columns() 1002 return ncols; in screen_columns() 1019 size_t ncols; in print_part() local 1083 ncols = screen_columns() - 2; in print_part() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/gdb/ |
| D | osdata.c | 200 int ncols = 0; in info_osdata() local 216 ncols = last->columns.size (); in info_osdata() 232 --ncols; in info_osdata() 236 ui_out_emit_table table_emitter (uiout, ncols, nrows, "OSDataTable"); in info_osdata() 240 if (ncols == 0) in info_osdata()
|
| /netbsd/src/sys/dev/hpc/ |
| D | hpcfb.c | 409 hpcfb_console_wsscreen.ncols = hpcfb_console_dc.dc_cols; in hpcfb_cnattach() 759 hpcfb_stdscreen.ncols = dc->dc_cols; in hpcfb_alloc_screen() 1067 int ncols) in hpcfb_tv_copycols() argument 1084 memcpy(dvc, svc, ncols*sizeof(struct hpcfb_vchar)); in hpcfb_tv_copycols() 1085 if (vscn[row].maxcol < srccol+ncols-1) in hpcfb_tv_copycols() 1086 vscn[row].maxcol = srccol+ncols-1; in hpcfb_tv_copycols() 1087 if (vscn[row].maxcol < dstcol+ncols-1) in hpcfb_tv_copycols() 1088 vscn[row].maxcol = dstcol+ncols-1; in hpcfb_tv_copycols() 1096 hpcfb_copycols(void *cookie, int row, int srccol, int dstcol, int ncols) in hpcfb_copycols() argument 1105 hpcfb_tv_copycols(dc, row, srccol, dstcol, ncols); in hpcfb_copycols() [all …]
|
| /netbsd/src/sys/arch/amiga/dev/ |
| D | amidisplaycc.c | 277 int ncols; member 461 adp->gfxwidth = amidisplaycc_screentab[0].wsdescr.ncols * in amidisplaycc_attach() 509 if (row < 0 || col < 0 || row >= scr->nrows || col >= scr->ncols) in amidisplaycc_cursor() 605 if (row < 0 || col < 0 || row >= scr->nrows || col >= scr->ncols) in amidisplaycc_putchar() 702 amidisplaycc_copycols(void *screen, int row, int srccol, int dstcol, int ncols) in amidisplaycc_copycols() argument 717 if (srccol < 0 || srccol + ncols > scr->ncols || in amidisplaycc_copycols() 718 dstcol < 0 || dstcol + ncols > scr->ncols || in amidisplaycc_copycols() 734 for (i = ncols - 1 ; i >= 0 ; i--) in amidisplaycc_copycols() 739 for (i = 0 ; i < ncols ; i++) in amidisplaycc_copycols() 753 amidisplaycc_erasecols(void *screen, int row, int startcol, int ncols, in amidisplaycc_erasecols() argument [all …]
|
| /netbsd/src/sys/arch/playstation2/ee/ |
| D | gsfb.c | 236 .ncols = 80, 451 _gsfb_copycols(void *cookie, int row, int srccol, int dstcol, int ncols) in _gsfb_copycols() argument 461 for (i = ncols - 1; i >= 0; i--) { in _gsfb_copycols() 466 for (i = 0; i < ncols; i++) { in _gsfb_copycols() 474 _gsfb_erasecols(void *cookie, int row, int startcol, int ncols, long attr) in _gsfb_erasecols() argument 478 for (i = 0; i < ncols; i++) in _gsfb_erasecols() 511 for (i = 0; i < sc->sc_screen->ncols; i++) in _gsfb_eraserows()
|
| /netbsd/src/usr.bin/column/ |
| D | column.c | 218 char **cols, **ncols; in maketbl() local 227 ncols = erealloc(cols, (maxcols + in maketbl() 228 DEFCOLS) * sizeof(*ncols)); in maketbl() 231 cols = ncols; in maketbl()
|
| /netbsd/src/sys/dev/pci/ |
| D | wcfb.c | 317 sc->sc_defaultscreen_descr.ncols = ri->ri_cols; in wcfb_attach() 622 wcfb_copycols(void *cookie, int row, int srccol, int dstcol, int ncols) in wcfb_copycols() argument 632 sc->copycols(ri, row, srccol, dstcol, ncols); in wcfb_copycols() 637 memcpy(to0, from, ri->ri_font->fontwidth * ncols); in wcfb_copycols() 638 memcpy(to1, from, ri->ri_font->fontwidth * ncols); in wcfb_copycols() 646 wcfb_erasecols(void *cookie, int row, int startcol, int ncols, long fillattr) in wcfb_erasecols() argument 656 sc->erasecols(ri, row, startcol, ncols, fillattr); in wcfb_erasecols() 662 ri->ri_font->fontwidth * ncols); in wcfb_erasecols() 664 ri->ri_font->fontwidth * ncols); in wcfb_erasecols() 905 wcfb_acc_copycols(void *cookie, int row, int srccol, int dstcol, int ncols) in wcfb_acc_copycols() argument [all …]
|