| /freebsd-11-stable/share/examples/libvgl/ |
| HD | demo.c | 40 int y, xsize, ysize, i,j; in main() local 55 xsize=VGLDisplay->Xsize; in main() 65 VGLLine(VGLDisplay, 0, y, xsize-1, y, y/2 % 256); in main() 68 VGLLine(VGLDisplay, 0, 0, xsize-1, ysize-1, 63); in main() 69 VGLLine(VGLDisplay, 0, ysize-1, xsize-1, 0, 63); in main() 71 VGLLine(VGLDisplay, xsize-1, 0, xsize-1, ysize-1, 63); in main() 108 VGLBitmapCopy(VGLDisplay, rand()%xsize, rand()%ysize, in main() 109 VGLDisplay, rand()%xsize, rand()%ysize, in main() 110 rand()%xsize, rand()%ysize); in main() 111 VGLLine(VGLDisplay, rand()%xsize, rand()%ysize, in main() [all …]
|
| /freebsd-11-stable/sys/pc98/cbus/ |
| HD | sctermvar.h | 72 sc_vtb_ins(&scp->vtb, y*scp->xsize, n*scp->xsize, ch, attr); in sc_term_ins_line() 73 mark_for_update(scp, y*scp->xsize); in sc_term_ins_line() 74 mark_for_update(scp, scp->xsize*tail - 1); in sc_term_ins_line() 86 sc_vtb_delete(&scp->vtb, y*scp->xsize, n*scp->xsize, ch, attr); in sc_term_del_line() 87 mark_for_update(scp, y*scp->xsize); in sc_term_del_line() 88 mark_for_update(scp, scp->xsize*tail - 1); in sc_term_del_line() 98 if (n > scp->xsize - scp->xpos) in sc_term_ins_char() 99 n = scp->xsize - scp->xpos; in sc_term_ins_char() 100 count = scp->xsize - (scp->xpos + n); in sc_term_ins_char() 114 if (n > scp->xsize - scp->xpos) in sc_term_del_char() [all …]
|
| HD | scgdcrndr.c | 119 if (from + count > scp->xsize*scp->ysize) in gdc_txtdraw() 120 count = scp->xsize*scp->ysize - from; in gdc_txtdraw() 154 vidd_set_hw_cursor(scp->sc->adp, at%scp->xsize, in gdc_txtcursor() 155 at/scp->xsize); in gdc_txtcursor() 171 at = (y/scp->font_size - scp->yoff)*scp->xsize + x/8 - scp->xoff; in draw_txtmouse()
|
| HD | scterm-sck.c | 611 if (n > scp->xsize - scp->xpos) in scterm_scan_esc() 612 n = scp->xsize - scp->xpos; in scterm_scan_esc() 952 cnt = imin(len, scp->xsize - scp->xpos); in scterm_puts() 981 if (++scp->xpos >= scp->xsize) { in scterm_puts() 1007 cnt = imin(len, scp->xsize - scp->xpos); in scterm_puts() 1030 if (scp->xpos >= scp->xsize) { in scterm_puts() 1048 scp->xpos += scp->xsize - 1; in scterm_puts() 1058 if (scp->xpos >= scp->xsize) { in scterm_puts() 1061 scp->cursor_pos = scp->xsize * scp->ypos; in scterm_puts() 1068 scp->cursor_pos += scp->xsize; in scterm_puts()
|
| /freebsd-11-stable/contrib/libarchive/tar/test/ |
| HD | test_patterns.c | 127 int xsize; in DEFINE_TEST() local 137 xsize = sizeof(file_b1); in DEFINE_TEST() 147 xsize = sizeof(file_b2); in DEFINE_TEST() 151 xsize = sizeof(file_a); in DEFINE_TEST() 154 filex[xsize-3] = '0' + r / 10; in DEFINE_TEST() 155 filex[xsize-2] = '0' + r % 10; in DEFINE_TEST() 175 xsize = sizeof(file_d); in DEFINE_TEST() 178 xsize = sizeof(file_c); in DEFINE_TEST() 180 filex[xsize-3] = '0' + r / 10; in DEFINE_TEST() 181 filex[xsize-2] = '0' + r % 10; in DEFINE_TEST()
|
| /freebsd-11-stable/usr.sbin/bluetooth/bthidd/ |
| HD | kbd.c | 321 #define xsize ((int32_t)(sizeof(x)/sizeof(x[0]))) macro 330 return (xsize); in kbd_maxkey() 340 bitstr_t diff[bitstr_size(xsize)]; in kbd_process_keys() 347 bit_ffs(s->keys1, xsize, &f1); in kbd_process_keys() 350 bit_ffs(s->keys2, xsize, &f2); in kbd_process_keys() 357 memset(s->keys2, 0, bitstr_size(xsize)); in kbd_process_keys() 367 memcpy(s->keys2, s->keys1, bitstr_size(xsize)); in kbd_process_keys() 369 memset(s->keys1, 0, bitstr_size(xsize)); in kbd_process_keys() 375 memset(diff, 0, bitstr_size(xsize)); in kbd_process_keys() 377 for (i = f2; i < xsize; i ++) { in kbd_process_keys() [all …]
|
| /freebsd-11-stable/sys/dev/syscons/daemon/ |
| HD | daemon_saver.c | 134 (ypos + y)*sc->cur_scp->xsize + xpos + xoff, in clear_daemon() 166 (ypos + y)*sc->cur_scp->xsize in draw_daemon() 172 (ypos + y)*sc->cur_scp->xsize in draw_daemon() 188 ypos*sc->cur_scp->xsize + xpos + xoff, len - xoff, in clear_string() 199 ypos*sc->cur_scp->xsize + xpos + x, in draw_string() 247 if (scp->xsize <= DAEMON_MAX_WIDTH) { in daemon_saver() 254 min = scp->xsize - DAEMON_MAX_WIDTH - 10; in daemon_saver() 258 max = scp->xsize - DAEMON_MAX_WIDTH; in daemon_saver() 293 if (dxpos >= scp->xsize) in daemon_saver() 295 else if (dxpos + xlen > scp->xsize) in daemon_saver() [all …]
|
| /freebsd-11-stable/sys/dev/syscons/ |
| HD | scterm-teken.c | 292 tp.tp_col = scp->xsize; in scteken_sync_internal() 548 cursor = tp->tp_row * scp->xsize + tp->tp_col; in scteken_putchar() 557 mark_for_update(scp, imin(cursor + 1, scp->xsize * scp->ysize - 1)); in scteken_putchar() 578 if (r->tr_begin.tp_col == 0 && r->tr_end.tp_col == scp->xsize) { in scteken_fill() 580 sc_vtb_erase(&scp->vtb, r->tr_begin.tp_row * scp->xsize, in scteken_fill() 581 (r->tr_end.tp_row - r->tr_begin.tp_row) * scp->xsize, in scteken_fill() 589 scp->xsize + r->tr_begin.tp_col, in scteken_fill() 596 r->tr_begin.tp_row * scp->xsize + r->tr_begin.tp_col); in scteken_fill() 598 (r->tr_end.tp_row - 1) * scp->xsize + (r->tr_end.tp_col - 1)); in scteken_fill() 616 r->tr_begin.tp_col == 0 && r->tr_end.tp_col == scp->xsize && in scteken_copy() [all …]
|
| HD | scmouse.c | 105 || (cut_buffer_size < scp->xsize * scp->ysize + 1)) { in sc_alloc_cut_buffer() 110 cut_buffer_size = scp->xsize * scp->ysize + 1; in sc_alloc_cut_buffer() 126 mouseb[4] = '!' + scp->mouse_pos % scp->xsize; in sc_mouse_input_button() 127 mouseb[5] = '!' + scp->mouse_pos / scp->xsize; in sc_mouse_input_button() 175 (y/scp->font_size - scp->yoff)*scp->xsize + x/scp->font_width - in sc_mouse_move() 196 if (scp->mouse_xpos > (scp->xsize + scp->xoff)*scp->font_width - 1) in set_mouse_pos() 197 scp->mouse_xpos = (scp->xsize + scp->xoff)*scp->font_width - 1; in set_mouse_pos() 206 (scp->mouse_ypos/scp->font_size - scp->yoff)*scp->xsize in set_mouse_pos() 243 (scp->mouse_oldpos%scp->xsize + scp->xoff) in sc_remove_mouse_image() 245 (scp->mouse_oldpos/scp->xsize + scp->yoff) in sc_remove_mouse_image() [all …]
|
| HD | scvgarndr.c | 181 (x) * ((pos) % (scp)->xsize) + \ 182 (scp)->font_size * (w) * ((pos) / (scp)->xsize); \ 263 if (from + count > scp->xsize*scp->ysize) in vga_txtdraw() 264 count = scp->xsize*scp->ysize - from; in vga_txtdraw() 363 vidd_set_hw_cursor(adp, at%scp->xsize, in vga_txtcursor() 364 at/scp->xsize); in vga_txtcursor() 416 pos = (y/scp->font_size - scp->yoff)*scp->xsize + x/8 - scp->xoff; in draw_txtmouse() 422 + sc_vtb_getc(&scp->scr, pos + scp->xsize)*scp->font_size, in draw_txtmouse() 425 + sc_vtb_getc(&scp->scr, pos + scp->xsize + 1)*scp->font_size, in draw_txtmouse() 459 sc_vtb_putc(&scp->scr, pos + scp->xsize, c + 2, in draw_txtmouse() [all …]
|
| HD | schistory.c | 138 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines, in sc_alloc_history_buffer() 212 sc_vtb_append(&scp->vtb, 0, scp->history, scp->xsize*scp->ysize); in sc_hist_save() 231 -scp->xsize*scp->ysize)); in sc_hist_restore() 244 pos = sc_vtb_pos(scp->history, pos, -scp->xsize); in history_to_screen() 246 &scp->vtb, scp->xsize*(scp->ysize - i), in history_to_screen() 247 scp->xsize); in history_to_screen() 265 scp->xsize*scp->ysize); in sc_hist_end() 273 if (sc_vtb_pos(scp->history, scp->history_pos, -(scp->xsize*scp->ysize)) in sc_hist_up_line() 277 -scp->xsize); in sc_hist_up_line() 289 scp->xsize); in sc_hist_down_line()
|
| HD | scgfbrndr.c | 174 if (from + count > scp->xsize*scp->ysize) { in gfb_draw() 257 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor() 297 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor() 302 vidd_set_hw_cursor(adp, at%scp->xsize, in gfb_cursor() 303 at/scp->xsize); in gfb_cursor() 309 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor()
|
| HD | scvidctl.c | 136 sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize, in sc_set_text_mode() argument 181 if ((xsize <= 0) || (xsize > info.vi_width)) in sc_set_text_mode() 182 xsize = info.vi_width; in sc_set_text_mode() 211 scp->xsize = xsize; in sc_set_text_mode() 215 scp->xpixel = scp->xsize*8; in sc_set_text_mode() 238 wsz.ws_col = scp->xsize; in sc_set_text_mode() 298 wsz.ws_col = scp->xsize; in sc_set_graphics_mode() 306 sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize, in sc_set_pixel_mode() argument 352 if (xsize <= 0) in sc_set_pixel_mode() 353 xsize = info.vi_width/8; in sc_set_pixel_mode() [all …]
|
| HD | scterm.c | 51 if (x >= scp->xsize) in sc_move_cursor() 52 x = scp->xsize - 1; in sc_move_cursor() 57 scp->cursor_pos = scp->ypos*scp->xsize + scp->xpos; in sc_move_cursor()
|
| HD | syscons.c | 272 int attr, column, mysize, width, xsize, yborder, ysize; in ec_putc() local 285 xsize = 80; in ec_putc() 291 xsize = main_console.xsize; in ec_putc() 295 scrptr = (u_short *)(void *)fb + xsize * yborder; in ec_putc() 296 mysize = xsize * (ysize - 2 * yborder); in ec_putc() 299 column = ind % xsize; in ec_putc() 301 c == '\r' ? -column : c == '\n' ? xsize - column : 1); in ec_putc() 308 ind += xsize; /* XXX clearing from new pos is not atomic */ in ec_putc() 499 scp->ypos * scp->xsize + scp->xpos); in sc_set_vesa_mode() 508 scp->xsize = scp->xpixel / 8; in sc_set_vesa_mode() [all …]
|
| HD | syscons.h | 123 scp->end = scp->xsize * scp->ysize - 1;\ 301 int xsize; /* X text size */ member 600 sc_vtb_append(&(scp)->vtb, (from), (scp)->history, (scp)->xsize) 637 int xsize, int ysize, int fontsize, 640 int sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize,
|
| /freebsd-11-stable/sys/dev/syscons/snake/ |
| HD | snake_saver.c | 91 scp->xsize : -scp->xsize); in snake_saver() 93 savs[f] = scp->xpos + scp->ypos*scp->xsize; in snake_saver() 106 if ((f % scp->xsize) == 0 || in snake_saver() 107 (f % scp->xsize) == scp->xsize - 1 || in snake_saver() 110 if ((f / scp->xsize) == 0 || in snake_saver() 111 (f / scp->xsize) == scp->ysize - 1 || in snake_saver()
|
| /freebsd-11-stable/contrib/libarchive/libarchive/test/ |
| HD | test_read_pax_xattr_schily.c | 38 size_t xsize; /* For xattr tests. */ in DEFINE_TEST() local 53 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 58 assertEqualInt((int)xsize, strlen(string) + 1); in DEFINE_TEST() 60 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 62 assertEqualInt((int)xsize, 265); in DEFINE_TEST()
|
| HD | test_read_pax_xattr_rht_security_selinux.c | 38 size_t xsize; /* For xattr tests. */ in DEFINE_TEST() local 53 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 56 assertEqualMem(xval, string, xsize); in DEFINE_TEST() 57 assertEqualInt((int)xsize, strlen(string)); in DEFINE_TEST()
|
| HD | test_extattr_freebsd.c | 46 size_t xsize; in DEFINE_TEST() 146 archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 148 assertEqualInt(xsize, 5); in DEFINE_TEST() 149 assertEqualMem(xval, "12345", xsize); in DEFINE_TEST()
|
| HD | test_entry.c | 67 size_t xsize; /* For xattr tests. */ in DEFINE_TEST() local 465 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 468 assertEqualInt((int)xsize, 12); in DEFINE_TEST() 471 archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 474 assertEqualInt((int)xsize, 0); in DEFINE_TEST() 478 archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 481 assertEqualInt((int)xsize, 0); in DEFINE_TEST() 486 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 487 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 489 archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() [all …]
|
| /freebsd-11-stable/contrib/gcc/ |
| HD | alias.c | 1650 memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c) in memrefs_conflict_p() argument 1661 x = addr_side_effect_eval (x, xsize, 0); in memrefs_conflict_p() 1671 if (xsize <= 0 || ysize <= 0) in memrefs_conflict_p() 1673 if (c >= 0 && xsize > c) in memrefs_conflict_p() 1698 return memrefs_conflict_p (xsize, x0, ysize, y0, c); in memrefs_conflict_p() 1700 return memrefs_conflict_p (xsize, x1, ysize, y1, c); in memrefs_conflict_p() 1704 return memrefs_conflict_p (xsize, x0, ysize, y0, in memrefs_conflict_p() 1707 return memrefs_conflict_p (xsize, x0, ysize, y, in memrefs_conflict_p() 1711 return memrefs_conflict_p (xsize, x, ysize, y0, c + INTVAL (y1)); in memrefs_conflict_p() 1716 return memrefs_conflict_p (xsize, x0, ysize, y, c - INTVAL (x1)); in memrefs_conflict_p() [all …]
|
| /freebsd-11-stable/sys/dev/syscons/star/ |
| HD | star_saver.c | 93 random() % (scp->xsize*scp->ysize); in star_saver() 102 stars[cell][0] = random() % (scp->xsize*scp->ysize); in star_saver()
|
| /freebsd-11-stable/contrib/libarchive/libarchive/ |
| HD | archive_read_support_format_iso9660.c | 1437 size_t ceil, xsize; in zisofs_read_data() local 1443 xsize = (ceil + 1) * 4; in zisofs_read_data() 1444 if (zisofs->block_pointers_alloc < xsize) { in zisofs_read_data() 1449 alloc = ((xsize >> 10) + 1) << 10; in zisofs_read_data() 1458 zisofs->block_pointers_size = xsize; in zisofs_read_data() 1461 xsize = (size_t)1UL << zisofs->pz_log2_bs; in zisofs_read_data() 1462 if (zisofs->uncompressed_buffer_size < xsize) { in zisofs_read_data() 1465 zisofs->uncompressed_buffer = malloc(xsize); in zisofs_read_data() 1472 zisofs->uncompressed_buffer_size = xsize; in zisofs_read_data() 1478 xsize = sizeof(zisofs->header) - zisofs->header_avail; in zisofs_read_data() [all …]
|
| /freebsd-11-stable/usr.sbin/bhyve/ |
| HD | smbiostbl.c | 239 uint64_t xsize; /* max mem capacity in bytes */ member 270 uint32_t xsize; /* extended size in mbs */ member 685 type16->xsize = guest_lomem + guest_himem; in smbios_type16_initializer() 702 type17->xsize = guest_lomem; in smbios_type17_initializer() 710 type17->xsize = guest_himem; in smbios_type17_initializer()
|