/src/games/boggle/boggle/ |
prtable.c | 71 int a, b, cols, loc, maxlen, nrows, z; local in function:prtable 78 cols = d_cols; 80 cols = width / maxlen; 81 if (cols == 0) 82 cols = NCOLS; 83 nrows = (num - 1) / cols + 1;
|
/src/sys/arch/amiga/dev/ |
ite_rh.c | 107 ip->cols = md->TX; 129 int pos = ip->curx + ip->cury * ip->cols; 155 RZ3AlphaErase(ip->grf, 0, top, bottom - top, ip->cols); 159 RZ3AlphaCopy(ip->grf, 0, top+lines, 0, top, ip->cols, bottom-top-lines+1); 160 RZ3AlphaErase(ip->grf, 0, bottom - lines + 1, ip->cols, lines); 173 RZ3AlphaErase(ip->grf, 0, top, bottom - top, ip->cols); 177 RZ3AlphaCopy(ip->grf, 0, top, 0, top+lines, ip->cols, bottom-top-lines+1); 178 RZ3AlphaErase(ip->grf, 0, top, ip->cols, lines); 201 fb += 4 * (dy * ip->cols + dx); 230 memcpy(fb + (sy - count) * ip->cols, fb + sy * ip->cols [all...] |
ite_cl.c | 112 ip->cols = md->cols; 126 flag = ip->curx + ip->cury * ip->cols; 165 cp = fb + ((dy * ip->cols) + dx); 187 (sy * ip->cols) + sx; 188 src = dst + (ip->rows*ip->cols); 206 fb = (unsigned char*)__UNVOLATILE(ip->grf->g_fbkva) + sy * ip->cols; 211 memcpy(fb - (count * ip->cols), fb, 212 (ip->bottom_margin + 1 - sy) * ip->cols); 215 memcpy(fb + (count * ip->cols), fb [all...] |
ite_et.c | 115 ip->cols = md->cols; 129 flag = ip->curx + ip->cury * ip->cols; 170 cp = fb + ((dy * ip->cols) + dx); 192 dst = (volatile unsigned char*)ip->grf->g_fbkva + (sy * ip->cols) + sx; 193 src = dst + (ip->rows*ip->cols); 212 fb = (volatile unsigned char*)ip->grf->g_fbkva + sy * ip->cols; 217 etbcopy(fb, fb - (count * ip->cols), 218 (ip->bottom_margin + 1 - sy) * ip->cols); 221 etbcopy(fb, fb + (count * ip->cols), [all...] |
ite_rt.c | 111 ip->cols = md->TX; 128 int pos = ip->curx + ip->cury * ip->cols; 158 retina_clear (ip, top, 0, bottom - top, ip->cols); 286 retina_clear (ip, top, 0, bottom - top, ip->cols); 409 fb += 4 * (dy * ip->cols + dx); 422 fb += 2 * (sy * ip->cols + sx); 427 fb += 2 * ip->cols; 449 memcpy(fb + (sy - count) * ip->cols, fb + sy * ip->cols, 450 4 * (ip->bottom_margin - sy + 1) * ip->cols); [all...] |
ite_cv.c | 144 ip->cols = md->cols; 154 cv_rowc = malloc(sizeof(short) * (ip->rows + 1) * (ip->cols + 2), 164 cv_rowc[i] = i * ip->cols; 167 for (i = 0; i < ip->rows * ip->cols; i++) 172 for (i = 0; i < ip->rows * ip->cols; i++) { 189 flag = ip->curx + ip->cury * ip->cols; 239 (((sy * ip->cols) + sx) << 2)); 246 dst = &console_buffer[(sy * ip->cols) + sx]; 304 len = ip->cols - (sx + count) [all...] |
ite_cv3d.c | 144 ip->cols = md->cols; 154 cv3d_rowc = malloc(sizeof(short) * (ip->rows + 1) * (ip->cols + 2), 164 cv3d_rowc[i] = i * ip->cols; 167 for (i = 0; i < ip->rows * ip->cols; i++) 172 for (i = 0; i < ip->rows * ip->cols; i++) { 189 flag = ip->curx + ip->cury * ip->cols; 239 (((sy * ip->cols) + sx) << 2)); 246 dst = &console_buffer[(sy * ip->cols) + sx]; 304 len = ip->cols - (sx + count) [all...] |
ite_ul.c | 200 ip->cols = ip->grf->g_display.gd_dwidth / ip->ftwidth; 204 ulowell_clear(ip, 0, 0, ip->rows, ip->cols); 275 ip->cursorx = uimin(ip->curx, ip->cols-1); 318 ulowell_clear (ip, top, 0, bottom - top, ip->cols); 325 cmd[3] = ip->cols * ip->ftwidth; /* w */ 331 ulowell_clear(ip, bottom-lines+1, 0, lines-1, ip->cols); 353 ulowell_clear (ip, top, 0, bottom - top, ip->cols); 360 cmd[3] = ip->cols * ip->ftwidth; /* w */ 366 ulowell_clear(ip, top, 0, lines, ip->cols); 436 cmd[3] = (ip->cols - sx - count) * ip->ftwidth [all...] |
ite.c | 225 printf(": rows %d cols %d", ip->rows, ip->cols); 468 tp->t_winsize.ws_col = ip->cols; 724 memset(ip->tabs, 0, ip->cols); 725 for (i = 0; i < ip->cols; i++) 1025 for (i = 0; i < ip->cols; i++) 1027 attrclr(ip, 0, 0, ip->rows, ip->cols); 1046 n = uimin(n, ip->cols - ip->curx); 1047 if (n < ip->cols - ip->curx) 1051 1, ip->cols - ip->curx - n) [all...] |
/src/usr.bin/tabs/ |
tabs.c | 87 int i, n, inc = 8, stops[NSTOPS], nstops, last, cols, margin = 0; local in function:main 207 cols = 0; 213 0 <= cols && cols <= INT_MAX) 214 cols = (int)num; 216 if (cols == 0) { 218 cols = ws.ws_col; 220 cols = tigetnum("cols"); 221 if (cols == 0) [all...] |
/src/sys/dev/ic/ |
monitors.h | 38 u_int16_t cols; /* Columns */ member in struct:monitor
|
/src/usr.bin/column/ |
column.c | 206 int cols, *len; member in struct:_tbl 218 char **cols, **ncols; local in function:maketbl 221 cols = ecalloc((maxcols = DEFCOLS), sizeof(*cols)); 225 (cols[coloff] = strtok(p, separator)) != NULL; p = NULL) 227 ncols = erealloc(cols, (maxcols + 231 cols = ncols; 233 (void)memset(cols + maxcols, 0, 234 DEFCOLS * sizeof(*cols)); 241 for (t->cols = coloff; --coloff >= 0;) [all...] |
/src/games/rain/ |
rain.c | 62 static long cols; variable in typeref:typename:long 108 xpos[j] = random() % cols + 2; 116 if (is_term_resized(LINES, COLS)) { 117 resizeterm(LINES, COLS); 120 x = random() % cols + 2; 156 cols = COLS - 4; 158 if (cols == 0) cols++;
|
/src/lib/libform/ |
post.c | 44 int rows, cols, status; local in function:post_form 58 if (scale_form(form, &rows, &cols) != E_OK) 62 || (cols > getmaxx(form->scrwin)))) {
|
field.c | 135 if (fp->buffers[i].length > fp->cols) 136 fp->buffers[i].string[fp->cols] = '\0'; 170 if (fp->buffers[i].length > fp->cols) 171 fp->buffers[i].string[fp->cols] = '\0'; 274 field_info(FIELD *field, int *rows, int *cols, int *frow, int *fcol, 281 *cols = field->cols; 301 *dcols = field->cols; 399 if (((field->opts & O_STATIC) == O_STATIC) && (len > field->cols) 401 len = field->cols; [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/scripts/ |
gen_dynamic_list.py | 77 cols = line.split(' ') 78 if len(cols) == 3 and cols[1] in func_symbols : 79 functions.append(cols[2])
|
/src/lib/libmenu/ |
post.c | 68 if ((menu->cols * menu->max_item_width + menu->cols - 1) > maxx)
|
menu.c | 215 set_menu_format(MENU *param_menu, int rows, int cols) 220 menu->cols = cols; 230 * Return the max number of rows and cols that may be displayed. 233 menu_format(MENU *param_menu, int *rows, int *cols) 238 *cols = menu->cols; 543 scale_menu(MENU *param_menu, int *rows, int *cols) 554 *cols = menu->cols * menu->max_item_width [all...] |
/src/sys/dev/pci/bktr/ |
bktr_core.c | 423 static void yuvpack_prog(bktr_ptr_t bktr, char i_flag, int cols, 425 static void yuv422_prog(bktr_ptr_t bktr, char i_flag, int cols, 427 static void yuv12_prog(bktr_ptr_t bktr, char i_flag, int cols, 429 static void rgb_prog(bktr_ptr_t bktr, char i_flag, int cols, 431 static void rgb_vbi_prog(bktr_ptr_t bktr, char i_flag, int cols, 577 bktr->cols = 640; 1206 count = bktr->rows * bktr->cols * 1815 bktr->cols = geo->columns; 1872 x_size must be greater than or equal to 1.666*METEORSETGEO width (cols) 1875 x_size must be greater than or equal to 1.666*METEORSETGEO width (cols) 3447 int rows, cols, interlace; local in function:build_dma_prog [all...] |
/src/sys/arch/atari/dev/ |
ite.c | 233 aprint_normal(": %dx%d", sc->rows, sc->cols); 437 tp->t_winsize.ws_col = sc->cols; 745 memset(sc->tabs, 0, sc->cols); 746 for (i = 0; i < sc->cols; i++) 1088 for (i = 0; i < sc->cols; i++) 1090 attrclr(sc, 0, 0, sc->rows, sc->cols); 1110 n = uimin(n, sc->cols - sc->curx); 1111 if (n < sc->cols - sc->curx) { 1114 1, sc->cols - sc->curx - n); 1115 attrclr(sc, sc->cury, sc->cols - n, 1, n) [all...] |
ite_et.c | 347 et_save->fb_size = ip->cols * ip->rows; 373 ip->cols = view->display.width / ip->font.width; 392 et_save->fb_size = ip->cols * ip->rows; 394 et_clear(ip, 0, 0, ip->rows, ip->cols); 419 ws.ws_col = ip->cols; 470 cpos += ip->curx + ip->cury * ip->cols; 510 cp[(dy * ip->cols) + dx] = (c << 8) | attr; 524 dest = (u_short *)v->bitmap->plane + (sy * ip->cols) + sx; 537 fb = (u_short*)v->bitmap->plane + sy * ip->cols; 541 dst = fb - count * ip->cols; [all...] |
/src/usr.bin/resize/ |
resize.c | 230 "Usage: %s [rows cols]\n" : 231 "Usage: %s [-v] [-u] [-c] [-s [rows cols]]\n", myname); 327 int rows, cols; local in function:main 507 if (sscanf(buf, size[emu], &rows, &cols) != 2) { 523 setup_winsize(ts, rows, cols, 0, 0); 531 setup_winsize(ts, rows, cols, 533 scaled(TTYSIZE_COLS(ts), cols, ts.ws_xpixel)); 563 sprintf(newtc + i, "%d", cols); 592 setname, cols, rows); 606 setname, cols, rows) [all...] |
/src/lib/libedit/ |
filecomplete.c | 546 size_t line, lines, col, cols, thisguy; local in function:fn_display_match_list 559 cols = (size_t)screenwidth / (width + 2); 560 if (cols == 0) 561 cols = 1; 564 lines = (num + cols - 1) / cols; 573 for (col = 0; col < cols; col++) {
|
/src/sys/arch/x68k/dev/ |
itevar.h | 77 short rows, cols; member in struct:ite_softc 138 (ip->attrbuf + ((y) * ip->cols) + (x)) 141 memset(ip->attrbuf + ((sy) * ip->cols) + (sx), 0, (h) * (w)) 144 memcpy(ip->attrbuf + ((dy) * ip->cols) + (dx), \ 145 ip->attrbuf + ((sy) * ip->cols) + (sx), \
|
ite.c | 229 aprint_normal(": rows %d cols %d", ip->rows, ip->cols); 405 tp->t_winsize.ws_col = ip->cols; 602 for (i = 0; i < ip->cols; i++) 605 SUBR_CLEAR(ip, 0, 0, ip->rows, ip->cols); 606 attrclr(ip, 0, 0, ip->rows, ip->cols); 938 for (i = 0; i < ip->cols; i++) 940 attrclr(ip, 0, 0, ip->rows, ip->cols); 959 n = uimin(n, ip->cols - ip->curx); 960 if (n < ip->cols - ip->curx) [all...] |