/freebsd-current/stand/lua/ |
H A D | color.lua | 32 local color = {} 35 color.disabled = not color.isEnabled() 39 color.BLACK = 0 40 color.RED = 1 41 color.GREEN = 2 42 color.YELLOW = 3 43 color.BLUE = 4 44 color.MAGENTA = 5 45 color [all...] |
H A D | Makefile | 6 color.lua.8 \ 19 color.lua \
|
H A D | menu.lua | 32 local color = require("color") 42 name = "Back to main menu" .. color.highlight(" [Backspace]"), 47 return str .. color.escapefg(color.GREEN) .. "On" .. 48 color.resetfg() 50 return str .. color.escapefg(color.RED) .. "off" .. 51 color.resetfg() 123 name_color = color [all...] |
H A D | screen.lua | 29 local color = require("color") 47 if color.disabled then 50 printc(color.escapefg(color_value)) 54 if color.disabled then 57 printc(color.escapebg(color_value)) 61 printc(color.default())
|
/freebsd-current/sys/dev/enic/ |
H A D | cq_desc.h | 47 static inline void cq_color_enc(struct cq_desc *desc, const u8 color) argument 49 if (color) 56 const u8 type, const u8 color, const u16 q_number, 60 ((color & CQ_DESC_COLOR_MASK) << CQ_DESC_COLOR_SHIFT); 67 u8 *type, u8 *color, u16 *q_number, u16 *completed_index) 72 *color = (type_color >> CQ_DESC_COLOR_SHIFT) & CQ_DESC_COLOR_MASK; 75 * Make sure color bit is read from desc *before* other fields 76 * are read from desc. Hardware guarantees color bit is last 90 static inline void cq_color_dec(const struct cq_desc *desc_arg, u8 *color) argument 94 *color 55 cq_desc_enc(struct cq_desc *desc, const u8 type, const u8 color, const u16 q_number, const u16 completed_index) argument 66 cq_desc_dec(const struct cq_desc *desc_arg, u8 *type, u8 *color, u16 *q_number, u16 *completed_index) argument [all...] |
H A D | vnic_cq.h | 97 u8 type, color; local 101 cq_desc_dec(cq_desc, &type, &color, 104 while (color != cq->last_color) { 117 cq_desc_dec(cq_desc, &type, &color, 134 u8 type, color; local 141 cq_desc_dec(cq_desc, &type, &color, 144 while (color != last_color) { 153 cq_desc_dec(cq_desc, &type, &color,
|
H A D | cq_enet_desc.h | 20 u8 type, u8 color, u16 q_number, u16 completed_index) 23 color, q_number, completed_index); 27 u8 *type, u8 *color, u16 *q_number, u16 *completed_index) 30 color, q_number, completed_index); 111 u8 type, u8 color, u16 q_number, u16 completed_index, 119 color, q_number, completed_index); 164 u8 *type, u8 *color, u16 *q_number, u16 *completed_index, 177 color, q_number, completed_index); 19 cq_enet_wq_desc_enc(struct cq_enet_wq_desc *desc, u8 type, u8 color, u16 q_number, u16 completed_index) argument 26 cq_enet_wq_desc_dec(struct cq_enet_wq_desc *desc, u8 *type, u8 *color, u16 *q_number, u16 *completed_index) argument 110 cq_enet_rq_desc_enc(struct cq_enet_rq_desc *desc, u8 type, u8 color, u16 q_number, u16 completed_index, u8 ingress_port, u8 fcoe, u8 eop, u8 sop, u8 rss_type, u8 csum_not_calc, u32 rss_hash, u16 bytes_written, u8 packet_error, u8 vlan_stripped, u16 vlan, u16 checksum, u8 fcoe_sof, u8 fcoe_fc_crc_ok, u8 fcoe_enc_error, u8 fcoe_eof, u8 tcp_udp_csum_ok, u8 udp, u8 tcp, u8 ipv4_csum_ok, u8 ipv6, u8 ipv4, u8 ipv4_fragment, u8 fcs_ok) argument 163 cq_enet_rq_desc_dec(struct cq_enet_rq_desc *desc, u8 *type, u8 *color, u16 *q_number, u16 *completed_index, u8 *ingress_port, u8 *fcoe, u8 *eop, u8 *sop, u8 *rss_type, u8 *csum_not_calc, u32 *rss_hash, u16 *bytes_written, u8 *packet_error, u8 *vlan_stripped, u16 *vlan_tci, u16 *checksum, u8 *fcoe_sof, u8 *fcoe_fc_crc_ok, u8 *fcoe_enc_error, u8 *fcoe_eof, u8 *tcp_udp_csum_ok, u8 *udp, u8 *tcp, u8 *ipv4_csum_ok, u8 *ipv6, u8 *ipv4, u8 *ipv4_fragment, u8 *fcs_ok) argument
|
/freebsd-current/lib/libvgl/ |
H A D | simple.c | 50 VGLSetXY(VGLBitmap *object, int x, int y, u_long color) argument 58 VGLSetXY(&VGLVDisplay, x, y, color); 76 color = htole32(color); 79 memcpy(&object->Bitmap[offset], &color, 1); 82 memcpy(&object->Bitmap[offset], &color, 2); 85 memcpy(&object->Bitmap[offset], &color, 3); 88 memcpy(&object->Bitmap[offset], &color, 4); 94 color = htole32(color); 137 u_long color; local 174 plot(VGLBitmap * object, int x, int y, int flag, u_long color) argument 185 VGLLine(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) argument 369 VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) argument 378 VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color) argument 386 set4pixels(VGLBitmap *object, int x, int y, int xc, int yc, u_long color) argument 404 VGLEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color) argument 427 set2lines(VGLBitmap *object, int x, int y, int xc, int yc, u_long color) argument 440 VGLFilledEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color) argument 463 VGLClear(VGLBitmap *object, u_long color) argument 630 VGLSetPaletteIndex(byte color, byte red, byte green, byte blue) argument 653 VGLSetBorder(byte color) argument [all...] |
H A D | vgl.h | 139 void VGLSetXY(VGLBitmap *object, int x, int y, u_long color); 141 void VGLLine(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color); 142 void VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color); 143 void VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, u_long color); 144 void VGLEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color); 145 void VGLFilledEllipse(VGLBitmap *object, int xc, int yc, int a, int b, u_long color); 146 void VGLClear(VGLBitmap *object, u_long color); 153 void VGLSetPaletteIndex(byte color, byte red, byte green, byte blue); 154 void VGLSetBorder(byte color);
|
/freebsd-current/contrib/bsddialog/lib/ |
H A D | bsddialog_theme.h | 31 /* color flags */ 41 int color; member in struct:bsddialog_theme::__anon7 44 int color; member in struct:bsddialog_theme::__anon8 49 int color; member in struct:bsddialog_theme::__anon9 80 int color; member in struct:bsddialog_theme::__anon12 90 int color; member in struct:bsddialog_theme::__anon13 117 bsddialog_color_attrs(int color, enum bsddialog_color *foreground,
|
H A D | theme.c | 57 .screen.color = WHITE, 59 .shadow.color = GET_COLOR(COLOR_BLACK, COLOR_BLACK), 67 .dialog.color = WHITE, 91 .bar.color = WHITE, 100 .button.color = WHITE, 106 .screen.color = GET_COLOR(COLOR_CYAN, COLOR_BLUE) | A_BOLD, 108 .shadow.color = GET_COLOR(COLOR_BLACK, COLOR_BLACK), 116 .dialog.color = GET_COLOR(COLOR_BLACK, COLOR_WHITE), 140 .bar.color = GET_COLOR(COLOR_BLUE, COLOR_WHITE) | A_BOLD, 149 .button.color 262 bsddialog_color_attrs(int color, enum bsddialog_color *foreground, enum bsddialog_color *background, unsigned int *flags) argument [all...] |
/freebsd-current/contrib/unbound/util/ |
H A D | rbtree.c | 163 while (node != rbtree->root && node->parent->color == RED) { 169 if (uncle->color == RED) { 171 node->parent->color = BLACK; 172 uncle->color = BLACK; 175 node->parent->parent->color = RED; 186 node->parent->color = BLACK; 187 node->parent->parent->color = RED; 194 if (uncle->color == RED) { 196 node->parent->color = BLACK; 197 uncle->color [all...] |
/freebsd-current/contrib/ofed/libibverbs/ |
H A D | memory.c | 53 } color; member in struct:ibv_mem_node 169 mm_root->color = IBV_BLACK; 273 if (node->color == IBV_RED) { 274 if (node->left && node->left->color != IBV_BLACK) 276 if (node->right && node->right->color != IBV_BLACK) 289 while (node->parent && node->parent->color == IBV_RED) { 296 if (uncle && uncle->color == IBV_RED) { 297 parent->color = IBV_BLACK; 298 uncle->color = IBV_BLACK; 299 gp->color [all...] |
/freebsd-current/contrib/ldns/ |
H A D | rbtree.c | 171 while (node != rbtree->root && node->parent->color == RED) { 177 if (uncle->color == RED) { 179 node->parent->color = BLACK; 180 uncle->color = BLACK; 183 node->parent->parent->color = RED; 194 node->parent->color = BLACK; 195 node->parent->parent->color = RED; 202 if (uncle->color == RED) { 204 node->parent->color = BLACK; 205 uncle->color [all...] |
/freebsd-current/contrib/ofed/opensm/complib/ |
H A D | cl_map.c | 213 p_map->root.color = CL_MAP_BLACK; 219 p_map->nil.color = CL_MAP_BLACK; 303 while (p_item->p_up->color == CL_MAP_RED) { 307 if (p_grand_uncle->color == CL_MAP_RED) { 308 p_grand_uncle->color = CL_MAP_BLACK; 309 p_item->p_up->color = CL_MAP_BLACK; 310 p_item->p_up->p_up->color = CL_MAP_RED; 319 p_item->p_up->color = CL_MAP_BLACK; 320 p_item->p_up->p_up->color = CL_MAP_RED; 325 if (p_grand_uncle->color [all...] |
/freebsd-current/sys/dev/drm2/ |
H A D | drm_mm.h | 51 unsigned long color; member in struct:drm_mm_node 77 void (*color_adjust)(struct drm_mm_node *node, unsigned long color, 106 unsigned long color, 112 unsigned long color, 142 unsigned long color, 146 return drm_mm_get_block_range_generic(parent, size, alignment, color, 174 unsigned long color); 179 unsigned long color, 188 unsigned long color, 194 unsigned long color, 138 drm_mm_get_color_block_range( struct drm_mm_node *parent, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument 216 drm_mm_search_free_color(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, bool best_match) argument 224 drm_mm_search_free_in_range_color( const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, bool best_match) argument [all...] |
H A D | drm_mm.c | 117 unsigned long color) 128 mm->color_adjust(hole_node, color, &adj_start, &adj_end); 144 node->color = color; 162 unsigned long color, 171 drm_mm_insert_helper(hole_node, node, size, alignment, color); 184 unsigned long color) 189 color, 0); 193 drm_mm_insert_helper(hole_node, node, size, alignment, color); 208 unsigned long color, 114 drm_mm_insert_helper(struct drm_mm_node *hole_node, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color) argument 159 drm_mm_get_block_generic(struct drm_mm_node *hole_node, unsigned long size, unsigned alignment, unsigned long color, int atomic) argument 182 drm_mm_insert_node_generic(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color) argument 205 drm_mm_insert_helper_range(struct drm_mm_node *hole_node, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument 257 drm_mm_get_block_range_generic(struct drm_mm_node *hole_node, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, int atomic) argument 283 drm_mm_insert_node_in_range_generic(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument 380 drm_mm_search_free_generic(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, bool best_match) argument 422 drm_mm_search_free_in_range_generic(const struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end, bool best_match) argument 496 drm_mm_init_scan(struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color) argument 521 drm_mm_init_scan_with_range(struct drm_mm *mm, unsigned long size, unsigned alignment, unsigned long color, unsigned long start, unsigned long end) argument [all...] |
/freebsd-current/sys/netgraph/ |
H A D | qos.h | 65 enum qos_color color; member in struct:m_qos_color
|
/freebsd-current/sys/dev/syscons/snake/ |
H A D | snake_saver.c | 68 int f, color, load; local 119 color = FG_LIGHTGREY | BG_BLACK; 121 color = FG_LIGHTGREEN | BG_BLACK; 123 color = FG_YELLOW | BG_BLACK; 125 color = FG_LIGHTRED | BG_BLACK; 127 color = FG_RED | FG_BLINK | BG_BLACK; 129 color = FG_LIGHTGREY | BG_BLACK; 133 color << 8);
|
/freebsd-current/contrib/tcsh/ |
H A D | tw.color.c | 2 * tw.color.c: builtin color ls-F 55 Str color; member in struct:__anon6241 84 VAR(NOS, "rs", "0"), /* Reset to normal color */ 152 Str color; /* color string */ member in struct:__anon6242 226 variables[i].color = variables[i].defaultcolor; 238 color(Char x) function 302 fg = color(*v++); 306 bg = color(* [all...] |
/freebsd-current/sys/dev/usb/misc/ |
H A D | uled.c | 247 struct uled_color color; local 260 color = *(struct uled_color *)addr; 263 sc->sc_color.red = color.red; 264 sc->sc_color.green = color.green; 265 sc->sc_color.blue = color.blue; 270 buf[2] = color.red; 271 buf[3] = color.green; 272 buf[4] = color.blue; 275 buf[0] = color.red; 276 buf[1] = color [all...] |
/freebsd-current/contrib/ncurses/ncurses/base/ |
H A D | lib_color.c | 39 * Handles color emulation of SYS V curses 166 * SVr4 curses is known to interchange color codes (1,4) and (3,6), possibly 264 /* find the number of bits needed for the maximum color value */ 306 * Reset the color pair, e.g., to whatever color pair 0 is. 326 * Reset color pairs and definitions. Actually we do both more to accommodate 328 * someone has changed the color definitions. 384 * Without ext-colors, we cannot represent more than 256 color pairs. 396 * allow for default-color as a component of a color 708 _nc_init_color(SCREEN *sp, int color, int r, int g, int b) argument 758 init_color(NCURSES_SP_DCLx NCURSES_COLOR_T color, NCURSES_COLOR_T r, NCURSES_COLOR_T g, NCURSES_COLOR_T b) argument 769 init_color(NCURSES_COLOR_T color, NCURSES_COLOR_T r, NCURSES_COLOR_T g, NCURSES_COLOR_T b) argument 831 _nc_color_content(SCREEN *sp, int color, int *r, int *g, int *b) argument 894 color_content(NCURSES_SP_DCLx NCURSES_COLOR_T color, NCURSES_COLOR_T *r, NCURSES_COLOR_T *g, NCURSES_COLOR_T *b) argument 912 color_content(NCURSES_COLOR_T color, NCURSES_COLOR_T *r, NCURSES_COLOR_T *g, NCURSES_COLOR_T *b) argument 1090 init_extended_color(NCURSES_SP_DCLx int color, int r, int g, int b) argument 1098 extended_color_content(NCURSES_SP_DCLx int color, int *r, int *g, int *b) argument 1137 init_extended_color(int color, int r, int g, int b) argument 1145 extended_color_content(int color, int *r, int *g, int *b) argument [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/cli_user/zfs_list/ |
H A D | zfs_list_005_pos.ksh | 40 # 1. Setting user property f:color for filesystem and volume. 67 color=$($ECHO $COLOR | $AWK '{print $1}') 68 log_must $ZFS set f:color=$color $basefs/$ds 70 log_must $ZFS set f:color=$color $basefs/${ds}-vol 72 eval COLOR=\${COLOR#$color } 127 # Sort by color,amount 129 "run_unprivileged $ZFS list -H -r -o name -s f:color -s f:amount -t filesystem $basefs" \ 130 "$fs_color_amount" "f:color, [all...] |
/freebsd-current/usr.bin/clang/llvm-xray/ |
H A D | Makefile | 9 SRCS+= xray-color-helper.cpp
|
/freebsd-current/usr.sbin/bsdconfig/dot/ |
H A D | dot | 64 # begin_nodelist $shape $color $fillcolor $style 71 local shape="$1" color="$2" fillcolor="$3" style="$4" 76 [ "$color" ] && 77 printf '\t\tcolor = "%s",\n' "$color" 356 shape=circle color=black fillcolor=yellow style=filled 357 begin_nodelist "$shape" "$color" "$fillcolor" "$style" 365 shape=box color=black fillcolor=lightblue style=filled 366 begin_nodelist "$shape" "$color" "$fillcolor" "$style" 376 shape=box color=black fillcolor=lightblue style=filled 377 begin_nodelist "$shape" "$color" " [all...] |