/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term.c | 175 vbr += (*p->width)(p, ' '); in term_flushln() 310 vis += (*p->width)(p, '-'); in term_fill() 376 dv = (*p->width)(p, ' '); in term_field() 696 csz = (*p->width)(p, uc); in term_word() 872 int iop, width; in term_setwidth() local 875 width = 0; in term_setwidth() 890 width = term_hspan(p, &su); in term_setwidth() 894 (*p->setwidth)(p, iop, width); in term_setwidth() 901 return (*p->width)(p, ' ') * sz; in term_len() 912 return (*p->width)(p, c); in cond_width() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | mc4.c | 50 unsigned int width = is_MC4A(adapter) ? G_MC4A_WIDTH(mc4_cfg) : in mc4_calc_size() local 53 return (256 * 1024 * 1024) >> width; in mc4_calc_size() 85 unsigned int width, ext_mode, slow_mode; in t1_mc4_init() local 95 width = G_MC4A_WIDTH(val); in t1_mc4_init() 109 width = !!(val & F_MC4_NARROW); in t1_mc4_init() 131 mc4->nwords = 4 >> width; in t1_mc4_init() 166 t1_write_reg_4(adapter, A_MC4_BIST_ADDR_END, (mc4->size << width) - 1); in t1_mc4_init()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | whln_st.c | 50 int x, width; in whline_set() local 59 for (x = w->_curx; x < n; x += width) in whline_set() 60 if ((width = __m_cc_replace(w, w->_cury, x, h, 0)) == -1) in whline_set()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | wdelch.c | 55 int next, width, y, x; local 68 width = __m_cc_width(&w->_line[y][x]); 79 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1);
|
H A D | whln_st.c | 50 int x, width; local 63 for (x = w->_curx; x < n; x += width) 64 if ((width = __m_cc_replace(w, w->_cury, x, h, 0)) == -1)
|
H A D | slk.c | 289 int i, width, code = ERR; in slk_wset() local 313 for (wp = wcs, width = 0; *label != '\0'; label += i, wp += cc._n) { in slk_wset() 318 if (8 < (width += __m_cc_width(&cc))) in slk_wset() 344 i += width / 2; in slk_wset() 347 i = i + 8 - width; in slk_wset()
|
/illumos-gate/usr/src/cmd/file/ |
H A D | magicutils.c | 923 width--; in showstr() 930 width -= 2; in showstr() 935 width -= 2; in showstr() 940 width -= 2; in showstr() 945 width -= 2; in showstr() 950 width -= 2; in showstr() 955 width -= 2; in showstr() 960 width -= 2; in showstr() 965 width -= 4; in showstr() 969 while (width >= 0) { in showstr() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_io.c | 1118 size_t width; in iob_bits2str() local 1280 width = width * 10 + u.c - '0'; in iob_doprnt() 1381 mdb_iob_ws(iob, (width != 0) ? width : in iob_doprnt() 1437 if (width != 0) { in iob_doprnt() 1438 while (width-- > 0) in iob_doprnt() 1447 if (width != 0 && (iob->iob_nbytes % width) != 0) { in iob_doprnt() 1449 iob->iob_tabstop = width; in iob_doprnt() 1547 if (len + altlen > width) in iob_doprnt() 1548 width = len + altlen; in iob_doprnt() 1560 if (lf_len < width) in iob_doprnt() [all …]
|
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | ScalarRecord.java | 256 hexString(int n, int width) in hexString() argument 260 if (width < len) { in hexString() 261 s = s.substring(len - width); in hexString() 262 } else if (width > len) { in hexString() 263 s = (spaces(width - len) + s); in hexString()
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | wide.c | 467 int width = 2; in towide_euc_impl() local 489 width = 2; in towide_euc_impl() 491 width = cs2width; in towide_euc_impl() 493 width = cs3width; in towide_euc_impl() 496 if (n < width) { in towide_euc_impl() 501 for (i = 1; i < width; i++) { in towide_euc_impl() 508 return (width); in towide_euc_impl()
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_cpuid.c | 385 int error, enable_invpcid, level, width = 0, x2apic_id = 0; in legacy_emulate_cpuid() local 453 width = MIN(0xF, log2(threads * cores)); in legacy_emulate_cpuid() 454 if (width < 0x4) in legacy_emulate_cpuid() 455 width = 0; in legacy_emulate_cpuid() 457 regs[2] = (width << AMDID_COREID_SIZE_SHIFT) | in legacy_emulate_cpuid() 799 width = log2(logical_cpus); in legacy_emulate_cpuid() 806 width = log2(logical_cpus); in legacy_emulate_cpuid() 812 width = 0; in legacy_emulate_cpuid() 818 regs[0] = width & 0x1f; in legacy_emulate_cpuid()
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk2.c | 904 int width = 0; in adjust_buf() local 912 width = *fmtstr-'0'; in adjust_buf() 914 width = width * 10 + *fmtstr - '0'; in adjust_buf() 929 if (width && slen < width) in adjust_buf() 930 slen = width; in adjust_buf() 933 width = slen+1; in adjust_buf() 935 if (width == 0) in adjust_buf() 936 width = NUMSIZE; in adjust_buf() 938 if (*offset+ width > *bp+ *len) { in adjust_buf() 940 *len += width+1; in adjust_buf()
|
/illumos-gate/usr/src/cmd/pr/ |
H A D | pr.c | 1032 int width; in readbuf() local 1038 width = (Ncols == 1) ? Linew : Colw; in readbuf() 1053 width-chars; in readbuf() 1065 if (chars > width) { in readbuf() 1167 int width = Colw; in put() local 1171 width = Linew; in put() 1182 if (Lcolpos >= width) in put() 1192 if ((Lcolpos < width) || in put() 1195 move = (move < width-Lcolpos) ? move : width-Lcolpos; in put() 1200 if (Lcolpos >= width) in put() [all …]
|
/illumos-gate/usr/src/cmd/lgrpinfo/ |
H A D | lgrpinfo.pl | 629 my $width = length($l->latency($root, $root)) + 1; 631 $width = $lgwidth if $width < $lgwidth; 637 map { print '-' x $width } @$lgrps1; 639 map { printf("%${width}d", $_) } @$lgrps1; 641 map { print '-' x $width } @$lgrps1; 650 printf "%${width}s", "-"; 652 printf "%${width}d", $latency; 660 map { print '-' x $width } @lgrps;
|
/illumos-gate/usr/src/common/font/ |
H A D | font.c | 237 unsigned width = w; in set_font() local 261 *cols = (width - BORDER_PIXELS) / font->width; in set_font() 278 (((*cols * font->width) + BORDER_PIXELS) <= width)) { in set_font() 289 *cols = (width - BORDER_PIXELS) / font->width; in set_font() 309 *cols = (width - BORDER_PIXELS) / font->width; in set_font()
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_rowcol.c | 39 mcamd_prop_t width; /* access width */ member 66 mc, MCAMD_PROP_ACCESS_WIDTH, &pp->width, in getmcprops() 111 int width = (int)mcpp->width; in gettbls() local 119 if (rcbmp && (*rcbmp = rct_rcbmap(rev, width, csmode)) == NULL) { in gettbls() 126 if (swzlp && (*swzlp = rct_bnkswzlinfo(rev, width)) == NULL) { in gettbls() 128 "table for MC rev %d width %d\n", caller, rev, width); in gettbls() 134 rct_csintlv_bits(rev, width, csmode, in gettbls() 141 rev, width, csmode, in gettbls() 665 *szp = MC_CS_SIZE(bamp, mcp.width); in mcamd_cs_size()
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | rfb.c | 458 c->rc_width = gci->width; in rfb_handshake_init_message() 810 w = gci->width; in translate_pixels() 812 VERIFY3S(gci->width, ==, c->rc_gci.width); in translate_pixels() 880 p += gci->width; in rfb_send_rect() 903 p += gci->width; in rfb_send_rect() 931 rect.rr_width = htons(gci->width); in rfb_send_all() 1006 if (c->rc_width != gci->width || in rfb_send_screen() 1008 c->rc_width = gci->width; in rfb_send_screen() 1030 c->rc_gci.width != c->rc_width || in rfb_send_screen() 1038 c->rc_gci.width = c->rc_width; in rfb_send_screen() [all …]
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prtable.c | 66 int trunc, size_t width) in pwd_getname() argument 73 if (trunc && n > width) in pwd_getname() 75 width - 1, uid, '*'); in pwd_getname() 82 else if (trunc && n > width) in pwd_getname() 84 width - 1, pwd->pw_name, '*'); in pwd_getname()
|
/illumos-gate/usr/src/cmd/col/ |
H A D | col.c | 299 int width, widthl, widthc; in outc() local 439 width = (widthc > widthl) ? widthc : widthl; in outc() 440 for (i = 0; i < width; i += wcscrwidth(c1)) { in outc() 444 wsinsert(line, width + (width - widthc + 1)); in outc() 445 for (i = 0; i < width; i++) { in outc() 451 for (i = widthc; i < width; i++) { in outc()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | main.c | 697 int columns, width = 0, lines; in help() local 705 if (len > width) in help() 706 width = len; in help() 708 width = (width + 8) &~ 7; in help() 709 columns = 80 / width; in help() 729 while (w < width) { in help()
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_bitmap.c | 284 data->width = console->fb.screen.x; in bitmap_devinit() 317 uint32_t width, height, pitch; in bitmap_cons_copy() local 336 src + increment, width); in bitmap_cons_copy() 339 width); in bitmap_cons_copy() 346 src + increment, width); in bitmap_cons_copy() 349 width); in bitmap_cons_copy() 415 da->col + da->width > console->fb.screen.x || in bitmap_cons_display() 419 size = da->width * console->fb.bpp; in bitmap_cons_display() 529 size = ca->width * bpp; in bitmap_display_cursor() 562 for (j = 0; j < ca->width; j++) { in bitmap_display_cursor() [all …]
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | doprnt.c | 465 ssize_t width; in _wndoprnt() local 757 if (width < 0) { in _wndoprnt() 758 width = -width; in _wndoprnt() 786 position = width; in _wndoprnt() 787 width = 0; in _wndoprnt() 817 if (width < 0) { in _wndoprnt() 818 width = -width; in _wndoprnt() 848 width = num; in _wndoprnt() 2134 if (width > k) { in _wndoprnt() 2135 count += (width - k); in _wndoprnt() [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efi_console.c | 204 plat_tem_get_prom_size(size_t *height, size_t *width) in plat_tem_get_prom_size() argument 211 *width = (size_t)cols; in plat_tem_get_prom_size() 214 *width = TEM_DEFAULT_COLS; in plat_tem_get_prom_size() 247 devinit.width = cols; in plat_cons_update_mode() 256 devinit.width = gfx_fb.framebuffer_common.framebuffer_width; in plat_cons_update_mode() 275 data->width = gfx_fb.framebuffer_common.framebuffer_width; in efi_fb_devinit() 298 data->width = cols; in efi_text_devinit() 364 if (row - 1 == da->row && da->col == 0 && da->width == col) in efi_text_cons_display() 365 da->width--; in efi_text_cons_display() 378 for (i = 0; i < da->width; i++) in efi_text_cons_display()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | visual_io.h | 247 screen_size_t width; /* Width of data */ member 266 screen_size_t width; /* Width of cursor */ member 307 screen_size_t width; /* Width of the device */ member
|
/illumos-gate/usr/src/cmd/pg/ |
H A D | pg.c | 855 int width, length; in ttyin() local 891 width = 2; in ttyin() 892 promptlen -= width; in ttyin() 893 while (width--) in ttyin() 909 width = 2; in ttyin() 912 width = 0; in ttyin() 942 promptlen += width; in ttyin() 1409 int length, width; in getaline() local 1435 if ((width = wcwidth(c)) < 0) in getaline() 1436 width = 0; in getaline() [all …]
|