Searched refs:xsize (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-11-stable/share/examples/libvgl/
H A Ddemo.c40 int y, xsize, ysize, i,j; local
55 xsize=VGLDisplay->Xsize;
65 VGLLine(VGLDisplay, 0, y, xsize-1, y, y/2 % 256);
68 VGLLine(VGLDisplay, 0, 0, xsize-1, ysize-1, 63);
69 VGLLine(VGLDisplay, 0, ysize-1, xsize-1, 0, 63);
71 VGLLine(VGLDisplay, xsize-1, 0, xsize-1, ysize-1, 63);
108 VGLBitmapCopy(VGLDisplay, rand()%xsize, rand()%ysize,
109 VGLDisplay, rand()%xsize, rand()%ysize,
110 rand()%xsize, ran
[all...]
/freebsd-11-stable/contrib/libarchive/tar/test/
H A Dtest_patterns.c127 int xsize; local
137 xsize = sizeof(file_b1);
147 xsize = sizeof(file_b2);
151 xsize = sizeof(file_a);
154 filex[xsize-3] = '0' + r / 10;
155 filex[xsize-2] = '0' + r % 10;
175 xsize = sizeof(file_d);
178 xsize = sizeof(file_c);
180 filex[xsize-3] = '0' + r / 10;
181 filex[xsize
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_read_pax_xattr_rht_security_selinux.c38 size_t xsize; /* For xattr tests. */ local
53 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize));
56 assertEqualMem(xval, string, xsize);
57 assertEqualInt((int)xsize, strlen(string));
H A Dtest_read_pax_xattr_schily.c38 size_t xsize; /* For xattr tests. */ local
53 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize));
58 assertEqualInt((int)xsize, strlen(string) + 1);
60 assertEqualInt(0, archive_entry_xattr_next(ae, &xname, &xval, &xsize));
62 assertEqualInt((int)xsize, 265);
H A Dtest_extattr_freebsd.c46 size_t xsize;
146 archive_entry_xattr_next(ae, &xname, &xval, &xsize));
148 assertEqualInt(xsize, 5);
149 assertEqualMem(xval, "12345", xsize);
H A Dtest_entry.c67 size_t xsize; /* For xattr tests. */ local
465 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize));
468 assertEqualInt((int)xsize, 12);
471 archive_entry_xattr_next(e, &xname, &xval, &xsize));
474 assertEqualInt((int)xsize, 0);
478 archive_entry_xattr_next(e, &xname, &xval, &xsize));
481 assertEqualInt((int)xsize, 0);
486 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize));
487 assertEqualInt(0, archive_entry_xattr_next(e, &xname, &xval, &xsize));
489 archive_entry_xattr_next(e, &xname, &xval, &xsize));
[all...]
/freebsd-11-stable/sys/pc98/cbus/
H A Dsctermvar.h72 sc_vtb_ins(&scp->vtb, y*scp->xsize, n*scp->xsize, ch, attr);
73 mark_for_update(scp, y*scp->xsize);
74 mark_for_update(scp, scp->xsize*tail - 1);
86 sc_vtb_delete(&scp->vtb, y*scp->xsize, n*scp->xsize, ch, attr);
87 mark_for_update(scp, y*scp->xsize);
88 mark_for_update(scp, scp->xsize*tail - 1);
98 if (n > scp->xsize - scp->xpos)
99 n = scp->xsize
[all...]
H A Dscgdcrndr.c119 if (from + count > scp->xsize*scp->ysize)
120 count = scp->xsize*scp->ysize - from;
154 vidd_set_hw_cursor(scp->sc->adp, at%scp->xsize,
155 at/scp->xsize);
171 at = (y/scp->font_size - scp->yoff)*scp->xsize + x/8 - scp->xoff;
H A Dscterm-sck.c611 if (n > scp->xsize - scp->xpos)
612 n = scp->xsize - scp->xpos;
952 cnt = imin(len, scp->xsize - scp->xpos);
981 if (++scp->xpos >= scp->xsize) {
1007 cnt = imin(len, scp->xsize - scp->xpos);
1030 if (scp->xpos >= scp->xsize) {
1048 scp->xpos += scp->xsize - 1;
1058 if (scp->xpos >= scp->xsize) {
1061 scp->cursor_pos = scp->xsize * scp->ypos;
1068 scp->cursor_pos += scp->xsize;
[all...]
/freebsd-11-stable/sys/dev/syscons/daemon/
H A Ddaemon_saver.c134 (ypos + y)*sc->cur_scp->xsize + xpos + xoff,
166 (ypos + y)*sc->cur_scp->xsize
172 (ypos + y)*sc->cur_scp->xsize
188 ypos*sc->cur_scp->xsize + xpos + xoff, len - xoff,
199 ypos*sc->cur_scp->xsize + xpos + x,
247 if (scp->xsize <= DAEMON_MAX_WIDTH) {
254 min = scp->xsize - DAEMON_MAX_WIDTH - 10;
258 max = scp->xsize - DAEMON_MAX_WIDTH;
293 if (dxpos >= scp->xsize)
295 else if (dxpos + xlen > scp->xsize)
[all...]
/freebsd-11-stable/sys/dev/syscons/snake/
H A Dsnake_saver.c91 scp->xsize : -scp->xsize);
93 savs[f] = scp->xpos + scp->ypos*scp->xsize;
106 if ((f % scp->xsize) == 0 ||
107 (f % scp->xsize) == scp->xsize - 1 ||
110 if ((f / scp->xsize) == 0 ||
111 (f / scp->xsize) == scp->ysize - 1 ||
/freebsd-11-stable/sys/dev/syscons/
H A Dschistory.c138 sc_vtb_init(history, VTB_RINGBUFFER, scp->xsize, lines,
212 sc_vtb_append(&scp->vtb, 0, scp->history, scp->xsize*scp->ysize);
231 -scp->xsize*scp->ysize));
244 pos = sc_vtb_pos(scp->history, pos, -scp->xsize);
246 &scp->vtb, scp->xsize*(scp->ysize - i),
247 scp->xsize);
265 scp->xsize*scp->ysize);
273 if (sc_vtb_pos(scp->history, scp->history_pos, -(scp->xsize*scp->ysize))
277 -scp->xsize);
289 scp->xsize);
[all...]
H A Dscterm.c51 if (x >= scp->xsize)
52 x = scp->xsize - 1;
57 scp->cursor_pos = scp->ypos*scp->xsize + scp->xpos;
H A Dscmouse.c105 || (cut_buffer_size < scp->xsize * scp->ysize + 1)) {
110 cut_buffer_size = scp->xsize * scp->ysize + 1;
126 mouseb[4] = '!' + scp->mouse_pos % scp->xsize;
127 mouseb[5] = '!' + scp->mouse_pos / scp->xsize;
175 (y/scp->font_size - scp->yoff)*scp->xsize + x/scp->font_width -
196 if (scp->mouse_xpos > (scp->xsize + scp->xoff)*scp->font_width - 1)
197 scp->mouse_xpos = (scp->xsize + scp->xoff)*scp->font_width - 1;
206 (scp->mouse_ypos/scp->font_size - scp->yoff)*scp->xsize
243 (scp->mouse_oldpos%scp->xsize + scp->xoff)
245 (scp->mouse_oldpos/scp->xsize
[all...]
H A Dscgfbrndr.c174 if (from + count > scp->xsize*scp->ysize) {
257 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize);
297 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize);
302 vidd_set_hw_cursor(adp, at%scp->xsize,
303 at/scp->xsize);
309 vidd_set_hw_cursor(adp, at%scp->xsize, at/scp->xsize);
H A Dscterm-teken.c292 tp.tp_col = scp->xsize;
548 cursor = tp->tp_row * scp->xsize + tp->tp_col;
557 mark_for_update(scp, imin(cursor + 1, scp->xsize * scp->ysize - 1));
578 if (r->tr_begin.tp_col == 0 && r->tr_end.tp_col == scp->xsize) {
580 sc_vtb_erase(&scp->vtb, r->tr_begin.tp_row * scp->xsize,
581 (r->tr_end.tp_row - r->tr_begin.tp_row) * scp->xsize,
589 scp->xsize + r->tr_begin.tp_col,
596 r->tr_begin.tp_row * scp->xsize + r->tr_begin.tp_col);
598 (r->tr_end.tp_row - 1) * scp->xsize + (r->tr_end.tp_col - 1));
616 r->tr_begin.tp_col == 0 && r->tr_end.tp_col == scp->xsize
[all...]
H A Dscvgarndr.c181 (x) * ((pos) % (scp)->xsize) + \
182 (scp)->font_size * (w) * ((pos) / (scp)->xsize); \
263 if (from + count > scp->xsize*scp->ysize)
264 count = scp->xsize*scp->ysize - from;
363 vidd_set_hw_cursor(adp, at%scp->xsize,
364 at/scp->xsize);
416 pos = (y/scp->font_size - scp->yoff)*scp->xsize + x/8 - scp->xoff;
422 + sc_vtb_getc(&scp->scr, pos + scp->xsize)*scp->font_size,
425 + sc_vtb_getc(&scp->scr, pos + scp->xsize + 1)*scp->font_size,
459 sc_vtb_putc(&scp->scr, pos + scp->xsize,
[all...]
H A Dscvidctl.c136 sc_set_text_mode(scr_stat *scp, struct tty *tp, int mode, int xsize, int ysize, argument
181 if ((xsize <= 0) || (xsize > info.vi_width))
182 xsize = info.vi_width;
211 scp->xsize = xsize;
215 scp->xpixel = scp->xsize*8;
238 wsz.ws_col = scp->xsize;
275 * Don't change xsize and ysize; preserve the previous vty
298 wsz.ws_col = scp->xsize;
306 sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize, int fontsize, int fontwidth) argument
[all...]
H A Dsyscons.c272 int attr, column, mysize, width, xsize, yborder, ysize; local
285 xsize = 80;
291 xsize = main_console.xsize;
295 scrptr = (u_short *)(void *)fb + xsize * yborder;
296 mysize = xsize * (ysize - 2 * yborder);
299 column = ind % xsize;
301 c == '\r' ? -column : c == '\n' ? xsize - column : 1);
308 ind += xsize; /* XXX clearing from new pos is not atomic */
499 scp->ypos * scp->xsize
[all...]
H A Dsyscons.h123 scp->end = scp->xsize * scp->ysize - 1;\
301 int xsize; /* X text size */ member in struct:scr_stat
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/usr.sbin/bluetooth/bthidd/
H A Dkbd.c321 #define xsize ((int32_t)(sizeof(x)/sizeof(x[0]))) macro
330 return (xsize);
340 bitstr_t diff[bitstr_size(xsize)];
347 bit_ffs(s->keys1, xsize, &f1);
350 bit_ffs(s->keys2, xsize, &f2);
357 memset(s->keys2, 0, bitstr_size(xsize));
367 memcpy(s->keys2, s->keys1, bitstr_size(xsize));
369 memset(s->keys1, 0, bitstr_size(xsize));
375 memset(diff, 0, bitstr_size(xsize));
377 for (i = f2; i < xsize;
[all...]
/freebsd-11-stable/sys/dev/syscons/star/
H A Dstar_saver.c93 random() % (scp->xsize*scp->ysize);
102 stars[cell][0] = random() % (scp->xsize*scp->ysize);
/freebsd-11-stable/contrib/gcc/
H A Dalias.c1653 memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c)
1664 x = addr_side_effect_eval (x, xsize, 0);
1674 if (xsize <= 0 || ysize <= 0)
1676 if (c >= 0 && xsize > c)
1701 return memrefs_conflict_p (xsize, x0, ysize, y0, c);
1703 return memrefs_conflict_p (xsize, x1, ysize, y1, c);
1707 return memrefs_conflict_p (xsize, x0, ysize, y0,
1710 return memrefs_conflict_p (xsize, x0, ysize, y,
1714 return memrefs_conflict_p (xsize, x, ysize, y0, c + INTVAL (y1));
1719 return memrefs_conflict_p (xsize, x
1650 memrefs_conflict_p(int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c) argument
[all...]
/freebsd-11-stable/sys/dev/fb/
H A Dsplash_txt.c79 (y * sc->cur_scp->xsize) + x,
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_format_iso9660.c1436 size_t ceil, xsize; local
1442 xsize = (ceil + 1) * 4;
1443 if (zisofs->block_pointers_alloc < xsize) {
1448 alloc = ((xsize >> 10) + 1) << 10;
1457 zisofs->block_pointers_size = xsize;
1460 xsize = (size_t)1UL << zisofs->pz_log2_bs;
1461 if (zisofs->uncompressed_buffer_size < xsize) {
1464 zisofs->uncompressed_buffer = malloc(xsize);
1471 zisofs->uncompressed_buffer_size = xsize;
1477 xsize
[all...]

Completed in 199 milliseconds

12