| /OK3568_Linux_fs/kernel/drivers/video/fbdev/core/ |
| H A D | fbcmap.c | 92 int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags) in fb_alloc_cmap_gfp() argument 99 if (cmap->len != len) { in fb_alloc_cmap_gfp() 100 fb_dealloc_cmap(cmap); in fb_alloc_cmap_gfp() 104 cmap->red = kzalloc(size, flags); in fb_alloc_cmap_gfp() 105 if (!cmap->red) in fb_alloc_cmap_gfp() 107 cmap->green = kzalloc(size, flags); in fb_alloc_cmap_gfp() 108 if (!cmap->green) in fb_alloc_cmap_gfp() 110 cmap->blue = kzalloc(size, flags); in fb_alloc_cmap_gfp() 111 if (!cmap->blue) in fb_alloc_cmap_gfp() 114 cmap->transp = kzalloc(size, flags); in fb_alloc_cmap_gfp() [all …]
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A D | irq_matrix.h | 68 struct cpumap *cmap), 70 TP_ARGS(bit, cpu, matrix, cmap), 88 __entry->online = cmap->online; 89 __entry->available = cmap->available; 90 __entry->allocated = cmap->allocated; 91 __entry->managed = cmap->managed; 144 struct irq_matrix *matrix, struct cpumap *cmap), 146 TP_ARGS(bit, cpu, matrix, cmap) 152 struct irq_matrix *matrix, struct cpumap *cmap), 154 TP_ARGS(bit, cpu, matrix, cmap) [all …]
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | cpumap.c | 59 struct bpf_cpu_map *cmap; member 85 struct bpf_cpu_map *cmap; in cpu_map_alloc() local 100 cmap = kzalloc(sizeof(*cmap), GFP_USER); in cpu_map_alloc() 101 if (!cmap) in cpu_map_alloc() 104 bpf_map_init_from_attr(&cmap->map, attr); in cpu_map_alloc() 107 if (cmap->map.max_entries > NR_CPUS) { in cpu_map_alloc() 113 cost = (u64) cmap->map.max_entries * sizeof(struct bpf_cpu_map_entry *); in cpu_map_alloc() 116 ret = bpf_map_charge_init(&cmap->map.memory, cost); in cpu_map_alloc() 123 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc() 125 cmap->map.numa_node); in cpu_map_alloc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | sbuslib.c | 119 struct fb_cmap cmap; in sbusfb_ioctl_helper() local 134 cmap.len = 1; in sbusfb_ioctl_helper() 135 cmap.red = &red; in sbusfb_ioctl_helper() 136 cmap.green = &green; in sbusfb_ioctl_helper() 137 cmap.blue = &blue; in sbusfb_ioctl_helper() 138 cmap.transp = NULL; in sbusfb_ioctl_helper() 151 cmap.start = index + i; in sbusfb_ioctl_helper() 152 err = fb_set_cmap(&cmap, info); in sbusfb_ioctl_helper() 163 struct fb_cmap *cmap = &info->cmap; in sbusfb_ioctl_helper() local 174 if (index > cmap->len || count > cmap->len - index) in sbusfb_ioctl_helper() [all …]
|
| H A D | cg3.c | 89 struct bt_regs cmap; member 143 struct bt_regs __iomem *bt = &par->regs->cmap; in cg3_setcolreg() 342 regp = (u8 __iomem *)&par->regs->cmap.addr; in cg3_do_default_mode() 344 regp = (u8 __iomem *)&par->regs->cmap.control; in cg3_do_default_mode() 402 err = fb_alloc_cmap(&info->cmap, 256, 0); in cg3_probe() 406 fb_set_cmap(&info->cmap, info); in cg3_probe() 422 fb_dealloc_cmap(&info->cmap); in cg3_probe() 443 fb_dealloc_cmap(&info->cmap); in cg3_remove()
|
| H A D | uvesafb.c | 995 if (regno >= info->cmap.len) in uvesafb_setcolreg() 1038 static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in uvesafb_setcmap() argument 1045 if (cmap->start + cmap->len > info->cmap.start + in uvesafb_setcmap() 1046 info->cmap.len || cmap->start < info->cmap.start) in uvesafb_setcmap() 1049 entries = kmalloc_array(cmap->len, sizeof(*entries), in uvesafb_setcmap() 1054 for (i = 0; i < cmap->len; i++) { in uvesafb_setcmap() 1055 entries[i].red = cmap->red[i] >> shift; in uvesafb_setcmap() 1056 entries[i].green = cmap->green[i] >> shift; in uvesafb_setcmap() 1057 entries[i].blue = cmap->blue[i] >> shift; in uvesafb_setcmap() 1060 err = uvesafb_setpalette(entries, cmap->len, cmap->start, info); in uvesafb_setcmap() [all …]
|
| H A D | metronomefb.c | 708 retval = fb_alloc_cmap(&info->cmap, 8, 0); in metronomefb_probe() 716 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; in metronomefb_probe() 717 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 718 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 733 fb_dealloc_cmap(&info->cmap); in metronomefb_probe() 756 fb_dealloc_cmap(&info->cmap); in metronomefb_remove()
|
| H A D | pmag-ba-fb.c | 100 if (regno >= info->cmap.len) in pmagbafb_setcolreg() 159 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbafb_probe() 229 fb_dealloc_cmap(&info->cmap); in pmagbafb_probe() 250 fb_dealloc_cmap(&info->cmap); in pmagbafb_remove()
|
| H A D | pm2fb.c | 769 info->cmap.len = 256; in pm2fb_set_par() 877 if (regno >= info->cmap.len) /* no. of hw registers */ in pm2fb_setcolreg() 1301 struct fb_cmap cmap = info->cmap; in pm2vfb_cursor() local 1306 cmap.red[bg_idx] >> 8 ); in pm2vfb_cursor() 1308 cmap.green[bg_idx] >> 8 ); in pm2vfb_cursor() 1310 cmap.blue[bg_idx] >> 8 ); in pm2vfb_cursor() 1313 cmap.red[fg_idx] >> 8 ); in pm2vfb_cursor() 1315 cmap.green[fg_idx] >> 8 ); in pm2vfb_cursor() 1317 cmap.blue[fg_idx] >> 8 ); in pm2vfb_cursor() 1414 info->cmap.red[bg_idx] >> 8); in pm2fb_cursor() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/drm/ |
| H A D | bmp_helper.c | 18 static void draw_unencoded_bitmap(uint16_t **dst, uint8_t *bmap, uint16_t *cmap, in draw_unencoded_bitmap() argument 22 *(*dst)++ = cmap[*bmap++]; in draw_unencoded_bitmap() 51 static void decode_rle8_bitmap(void *psrc, void *pdst, uint16_t *cmap, in decode_rle8_bitmap() argument 112 cmap, cnt); in decode_rle8_bitmap() 135 cmap[bmap[1]], cnt); in decode_rle8_bitmap() 151 uint16_t *cmap; in bmpdecoder() local 179 cmap = malloc(sizeof(cmap) * 256); in bmpdecoder() 187 cmap[i] = colreg; in bmpdecoder() 193 decode_rle8_bitmap(src, dst, cmap, width, height, in bmpdecoder() 204 *(uint16_t *)dst = cmap[*(src++)]; in bmpdecoder() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/fb/ |
| H A D | cmap_xfbdev.rst | 2 Understanding fbdev's cmap 5 These notes explain how X's dix layer uses fbdev's cmap structures. 7 - example of relevant structures in fbdev as used for a 3-bit grayscale cmap:: 20 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; 21 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); 22 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); 53 directly from the info->cmap.red that was listed above. The prgb is the rgb 55 squares matching function. That's why the cmap entries can't be set to the left
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/common/ |
| H A D | xf86sbusBus.c | 642 sbusCmapPtr cmap; in xf86SbusCmapLoadPalette() local 646 cmap = SBUSCMAPPTR(pScrn->pScreen); in xf86SbusCmapLoadPalette() 647 if (!cmap) in xf86SbusCmapLoadPalette() 659 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapLoadPalette() 667 ioctl(cmap->psdp->fd, FBIOPUTCMAP, &fbcmap); in xf86SbusCmapLoadPalette() 674 sbusCmapPtr cmap; in xf86SbusCmapCloseScreen() local 677 cmap = SBUSCMAPPTR(pScreen); in xf86SbusCmapCloseScreen() 678 if (cmap->origCmapValid) { in xf86SbusCmapCloseScreen() 681 fbcmap.red = cmap->origRed; in xf86SbusCmapCloseScreen() 682 fbcmap.green = cmap->origGreen; in xf86SbusCmapCloseScreen() [all …]
|
| H A D | xf86cmap.c | 73 ColormapPtr cmap; member 295 pLink->cmap = pmap; in CMapAllocateColormapPrivate() 322 CMapDestroyColormap(ColormapPtr cmap) in CMapDestroyColormap() argument 324 ScreenPtr pScreen = cmap->pScreen; in CMapDestroyColormap() 328 (CMapColormapPtr) dixLookupPrivate(&cmap->devPrivates, CMapColormapKey); in CMapDestroyColormap() 338 if (pLink->cmap == cmap) { in CMapDestroyColormap() 352 (*pScreen->DestroyColormap) (cmap); in CMapDestroyColormap() 939 pColPriv = (CMapColormapPtr) dixLookupPrivate(&pLink->cmap->devPrivates, in CMapChangeGamma() 959 if (pLink->cmap->pVisual->class == PseudoColor) in CMapChangeGamma() 967 SetInstalledmiColormap(pScreen, pLink->cmap); in CMapChangeGamma() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_fb_helper.c | 533 ret = fb_alloc_cmap(&info->cmap, 256, 0); in drm_fb_helper_alloc_fbi() 557 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_alloc_fbi() 602 if (info->cmap.len) in drm_fb_helper_fini() 603 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_fini() 883 static int setcmap_pseudo_palette(struct fb_cmap *cmap, struct fb_info *info) in setcmap_pseudo_palette() argument 888 if (cmap->start + cmap->len > 16) in setcmap_pseudo_palette() 891 for (i = 0; i < cmap->len; ++i) { in setcmap_pseudo_palette() 892 u16 red = cmap->red[i]; in setcmap_pseudo_palette() 893 u16 green = cmap->green[i]; in setcmap_pseudo_palette() 894 u16 blue = cmap->blue[i]; in setcmap_pseudo_palette() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/ |
| H A D | dmxcmap.c | 57 pCmapPriv->cmap = (Colormap) 0; in dmxAllocateColormapPrivates() 75 pCmapPriv->cmap = XCreateColormap(dmxScreen->beDisplay, in dmxBECreateColormap() 80 return pCmapPriv->cmap != 0; in dmxBECreateColormap() 121 if (pCmapPriv->cmap) { in dmxBEFreeColormap() 122 XFreeColormap(dmxScreen->beDisplay, pCmapPriv->cmap); in dmxBEFreeColormap() 123 pCmapPriv->cmap = (Colormap) 0; in dmxBEFreeColormap() 165 XInstallColormap(dmxScreen->beDisplay, pCmapPriv->cmap); in dmxInstallColormap() 192 XStoreColors(dmxScreen->beDisplay, pCmapPriv->cmap, color, ndef); in dmxStoreColors() 205 XStoreColor(dmxScreen->beDisplay, pCmapPriv->cmap, &c); in dmxStoreColors()
|
| /OK3568_Linux_fs/external/xserver/Xext/ |
| H A D | panoramiXprocs.c | 60 PanoramiXRes *cmap = NULL; in PanoramiXCreateWindow() local 110 result = dixLookupResourceByType((void **) &cmap, tmp, in PanoramiXCreateWindow() 145 if (cmap) in PanoramiXCreateWindow() 146 *((CARD32 *) &stuff[1] + cmap_offset) = cmap->info[j].id; in PanoramiXCreateWindow() 168 PanoramiXRes *cmap = NULL; in PanoramiXChangeWindowAttributes() local 214 result = dixLookupResourceByType((void **) &cmap, tmp, in PanoramiXChangeWindowAttributes() 228 if (cmap) in PanoramiXChangeWindowAttributes() 229 *((CARD32 *) &stuff[1] + cmap_offset) = cmap->info[j].id; in PanoramiXChangeWindowAttributes() 2317 PanoramiXRes *cmap; in PanoramiXFreeColormap() local 2326 result = dixLookupResourceByType((void **) &cmap, stuff->id, XRT_COLORMAP, in PanoramiXFreeColormap() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/video/ |
| H A D | video_bmp.c | 21 static void draw_unencoded_bitmap(ushort **fbp, uchar *bmap, ushort *cmap, in draw_unencoded_bitmap() argument 25 *(*fbp)++ = cmap[*bmap++]; in draw_unencoded_bitmap() 42 struct bmp_image *bmp, ushort *cmap, in video_display_rle8_bitmap() argument 96 bmap, cmap, cnt); in video_display_rle8_bitmap() 121 cmap[bmap[1]], cnt); in video_display_rle8_bitmap() 180 ushort *cmap = priv->cmap; in video_set_cmap() local 184 *cmap = ((cte->red << 8) & 0xf800) | in video_set_cmap() 187 cmap++; in video_set_cmap() 270 cmap_base = priv->cmap; in video_bmp_display()
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/aty/ |
| H A D | mach64_cursor.c | 131 fg = ((info->cmap.red[fg_idx] & 0xff) << 24) | in atyfb_cursor() 132 ((info->cmap.green[fg_idx] & 0xff) << 16) | in atyfb_cursor() 133 ((info->cmap.blue[fg_idx] & 0xff) << 8) | 0xff; in atyfb_cursor() 135 bg = ((info->cmap.red[bg_idx] & 0xff) << 24) | in atyfb_cursor() 136 ((info->cmap.green[bg_idx] & 0xff) << 16) | in atyfb_cursor() 137 ((info->cmap.blue[bg_idx] & 0xff) << 8); in atyfb_cursor()
|
| /OK3568_Linux_fs/kernel/fs/xfs/ |
| H A D | xfs_iomap.c | 737 struct xfs_bmbt_irec imap, cmap; in xfs_direct_write_iomap_begin() local 773 error = xfs_reflink_allocate_cow(ip, &imap, &cmap, &shared, in xfs_direct_write_iomap_begin() 835 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin() 836 trace_xfs_iomap_found(ip, offset, length - offset, XFS_COW_FORK, &cmap); in xfs_direct_write_iomap_begin() 842 return xfs_bmbt_to_iomap(ip, iomap, &cmap, IOMAP_F_SHARED); in xfs_direct_write_iomap_begin() 866 struct xfs_bmbt_irec imap, cmap; in xfs_buffered_write_iomap_begin() local 929 &ccur, &cmap); in xfs_buffered_write_iomap_begin() 930 if (!cow_eof && cmap.br_startoff <= offset_fsb) { in xfs_buffered_write_iomap_begin() 931 trace_xfs_reflink_cow_found(ip, &cmap); in xfs_buffered_write_iomap_begin() 1023 allocfork == XFS_DATA_FORK ? &imap : &cmap, in xfs_buffered_write_iomap_begin() [all …]
|
| H A D | xfs_reflink.c | 309 struct xfs_bmbt_irec *cmap, in xfs_find_trim_cow_extent() argument 323 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) in xfs_find_trim_cow_extent() 324 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent() 325 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent() 327 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent() 332 if (isnullstartblock(cmap->br_startblock)) { in xfs_find_trim_cow_extent() 333 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent() 338 xfs_trim_extent(cmap, offset_fsb, count_fsb); in xfs_find_trim_cow_extent() 348 struct xfs_bmbt_irec *cmap, in xfs_reflink_allocate_cow() argument 368 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found); in xfs_reflink_allocate_cow() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/sm750fb/ |
| H A D | sm750.c | 136 fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800)) | in lynxfb_ops_cursor() 137 ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5) | in lynxfb_ops_cursor() 138 ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 140 bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800)) | in lynxfb_ops_cursor() 141 ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) | in lynxfb_ops_cursor() 142 ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11); in lynxfb_ops_cursor() 845 info->cmap.start, info->cmap.len, in lynxfb_set_fbinfo() 846 info->cmap.red, info->cmap.green, info->cmap.blue, in lynxfb_set_fbinfo() 847 info->cmap.transp); in lynxfb_set_fbinfo() 849 ret = fb_alloc_cmap(&info->cmap, 256, 0); in lynxfb_set_fbinfo() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/dmx/examples/ |
| H A D | dmxwininfo.c | 189 Colormap cmap; 232 cmap = XCreateColormap(dpy, root, visinfo->visual, AllocNone); 243 cmap = XCreateColormap(dpy, root, visinfo->visual, AllocNone); 250 if (!XAllocColor(dpy, cmap, &xcolor)) { 260 if (!XAllocColor(dpy, cmap, &xcolor)) { 270 if (!XAllocColor(dpy, cmap, &xcolor)) { 280 if (!XAllocColor(dpy, cmap, &xcolor)) { 288 attr.colormap = cmap;
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | lcd.c | 340 ushort *cmap = configuration_get_cmap(); in lcd_logo_set_cmap() local 343 *cmap++ = bmp_logo_palette[i]; in lcd_logo_set_cmap() 418 static void draw_unencoded_bitmap(ushort **fbp, uchar *bmap, ushort *cmap, in draw_unencoded_bitmap() argument 422 *(*fbp)++ = cmap[*bmap++]; in draw_unencoded_bitmap() 454 static void lcd_display_rle8_bitmap(struct bmp_image *bmp, ushort *cmap, in lcd_display_rle8_bitmap() argument 506 bmap, cmap, cnt); in lcd_display_rle8_bitmap() 531 cmap[bmap[1]], cnt); in lcd_display_rle8_bitmap() 558 ushort *cmap = configuration_get_cmap(); in lcd_set_cmap() local 562 *cmap = (((cte.red) << 8) & 0xf800) | in lcd_set_cmap() 565 cmap++; in lcd_set_cmap()
|
| /OK3568_Linux_fs/u-boot/include/linux/ |
| H A D | fb.h | 230 struct fb_cmap cmap; /* color map info */ member 355 struct fb_cmap_user cmap; /* color map info */ member 502 struct fb_cmap cmap; /* Current cmap */ member 589 extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); 590 extern void fb_dealloc_cmap(struct fb_cmap *cmap); 593 extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info); 594 extern int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *fb_info);
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/bus/ |
| H A D | Sbus.c | 691 fbcursor.cmap.count = 2; in xf86SbusHideOsHwCursor() 692 fbcursor.cmap.red = zeros; in xf86SbusHideOsHwCursor() 693 fbcursor.cmap.green = zeros; in xf86SbusHideOsHwCursor() 694 fbcursor.cmap.blue = zeros; in xf86SbusHideOsHwCursor() 717 fbcursor.cmap.count = 2; in xf86SbusSetOsHwCursorCmap() 718 fbcursor.cmap.red = red; in xf86SbusSetOsHwCursorCmap() 719 fbcursor.cmap.green = green; in xf86SbusSetOsHwCursorCmap() 720 fbcursor.cmap.blue = blue; in xf86SbusSetOsHwCursorCmap()
|