/illumos-gate/usr/src/uts/i86pc/boot/ |
H A D | boot_fb.c | 353 boot_get_color(uint32_t *fg, uint32_t *bg) in boot_get_color() argument 372 *fg = brt_xlate[fb_info.bg_color]; in boot_get_color() 374 *fg = dim_xlate[fb_info.bg_color]; in boot_get_color() 376 *fg = fb_info.bg_color; in boot_get_color() 381 *fg = brt_xlate[fb_info.fg_color]; in boot_get_color() 383 *fg = dim_xlate[fb_info.fg_color]; in boot_get_color() 385 *fg = fb_info.fg_color; in boot_get_color() 471 uint32_t fg, bg, toffset; in boot_fb_init() local 474 boot_get_color(&fg, &bg); in boot_fb_init() 524 uint32_t fg, bg; in bit_to_pix() local [all …]
|
H A D | boot_vga.c | 86 uint32_t fg, bg; in get_vga_color() local 88 boot_get_color(&fg, &bg); in get_vga_color() 90 color |= solaris_color_to_pc_color[fg]; in get_vga_color()
|
/illumos-gate/usr/src/uts/common/io/mlxcx/ |
H A D | mlxcx_ring.c | 523 mlxcx_flow_group_t *fg; in mlxcx_teardown_rx_group() local 540 fg = g->mlg_port->mlp_bcast; in mlxcx_teardown_rx_group() 541 fe = list_head(&fg->mlfg_entries); in mlxcx_teardown_rx_group() 547 fg = g->mlg_port->mlp_promisc; in mlxcx_teardown_rx_group() 548 fe = list_head(&fg->mlfg_entries); in mlxcx_teardown_rx_group() 560 fg = g->mlg_rx_vlan_def_fg; in mlxcx_teardown_rx_group() 561 if (fg != NULL) { in mlxcx_teardown_rx_group() 562 fe = list_head(&fg->mlfg_entries); in mlxcx_teardown_rx_group() 569 fg = g->mlg_rx_vlan_promisc_fg; in mlxcx_teardown_rx_group() 570 if (fg != NULL) { in mlxcx_teardown_rx_group() [all …]
|
H A D | mlxcx.c | 938 mlxcx_flow_group_t *fg; in mlxcx_teardown_flow_table() local 955 while ((fg = list_remove_head(&ft->mlft_groups)) != NULL) { in mlxcx_teardown_flow_table() 956 if (fg->mlfg_state & MLXCX_FLOW_GROUP_CREATED && in mlxcx_teardown_flow_table() 957 !(fg->mlfg_state & MLXCX_FLOW_GROUP_DESTROYED)) { in mlxcx_teardown_flow_table() 958 if (!mlxcx_cmd_destroy_flow_group(mlxp, fg)) { in mlxcx_teardown_flow_table() 960 "group %u", fg->mlfg_num); in mlxcx_teardown_flow_table() 963 kmem_free(fg, sizeof (mlxcx_flow_group_t)); in mlxcx_teardown_flow_table() 1846 mlxcx_flow_group_t *fg; in mlxcx_setup_ports() local 1940 fg = kmem_zalloc(sizeof (mlxcx_flow_group_t), KM_SLEEP); in mlxcx_setup_ports() 1941 list_insert_tail(&ft->mlft_groups, fg); in mlxcx_setup_ports() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_mech_tabs.c | 419 crypto_func_group_t fg = mech_info->cm_func_group_mask; in kcf_add_mech_provider() local 422 if (fg & CRYPTO_FG_DIGEST || fg & CRYPTO_FG_DIGEST_ATOMIC) in kcf_add_mech_provider() 424 else if (fg & CRYPTO_FG_ENCRYPT || fg & CRYPTO_FG_DECRYPT || in kcf_add_mech_provider() 425 fg & CRYPTO_FG_ENCRYPT_ATOMIC || in kcf_add_mech_provider() 426 fg & CRYPTO_FG_DECRYPT_ATOMIC) in kcf_add_mech_provider() 428 else if (fg & CRYPTO_FG_MAC || fg & CRYPTO_FG_MAC_ATOMIC) in kcf_add_mech_provider() 430 else if (fg & CRYPTO_FG_SIGN || fg & CRYPTO_FG_VERIFY || in kcf_add_mech_provider() 431 fg & CRYPTO_FG_SIGN_ATOMIC || in kcf_add_mech_provider() 432 fg & CRYPTO_FG_VERIFY_ATOMIC || in kcf_add_mech_provider() 433 fg & CRYPTO_FG_SIGN_RECOVER || in kcf_add_mech_provider() [all …]
|
H A D | kcf_sched.c | 362 crypto_mechanism_t **mech2, crypto_func_group_t *fg) in can_resubmit() argument 379 *fg = (optype == KCF_OP_INIT) ? CRYPTO_FG_DIGEST : in can_resubmit() 389 *fg = (optype == KCF_OP_INIT) ? CRYPTO_FG_MAC : in can_resubmit() 401 *fg = CRYPTO_FG_SIGN; in can_resubmit() 404 *fg = CRYPTO_FG_SIGN_ATOMIC; in can_resubmit() 408 *fg = CRYPTO_FG_SIGN_RECOVER_ATOMIC; in can_resubmit() 420 *fg = CRYPTO_FG_VERIFY; in can_resubmit() 423 *fg = CRYPTO_FG_VERIFY_ATOMIC; in can_resubmit() 427 *fg = CRYPTO_FG_VERIFY_RECOVER_ATOMIC; in can_resubmit() 437 *fg = (optype == KCF_OP_INIT) ? CRYPTO_FG_ENCRYPT : in can_resubmit() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/netcfgd/ |
H A D | netcfgd.c | 53 static boolean_t fg = B_FALSE; variable 64 if (fg) { in log_out() 89 if (!fg) in start_logging() 153 fg = B_TRUE; in main() 163 if (!fg) in main()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipftest.c | 687 frgroup_t *fg; local 693 for (fg = ifs->ifs_ipfgroups[i][0]; fg != NULL; 694 fg = fg->fg_next) { 696 i, fg->fg_name, fg->fg_ref, fg->fg_flags); 697 for (fr = fg->fg_start; fr != NULL; fr = fr->fr_next) { 709 for (fg = ifs->ifs_ipfgroups[i][1]; fg != NULL; 710 fg = fg->fg_next) { 712 i, fg->fg_name, fg->fg_ref, fg->fg_flags); 713 for (fr = fg->fg_start; fr != NULL; fr = fr->fr_next) {
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | jobs.c | 224 statjob(struct job *jp, int stat, int fg, int rc) in statjob() argument 233 if (!fg && jp->j_jid) { in statjob() 244 if (fg) { in statjob() 267 if (!fg || jp->j_xval != SIGINT) { in statjob() 274 if (!fg && jp->j_jid) { in statjob() 279 if (fg) { in statjob() 412 restartjob(struct job *jp, int fg) in restartjob() argument 423 if (fg) { in restartjob() 438 if (fg) { in restartjob() 684 makejob(int monitor, int fg) in makejob() argument [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_bitmap.c | 362 alpha_blend(uint8_t fg, uint8_t bg, uint8_t alpha) in alpha_blend() argument 370 return (fg); in alpha_blend() 371 blend = (alpha * fg + (0xFF - alpha) * bg); in alpha_blend() 520 uint32_t fg, bg, offset, size; in bitmap_display_cursor() local 538 fg = ca->fg_color.eight; in bitmap_display_cursor() 544 sfb8[j] = (sfb8[j] ^ (fg & 0xff)) ^ (bg & 0xff); in bitmap_display_cursor() 553 fg = ca->fg_color.sixteen[0] << 8; in bitmap_display_cursor() 554 fg |= ca->fg_color.sixteen[1]; in bitmap_display_cursor() 563 sfb16[j] = (sfb16[j] ^ (fg & 0xffff)) ^ in bitmap_display_cursor() 572 fg = ca->fg_color.twentyfour[0] << 16; in bitmap_display_cursor() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | tem_safe.c | 543 tem_select_color(struct tem_vt_state *tem, int color, boolean_t fg) in tem_select_color() argument 553 if (fg == B_TRUE) { in tem_select_color() 565 if (fg == B_TRUE) in tem_select_color() 576 if (fg == B_TRUE) { in tem_select_color() 1284 text_color_t fg; in tem_safe_outch() local 1298 tem_safe_get_attr(tem, &fg, &bg, &attr, TEM_ATTR_REVERSE); in tem_safe_outch() 1300 tem->tvs_outbuf[tem->tvs_outindex].tc_fg_color = fg; in tem_safe_outch() 1793 text_color_t bg, fg; in tem_safe_text_display() local 1804 tem_safe_get_color(tem, &fg, &bg, &string[i]); in tem_safe_text_display() 1805 tem_safe_set_color(&fg, &da.fg_color); in tem_safe_text_display() [all …]
|
H A D | tem.c | 214 text_color_t fg; in tem_internal_init() local 252 tem_safe_get_attr(ptem, &fg, &bg, &attr, TEM_ATTR_SCREEN_REVERSE); in tem_internal_init() 257 ptem->tvs_screen_rows[i][j].tc_fg_color = fg; in tem_internal_init() 970 uint8_t fg, bg; in tems_get_initial_color() local 972 fg = DEFAULT_ANSI_FOREGROUND; in tems_get_initial_color() 980 plat_tem_get_colors(&fg, &bg); in tems_get_initial_color() 982 pcolor->fg_color.n = fg; in tems_get_initial_color()
|
/illumos-gate/usr/src/boot/common/ |
H A D | tem.c | 889 uint8_t fg, bg; in tems_get_initial_color() local 891 fg = DEFAULT_ANSI_FOREGROUND; in tems_get_initial_color() 893 plat_tem_get_colors(&fg, &bg); in tems_get_initial_color() 894 pcolor->fg_color.n = fg; in tems_get_initial_color() 1190 tem_select_color(struct tem_vt_state *tem, int color, bool fg) in tem_select_color() argument 1200 if (fg == true) { in tem_select_color() 1212 if (fg == true) in tem_select_color() 1223 if (fg == true) { in tem_select_color() 1837 text_color_t fg; in tem_outch() local 1848 tem_get_attr(tem, &fg, &bg, &attr, TEM_ATTR_REVERSE); in tem_outch() [all …]
|
H A D | gfx_fb.c | 159 plat_tem_get_colors(uint8_t *fg, uint8_t *bg) in plat_tem_get_colors() argument 161 *fg = gfx_fg; in plat_tem_get_colors() 1063 alpha_blend(uint8_t fg, uint8_t bg, uint8_t alpha) in alpha_blend() argument 1076 return (fg); in alpha_blend() 1077 blend = (alpha * fg + (max_alpha - alpha) * bg); in alpha_blend() 1198 gfx_fb_cursor_impl(void *buf, uint32_t stride, uint32_t fg, uint32_t bg, in gfx_fb_cursor_impl() argument 1225 row[j].p32 = (row[j].p32 ^ fg) ^ bg; in gfx_fb_cursor_impl() 1240 } fg, bg; in gfx_fb_display_cursor() local 1242 bcopy(&ca->fg_color, &fg.p32, sizeof (fg.p32)); in gfx_fb_display_cursor() 1250 fg.p32, bg.p32, ca); in gfx_fb_display_cursor() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | fil.c | 3328 frgroup_t *fg, **fgp; local 3336 while ((fg = *fgp) != NULL) { 3337 if (strncmp(group, fg->fg_name, FR_GROUPLEN) == 0) 3340 fgp = &fg->fg_next; 3344 return fg; 3370 frgroup_t *fg, **fgp; local 3382 fg = fr_findgroup(group, unit, set, &fgp, ifs); 3383 if (fg != NULL) { 3384 if (fg->fg_flags == 0) 3385 fg->fg_flags = gflags; [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | vid_puts.c | 141 short fg, bg; in vid_puts() local 151 } else if (pair_content(pair, &fg, &bg) == OK) { in vid_puts() 154 tparm(set_foreground, (long) fg, in vid_puts() 162 set_a_foreground, (long) fg, in vid_puts()
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | vid_puts.c | 145 short fg, bg; in vid_puts() local 151 } else if (pair_content(pair, &fg, &bg) == OK) { in vid_puts() 153 (void) TPUTS(tparm(set_a_foreground, (long) fg, in vid_puts() 157 (void) TPUTS(tparm(set_foreground, (long) fg, in vid_puts()
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_main.c | 476 boolean_t fg = B_FALSE; in main() local 488 fg = B_TRUE; in main() 496 if (!fg && getenv("SMF_FMRI") == NULL) { in main() 503 if (!fg && !ipmgmt_daemonize()) in main()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | flock.c | 232 struct flock_globals *fg; in flk_get_lockmgr_status() local 242 fg = flk_get_globals(); in flk_get_lockmgr_status() 243 return (fg->flk_lockmgr_status); in flk_get_lockmgr_status() 963 struct flock_globals *fg; in flk_zone_init() local 966 fg = kmem_alloc(sizeof (*fg), KM_SLEEP); in flk_zone_init() 967 fg->flk_lockmgr_status = FLK_LOCKMGR_UP; in flk_zone_init() 969 fg->lockmgr_status[i] = FLK_LOCKMGR_UP; in flk_zone_init() 970 return (fg); in flk_zone_init() 977 struct flock_globals *fg = data; in flk_zone_fini() local 979 kmem_free(fg, sizeof (*fg)); in flk_zone_fini() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | main.c | 55 boolean_t fg = B_FALSE; variable 349 fg = B_TRUE; in main() 360 if (!fg) in main()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | ts.c | 2089 proc_t *leader, *fg, *bg; in ia_set_process_group() local 2148 for (fg = (proc_t *)pgfind(fg_pgid); fg != NULL; fg = fg->p_pglink) { in ia_set_process_group() 2152 if (fg->p_stat == SIDL) { in ia_set_process_group() 2160 if (fg->p_pid == fg->p_sessp->s_sid) { in ia_set_process_group() 2165 "group on:proc %p", fg); in ia_set_process_group() 2168 if (mutex_tryenter(&fg->p_lock) == 0) in ia_set_process_group() 2171 mutex_enter(&fg->p_lock); in ia_set_process_group() 2174 if ((tx = proctot(fg)) == NULL) { in ia_set_process_group() 2175 mutex_exit(&fg->p_lock); in ia_set_process_group() 2194 } while ((tx = tx->t_forw) != fg->p_tlist); in ia_set_process_group() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uusched.c | 53 char f[256], g[256], fg[256], subf[256]; local 127 (void) sprintf(fg, "%s/%s", f, g); 128 gradedir = opendir(fg);
|
/illumos-gate/usr/src/test/crypto-tests/tests/common/ |
H A D | cryptotest_kcf.c | 44 crypto_func_group_t fg; member 80 cryptotest_init(cryptotest_t *arg, crypto_func_group_t fg) in cryptotest_init() argument 112 op->fg = fg; in cryptotest_init() 167 mech.mech_fg = op->fg; in get_hsession_by_mech()
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_sign.c | 259 crypto_call_req_t *crq, crypto_func_group_t fg) in sign_sr_atomic_common() argument 272 list, fg, data->cd_length)) == NULL) { in sign_sr_atomic_common() 303 if (fg == CRYPTO_FG_SIGN_ATOMIC) in sign_sr_atomic_common() 313 kcf_op_type_t op = ((fg == CRYPTO_FG_SIGN_ATOMIC) ? in sign_sr_atomic_common()
|
H A D | kcf_verify.c | 261 crypto_call_req_t *crq, crypto_func_group_t fg) in verify_vr_atomic_common() argument 274 list, fg, data->cd_length)) == NULL) { in verify_vr_atomic_common() 305 if (fg == CRYPTO_FG_VERIFY_ATOMIC) in verify_vr_atomic_common() 316 kcf_op_type_t op = ((fg == CRYPTO_FG_VERIFY_ATOMIC) ? in verify_vr_atomic_common()
|