Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 444) sorted by relevance

12345678910>>...18

/Linux-v5.4/tools/perf/util/
Dcolor.c13 static int __color_vsnprintf(char *bf, size_t size, const char *color, in __color_vsnprintf() argument
28 if (perf_use_color_default && *color) in __color_vsnprintf()
29 r += scnprintf(bf, size, "%s", color); in __color_vsnprintf()
31 if (perf_use_color_default && *color) in __color_vsnprintf()
39 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, in __color_vfprintf() argument
54 if (perf_use_color_default && *color) in __color_vfprintf()
55 fprintf(fp, "%s", color); in __color_vfprintf()
57 if (perf_use_color_default && *color) in __color_vfprintf()
62 int color_vsnprintf(char *bf, size_t size, const char *color, in color_vsnprintf() argument
65 return __color_vsnprintf(bf, size, color, fmt, args, NULL); in color_vsnprintf()
[all …]
Dstat-shadow.c299 const char *color = PERF_COLOR_NORMAL; in get_ratio_color() local
302 color = PERF_COLOR_RED; in get_ratio_color()
304 color = PERF_COLOR_MAGENTA; in get_ratio_color()
306 color = PERF_COLOR_YELLOW; in get_ratio_color()
308 return color; in get_ratio_color()
432 const char *color; in print_stalled_cycles_frontend() local
440 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend()
443 out->print_metric(config, out->ctx, color, "%7.2f%%", "frontend cycles idle", in print_stalled_cycles_frontend()
456 const char *color; in print_stalled_cycles_backend() local
464 color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); in print_stalled_cycles_backend()
[all …]
Dcolor.h37 int color_vsnprintf(char *bf, size_t size, const char *color,
39 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args);
40 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...);
41 int color_snprintf(char *bf, size_t size, const char *color, const char *fmt, ...);
42 int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf);
Ddebug.c118 const char *color = PERF_COLOR_BLUE; in trace_event_printer() local
126 printed += color_fprintf(fp, color, "\n. ... raw event: size %d bytes\n", in trace_event_printer()
133 printed += color_fprintf(fp, color, " %04x: ", val); in trace_event_printer()
136 printed += color_fprintf(fp, color, " %02x", val); in trace_event_printer()
139 printed += color_fprintf(fp, color, " "); in trace_event_printer()
142 printed += color_fprintf(fp, color, " "); in trace_event_printer()
145 printed += color_fprintf(fp, color, "%c", in trace_event_printer()
149 printed += color_fprintf(fp, color, " "); in trace_event_printer()
152 printed += color_fprintf(fp, color, "\n"); in trace_event_printer()
/Linux-v5.4/drivers/video/fbdev/sis/
Dsis_accel.h190 #define SiS300SetupPATFG(color) \ argument
192 MMIO_OUT32(ivideo->mmio_vbase, BR(7), color);\
195 #define SiS300SetupPATBG(color) \ argument
197 MMIO_OUT32(ivideo->mmio_vbase, BR(8), color);\
200 #define SiS300SetupSRCFG(color) \ argument
202 MMIO_OUT32(ivideo->mmio_vbase, BR(9), color);\
205 #define SiS300SetupSRCBG(color) \ argument
207 MMIO_OUT32(ivideo->mmio_vbase, BR(10), color);\
214 #define SiS300SetupSRCTrans(color) \ argument
216 MMIO_OUT32(ivideo->mmio_vbase, 0x8224, color);\
[all …]
/Linux-v5.4/arch/xtensa/include/asm/
Dhighmem.h39 static inline unsigned int get_next_pkmap_nr(unsigned int color) in get_next_pkmap_nr() argument
41 last_pkmap_nr_arr[color] = in get_next_pkmap_nr()
42 (last_pkmap_nr_arr[color] + DCACHE_N_COLORS) & LAST_PKMAP_MASK; in get_next_pkmap_nr()
43 return last_pkmap_nr_arr[color] + color; in get_next_pkmap_nr()
46 static inline int no_more_pkmaps(unsigned int pkmap_nr, unsigned int color) in no_more_pkmaps() argument
51 static inline int get_pkmap_entries_count(unsigned int color) in get_pkmap_entries_count() argument
58 static inline wait_queue_head_t *get_pkmap_wait_queue_head(unsigned int color) in get_pkmap_wait_queue_head() argument
60 return pkmap_map_wait_arr + color; in get_pkmap_wait_queue_head()
/Linux-v5.4/drivers/video/logo/
DKconfig24 bool "Standard 16-color Linux logo"
28 bool "Standard 224-color Linux logo"
32 bool "224-color Digital Equipment Corporation Linux logo"
37 bool "224-color Macintosh Linux logo"
42 bool "224-color PA-RISC Linux logo"
47 bool "224-color SGI Linux logo"
52 bool "224-color Sun Linux logo"
62 bool "16-color SuperH Linux logo"
67 bool "224-color SuperH Linux logo"
/Linux-v5.4/Documentation/media/uapi/v4l/
Dcolorspaces.rst18 'green' and 'blue' components of the color of a pixel does not mean that
19 you can accurately display that color. A colorspace defines what it
21 which color should be reproduced on the screen in a perfectly calibrated
24 In order to do that we first need to have a good definition of color,
25 i.e. some way to uniquely and unambiguously define a color so that
26 someone else can reproduce it. Human color vision is trichromatic since
27 the human eye has color receptors that are sensitive to three different
29 color. Be glad you are not a mantis shrimp as those are sensitive to 12
34 color receptors are stimulated. This is based on the Spectral Power
38 between the SPD and color as perceived by the human brain.
[all …]
/Linux-v5.4/drivers/leds/
Dleds-bd2802.c94 enum led_colors color; member
108 enum led_colors color) in bd2802_is_rgb_off() argument
110 switch (color) { in bd2802_is_rgb_off()
142 static inline u8 bd2802_get_base_offset(enum led_ids id, enum led_colors color) in bd2802_get_base_offset() argument
144 return id * BD2802_LED_OFFSET + color * BD2802_COLOR_OFFSET; in bd2802_get_base_offset()
147 static inline u8 bd2802_get_reg_addr(enum led_ids id, enum led_colors color, in bd2802_get_reg_addr() argument
150 return reg_offset + bd2802_get_base_offset(id, color); in bd2802_get_reg_addr()
171 enum led_colors color, enum led_bits led_bit) in bd2802_update_state() argument
178 switch (color) { in bd2802_update_state()
249 enum led_colors color) in bd2802_set_on() argument
[all …]
/Linux-v5.4/drivers/firewire/
Dcore-topology.c99 static struct fw_node *fw_node_create(u32 sid, int port_count, int color) in fw_node_create() argument
107 node->color = color; in fw_node_create()
222 node = fw_node_create(q, port_count, card->color); in build_tree()
250 node->color = i; in build_tree()
259 child->ports[child->color] = node; in build_tree()
260 child->color = card->color; in build_tree()
325 node->color = card->color; in for_each_fw_node()
331 if (child->color == card->color) in for_each_fw_node()
382 card->color++; in fw_destroy_nodes()
436 node0->color = card->color; in update_tree()
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/leds/
Dleds-cr0014114.txt16 - color :
38 color = <LED_COLOR_ID_RED>;
43 color = <LED_COLOR_ID_GREEN>;
48 color = <LED_COLOR_ID_BLUE>;
53 color = <LED_COLOR_ID_RED>;
58 color = <LED_COLOR_ID_GREEN>;
63 color = <LED_COLOR_ID_BLUE>;
/Linux-v5.4/tools/memory-model/
Dlinux-kernel.cfg17 edgeattr hb,color,indigo
18 edgeattr co,color,blue
19 edgeattr mb,color,darkgreen
20 edgeattr wmb,color,darkgreen
21 edgeattr rmb,color,darkgreen
/Linux-v5.4/mm/
Dhighmem.c67 static inline unsigned int get_next_pkmap_nr(unsigned int color) in get_next_pkmap_nr() argument
80 static inline int no_more_pkmaps(unsigned int pkmap_nr, unsigned int color) in no_more_pkmaps() argument
90 static inline int get_pkmap_entries_count(unsigned int color) in get_pkmap_entries_count() argument
100 static inline wait_queue_head_t *get_pkmap_wait_queue_head(unsigned int color) in get_pkmap_wait_queue_head() argument
218 unsigned int color = get_pkmap_color(page); in map_new_virtual() local
221 count = get_pkmap_entries_count(color); in map_new_virtual()
224 last_pkmap_nr = get_next_pkmap_nr(color); in map_new_virtual()
225 if (no_more_pkmaps(last_pkmap_nr, color)) { in map_new_virtual()
227 count = get_pkmap_entries_count(color); in map_new_virtual()
240 get_pkmap_wait_queue_head(color); in map_new_virtual()
[all …]
/Linux-v5.4/Documentation/sphinx-static/
Dtheme_overrides.css11 color: black;
20 color: #505050;
24 color: #303030;
29 color: black;
97 color: blue;
102 color: white;
103 background-color: darkblue;
114 /* inline literal: drop the borderbox, padding and red color */
117 color: inherit;
125 color: inherit;
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_color.c365 static u32 i965_lut_10p6_ldw(const struct drm_color_lut *color) in i965_lut_10p6_ldw() argument
367 return (color->red & 0xff) << 16 | in i965_lut_10p6_ldw()
368 (color->green & 0xff) << 8 | in i965_lut_10p6_ldw()
369 (color->blue & 0xff); in i965_lut_10p6_ldw()
373 static u32 i965_lut_10p6_udw(const struct drm_color_lut *color) in i965_lut_10p6_udw() argument
375 return (color->red >> 8) << 16 | in i965_lut_10p6_udw()
376 (color->green >> 8) << 8 | in i965_lut_10p6_udw()
377 (color->blue >> 8); in i965_lut_10p6_udw()
380 static u32 ilk_lut_10(const struct drm_color_lut *color) in ilk_lut_10() argument
382 return drm_color_lut_extract(color->red, 10) << 20 | in ilk_lut_10()
[all …]
/Linux-v5.4/tools/power/pm-graph/config/
Dcustom-timeline-functions.cfg84 # function: format{fn_arg1}_{fn_arg2} fn_arg1 fn_arg2 ... [color=purple]
101 # color: The color of the entry block in the timeline. The default color is
102 # transparent, so the entry shares the phase color. The color is an
103 # html color string, either a word, or an RGB.
105 # example: [color=#CC00CC]
114 # _cpu_up: CPU_ON[{cpu}] cpu=%di:s32 [color=orange]
149 # function: format{fn_arg1}_{fn_arg2} fn_arg1 fn_arg2 ... [color=purple]
166 # color: The color of the entry block in the timeline. The default color is
167 # transparent, so the entry shares the phase color. The color is an
168 # html color string, either a word, or an RGB.
[all …]
/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_sspp.c343 u8 color; in dpu_hw_sspp_setup_pe_config() local
355 for (color = 0; color < DPU_MAX_PLANES; color++) { in dpu_hw_sspp_setup_pe_config()
357 if (color == 2) in dpu_hw_sspp_setup_pe_config()
360 lr_pe[color] = ((pe_ext->right_ftch[color] & bytemask) << 24)| in dpu_hw_sspp_setup_pe_config()
361 ((pe_ext->right_rpt[color] & bytemask) << 16)| in dpu_hw_sspp_setup_pe_config()
362 ((pe_ext->left_ftch[color] & bytemask) << 8)| in dpu_hw_sspp_setup_pe_config()
363 (pe_ext->left_rpt[color] & bytemask); in dpu_hw_sspp_setup_pe_config()
365 tb_pe[color] = ((pe_ext->btm_ftch[color] & bytemask) << 24)| in dpu_hw_sspp_setup_pe_config()
366 ((pe_ext->btm_rpt[color] & bytemask) << 16)| in dpu_hw_sspp_setup_pe_config()
367 ((pe_ext->top_ftch[color] & bytemask) << 8)| in dpu_hw_sspp_setup_pe_config()
[all …]
/Linux-v5.4/include/drm/
Ddrm_mm.h157 unsigned long color; member
197 unsigned long color,
237 unsigned long color; member
407 unsigned long color,
432 unsigned long color, in drm_mm_insert_node_generic() argument
436 size, alignment, color, in drm_mm_insert_node_generic()
506 u64 size, u64 alignment, unsigned long color,
533 unsigned long color, in drm_mm_scan_init() argument
537 size, alignment, color, in drm_mm_scan_init()
/Linux-v5.4/drivers/staging/sm750fb/
Dsm750_cursor.c89 u8 color, mask, opr; in sm750_hw_cursor_setData() local
107 color = *pcol++; in sm750_hw_cursor_setData()
114 opr = mask ^ color; in sm750_hw_cursor_setData()
116 opr = mask & color; in sm750_hw_cursor_setData()
139 u8 color, mask; in sm750_hw_cursor_setData2() local
157 color = *pcol++; in sm750_hw_cursor_setData2()
163 data |= ((color & (1 << j)) ? 1 : 2) << (j * 2); in sm750_hw_cursor_setData2()
/Linux-v5.4/scripts/
Dpnmtologo.c45 struct color { struct
51 static const struct color clut_vga16[16] = { argument
74 static struct color **logo_data;
75 static struct color logo_clut[MAX_LINUX_LOGO_COLORS];
163 logo_data = (struct color **)malloc(logo_height*sizeof(struct color *)); in read_image()
167 logo_data[i] = malloc(logo_width*sizeof(struct color)); in read_image()
208 static inline int is_black(struct color c) in is_black()
213 static inline int is_white(struct color c) in is_white()
218 static inline int is_gray(struct color c) in is_gray()
223 static inline int is_equal(struct color c1, struct color c2) in is_equal()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_opp.c275 const struct tg_color *color) in opp2_dpg_set_blank_color() argument
280 ASSERT(color); in opp2_dpg_set_blank_color()
282 DPG_COLOUR1_B_CB, color->color_b_cb << 6, in opp2_dpg_set_blank_color()
283 DPG_COLOUR0_B_CB, color->color_b_cb << 6); in opp2_dpg_set_blank_color()
285 DPG_COLOUR1_G_Y, color->color_g_y << 6, in opp2_dpg_set_blank_color()
286 DPG_COLOUR0_G_Y, color->color_g_y << 6); in opp2_dpg_set_blank_color()
288 DPG_COLOUR1_R_CR, color->color_r_cr << 6, in opp2_dpg_set_blank_color()
289 DPG_COLOUR0_R_CR, color->color_r_cr << 6); in opp2_dpg_set_blank_color()
/Linux-v5.4/drivers/scsi/snic/
Dvnic_cq_fw.h33 u8 color; in vnic_cq_fw_service() local
37 snic_color_dec(desc, &color); in vnic_cq_fw_service()
39 while (color != cq->last_color) { in vnic_cq_fw_service()
52 snic_color_dec(desc, &color); in vnic_cq_fw_service()
/Linux-v5.4/drivers/scsi/fnic/
Dvnic_cq_copy.h33 u8 color; in vnic_cq_copy_service() local
37 fcpio_color_dec(desc, &color); in vnic_cq_copy_service()
39 while (color != cq->last_color) { in vnic_cq_copy_service()
52 fcpio_color_dec(desc, &color); in vnic_cq_copy_service()
/Linux-v5.4/drivers/media/pci/ttpci/
Dav7110_hw.c791 u16 x, u16 y, u16 dx, u16 dy, u16 color) in DrawLine() argument
794 windownr, x, y, dx, dy, color); in DrawLine()
798 u16 x, u16 y, u16 dx, u16 dy, u16 color) in DrawBlock() argument
801 windownr, x, y, dx, dy, color); in DrawBlock()
945 static int OSDSetColor(struct av7110 *av7110, u8 color, u8 r, u8 g, u8 b, u8 blend) in OSDSetColor() argument
956 color, ch, cl); in OSDSetColor()
959 color, ((blend >> 4) & 0x0f)); in OSDSetColor()
972 u32 color, blend, yuv; in OSDSetPalette() local
974 if (get_user(color, colors + i)) in OSDSetPalette()
976 blend = (color & 0xF0000000) >> 4; in OSDSetPalette()
[all …]
/Linux-v5.4/drivers/video/fbdev/core/
Dsysimgblt.c57 u32 color = 0, val, shift; in color_imageblit() local
79 color = palette[*src]; in color_imageblit()
81 color = *src; in color_imageblit()
82 color <<= FB_LEFT_POS(p, bpp); in color_imageblit()
83 val |= FB_SHIFT_HIGH(p, color, shift); in color_imageblit()
88 FB_SHIFT_LOW(p, color, 32 - shift); in color_imageblit()
115 u32 shift, color = 0, bpp = p->var.bits_per_pixel; in slow_imageblit() local
144 color = (*s & (1 << l)) ? fgcolor : bgcolor; in slow_imageblit()
145 val |= FB_SHIFT_HIGH(p, color, shift); in slow_imageblit()
151 FB_SHIFT_LOW(p, color, 32 - shift); in slow_imageblit()

12345678910>>...18