/linux-master/drivers/video/fbdev/core/ |
H A D | fbcmap.c | 80 * @cmap: frame buffer colormap structure 81 * @len: length of @cmap 85 * Allocates memory for a colormap @cmap. @len is the 92 int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags) argument 99 if (cmap->len != len) { 100 fb_dealloc_cmap(cmap); 104 cmap->red = kzalloc(size, flags); 105 if (!cmap->red) 107 cmap->green = kzalloc(size, flags); 108 if (!cmap 133 fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp) argument 147 fb_dealloc_cmap(struct fb_cmap *cmap) argument 231 fb_set_cmap(struct fb_cmap *cmap, struct fb_info *info) argument 267 fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *info) argument [all...] |
H A D | fb_chrdev.c | 69 struct fb_cmap_user cmap; local 108 if (copy_from_user(&cmap, argp, sizeof(cmap))) 110 ret = fb_set_user_cmap(&cmap, info); 113 if (copy_from_user(&cmap, argp, sizeof(cmap))) 116 cmap_from = info->cmap; 118 ret = fb_cmap_to_user(&cmap_from, &cmap); 204 struct fb_cmap_user cmap; local 209 cmap [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | sbuslib.c | 120 struct fb_cmap cmap; local 135 cmap.len = 1; 136 cmap.red = &red; 137 cmap.green = &green; 138 cmap.blue = &blue; 139 cmap.transp = NULL; 152 cmap.start = index + i; 153 err = fb_set_cmap(&cmap, info); 164 struct fb_cmap *cmap = &info->cmap; local 214 struct fb_cmap cmap; local 257 struct fb_cmap *cmap = &info->cmap; local [all...] |
H A D | q40fb.c | 104 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { 113 fb_dealloc_cmap(&info->cmap);
|
H A D | cg3.c | 83 struct bt_regs cmap; member in struct:cg3_regs 129 * We keep a sw copy of the hw cmap to assist us in this esoteric 137 struct bt_regs __iomem *bt = &par->regs->cmap; 336 regp = (u8 __iomem *)&par->regs->cmap.addr; 338 regp = (u8 __iomem *)&par->regs->cmap.control; 395 err = fb_alloc_cmap(&info->cmap, 256, 0); 399 fb_set_cmap(&info->cmap, info); 415 fb_dealloc_cmap(&info->cmap); 436 fb_dealloc_cmap(&info->cmap);
|
H A D | pmag-ba-fb.c | 100 if (regno >= info->cmap.len) 103 red >>= 8; /* The cmap fields are 16 bits */ 157 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { 226 fb_dealloc_cmap(&info->cmap); 247 fb_dealloc_cmap(&info->cmap);
|
H A D | uvesafb.c | 997 if (regno >= info->cmap.len) 1040 static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) argument 1047 if (cmap->start + cmap->len > info->cmap.start + 1048 info->cmap.len || cmap->start < info->cmap.start) 1051 entries = kmalloc_array(cmap->len, sizeof(*entries), 1056 for (i = 0; i < cmap [all...] |
H A D | metronomefb.c | 650 retval = fb_alloc_cmap(&info->cmap, 8, 0); 656 /* set cmap */ 658 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; 659 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); 660 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); 675 fb_dealloc_cmap(&info->cmap); 698 fb_dealloc_cmap(&info->cmap);
|
H A D | fm2fb.c | 245 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { 283 fb_dealloc_cmap(&info->cmap);
|
H A D | p9100.c | 287 if (fb_alloc_cmap(&info->cmap, 256, 0)) 296 fb_set_cmap(&info->cmap, info); 307 fb_dealloc_cmap(&info->cmap); 328 fb_dealloc_cmap(&info->cmap);
|
H A D | wm8505fb.c | 351 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { 364 if (fbi->fb.cmap.len) 365 fb_dealloc_cmap(&fbi->fb.cmap); 384 if (fbi->fb.cmap.len) 385 fb_dealloc_cmap(&fbi->fb.cmap);
|
H A D | pm2fb.c | 771 info->cmap.len = 256; 879 if (regno >= info->cmap.len) /* no. of hw registers */ 894 * cmap[X] is programmed to 902 * cmap is not used 908 * cmap is programmed to 1303 struct fb_cmap cmap = info->cmap; local 1308 cmap.red[bg_idx] >> 8 ); 1310 cmap.green[bg_idx] >> 8 ); 1312 cmap [all...] |
H A D | macfb.c | 166 nubus_writeb(info->cmap.red[i] >> 8, 169 nubus_writeb(info->cmap.green[i] >> 8, 172 nubus_writeb(info->cmap.blue[i] >> 8, 443 if (regno >= fb_info->cmap.len) 878 err = fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0); 891 fb_dealloc_cmap(&fb_info.cmap);
|
/linux-master/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...] |
/linux-master/drivers/video/fbdev/matrox/ |
H A D | matroxfb_crtc2.h | 32 u_int32_t cmap[16]; member in struct:matroxfb_dh_fb_info
|
/linux-master/kernel/bpf/ |
H A D | cpumap.c | 87 struct bpf_cpu_map *cmap; local 100 cmap = bpf_map_area_alloc(sizeof(*cmap), NUMA_NO_NODE); 101 if (!cmap) 104 bpf_map_init_from_attr(&cmap->map, attr); 107 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * 109 cmap->map.numa_node); 110 if (!cmap->cpu_map) { 111 bpf_map_area_free(cmap); 503 __cpu_map_entry_replace(struct bpf_cpu_map *cmap, u32 key_cpu, struct bpf_cpu_map_entry *rcpu) argument 517 struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map); local 531 struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map); local 568 struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map); local 604 struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map); local 625 struct bpf_cpu_map *cmap = container_of(map, struct bpf_cpu_map, map); local [all...] |
/linux-master/fs/xfs/ |
H A D | xfs_reflink.c | 313 struct xfs_bmbt_irec *cmap, 327 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) 328 cmap->br_startoff = offset_fsb + count_fsb; 329 if (cmap->br_startoff > offset_fsb) { 331 cmap->br_startoff - imap->br_startoff); 336 if (isnullstartblock(cmap->br_startblock)) { 337 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); 342 xfs_trim_extent(cmap, offset_fsb, count_fsb); 351 struct xfs_bmbt_irec *cmap, 310 xfs_find_trim_cow_extent( struct xfs_inode *ip, struct xfs_bmbt_irec *imap, struct xfs_bmbt_irec *cmap, bool *shared, bool *found) argument 348 xfs_reflink_convert_unwritten( struct xfs_inode *ip, struct xfs_bmbt_irec *imap, struct xfs_bmbt_irec *cmap, bool convert_now) argument 381 xfs_reflink_fill_cow_hole( struct xfs_inode *ip, struct xfs_bmbt_irec *imap, struct xfs_bmbt_irec *cmap, bool *shared, uint *lockmode, bool convert_now) argument 449 xfs_reflink_fill_delalloc( struct xfs_inode *ip, struct xfs_bmbt_irec *imap, struct xfs_bmbt_irec *cmap, bool *shared, uint *lockmode, bool convert_now) argument 520 xfs_reflink_allocate_cow( struct xfs_inode *ip, struct xfs_bmbt_irec *imap, struct xfs_bmbt_irec *cmap, bool *shared, uint *lockmode, bool convert_now) argument [all...] |
H A D | xfs_iomap.c | 792 struct xfs_bmbt_irec imap, cmap; local 829 error = xfs_reflink_allocate_cow(ip, &imap, &cmap, &shared, 906 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); 907 trace_xfs_iomap_found(ip, offset, length - offset, XFS_COW_FORK, &cmap); 916 return xfs_bmbt_to_iomap(ip, iomap, &cmap, flags, IOMAP_F_SHARED, seq); 968 struct xfs_bmbt_irec imap, cmap; local 1039 &ccur, &cmap); 1040 if (!cow_eof && cmap.br_startoff <= offset_fsb) { 1041 trace_xfs_reflink_cow_found(ip, &cmap); 1298 struct xfs_bmbt_irec imap, cmap; local [all...] |
H A D | xfs_reflink.h | 25 struct xfs_bmbt_irec *cmap, bool *shared, uint *lockmode,
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_fb_helper.c | 508 * A helper to alloc fb_info and the member cmap. Called by the driver 527 ret = fb_alloc_cmap(&info->cmap, 256, 0); 546 * A helper to release fb_info and the member cmap. Drivers do not 559 if (info->cmap.len) 560 fb_dealloc_cmap(&info->cmap); 801 static int setcmap_pseudo_palette(struct fb_cmap *cmap, struct fb_info *info) argument 806 if (cmap->start + cmap->len > 16) 809 for (i = 0; i < cmap->len; ++i) { 810 u16 red = cmap 833 setcmap_legacy(struct fb_cmap *cmap, struct fb_info *info) argument 873 setcmap_new_gamma_lut(struct drm_crtc *crtc, struct fb_cmap *cmap) argument 916 setcmap_atomic(struct fb_cmap *cmap, struct fb_info *info) argument 1009 drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info) argument [all...] |
/linux-master/drivers/video/fbdev/aty/ |
H A D | mach64_cursor.c | 131 fg = ((info->cmap.red[fg_idx] & 0xff) << 24) | 132 ((info->cmap.green[fg_idx] & 0xff) << 16) | 133 ((info->cmap.blue[fg_idx] & 0xff) << 8) | 0xff; 135 bg = ((info->cmap.red[bg_idx] & 0xff) << 24) | 136 ((info->cmap.green[bg_idx] & 0xff) << 16) | 137 ((info->cmap.blue[bg_idx] & 0xff) << 8);
|
/linux-master/drivers/staging/sm750fb/ |
H A D | sm750.c | 136 fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800)) | 137 ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5) | 138 ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); 140 bg = ((info->cmap.red[fbcursor->image.bg_color] & 0xf800)) | 141 ((info->cmap.green[fbcursor->image.bg_color] & 0xfc00) >> 5) | 142 ((info->cmap.blue[fbcursor->image.bg_color] & 0xf800) >> 11); 885 pr_debug("#1 show info->cmap :\nstart=%d,len=%d,red=%p,green=%p,blue=%p,transp=%p\n", 886 info->cmap.start, info->cmap.len, 887 info->cmap [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | fbio.h | 65 struct fbcmap32 cmap; /* color map info */ member in struct:fbcursor32
|
/linux-master/include/drm/ |
H A D | drm_fb_helper.h | 265 int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info); 354 static inline int drm_fb_helper_setcmap(struct fb_cmap *cmap, argument
|
/linux-master/include/linux/ |
H A D | vt_kern.h | 36 int con_set_cmap(unsigned char __user *cmap); 37 int con_get_cmap(unsigned char __user *cmap);
|