tag | line | file | source code |
cmap | 1016 | arch/m68k/amiga/amifb.c | static int amiga_fb_get_cmap(struct fb_cmap *cmap, int kspc, int con); |
cmap | 1017 | arch/m68k/amiga/amifb.c | static int amiga_fb_set_cmap(struct fb_cmap *cmap, int kspc, int con); |
cmap | 1105 | arch/m68k/amiga/amifb.c | static int do_fb_get_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
cmap | 1107 | arch/m68k/amiga/amifb.c | static int do_fb_set_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
cmap | 1112 | arch/m68k/amiga/amifb.c | static int alloc_cmap(struct fb_cmap *cmap, int len, int transp); |
cmap | 2616 | arch/m68k/amiga/amifb.c | static int mono_amiga_fb_get_cmap(struct fb_cmap *cmap, int kspc, int con) |
cmap | 2623 | arch/m68k/amiga/amifb.c | red = cmap->red; |
cmap | 2624 | arch/m68k/amiga/amifb.c | green = cmap->green; |
cmap | 2625 | arch/m68k/amiga/amifb.c | blue = cmap->blue; |
cmap | 2626 | arch/m68k/amiga/amifb.c | transp = cmap->transp; |
cmap | 2627 | arch/m68k/amiga/amifb.c | start = cmap->start; |
cmap | 2636 | arch/m68k/amiga/amifb.c | for (i = 0; i < cmap->len; i++) { |
cmap | 2670 | arch/m68k/amiga/amifb.c | static int mono_amiga_fb_set_cmap(struct fb_cmap *cmap, int kspc, int con) |
cmap | 2753 | arch/m68k/amiga/amifb.c | disp[0].cmap = mono_default_cmap_inverse; |
cmap | 2755 | arch/m68k/amiga/amifb.c | disp[0].cmap = mono_default_cmap_normal; |
cmap | 4244 | arch/m68k/amiga/amifb.c | static int do_fb_get_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
cmap | 4251 | arch/m68k/amiga/amifb.c | red = cmap->red; |
cmap | 4252 | arch/m68k/amiga/amifb.c | green = cmap->green; |
cmap | 4253 | arch/m68k/amiga/amifb.c | blue = cmap->blue; |
cmap | 4254 | arch/m68k/amiga/amifb.c | transp = cmap->transp; |
cmap | 4255 | arch/m68k/amiga/amifb.c | start = cmap->start; |
cmap | 4258 | arch/m68k/amiga/amifb.c | for (i = 0; i < cmap->len; i++) { |
cmap | 4288 | arch/m68k/amiga/amifb.c | static int do_fb_set_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, |
cmap | 4295 | arch/m68k/amiga/amifb.c | red = cmap->red; |
cmap | 4296 | arch/m68k/amiga/amifb.c | green = cmap->green; |
cmap | 4297 | arch/m68k/amiga/amifb.c | blue = cmap->blue; |
cmap | 4298 | arch/m68k/amiga/amifb.c | transp = cmap->transp; |
cmap | 4299 | arch/m68k/amiga/amifb.c | start = cmap->start; |
cmap | 4303 | arch/m68k/amiga/amifb.c | for (i = 0; i < cmap->len; i++) { |
cmap | 4335 | arch/m68k/amiga/amifb.c | if (disp[con].cmap.len) |
cmap | 4336 | arch/m68k/amiga/amifb.c | do_fb_set_cmap(&disp[con].cmap, &disp[con].var, 1); |
cmap | 4382 | arch/m68k/amiga/amifb.c | static int alloc_cmap(struct fb_cmap *cmap, int len, int transp) |
cmap | 4386 | arch/m68k/amiga/amifb.c | if (cmap->len != len) { |
cmap | 4387 | arch/m68k/amiga/amifb.c | if (cmap->red) |
cmap | 4388 | arch/m68k/amiga/amifb.c | kfree(cmap->red); |
cmap | 4389 | arch/m68k/amiga/amifb.c | if (cmap->green) |
cmap | 4390 | arch/m68k/amiga/amifb.c | kfree(cmap->green); |
cmap | 4391 | arch/m68k/amiga/amifb.c | if (cmap->blue) |
cmap | 4392 | arch/m68k/amiga/amifb.c | kfree(cmap->blue); |
cmap | 4393 | arch/m68k/amiga/amifb.c | if (cmap->transp) |
cmap | 4394 | arch/m68k/amiga/amifb.c | kfree(cmap->transp); |
cmap | 4395 | arch/m68k/amiga/amifb.c | cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; |
cmap | 4396 | arch/m68k/amiga/amifb.c | cmap->len = 0; |
cmap | 4399 | arch/m68k/amiga/amifb.c | if (!(cmap->red = kmalloc(size, GFP_ATOMIC))) |
cmap | 4401 | arch/m68k/amiga/amifb.c | if (!(cmap->green = kmalloc(size, GFP_ATOMIC))) |
cmap | 4403 | arch/m68k/amiga/amifb.c | if (!(cmap->blue = kmalloc(size, GFP_ATOMIC))) |
cmap | 4406 | arch/m68k/amiga/amifb.c | if (!(cmap->transp = kmalloc(size, GFP_ATOMIC))) |
cmap | 4409 | arch/m68k/amiga/amifb.c | cmap->transp = NULL; |
cmap | 4411 | arch/m68k/amiga/amifb.c | cmap->start = 0; |
cmap | 4412 | arch/m68k/amiga/amifb.c | cmap->len = len; |
cmap | 4413 | arch/m68k/amiga/amifb.c | copy_cmap(get_default_colormap(len), cmap, 0); |
cmap | 4494 | arch/m68k/amiga/amifb.c | alloc_cmap(&disp[con].cmap, 0, 0); |
cmap | 4507 | arch/m68k/amiga/amifb.c | static int amiga_fb_get_cmap(struct fb_cmap *cmap, int kspc, int con) |
cmap | 4510 | arch/m68k/amiga/amifb.c | return(do_fb_get_cmap(cmap, &disp[con].var, kspc)); |
cmap | 4511 | arch/m68k/amiga/amifb.c | else if (disp[con].cmap.len) /* non default colormap? */ |
cmap | 4512 | arch/m68k/amiga/amifb.c | copy_cmap(&disp[con].cmap, cmap, kspc ? 0 : 2); |
cmap | 4514 | arch/m68k/amiga/amifb.c | copy_cmap(get_default_colormap(disp[con].var.bits_per_pixel), cmap, |
cmap | 4524 | arch/m68k/amiga/amifb.c | static int amiga_fb_set_cmap(struct fb_cmap *cmap, int kspc, int con) |
cmap | 4528 | arch/m68k/amiga/amifb.c | if (!disp[con].cmap.len) { /* no colormap allocated? */ |
cmap | 4529 | arch/m68k/amiga/amifb.c | if ((err = alloc_cmap(&disp[con].cmap, 1<<disp[con].var.bits_per_pixel, |
cmap | 4534 | arch/m68k/amiga/amifb.c | return(do_fb_set_cmap(cmap, &disp[con].var, kspc)); |
cmap | 4536 | arch/m68k/amiga/amifb.c | copy_cmap(cmap, &disp[con].cmap, kspc ? 0 : 1); |
cmap | 4939 | arch/m68k/amiga/amifb.c | if (disp[currcon].cmap.len) |
cmap | 4940 | arch/m68k/amiga/amifb.c | do_fb_get_cmap(&disp[currcon].cmap, &disp[currcon].var, 1); |
cmap | 2388 | arch/m68k/atari/atafb.c | do_fb_get_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, int kspc) |
cmap | 2394 | arch/m68k/atari/atafb.c | red=cmap->red; |
cmap | 2395 | arch/m68k/atari/atafb.c | green=cmap->green; |
cmap | 2396 | arch/m68k/atari/atafb.c | blue=cmap->blue; |
cmap | 2397 | arch/m68k/atari/atafb.c | transp=cmap->transp; |
cmap | 2398 | arch/m68k/atari/atafb.c | start=cmap->start; |
cmap | 2401 | arch/m68k/atari/atafb.c | for (i=0 ; i < cmap->len ; i++) { |
cmap | 2429 | arch/m68k/atari/atafb.c | do_fb_set_cmap(struct fb_cmap *cmap, struct fb_var_screeninfo *var, int kspc) |
cmap | 2435 | arch/m68k/atari/atafb.c | red=cmap->red; |
cmap | 2436 | arch/m68k/atari/atafb.c | green=cmap->green; |
cmap | 2437 | arch/m68k/atari/atafb.c | blue=cmap->blue; |
cmap | 2438 | arch/m68k/atari/atafb.c | transp=cmap->transp; |
cmap | 2439 | arch/m68k/atari/atafb.c | start=cmap->start; |
cmap | 2443 | arch/m68k/atari/atafb.c | for (i=0 ; i < cmap->len ; i++) { |
cmap | 2475 | arch/m68k/atari/atafb.c | if (disp[con].cmap.len) |
cmap | 2476 | arch/m68k/atari/atafb.c | do_fb_set_cmap(&disp[con].cmap, &(disp[con].var), 1); |
cmap | 2522 | arch/m68k/atari/atafb.c | alloc_cmap(struct fb_cmap *cmap,int len,int transp) |
cmap | 2525 | arch/m68k/atari/atafb.c | if (cmap->len != len) { |
cmap | 2526 | arch/m68k/atari/atafb.c | if (cmap->red) |
cmap | 2527 | arch/m68k/atari/atafb.c | kfree(cmap->red); |
cmap | 2528 | arch/m68k/atari/atafb.c | if (cmap->green) |
cmap | 2529 | arch/m68k/atari/atafb.c | kfree(cmap->green); |
cmap | 2530 | arch/m68k/atari/atafb.c | if (cmap->blue) |
cmap | 2531 | arch/m68k/atari/atafb.c | kfree(cmap->blue); |
cmap | 2532 | arch/m68k/atari/atafb.c | if (cmap->transp) |
cmap | 2533 | arch/m68k/atari/atafb.c | kfree(cmap->transp); |
cmap | 2534 | arch/m68k/atari/atafb.c | cmap->red=cmap->green=cmap->blue=cmap->transp=NULL; |
cmap | 2535 | arch/m68k/atari/atafb.c | cmap->len=0; |
cmap | 2538 | arch/m68k/atari/atafb.c | if (! (cmap->red=kmalloc(size, GFP_ATOMIC))) |
cmap | 2540 | arch/m68k/atari/atafb.c | if (! (cmap->green=kmalloc(size, GFP_ATOMIC))) |
cmap | 2542 | arch/m68k/atari/atafb.c | if (! (cmap->blue=kmalloc(size, GFP_ATOMIC))) |
cmap | 2545 | arch/m68k/atari/atafb.c | if (! (cmap->transp=kmalloc(size, GFP_ATOMIC))) |
cmap | 2549 | arch/m68k/atari/atafb.c | cmap->transp=NULL; |
cmap | 2551 | arch/m68k/atari/atafb.c | cmap->start=0; |
cmap | 2552 | arch/m68k/atari/atafb.c | cmap->len=len; |
cmap | 2553 | arch/m68k/atari/atafb.c | copy_cmap(get_default_colormap(len), cmap, 0); |
cmap | 2623 | arch/m68k/atari/atafb.c | alloc_cmap(&disp[con].cmap, 0, 0); |
cmap | 2634 | arch/m68k/atari/atafb.c | atari_fb_get_cmap(struct fb_cmap *cmap, int kspc, int con) |
cmap | 2637 | arch/m68k/atari/atafb.c | return do_fb_get_cmap(cmap, &(disp[con].var), kspc); |
cmap | 2639 | arch/m68k/atari/atafb.c | if (disp[con].cmap.len) /* non default colormap ? */ |
cmap | 2640 | arch/m68k/atari/atafb.c | copy_cmap(&disp[con].cmap, cmap, kspc ? 0 : 2); |
cmap | 2643 | arch/m68k/atari/atafb.c | disp[con].var.bits_per_pixel), cmap, kspc ? 0 : 2); |
cmap | 2648 | arch/m68k/atari/atafb.c | atari_fb_set_cmap(struct fb_cmap *cmap, int kspc, int con) |
cmap | 2651 | arch/m68k/atari/atafb.c | if (! disp[con].cmap.len) { /* no colormap allocated ? */ |
cmap | 2652 | arch/m68k/atari/atafb.c | if ((err = alloc_cmap(&disp[con].cmap, |
cmap | 2657 | arch/m68k/atari/atafb.c | return do_fb_set_cmap(cmap, &(disp[con].var), kspc); |
cmap | 2659 | arch/m68k/atari/atafb.c | copy_cmap(cmap, &disp[con].cmap, kspc ? 0 : 1); |
cmap | 2767 | arch/m68k/atari/atafb.c | if (disp[currcon].cmap.len) |
cmap | 2768 | arch/m68k/atari/atafb.c | do_fb_get_cmap(&disp[currcon].cmap, &(disp[currcon].var), 1); |
cmap | 2780 | arch/m68k/atari/atafb.c | struct fb_cmap cmap; |
cmap | 2785 | arch/m68k/atari/atafb.c | cmap.red=black; |
cmap | 2786 | arch/m68k/atari/atafb.c | cmap.green=black; |
cmap | 2787 | arch/m68k/atari/atafb.c | cmap.blue=black; |
cmap | 2788 | arch/m68k/atari/atafb.c | cmap.transp=NULL; |
cmap | 2789 | arch/m68k/atari/atafb.c | cmap.start=0; |
cmap | 2790 | arch/m68k/atari/atafb.c | cmap.len=16; |
cmap | 2791 | arch/m68k/atari/atafb.c | do_fb_set_cmap(&cmap, &(disp[currcon].var), 1); |
cmap | 16 | arch/m68k/atari/atafb.h | struct fb_cmap cmap; /* colormap */ |
cmap | 107 | drivers/char/fbmem.c | struct fb_cmap cmap; |
cmap | 151 | drivers/char/fbmem.c | memcpy_fromfs(&cmap, (void *) arg, sizeof(cmap)); |
cmap | 152 | drivers/char/fbmem.c | i = verify_area(VERIFY_READ, (void *) cmap.red, |
cmap | 153 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 155 | drivers/char/fbmem.c | i = verify_area(VERIFY_READ, (void *) cmap.green, |
cmap | 156 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 158 | drivers/char/fbmem.c | i = verify_area(VERIFY_READ, (void *) cmap.blue, |
cmap | 159 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 161 | drivers/char/fbmem.c | if (cmap.transp) { |
cmap | 162 | drivers/char/fbmem.c | i = verify_area(VERIFY_READ, (void *) cmap.transp, |
cmap | 163 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 166 | drivers/char/fbmem.c | return (fb->fb_set_cmap(&cmap, 0, PROC_CONSOLE())); |
cmap | 171 | drivers/char/fbmem.c | memcpy_fromfs(&cmap, (void *) arg, sizeof(cmap)); |
cmap | 172 | drivers/char/fbmem.c | i = verify_area(VERIFY_WRITE, (void *) cmap.red, |
cmap | 173 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 175 | drivers/char/fbmem.c | i = verify_area(VERIFY_WRITE, (void *) cmap.green, |
cmap | 176 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 178 | drivers/char/fbmem.c | i = verify_area(VERIFY_WRITE, (void *) cmap.blue, |
cmap | 179 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 181 | drivers/char/fbmem.c | if (cmap.transp) { |
cmap | 182 | drivers/char/fbmem.c | i = verify_area(VERIFY_WRITE, (void *) cmap.transp, |
cmap | 183 | drivers/char/fbmem.c | cmap.len * sizeof(unsigned short)); |
cmap | 186 | drivers/char/fbmem.c | return (fb->fb_get_cmap(&cmap, 0, PROC_CONSOLE())); |
cmap | 80 | drivers/char/vt.c | extern int con_set_cmap(unsigned char *cmap); |
cmap | 81 | drivers/char/vt.c | extern int con_get_cmap(unsigned char *cmap); |
cmap | 552 | drivers/sbus/char/suncons.c | struct fbcmap *cmap; |
cmap | 609 | drivers/sbus/char/suncons.c | cmap = (struct fbcmap *) arg; |
cmap | 610 | drivers/sbus/char/suncons.c | count = cmap->count; |
cmap | 611 | drivers/sbus/char/suncons.c | if ((cmap->index < 0) || (cmap->index > 255)) |
cmap | 613 | drivers/sbus/char/suncons.c | if (cmap->index + count > 256) |
cmap | 614 | drivers/sbus/char/suncons.c | count = 256 - cmap->index; |
cmap | 615 | drivers/sbus/char/suncons.c | i = verify_area (VERIFY_READ, rp = cmap->red, cmap->count); |
cmap | 617 | drivers/sbus/char/suncons.c | i = verify_area (VERIFY_READ, gp = cmap->green, cmap->count); |
cmap | 619 | drivers/sbus/char/suncons.c | i = verify_area (VERIFY_READ, bp = cmap->blue, cmap->count); |
cmap | 622 | drivers/sbus/char/suncons.c | end = cmap->index + count; |
cmap | 623 | drivers/sbus/char/suncons.c | for (i = cmap->index; i < end; i++){ |
cmap | 628 | drivers/sbus/char/suncons.c | (*fb->loadcmap)(fb, cmap->index, count); |
cmap | 102 | include/asm-sparc/fbio.h | struct fbcmap cmap; /* color map info */ |
cmap | 163 | include/linux/fb.h | struct fb_cmap cmap; /* colormap */ |