/freebsd/share/examples/libvgl/ |
H A D | 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/sys/dev/syscons/ |
H A D | sctermvar.h | 70 sc_vtb_ins(&scp->vtb, y*scp->xsize, n*scp->xsize, ch, attr); in sc_term_ins_line() 71 mark_for_update(scp, y*scp->xsize); in sc_term_ins_line() 72 mark_for_update(scp, scp->xsize*tail - 1); in sc_term_ins_line() 84 sc_vtb_delete(&scp->vtb, y*scp->xsize, n*scp->xsize, ch, attr); in sc_term_del_line() 85 mark_for_update(scp, y*scp->xsize); in sc_term_del_line() 86 mark_for_update(scp, scp->xsize*tail - 1); in sc_term_del_line() 96 if (n > scp->xsize - scp->xpos) in sc_term_ins_char() 97 n = scp->xsize - scp->xpos; in sc_term_ins_char() 98 count = scp->xsize - (scp->xpos + n); in sc_term_ins_char() 112 if (n > scp->xsize - scp->xpos) in sc_term_del_char() [all …]
|
H A D | 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 …]
|
H A D | 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() 257 cols = imin(cols, scp->xsize - i % scp->xsize); in sc_remove_mouse_image() 260 rows = imin(rows, scp->ysize - i / scp->xsize); in sc_remove_mouse_image() [all …]
|
H A D | schistory.c | 137 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines, in sc_alloc_history_buffer() 211 sc_vtb_append(&scp->vtb, 0, scp->history, scp->xsize*scp->ysize); in sc_hist_save() 230 -scp->xsize*scp->ysize)); in sc_hist_restore() 243 pos = sc_vtb_pos(scp->history, pos, -scp->xsize); in history_to_screen() 245 &scp->vtb, scp->xsize*(scp->ysize - i), in history_to_screen() 246 scp->xsize); in history_to_screen() 264 scp->xsize*scp->ysize); in sc_hist_end() 272 if (sc_vtb_pos(scp->history, scp->history_pos, -(scp->xsize*scp->ysize)) in sc_hist_up_line() 276 -scp->xsize); in sc_hist_up_line() 288 scp->xsize); in sc_hist_down_line()
|
H A D | scgfbrndr.c | 146 if (from + count > scp->xsize*scp->ysize) { in gfb_draw() 227 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor() 267 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor() 272 vidd_set_hw_cursor(adp, at%scp->xsize, in gfb_cursor() 273 at/scp->xsize); in gfb_cursor() 279 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize); in gfb_cursor()
|
H A D | scvidctl.c | 135 sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize, in sc_set_text_mode() argument 182 if ((xsize <= 0) || (xsize > info.vi_width)) in sc_set_text_mode() 183 xsize = info.vi_width; in sc_set_text_mode() 212 scp->xsize = xsize; in sc_set_text_mode() 216 scp->xpixel = scp->xsize*8; in sc_set_text_mode() 239 wsz.ws_col = scp->xsize; in sc_set_text_mode() 299 wsz.ws_col = scp->xsize; in sc_set_graphics_mode() 307 sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize, in sc_set_pixel_mode() argument 355 if (xsize <= 0) in sc_set_pixel_mode() 356 xsize = info.vi_width/8; in sc_set_pixel_mode() [all …]
|
H A D | scvgarndr.c | 293 (x) * ((pos) % (scp)->xsize) + \ 294 (scp)->font_size * (w) * ((pos) / (scp)->xsize); \ 468 if (from + count > scp->xsize*scp->ysize) in vga_txtdraw() 469 count = scp->xsize*scp->ysize - from; in vga_txtdraw() 560 vidd_set_hw_cursor(adp, at%scp->xsize, in vga_txtcursor() 561 at/scp->xsize); in vga_txtcursor() 615 pos = (y/scp->font_size - scp->yoff)*scp->xsize + x/8 - scp->xoff; in draw_txtmouse() 621 + sc_vtb_getc(&scp->scr, pos + scp->xsize)*scp->font_size, in draw_txtmouse() 624 + sc_vtb_getc(&scp->scr, pos + scp->xsize + 1)*scp->font_size, in draw_txtmouse() 672 sc_vtb_putc(&scp->scr, pos + scp->xsize, c + 2, in draw_txtmouse() [all …]
|
H A D | 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()
|
H A D | syscons.c | 283 int attr, column, mysize, width, xsize, yborder, ysize; in ec_putc() local 300 xsize = 80; in ec_putc() 307 xsize = main_console.xsize; in ec_putc() 311 scrptr = (u_short *)(void *)fb + xsize * yborder; in ec_putc() 312 mysize = xsize * (ysize - 2 * yborder); in ec_putc() 315 column = ind % xsize; in ec_putc() 320 c == '\r' ? -column : c == '\n' ? xsize - column : 1); in ec_putc() 327 ind += xsize; /* XXX clearing from new pos is not atomic */ in ec_putc() 518 scp->ypos * scp->xsize + scp->xpos); in sc_set_vesa_mode() 527 scp->xsize = scp->xpixel / 8; in sc_set_vesa_mode() [all …]
|
H A D | syscons.h | 107 scp->end = scp->xsize * scp->ysize - 1;\ 285 int xsize; /* X text size */ member 583 sc_vtb_append(&(scp)->vtb, (from), (scp)->history, (scp)->xsize) 620 int xsize, int ysize, int fontsize, 623 int sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize,
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_patterns.c | 108 int xsize; in DEFINE_TEST() local 118 xsize = sizeof(file_b1); in DEFINE_TEST() 128 xsize = sizeof(file_b2); in DEFINE_TEST() 132 xsize = sizeof(file_a); in DEFINE_TEST() 135 filex[xsize-3] = '0' + r / 10; in DEFINE_TEST() 136 filex[xsize-2] = '0' + r % 10; in DEFINE_TEST() 156 xsize = sizeof(file_d); in DEFINE_TEST() 159 xsize = sizeof(file_c); in DEFINE_TEST() 161 filex[xsize-3] = '0' + r / 10; in DEFINE_TEST() 162 filex[xsize-2] = '0' + r % 10; in DEFINE_TEST()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_raidz_math_impl.h | 614 const size_t xsize = rr->rr_col[x].rc_size; in raidz_reconstruct_p_impl() local 623 for (off = 0; off < xsize; off += CHUNK) { in raidz_reconstruct_p_impl() 626 size = MIN(CHUNK, xsize - off); in raidz_reconstruct_p_impl() 637 size = MIN(CHUNK, MIN(size, xsize) - off); in raidz_reconstruct_p_impl() 658 raidz_syn_q_abd(void **xc, const void *dc, const size_t xsize, in raidz_syn_q_abd() argument 664 const v_t * const xend = x + (xsize / sizeof (v_t)); in raidz_syn_q_abd() 699 const size_t xsize = rr->rr_col[x].rc_size; in raidz_reconstruct_q_impl() local 712 raidz_copy(xabd, rr->rr_col[firstdc].rc_abd, 0, xsize); in raidz_reconstruct_q_impl() 714 raidz_zero(xabd, xsize); in raidz_reconstruct_q_impl() 727 abd_raidz_gen_iterate(tabds, dabd, 0, xsize, dsize, 1, in raidz_reconstruct_q_impl() [all …]
|
/freebsd/sys/dev/syscons/daemon/ |
H A D | 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/usr.sbin/bluetooth/bthidd/ |
H A D | kbd.c | 323 #define xsize (int32_t)nitems(x) 332 return (xsize); in kbd_maxkey() 342 bitstr_t bit_decl(diff, xsize); in kbd_process_keys() 349 bit_ffs(s->keys1, xsize, &f1); in kbd_process_keys() 352 bit_ffs(s->keys2, xsize, &f2); in kbd_process_keys() 360 memset(s->keys2, 0, bitstr_size(xsize)); in kbd_process_keys() 370 memcpy(s->keys2, s->keys1, bitstr_size(xsize)); in kbd_process_keys() 373 memset(s->keys1, 0, bitstr_size(xsize)); in kbd_process_keys() 379 memset(diff, 0, bitstr_size(xsize)); in kbd_process_keys() 381 for (i = f2; i < xsize; in kbd_process_keys() 322 #define xsize global() macro [all...] |
/freebsd/sys/dev/syscons/snake/ |
H A D | 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/contrib/libarchive/libarchive/test/ |
H A D | 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()
|
H A D | 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()
|
H A D | test_extattr_freebsd.c | 45 size_t xsize; in DEFINE_TEST() 145 archive_entry_xattr_next(ae, &xname, &xval, &xsize)); in DEFINE_TEST() 147 assertEqualInt(xsize, 5); in DEFINE_TEST() 148 assertEqualMem(xval, "12345", xsize); in DEFINE_TEST()
|
H A D | test_entry.c | 66 size_t xsize; /* For xattr tests. */ in DEFINE_TEST() local 464 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 467 assertEqualInt((int)xsize, 12); in DEFINE_TEST() 470 archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 473 assertEqualInt((int)xsize, 0); in DEFINE_TEST() 477 archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 480 assertEqualInt((int)xsize, 0); in DEFINE_TEST() 485 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 486 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() 488 archive_entry_xattr_next(e, &xname, &xval, &xsize)); in DEFINE_TEST() [all …]
|
/freebsd/sys/dev/syscons/star/ |
H A D | star_saver.c | 80 random() % (scp->xsize*scp->ysize); in star_saver() 89 stars[cell][0] = random() % (scp->xsize*scp->ysize); in star_saver()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_iso9660.c | 1525 size_t ceil, xsize; in zisofs_read_data() local 1531 xsize = (ceil + 1) * 4; in zisofs_read_data() 1532 if (zisofs->block_pointers_alloc < xsize) { in zisofs_read_data() 1537 alloc = ((xsize >> 10) + 1) << 10; in zisofs_read_data() 1546 zisofs->block_pointers_size = xsize; in zisofs_read_data() 1549 xsize = (size_t)1UL << zisofs->pz_log2_bs; in zisofs_read_data() 1550 if (zisofs->uncompressed_buffer_size < xsize) { in zisofs_read_data() 1553 zisofs->uncompressed_buffer = malloc(xsize); in zisofs_read_data() 1560 zisofs->uncompressed_buffer_size = xsize; in zisofs_read_data() 1566 xsize = sizeof(zisofs->header) - zisofs->header_avail; in zisofs_read_data() [all …]
|
/freebsd/lib/libvgl/ |
H A D | bitmap.c | 252 *VGLBitmapCreate(int type, int xsize, int ysize, byte *bits) in VGLBitmapCreate() argument 258 if (xsize < 0 || ysize < 0) in VGLBitmapCreate() 264 object->Xsize = xsize; in VGLBitmapCreate() 266 object->VXsize = xsize; in VGLBitmapCreate()
|
/freebsd/usr.sbin/vidcontrol/ |
H A D | vidcontrol.c | 1275 shot.xsize = info.mv_csz; in dump_screen() 1280 shot.buf = alloca(shot.xsize * shot.ysize * sizeof(u_int16_t)); in dump_screen() 1293 shot.xsize, shot.ysize); in dump_screen() 1298 shot.xsize * shot.ysize * sizeof(u_int16_t)); in dump_screen() 1304 line = alloca(shot.xsize + 1); in dump_screen() 1312 for (x = 0; x < shot.xsize; x++) { in dump_screen() 1313 ch = shot.buf[x + (y * shot.xsize)]; in dump_screen()
|
/freebsd/sys/dev/fb/ |
H A D | splash_txt.c | 79 (y * sc->cur_scp->xsize) + x, in draw_text_splash()
|