/src/usr.bin/grep/ |
fastgrep.c | 58 alloc_pattern(fastgrep_t *fg, const char *pat) 62 fg->pattern = (unsigned char *)grep_strdup(pat); 65 for (i = 0; fg->pattern[i]; i++) 66 fg->pattern[i] = towupper((unsigned char)fg->pattern[i]); 70 map_pattern(fastgrep_t *fg, int hasDot) 75 fg->qsBc[i] = fg->len - hasDot; 76 for (i = hasDot + 1; i < fg->len; i++) { 77 unsigned char ch = fg->pattern[i] [all...] |
/src/sys/dev/rasops/ |
rasops15.c | 134 uint32_t bg, fg; local in function:rasops15_makestamp 140 fg = ATTR_FG(ri, attr) & 0xffff; 144 stamp[i] = (i & 16 ? fg : bg); 145 stamp[i] |= (i & 8 ? fg : bg) << 16; 146 stamp[i + 1] = (i & 4 ? fg : bg); 147 stamp[i + 1] |= (i & 2 ? fg : bg) << 16; 149 stamp[i] = (i & 8 ? fg : bg); 150 stamp[i] |= (i & 16 ? fg : bg) << 16; 151 stamp[i + 1] = (i & 2 ? fg : bg); 152 stamp[i + 1] |= (i & 4 ? fg : bg) << 16 [all...] |
rasops4.c | 121 uint32_t bg, fg; local in function:rasops4_makestamp 127 fg = ATTR_FG(ri, attr) & 0xf; 137 stamp[i] = (i & 1 ? fg : bg) << 12; 138 stamp[i] |= (i & 2 ? fg : bg) << 8; 139 stamp[i] |= (i & 4 ? fg : bg) << 4; 140 stamp[i] |= (i & 8 ? fg : bg) << 0; 143 stamp[i] = (i & 1 ? fg : bg) << 0; 144 stamp[i] |= (i & 2 ? fg : bg) << 4; 145 stamp[i] |= (i & 4 ? fg : bg) << 8; 146 stamp[i] |= (i & 8 ? fg : bg) << 12 [all...] |
rasops8.c | 133 uint32_t bg, fg; local in function:rasops8_makestamp 139 fg = ATTR_FG(ri, attr) & 0xff; 149 stamp[i] = (i & 8 ? fg : bg); 150 stamp[i] |= (i & 4 ? fg : bg) << 8; 151 stamp[i] |= (i & 2 ? fg : bg) << 16; 152 stamp[i] |= (i & 1 ? fg : bg) << 24; 155 stamp[i] = (i & 1 ? fg : bg); 156 stamp[i] |= (i & 2 ? fg : bg) << 8; 157 stamp[i] |= (i & 4 ? fg : bg) << 16; 158 stamp[i] |= (i & 8 ? fg : bg) << 24 [all...] |
rasops2.c | 127 uint32_t bg, fg; local in function:rasops2_makestamp 133 fg = ATTR_FG(ri, attr) & 3; 143 stamp[i] = (i & 8 ? fg : bg); 144 stamp[i] |= (i & 4 ? fg : bg) << 2; 145 stamp[i] |= (i & 2 ? fg : bg) << 4; 146 stamp[i] |= (i & 1 ? fg : bg) << 6; 149 stamp[i] = (i & 1 ? fg : bg); 150 stamp[i] |= (i & 2 ? fg : bg) << 2; 151 stamp[i] |= (i & 4 ? fg : bg) << 4; 152 stamp[i] |= (i & 8 ? fg : bg) << 6 [all...] |
rasops32.c | 134 uint32_t fg, bg; local in function:rasops32_makestamp 141 fg = ATTR_FG(ri, attr); 144 stamp[i + 0] = i & 32 ? fg : bg; 145 stamp[i + 1] = i & 16 ? fg : bg; 146 stamp[i + 2] = i & 8 ? fg : bg; 147 stamp[i + 3] = i & 4 ? fg : bg;
|
rasops1_putchar_width.h | 67 uint32_t bg, fg; local in function:NAME 94 fg = ATTR_FG(ri, attr); 96 /* If fg and bg match this becomes a space character */ 97 if (uc == ' ' || __predict_false(fg == bg)) { 135 *rp = fg; 138 *hp = fg;
|
rasops1-4_putchar.h | 92 uint32_t bg, fg, lbg, rbg, clr[2], lmask, rmask, tmp; local in function:NAME 124 fg = ATTR_FG(ri, attr); 126 /* If fg and bg match this becomes a space character */ 127 if (uc == ' ' || __predict_false(fg == bg)) { 153 clr[1] = fg & COLOR_MASK; 186 tmp = (*rp & lmask) | (fg & rmask); 236 clr[1] = fg & COLOR_MASK; 288 *bp = (*bp & lmask) | (fg & ~lmask); 292 *bp++ = fg; 294 *bp = (*bp & rmask) | (fg & ~rmask) [all...] |
rasops24.c | 166 uint32_t bg, fg, c1, c2, c3, c4; local in function:rasops24_makestamp 172 fg = ATTR_FG(ri, attr) & 0xffffff; 176 c1 = i & 32 ? fg : bg; 177 c2 = i & 16 ? fg : bg; 178 c3 = i & 8 ? fg : bg; 179 c4 = i & 4 ? fg : bg; 181 c1 = i & 8 ? fg : bg; 182 c2 = i & 4 ? fg : bg; 183 c3 = i & 16 ? fg : bg; 184 c4 = i & 32 ? fg : bg [all...] |
rasops1.c | 97 uint32_t bg, fg, lbg, rbg, fb, lmask, rmask, tmp, tmp0, tmp1; local in function:rasops1_putchar 129 fg = ATTR_FG(ri, attr); 131 /* If fg and bg match this becomes a space character */ 132 if (uc == ' ' || __predict_false(fg == bg)) { 185 tmp = (*rp & lmask) | (fg & rmask); 254 tmp0 = (rp[0] & lmask) | (fg & ~lmask); 255 tmp1 = (rp[1] & rmask) | (fg & ~rmask);
|
rasops.c | 120 * For the cursor the fg/bg indices are bit inverted, so 615 uint32_t fg = fg0, bg = bg0; local in function:rasops_allocattr_color 617 if (__predict_false(fg >= sizeof(rasops_isgray) || 622 fg &= 7; 631 fg = WS_DEFAULT_FG; 633 fg = WSCOL_WHITE; 642 if ((flg & WSATTR_HILIT) != 0 && fg < 8) 643 fg += 8; 646 uint32_t swap = fg; 647 fg = bg 669 uint32_t fg = fg0, bg = bg0; local in function:rasops_allocattr_mono 1482 uint16_t fg, *rp; local in function:rasops_putchar_rotated_cw 1606 uint16_t fg, *rp; local in function:rasops_putchar_rotated_ccw [all...] |
/src/sys/dev/hdaudio/ |
hdaudio.c | 246 struct hdaudio_function_group *fg; local in function:hdaudio_rirb_unsol 261 fg = &co->co_fg[i]; 262 if (fg->fg_device && fg->fg_unsol) 263 fg->fg_unsol(fg->fg_device, entry->resp); 675 hdaudio_attach_fg(struct hdaudio_function_group *fg, prop_array_t config) 677 struct hdaudio_codec *co = fg->fg_codec; 680 uint64_t fgptr = (vaddr_t)fg; 683 prop_dictionary_set_uint8(args, "function-group-type", fg->fg_type) 704 struct hdaudio_function_group *fg; local in function:hdaudio_codec_attach 948 struct hdaudio_function_group *fg; local in function:hdaudio_rescan 968 struct hdaudio_function_group *fg; local in function:hdaudio_childdet 1326 struct hdaudio_function_group *fg = NULL; local in function:hdaudioioctl_fgrp_lookup 1349 struct hdaudio_function_group *fg; local in function:hdaudioioctl_fgrp_info 1395 struct hdaudio_function_group *fg; local in function:hdaudioioctl_fgrp_getconfig 1443 struct hdaudio_function_group *fg; local in function:hdaudioioctl_fgrp_setconfig 1480 struct hdaudio_function_group *fg; local in function:hdaudio_dispatch_fgrp_ioctl [all...] |
/src/sys/kern/ |
sys_aio.c | 413 aiosp_fg_teardown_locked(struct aiosp *sp, struct aiost_file_group *fg) 415 if (fg == NULL) { 419 RB_REMOVE(aiost_file_tree, sp->fg_root, fg); 420 mutex_destroy(&fg->mtx); 421 kmem_free(fg, sizeof(*fg)); 428 aiosp_fg_teardown(struct aiosp *sp, struct aiost_file_group *fg) 430 if (fg == NULL) { 435 aiosp_fg_teardown_locked(sp, fg); 461 struct aiost_file_group *fg = NULL local in function:aiosp_distribute_jobs 834 struct aiost_file_group *fg = st->fg; local in function:aiost_entry 887 struct aiost_file_group *fg = st->fg; local in function:aiost_entry [all...] |
/src/sys/arch/luna68k/dev/ |
omrasops.c | 83 uint8_t fg; member in struct:__anon1395deb30108::__anon1395deb3020a::__anon1395deb30308 227 om_set_rowattr(int row, uint8_t fg, uint8_t bg) 230 if (rowattr[row].fg == fg && rowattr[row].bg == bg) 235 if (rowattr[row].fg == rowattr[row].bg) { 237 if (rowattr[row].fg != fg && rowattr[row].bg != bg) { 242 rowattr[row].fg = fg; 254 /* Setting fg equal to bg means 'reset' or 'erased'. * 456 uint8_t fg, bg; local in function:om_putchar 568 uint8_t fg, bg; local in function:om_erasecols 609 uint8_t fg, bg; local in function:om_eraserows 1212 uint8_t fg; local in function:om4_copyrows [all...] |
/src/sys/dev/rcons/ |
rcons_subr.c | 478 rcons_setcolor(struct rconsole *rc, int fg, int bg) 482 if (fg > WSCOL_WHITE || fg < 0) 490 bg = fg; 491 fg = flg; 498 bg = fg; 499 fg = flg; 508 rc->rc_fgcolor = fg; 509 rc->rc_ops->allocattr(rc->rc_cookie, fg, bg, flg, &rc->rc_attr);
|
/src/sys/arch/hp300/dev/ |
diofb.c | 336 diofb_allocattr(void *cookie, int fg, int bg, int flg, long *attr) 343 fg = WSCOL_WHITE; 349 swap = fg; 350 fg = bg; 354 *attr = (bg << 16) | (fg << 24) | (flg & WSATTR_UNDERLINE); 396 int fg, bg; local in function:diofb_erasecols 400 rasops_unpack_attr(attr, &fg, &bg, NULL); 420 int fg, bg; local in function:diofb_eraserows 424 rasops_unpack_attr(attr, &fg, &bg, NULL);
|
/src/sys/arch/sgimips/gio/ |
light.c | 153 #define LIGHT_ATTR_ENCODE(fg, bg) (((fg << 8) & 0xff00) | (bg * 0x00ff)) 501 light_allocattr(void *c, int fg, int bg, int flags, long *attr) 508 fg = WSCOL_WHITE; 513 fg += 8; 516 int tmp = fg; 517 fg = bg; 521 *attr = LIGHT_ATTR_ENCODE(fg, bg);
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/ |
nouveau_nv04_fbcon.c | 87 uint32_t fg; local in function:nv04_fbcon_imageblit 102 fg = ((uint32_t *) info->pseudo_palette)[image->fg_color]; 105 fg = image->fg_color; 114 OUT_RING(chan, fg);
|
/src/sys/arch/playstation2/ee/ |
gsfb.c | 516 _gsfb_allocattr(void *cookie, int fg, int bg, int flags, long *attr) 523 fg = WS_DEFAULT_FG; 528 fg += 8; 533 *attr = ATTR_BG_SET(bg) | ATTR_FG_SET(fg) | flags; 590 u_int32_t fg, bg; local in function:gsfb_font_expand_psmct32 596 fg = gsfb_ansi_psmct32[ATTR_FG_GET(attr)]; 604 *buf++ = (b & 0x80) ? fg : bg;
|
/src/sys/external/bsd/ipf/netinet/ |
fil.c | 3490 frgroup_t *fg, **fgp; local in function:ipf_findgroup 3498 while ((fg = *fgp) != NULL) { 3499 if (strncmp(group, fg->fg_name, FR_GROUPLEN) == 0) 3502 fgp = &fg->fg_next; 3506 return fg; 3529 frgroup_t *fg, **fgp; local in function:ipf_group_add 3541 fg = ipf_findgroup(softc, group, unit, set, &fgp); 3542 if (fg != NULL) { 3543 if (fg->fg_head == NULL && head != NULL) 3544 fg->fg_head = head 3651 frgroup_t *fg; local in function:ipf_getrulen 3786 frgroup_t *fg, **fgp; local in function:ipf_flush_groups 4417 frgroup_t *fg; local in function:frrequest 5541 frgroup_t *fg; local in function:ipf_srcgrpmap 5569 frgroup_t *fg; local in function:ipf_dstgrpmap 7628 frgroup_t *fg; local in function:ipf_nextrule 7678 frgroup_t *fg; local in function:ipf_getnextrule [all...] |
/src/sys/dev/ic/ |
ct65550.c | 198 uint32_t bg, fg, ul; local in function:chipsfb_do_attach 284 rasops_unpack_attr(defattr, &fg, &bg, &ul); 471 int32_t x, y, width, height, fg, bg, ul; local in function:chipsfb_erasecols 478 rasops_unpack_attr(fillattr, &fg, &bg, &ul); 508 int32_t x, y, width, height, fg, bg, ul; local in function:chipsfb_eraserows 511 rasops_unpack_attr(fillattr, &fg, &bg, &ul); 724 int fg, bg, uc; local in function:chipsfb_putchar 733 fg = (u_char)ri->ri_devcmap[(attr >> 24) & 0xf]; 742 chipsfb_setup_mono(sc, x, y, wi, he, fg, bg); 750 int height, uint32_t fg, uint32_t bg [all...] |
/src/usr.sbin/sysinst/ |
main.c | 117 unsigned int fg; member in struct:__anona4da46d20108 197 clr_arg.fg=COLOR_WHITE; 246 sscanf(optarg, "%u:%u", &clr_arg.bg, &clr_arg.fg); 292 do_coloring(clr_arg.fg,clr_arg.bg); 506 (void)fprintf(stderr, "usage: sysinst [-C bg:fg] [-D" 514 "\t-C bg:fg\n\t\tuse different color scheme\n"
|
/src/sys/dev/sbus/ |
mgx.c | 229 mgx_set_fg(struct mgx_softc *sc, uint32_t fg) 231 if (fg == sc->sc_r_fg) return; 232 sc->sc_r_fg = fg; 234 mgx_write_4(sc, ATR_FG, fg); 675 mgx_rectfill(void *cookie, int x, int y, int wi, int he, long fg) 684 col = scr->scr_ri.ri_devcmap[fg]; 704 uint32_t fg, bg; local in function:mgx_putchar_aa 711 fg = (attr >> 24) & 0xf; 719 mgx_rectfill(sc, x, y + he - 2, wi, 1, fg); 740 mgx_rectfill(sc, x, y + he - 2, wi, 1, fg); 751 uint32_t fg, bg, scratch = ((sc->sc_stride * sc->sc_height) + 7) & ~7; local in function:mgx_putchar_mono [all...] |
tcx.c | 985 volatile uint64_t bg, fg, temp, mask; local in function:tcx_putchar 1019 fg = (uint64_t)*cdata >> 1022 fg = (uint64_t)*cdata << 1025 sc->sc_rstip[addr] = fg | temp; 1037 fg = temp | (uint64_t)*wdata >> 1040 fg = temp | (uint64_t)*wdata << 1043 sc->sc_rstip[addr] = fg; 1078 fg = (uint64_t)bork >> (shift - 24); 1079 sc->sc_rstip[addr] = fg | temp; 1094 fg = (uint64_t)bork >> (shift - 16) [all...] |
/src/sys/arch/sparc64/dev/ |
ffb.c | 804 ffb_ras_setfg(struct ffb_softc *sc, int32_t fg) 807 if (fg == sc->sc_fg_cache) 809 sc->sc_fg_cache = fg; 810 FBC_WRITE(sc, FFB_FBC_FG, fg); 1048 uint32_t fg, bg; local in function:ffb_putchar_mono 1062 fg = ri->ri_devcmap[(attr >> 24) & 0xf]; 1069 ffb_ras_setfg(sc, fg); 1137 uint32_t fg, bg; local in function:ffb_putchar_aa 1153 fg = ri->ri_devcmap[(attr >> 24) & 0xf]; 1172 ffb_ras_setfg(sc, fg); [all...] |