| /netbsd-src/usr.bin/grep/ |
| H A D | fastgrep.c | 58 alloc_pattern(fastgrep_t *fg, const char *pat) in fgrepcomp() argument 62 fg->pattern = (unsigned char *)grep_strdup(pat); in fgrepcomp() 65 for (i = 0; fg->pattern[i]; i++) in fgrepcomp() 66 fg->pattern[i] = towupper((unsigned char)fg->pattern[i]); in fgrepcomp() 70 map_pattern(fastgrep_t *fg, int hasDot) in fgrepcomp() 75 fg->qsBc[i] = fg->len - hasDot; in fgrepcomp() 76 for (i = hasDot + 1; i < fg->len; i++) { 77 unsigned char ch = fg 81 fastcomp(fastgrep_t * fg,const char * pat) fastcomp() argument 205 grep_search(fastgrep_t * fg,const unsigned char * data,size_t len,regmatch_t * pmatch) grep_search() argument [all...] |
| /netbsd-src/sys/dev/hdaudio/ |
| H A D | hdaudio.c | 246 struct hdaudio_function_group *fg; in hdaudio_rirb_unsol() local 261 fg = &co->co_fg[i]; in hdaudio_rirb_unsol() 262 if (fg->fg_device && fg->fg_unsol) in hdaudio_rirb_unsol() 263 fg->fg_unsol(fg->fg_device, entry->resp); in hdaudio_rirb_unsol() 675 hdaudio_attach_fg(struct hdaudio_function_group *fg, prop_array_t config) in hdaudio_attach_fg() argument 677 struct hdaudio_codec *co = fg->fg_codec; in hdaudio_attach_fg() 680 uint64_t fgptr = (vaddr_t)fg; in hdaudio_attach_fg() 683 prop_dictionary_set_uint8(args, "function-group-type", fg->fg_type); in hdaudio_attach_fg() 685 prop_dictionary_set_uint8(args, "node-id", fg->fg_nid); in hdaudio_attach_fg() 686 prop_dictionary_set_uint16(args, "vendor-id", fg->fg_vendor); in hdaudio_attach_fg() [all …]
|
| /netbsd-src/external/bsd/ipf/dist/perl/ |
| H A D | Isbgraph | 104 $fg=$blue; 114 $im->setStyle($fg,$bg,$bg,$bg); 131 $im->string(gdMediumBoldFont,$xspace-3,$YGRAPH,"$outhr",$fg); 140 $im->string(gdMediumBoldFont,0,$YINIT+$YCELLGRIDSIZE*$i -6,"$num",$fg); 142 $im->string(gdSmallFont,$XGRIDSIZE/2-80,0,$option{'Title'},$fg); 199 $xspaceold+$middle,$YGRAPH,$fg); 206 $xspaceold+$middle,$YGRAPH,$fg); 215 $im->string(gdSmallFont,535,35,"Packets IN",$fg); 216 $im->string(gdSmallFont,535,55,"Packets OUT",$fg); 225 $xspace,$YGRAPH,$fg); [all …]
|
| /netbsd-src/sys/dev/rasops/ |
| H A D | rasops4.c | 121 uint32_t bg, fg; in rasops4_makestamp() local 127 fg = ATTR_FG(ri, attr) & 0xf; in rasops4_makestamp() 137 stamp[i] = (i & 1 ? fg : bg) << 12; in rasops4_makestamp() 138 stamp[i] |= (i & 2 ? fg : bg) << 8; in rasops4_makestamp() 139 stamp[i] |= (i & 4 ? fg : bg) << 4; in rasops4_makestamp() 140 stamp[i] |= (i & 8 ? fg : bg) << 0; in rasops4_makestamp() 143 stamp[i] = (i & 1 ? fg : bg) << 0; in rasops4_makestamp() 144 stamp[i] |= (i & 2 ? fg : bg) << 4; in rasops4_makestamp() 145 stamp[i] |= (i & 4 ? fg : bg) << 8; in rasops4_makestamp() 146 stamp[i] |= (i & 8 ? fg : bg) << 12; in rasops4_makestamp()
|
| H A D | rasops15.c | 134 uint32_t bg, fg; in rasops15_makestamp() local 140 fg = ATTR_FG(ri, attr) & 0xffff; in rasops15_makestamp() 144 stamp[i] = (i & 16 ? fg : bg); in rasops15_makestamp() 145 stamp[i] |= (i & 8 ? fg : bg) << 16; in rasops15_makestamp() 146 stamp[i + 1] = (i & 4 ? fg : bg); in rasops15_makestamp() 147 stamp[i + 1] |= (i & 2 ? fg : bg) << 16; in rasops15_makestamp() 149 stamp[i] = (i & 8 ? fg : bg); in rasops15_makestamp() 150 stamp[i] |= (i & 16 ? fg : bg) << 16; in rasops15_makestamp() 151 stamp[i + 1] = (i & 2 ? fg : bg); in rasops15_makestamp() 152 stamp[i + 1] |= (i & 4 ? fg : bg) << 16; in rasops15_makestamp()
|
| H A D | rasops2.c | 127 uint32_t bg, fg; in rasops2_makestamp() local 133 fg = ATTR_FG(ri, attr) & 3; in rasops2_makestamp() 143 stamp[i] = (i & 8 ? fg : bg); in rasops2_makestamp() 144 stamp[i] |= (i & 4 ? fg : bg) << 2; in rasops2_makestamp() 145 stamp[i] |= (i & 2 ? fg : bg) << 4; in rasops2_makestamp() 146 stamp[i] |= (i & 1 ? fg : bg) << 6; in rasops2_makestamp() 149 stamp[i] = (i & 1 ? fg : bg); in rasops2_makestamp() 150 stamp[i] |= (i & 2 ? fg : bg) << 2; in rasops2_makestamp() 151 stamp[i] |= (i & 4 ? fg : bg) << 4; in rasops2_makestamp() 152 stamp[i] |= (i & 8 ? fg : bg) << 6; in rasops2_makestamp()
|
| H A D | rasops8.c | 133 uint32_t bg, fg; in rasops8_makestamp() local 139 fg = ATTR_FG(ri, attr) & 0xff; in rasops8_makestamp() 149 stamp[i] = (i & 8 ? fg : bg); in rasops8_makestamp() 150 stamp[i] |= (i & 4 ? fg : bg) << 8; in rasops8_makestamp() 151 stamp[i] |= (i & 2 ? fg : bg) << 16; in rasops8_makestamp() 152 stamp[i] |= (i & 1 ? fg : bg) << 24; in rasops8_makestamp() 155 stamp[i] = (i & 1 ? fg : bg); in rasops8_makestamp() 156 stamp[i] |= (i & 2 ? fg : bg) << 8; in rasops8_makestamp() 157 stamp[i] |= (i & 4 ? fg : bg) << 16; in rasops8_makestamp() 158 stamp[i] |= (i & 8 ? fg : bg) << 24; in rasops8_makestamp()
|
| H A D | rasops32.c | 134 uint32_t fg, bg; in rasops32_makestamp() local 141 fg = ATTR_FG(ri, attr); in rasops32_makestamp() 144 stamp[i + 0] = i & 32 ? fg : bg; in rasops32_makestamp() 145 stamp[i + 1] = i & 16 ? fg : bg; in rasops32_makestamp() 146 stamp[i + 2] = i & 8 ? fg : bg; in rasops32_makestamp() 147 stamp[i + 3] = i & 4 ? fg : bg; in rasops32_makestamp()
|
| H A D | rasops24.c | 166 uint32_t bg, fg, c1, c2, c3, c4; in rasops24_makestamp() local 172 fg = ATTR_FG(ri, attr) & 0xffffff; in rasops24_makestamp() 176 c1 = i & 32 ? fg : bg; in rasops24_makestamp() 177 c2 = i & 16 ? fg : bg; in rasops24_makestamp() 178 c3 = i & 8 ? fg : bg; in rasops24_makestamp() 179 c4 = i & 4 ? fg : bg; in rasops24_makestamp() 181 c1 = i & 8 ? fg : bg; in rasops24_makestamp() 182 c2 = i & 4 ? fg : bg; in rasops24_makestamp() 183 c3 = i & 16 ? fg : bg; in rasops24_makestamp() 184 c4 = i & 32 ? fg : bg; in rasops24_makestamp()
|
| H A D | rasops1-4_putchar.h | 92 uint32_t bg, fg, lbg, rbg, clr[2], lmask, rmask, tmp; in NAME() local 124 fg = ATTR_FG(ri, attr); in NAME() 127 if (uc == ' ' || __predict_false(fg == bg)) { in NAME() 153 clr[1] = fg & COLOR_MASK; in NAME() 186 tmp = (*rp & lmask) | (fg & rmask); in NAME() 236 clr[1] = fg & COLOR_MASK; in NAME() 288 *bp = (*bp & lmask) | (fg & ~lmask); in NAME() 292 *bp++ = fg; in NAME() 294 *bp = (*bp & rmask) | (fg & ~rmask); in NAME()
|
| H A D | rasops1_putchar_width.h | 67 uint32_t bg, fg; in NAME() local 94 fg = ATTR_FG(ri, attr); in NAME() 97 if (uc == ' ' || __predict_false(fg == bg)) { in NAME() 135 *rp = fg; in NAME() 138 *hp = fg; in NAME()
|
| H A D | rasops.c | 615 uint32_t fg = fg0, bg = bg0; in rasops_allocattr_color() local 617 if (__predict_false(fg >= sizeof(rasops_isgray) || in rasops_allocattr_color() 622 fg &= 7; in rasops_allocattr_color() 631 fg = WS_DEFAULT_FG; in rasops_allocattr_color() 633 fg = WSCOL_WHITE; in rasops_allocattr_color() 642 if ((flg & WSATTR_HILIT) != 0 && fg < 8) in rasops_allocattr_color() 643 fg += 8; in rasops_allocattr_color() 646 uint32_t swap = fg; in rasops_allocattr_color() 647 fg = bg; in rasops_allocattr_color() 653 if (rasops_isgray[fg]) in rasops_allocattr_color() [all …]
|
| H A D | rasops1.c | 97 uint32_t bg, fg, lbg, rbg, fb, lmask, rmask, tmp, tmp0, tmp1; in rasops1_putchar() local 129 fg = ATTR_FG(ri, attr); in rasops1_putchar() 132 if (uc == ' ' || __predict_false(fg == bg)) { in rasops1_putchar() 185 tmp = (*rp & lmask) | (fg & rmask); in rasops1_putchar() 254 tmp0 = (rp[0] & lmask) | (fg & ~lmask); in rasops1_putchar() 255 tmp1 = (rp[1] & rmask) | (fg & ~rmask); in rasops1_putchar()
|
| /netbsd-src/sys/arch/luna68k/dev/ |
| H A D | omrasops.c | 83 uint8_t fg; member 227 om_set_rowattr(int row, uint8_t fg, uint8_t bg) in om_set_rowattr() argument 230 if (rowattr[row].fg == fg && rowattr[row].bg == bg) in om_set_rowattr() 235 if (rowattr[row].fg == rowattr[row].bg) { in om_set_rowattr() 237 if (rowattr[row].fg != fg && rowattr[row].bg != bg) { in om_set_rowattr() 242 rowattr[row].fg = fg; in om_set_rowattr() 254 /* Setting fg equa in om_reset_rowattr() 428 om_fgbg2rop(uint8_t fg,uint8_t bg) om_fgbg2rop() argument 456 uint8_t fg, bg; om_putchar() local 568 uint8_t fg, bg; om_erasecols() local 609 uint8_t fg, bg; om_eraserows() local 1212 uint8_t fg; om4_copyrows() local 1685 om_allocattr(void * cookie,int fg,int bg,int flags,long * attrp) om_allocattr() argument 1751 om_unpack_attr(long attr,uint8_t * fg,uint8_t * bg,int * underline) om_unpack_attr() argument [all...] |
| /netbsd-src/etc/etc.vax/ |
| H A D | disktab | 35 :pg#82080:og#49440:bg#8192:fg#1024: 46 :pg#158528:og#341696:bg#8192:fg#1024:\ 58 :pg#291192:og#49324:bg#8192:fg#1024: 69 :pg#192510:og#49910:bg#8192:fg#1024: 80 :pg#122320:og#49324:bg#8192:fg#1024: 91 :pg#631800:og#376000:bg#8192:fg#1024:\ 105 :pg#701280:og#376320:bg#8192:fg#1024:\ 117 :pg#213600:og#49600:bg#8192:fg#1024: 128 :pg#182112:og#342016:bg#8192:fg#1024:\ 140 :pg#432768:og#375360:bg#8192:fg#1024:\ [all …]
|
| /netbsd-src/external/bsd/openldap/dist/doc/devel/ |
| H A D | toolargs | 3 slapadd F S bcd fg j l no q s uvw 5 slapcat F H abcd fg l no s v 7 slapindex F bcd fg no q t v 8 slapmodify F S bcd fg j l no q s uvw 10 slapschema F H abcd fg l no s v
|
| /netbsd-src/external/bsd/ipf/dist/tools/ |
| H A D | ipftest.c | 709 frgroup_t *fg; local 714 for (fg = softc->ipf_groups[i][0]; fg != NULL; 715 fg = fg->fg_next) { 717 i, fg->fg_name, fg->fg_ref, fg->fg_flags); 718 dumprules(fg->fg_start); 723 for (fg = softc->ipf_groups[i][1]; fg != NULL; 724 fg = fg->fg_next) { 726 i, fg->fg_name, fg->fg_ref, fg->fg_flags); 727 dumprules(fg->fg_start);
|
| /netbsd-src/external/bsd/less/dist/ |
| H A D | screen.c | 121 #define SET_FG_COLOR(fg) _settextcolor(fg) argument 123 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); } argument 134 #define SET_FG_COLOR(fg) textcolor(fg) argument 136 #define SETCOLORS(fg,bg) { SET_FG_COLOR(fg); SET_BG_COLOR(bg); } argument 172 #define MAKEATTR(fg,bg) ((WORD)((fg)|((bg)<<4))) argument 175 #define SET_FG_COLOR(fg) { curr_attr &= ~0x0f; curr_attr |= (fg); APPLY_COLORS(); } argument 177 #define SETCOLORS(fg,bg) { curr_attr = MAKEATTR(fg,bg); APPLY_COLORS(); } argument 2511 int fg; in parse_color() local 2520 fg = parse_color4(str[0]); in parse_color() 2522 if (fg != CV_ERROR && bg != CV_ERROR) in parse_color() [all …]
|
| H A D | output.c | 102 static int fg, fgi, bg, bgi; in win_flush() local 124 if (fg == 0 && bg == 0) in win_flush() 126 fg = nm_fg_color & 7; in win_flush() 157 fg = nm_fg_color & 7; in win_flush() 208 fg = nm_fg_color & 7; in win_flush() 264 fg = screen_color[code - 30]; in win_flush() 268 fg = nm_fg_color & 7; in win_flush() 298 b = fg | fgi; in win_flush() 301 f = fg | fgi; in win_flush()
|
| /netbsd-src/sys/arch/hp300/dev/ |
| H A D | diofb.c | 336 diofb_allocattr(void *cookie, int fg, int bg, int flg, long *attr) in diofb_allocattr() argument 343 fg = WSCOL_WHITE; in diofb_allocattr() 349 swap = fg; in diofb_allocattr() 350 fg = bg; in diofb_allocattr() 354 *attr = (bg << 16) | (fg << 24) | (flg & WSATTR_UNDERLINE); in diofb_allocattr() 396 int fg, bg; in diofb_erasecols() local 400 rasops_unpack_attr(attr, &fg, &bg, NULL); in diofb_erasecols() 420 int fg, bg; in diofb_eraserows() local 424 rasops_unpack_attr(attr, &fg, &bg, NULL); in diofb_eraserows()
|
| /netbsd-src/sys/dev/rcons/ |
| H A D | rcons_subr.c | 478 rcons_setcolor(struct rconsole *rc, int fg, int bg) in rcons_setcolor() argument 482 if (fg > WSCOL_WHITE || fg < 0) in rcons_setcolor() 490 bg = fg; in rcons_setcolor() 491 fg = flg; in rcons_setcolor() 498 bg = fg; in rcons_setcolor() 499 fg = flg; in rcons_setcolor() 508 rc->rc_fgcolor = fg; in rcons_setcolor() 509 rc->rc_ops->allocattr(rc->rc_cookie, fg, bg, flg, &rc->rc_attr); in rcons_setcolor()
|
| /netbsd-src/share/examples/disktab/ |
| H A D | disktab | 176 :pg#72240:bg#4096:fg#512:\ 186 :pg#118734:bg#4096:fg#1024:\ 196 :pg#206640:bg#4096:fg#1024:\ 206 :pg#706238:bg#4096:fg#1024:\ 216 :pg#1031355:bg#4096:fg#512:\ 224 :pg#41840:bg#4096:fg#512:\ 234 :pg#516600:bg#4096:fg#512:\ 244 :pg#111006:bg#4096:fg#1024:\ 254 :pg#247590:bg#4096:fg#1024:\ 264 :pg#528444:bg#4096:fg#1024:\ [all …]
|
| /netbsd-src/sys/arch/sgimips/gio/ |
| H A D | light.c | 153 #define LIGHT_ATTR_ENCODE(fg, bg) (((fg << 8) & 0xff00) | (bg * 0x00ff)) argument 501 light_allocattr(void *c, int fg, int bg, int flags, long *attr) in light_allocattr() argument 508 fg = WSCOL_WHITE; in light_allocattr() 513 fg += 8; in light_allocattr() 516 int tmp = fg; in light_allocattr() 517 fg = bg; in light_allocattr() 521 *attr = LIGHT_ATTR_ENCODE(fg, bg); in light_allocattr()
|
| /netbsd-src/external/bsd/less/dist/lesstest/lt/ |
| H A D | colorbars.lt | 52 this is black fg :[30m 30 [m;END 53 this is red fg :[31m 31 [m;END 54 this is green fg :[32m 32 [m;END 55 this is yellow fg :[33m 33 [m;END 56 this is blue fg :[34m 34 [m;END 57 this is magenta fg :[35m 35 [m;END 58 this is cyan fg :[36m 36 [m;END 59 this is white fg :[37m 37 [m;END 60 this is bright black fg :[90m 90 [m;END 61 this is bright red fg :[91m 91 [m;END [all …]
|
| /netbsd-src/sys/external/bsd/ipf/netinet/ |
| H A D | fil.c | 3490 frgroup_t *fg, **fgp; in ipf_findgroup() local 3498 while ((fg = *fgp) != NULL) { in ipf_findgroup() 3499 if (strncmp(group, fg->fg_name, FR_GROUPLEN) == 0) in ipf_findgroup() 3502 fgp = &fg->fg_next; in ipf_findgroup() 3506 return fg; in ipf_findgroup() 3529 frgroup_t *fg, **fgp; in ipf_group_add() local 3541 fg = ipf_findgroup(softc, group, unit, set, &fgp); in ipf_group_add() 3542 if (fg != NULL) { in ipf_group_add() 3543 if (fg->fg_head == NULL && head != NULL) in ipf_group_add() 3544 fg->fg_head = head; in ipf_group_add() [all …]
|