/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/video/ |
H A D | fbcmap.c | 81 * @cmap: frame buffer colormap structure 82 * @len: length of @cmap 85 * Allocates memory for a colormap @cmap. @len is the 92 int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp) argument 96 if (cmap->len != len) { 97 if (cmap->red) 98 kfree(cmap->red); 99 if (cmap->green) 100 kfree(cmap->green); 101 if (cmap 123 fb_copy_cmap(fb_default_cmap(len), cmap, 0); local 198 fb_get_cmap(struct fb_cmap *cmap, int kspc, int (*getcolreg)(u_int, u_int *, u_int *, u_int *, u_int *, struct fb_info *), struct fb_info *info) argument 252 fb_set_cmap(struct fb_cmap *cmap, int kspc, int (*setcolreg)(u_int, u_int, u_int, u_int, u_int, struct fb_info *), struct fb_info *info) argument [all...] |
H A D | fbgen.c | 135 if ((err = fb_alloc_cmap(&fb_display[con].cmap, 0, 0))) 147 * @cmap: frame buffer colormap structure 153 * @cmap for device @info. 159 int fbgen_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 166 return fb_get_cmap(cmap, kspc, fbhw->getcolreg, info); 168 if (fb_display[con].cmap.len) /* non default colormap ? */ 169 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 172 fb_copy_cmap(fb_default_cmap(size), cmap, kspc ? 0 : 2); local 180 * @cmap 192 fbgen_set_cmap(struct fb_cmap *cmap, int kspc, int con, struct fb_info *info) argument 430 struct fb_cmap cmap; local [all...] |
H A D | fm2fb.c | 190 static int fm2fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 192 static int fm2fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 279 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 291 static int fm2fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 295 return fb_get_cmap(cmap, kspc, fm2fb_getcolreg, info); 296 else if (fb_display[con].cmap.len) /* non default colormap? */ 297 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 299 fb_copy_cmap(fb_default_cmap(256), cmap, kspc ? 0 : 2); 307 static int fm2fb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | g364fb.c | 100 static int g364fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 102 static int g364fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 215 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 241 static int g364fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 245 return fb_get_cmap(cmap, kspc, g364fb_getcolreg, info); 246 else if (fb_display[con].cmap.len) /* non default colormap? */ 247 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 250 cmap, kspc ? 0 : 2); 257 static int g364fb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | maxinefb.c | 175 static int maxinefb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 182 if (((cmap->start) + (cmap->len)) >= 256) { 183 length = 256 - (cmap->start); 185 length = cmap->len; 190 + cmap->start + i); 191 (cmap->red[i]) = ((hw_colorvalue & 0x0000ff)); 192 (cmap->green[i]) = ((hw_colorvalue & 0x00ff00) >> 8); 193 (cmap->blue[i]) = ((hw_colorvalue & 0xff0000) >> 16); 202 static int maxinefb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | pmag-ba-fb.c | 54 unsigned char cmap; member in struct:pmag_ba_ramdac_regs 175 info->bt459_regs->cmap = red; 176 info->bt459_regs->cmap = green; 177 info->bt459_regs->cmap = blue; 184 static int pmagbafb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 190 if (((cmap->start) + (cmap->len)) >= 256) { 191 length = 256 - (cmap->start); 193 length = cmap->len; 206 static int pmagbafb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | pmagb-b-fb.c | 57 unsigned char cmap; member in struct:pmagb_b_ramdac_regs 178 info->bt459_regs->cmap = red; 179 info->bt459_regs->cmap = green; 180 info->bt459_regs->cmap = blue; 187 static int pmagbbfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 193 if (((cmap->start) + (cmap->len)) >= 256) { 194 length = 256 - (cmap->start); 196 length = cmap->len; 209 static int pmagbbfb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | q40fb.c | 38 static int q40fb_get_cmap(struct fb_cmap *cmap,int kspc,int con, 40 static int q40fb_set_cmap(struct fb_cmap *cmap,int kspc,int con, 210 static int q40fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 214 return fb_get_cmap(cmap, kspc, q40_getcolreg, info); 215 else if (fb_display[con].cmap.len) /* non default colormap? */ 216 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 219 cmap, kspc ? 0 : 2); 223 static int q40fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 228 if (!fb_display[con].cmap [all...] |
H A D | tx3912fb.c | 44 static int tx3912fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 46 static int tx3912fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 281 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 293 static int tx3912fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 297 return fb_get_cmap(cmap, kspc, tx3912fb_getcolreg, info); 298 else if (fb_display[con].cmap.len) /* non default colormap? */ 299 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 301 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), cmap, kspc ? 0 : 2); 309 static int tx3912fb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | sbusfb.c | 88 static int sbusfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 90 static int sbusfb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 388 if (f.cmap.index || f.cmap.count != 2) 390 if (copy_from_user (red, f.cmap.red, 2) || 391 copy_from_user (green, f.cmap.green, 2) || 392 copy_from_user (blue, f.cmap.blue, 2)) 496 static int sbusfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 500 return fb_get_cmap(cmap, kspc, sbusfb_getcolreg, info); 501 else if (fb_display[con].cmap 512 sbusfb_set_cmap(struct fb_cmap *cmap, int kspc, int con, struct fb_info *info) argument 603 struct fbcmap *cmap; local 641 struct fbcmap *cmap; local [all...] |
H A D | vfb.c | 88 static int vfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 90 static int vfb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 289 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 332 static int vfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 336 return fb_get_cmap(cmap, kspc, vfb_getcolreg, info); 337 else if (fb_display[con].cmap.len) /* non default colormap? */ 338 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 341 cmap, kspc ? 0 : 2); 349 static int vfb_set_cmap(struct fb_cmap *cmap, in argument [all...] |
H A D | offb.c | 98 static int offb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 100 static int offb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 199 if ((oldbpp != var->bits_per_pixel) || (display->cmap.len == 0)) { 200 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 212 static int offb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 218 return fb_get_cmap(cmap, kspc, offb_getcolreg, info); 219 if (fb_display[con].cmap.len) /* non default colormap? */ 220 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 224 fb_copy_cmap(fb_default_cmap(size), cmap, ksp local 233 offb_set_cmap(struct fb_cmap *cmap, int kspc, int con, struct fb_info *info) argument [all...] |
H A D | igafb.c | 379 if (fb_display[con].cmap.len) 380 fb_set_cmap(&fb_display[con].cmap, 1, 387 static int igafb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 393 return fb_get_cmap(cmap, kspc, iga_getcolreg, &info->fb_info); 394 else if (fb_display[con].cmap.len) /* non default colormap? */ 395 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 398 cmap, kspc ? 0 : 2); 402 static int igafb_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 408 if (!fb_display[con].cmap [all...] |
H A D | vesafb.c | 409 if (fb_display[con].cmap.len) 410 fb_set_cmap(&fb_display[con].cmap, 1, vesa_setcolreg, info); 416 static int vesafb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 420 return fb_get_cmap(cmap, kspc, vesa_getcolreg, info); 421 else if (fb_display[con].cmap.len) /* non default colormap? */ 422 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 425 cmap, kspc ? 0 : 2); local 429 static int vesafb_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 434 if (!fb_display[con].cmap [all...] |
H A D | S3triofb.c | 85 static int s3trio_get_cmap(struct fb_cmap *cmap, int kspc, int con, 87 static int s3trio_set_cmap(struct fb_cmap *cmap, int kspc, int con, 224 static int s3trio_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 228 return fb_get_cmap(cmap, kspc, s3trio_getcolreg, info); 229 else if (fb_display[con].cmap.len) /* non default colormap? */ 230 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 233 cmap, kspc ? 0 : 2); 241 static int s3trio_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 247 if (!fb_display[con].cmap [all...] |
H A D | chipsfb.c | 128 static int chips_get_cmap(struct fb_cmap *cmap, int kspc, int con, 130 static int chips_set_cmap(struct fb_cmap *cmap, int kspc, int con, 188 static int chips_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 192 return fb_get_cmap(cmap, kspc, chipsfb_getcolreg, info); 193 if (fb_display[con].cmap.len) /* non default colormap? */ 194 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 197 fb_copy_cmap(fb_default_cmap(size), cmap, kspc ? 0 : 2); local 202 static int chips_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 207 if (!fb_display[con].cmap [all...] |
H A D | hpfb.c | 131 static int hpfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 138 static int hpfb_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 142 for (i = 0; i < cmap->len; i++) 146 out_be16(fb_regs + 0x60b8, cmap->start + i); 147 out_be16(fb_regs + 0x60b2, cmap->red[i]); 148 out_be16(fb_regs + 0x60b4, cmap->green[i]); 149 out_be16(fb_regs + 0x60b6, cmap->blue[i]);
|
H A D | sgivwfb.c | 100 static int sgivwfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 102 static int sgivwfb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 298 // DBE_ISETREG(cmap, i, 0x00000000); 299 DBE_ISETREG(cmap, i, (i<<8)|(i<<16)|(i<<24)); 554 regs->cmap[regno] = (red << 24) | (green << 16) | (blue << 8); 563 if (fb_display[con].cmap.len) 564 fb_set_cmap(&fb_display[con].cmap, 1, sgivwfb_setcolreg, info); 766 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 803 static int sgivwfb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 807 return fb_get_cmap(cmap, ksp 819 sgivwfb_set_cmap(struct fb_cmap *cmap, int kspc, int con, struct fb_info *info) argument [all...] |
H A D | sun3fb.c | 79 static int sun3fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, 81 static int sun3fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, 294 static int sun3fb_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 298 return fb_get_cmap(cmap, kspc, sun3fb_getcolreg, info); 299 else if (fb_display[con].cmap.len) /* non default colormap? */ 300 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 302 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), cmap, kspc ? 0 : 2); 310 static int sun3fb_set_cmap(struct fb_cmap *cmap, int kspc, int con, argument 315 if (!fb_display[con].cmap [all...] |
H A D | platinumfb.c | 109 static int platinum_get_cmap(struct fb_cmap *cmap, int kspc, int con, 111 static int platinum_set_cmap(struct fb_cmap *cmap, int kspc, int con, 285 if ((err = fb_alloc_cmap(&display->cmap, 0, 0))) 293 static int platinum_get_cmap(struct fb_cmap *cmap, int kspc, int con, argument 298 return fb_get_cmap(cmap, kspc, platinum_getcolreg, info); 299 if (fb_display[con].cmap.len) /* non default colormap? */ 300 fb_copy_cmap(&fb_display[con].cmap, cmap, kspc ? 0 : 2); 303 fb_copy_cmap(fb_default_cmap(size), cmap, kspc ? 0 : 2); local 308 static int platinum_set_cmap(struct fb_cmap *cmap, in argument [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/video/matrox/ |
H A D | matroxfb_crtc2.h | 40 } cmap; member in struct:matroxfb_dh_fb_info
|
H A D | matroxfb_crtc2.c | 66 m2info->cmap.cfb16[regno] = 75 m2info->cmap.cfb32[regno] = 88 if (p->cmap.len) 89 fb_set_cmap(&p->cmap, 1, matroxfb_dh_setcolreg, &m2info->fbcon); 277 p->dispsw_data = m2info->cmap.cfb16; 283 p->dispsw_data = m2info->cmap.cfb32; 392 /* cmap */ 455 static int matroxfb_dh_get_cmap(struct fb_cmap* cmap, int kspc, int con, argument 465 return fb_get_cmap(cmap, kspc, matroxfb_dh_getcolreg, info); 466 else if (dsp->cmap 474 matroxfb_dh_set_cmap(struct fb_cmap* cmap, int kspc, int con, struct fb_info* info) argument 616 struct fb_cmap* cmap; local [all...] |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips64/kernel/ |
H A D | ioctl32.c | 161 struct fb_cmap cmap; local 165 memset(&cmap, 0, sizeof(cmap)); 167 err = __get_user(cmap.start, &cmap32->start); 168 err |= __get_user(cmap.len, &cmap32->len); 177 cmap.red = kmalloc(cmap.len * sizeof(__u16), GFP_KERNEL); 178 if (!cmap.red) 180 cmap.green = kmalloc(cmap [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/ |
H A D | vt_kern.h | 54 int con_set_cmap(unsigned char *cmap); 55 int con_get_cmap(unsigned char *cmap);
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/ |
H A D | vt_kern.h | 54 int con_set_cmap(unsigned char *cmap); 55 int con_get_cmap(unsigned char *cmap);
|