| /linux/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/kernel/bpf/ |
| H A D | cpumap.c | 86 struct bpf_cpu_map *cmap; in cpu_map_alloc() local 99 cmap = bpf_map_area_alloc(sizeof(*cmap), NUMA_NO_NODE); in cpu_map_alloc() 100 if (!cmap) in cpu_map_alloc() 103 bpf_map_init_from_attr(&cmap->map, attr); in cpu_map_alloc() 106 cmap->cpu_map = bpf_map_area_alloc(cmap->map.max_entries * in cpu_map_alloc() 108 cmap->map.numa_node); in cpu_map_alloc() 109 if (!cmap->cpu_map) { in cpu_map_alloc() 110 bpf_map_area_free(cmap); in cpu_map_alloc() 114 return &cmap->map; in cpu_map_alloc() 545 static void __cpu_map_entry_replace(struct bpf_cpu_map *cmap, in __cpu_map_entry_replace() argument [all …]
|
| /linux/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
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_fb_helper.c | 473 ret = fb_alloc_cmap(&info->cmap, 256, 0); in drm_fb_helper_alloc_info() 497 if (info->cmap.len) in drm_fb_helper_release_info() 498 fb_dealloc_cmap(&info->cmap); in drm_fb_helper_release_info() 752 static int setcmap_pseudo_palette(struct fb_cmap *cmap, struct fb_info *info) in setcmap_pseudo_palette() argument 757 if (cmap->start + cmap->len > 16) in setcmap_pseudo_palette() 760 for (i = 0; i < cmap->len; ++i) { in setcmap_pseudo_palette() 761 u16 red = cmap->red[i]; in setcmap_pseudo_palette() 762 u16 green = cmap->green[i]; in setcmap_pseudo_palette() 763 u16 blue = cmap->blue[i]; in setcmap_pseudo_palette() 778 palette[cmap->start + i] = value; in setcmap_pseudo_palette() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_reflink.c | 364 struct xfs_bmbt_irec *cmap, in xfs_find_trim_cow_extent() argument 378 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) in xfs_find_trim_cow_extent() 379 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent() 380 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent() 382 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent() 387 if (isnullstartblock(cmap->br_startblock)) { in xfs_find_trim_cow_extent() 388 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent() 393 xfs_trim_extent(cmap, offset_fsb, count_fsb); in xfs_find_trim_cow_extent() 402 struct xfs_bmbt_irec *cmap, in xfs_reflink_convert_unwritten() argument 412 xfs_trim_extent(cmap, offset_fsb, count_fsb); in xfs_reflink_convert_unwritten() [all …]
|
| H A D | xfs_iomap.c | 855 struct xfs_bmbt_irec imap, cmap; in xfs_direct_write_iomap_begin() local 918 error = xfs_reflink_allocate_cow(ip, &imap, &cmap, &shared, in xfs_direct_write_iomap_begin() 925 !xfs_bmap_hw_atomic_write_possible(ip, &cmap, in xfs_direct_write_iomap_begin() 1019 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin() 1020 trace_xfs_iomap_found(ip, offset, length - offset, XFS_COW_FORK, &cmap); in xfs_direct_write_iomap_begin() 1029 return xfs_bmbt_to_iomap(ip, iomap, &cmap, flags, IOMAP_F_SHARED, seq); in xfs_direct_write_iomap_begin() 1100 const struct xfs_bmbt_irec *cmap) in xfs_check_atomic_cow_conversion() argument 1108 ASSERT(cmap2.br_startoff == cmap->br_startoff); in xfs_check_atomic_cow_conversion() 1109 ASSERT(cmap2.br_blockcount == cmap->br_blockcount); in xfs_check_atomic_cow_conversion() 1110 ASSERT(cmap2.br_startblock == cmap->br_startblock); in xfs_check_atomic_cow_conversion() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fb_chrdev.c | 69 struct fb_cmap_user cmap; in do_fb_ioctl() local 108 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl() 110 ret = fb_set_user_cmap(&cmap, info); in do_fb_ioctl() 113 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl() 116 cmap_from = info->cmap; in do_fb_ioctl() 118 ret = fb_cmap_to_user(&cmap_from, &cmap); in do_fb_ioctl() 204 struct fb_cmap_user cmap; in fb_getput_cmap() local 209 cmap = (struct fb_cmap_user) { in fb_getput_cmap() 219 return fb_set_user_cmap(&cmap, info); in fb_getput_cmap() 222 cmap_from = info->cmap; in fb_getput_cmap() [all …]
|
| /linux/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() 893 info->cmap.start, info->cmap.len, in lynxfb_set_fbinfo() 894 info->cmap.red, info->cmap.green, info->cmap.blue, in lynxfb_set_fbinfo() 895 info->cmap.transp); in lynxfb_set_fbinfo() 897 ret = fb_alloc_cmap(&info->cmap, 256, 0); in lynxfb_set_fbinfo() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | cg3.c | 83 struct bt_regs cmap; member 137 struct bt_regs __iomem *bt = &par->regs->cmap; in cg3_setcolreg() 336 regp = (u8 __iomem *)&par->regs->cmap.addr; in cg3_do_default_mode() 338 regp = (u8 __iomem *)&par->regs->cmap.control; in cg3_do_default_mode() 395 err = fb_alloc_cmap(&info->cmap, 256, 0); in cg3_probe() 399 fb_set_cmap(&info->cmap, info); in cg3_probe() 415 fb_dealloc_cmap(&info->cmap); in cg3_probe() 436 fb_dealloc_cmap(&info->cmap); in cg3_remove()
|
| H A D | metronomefb.c | 650 retval = fb_alloc_cmap(&info->cmap, 8, 0); in metronomefb_probe() 658 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; in metronomefb_probe() 659 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 660 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); in metronomefb_probe() 675 fb_dealloc_cmap(&info->cmap); in metronomefb_probe() 698 fb_dealloc_cmap(&info->cmap); in metronomefb_remove()
|
| H A D | uvesafb.c | 997 if (regno >= info->cmap.len) in uvesafb_setcolreg() 1040 static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) in uvesafb_setcmap() argument 1047 if (cmap->start + cmap->len > info->cmap.start + in uvesafb_setcmap() 1048 info->cmap.len || cmap->start < info->cmap.start) in uvesafb_setcmap() 1051 entries = kmalloc_array(cmap->len, sizeof(*entries), in uvesafb_setcmap() 1056 for (i = 0; i < cmap->len; i++) { in uvesafb_setcmap() 1057 entries[i].red = cmap->red[i] >> shift; in uvesafb_setcmap() 1058 entries[i].green = cmap->green[i] >> shift; in uvesafb_setcmap() 1059 entries[i].blue = cmap->blue[i] >> shift; in uvesafb_setcmap() 1062 err = uvesafb_setpalette(entries, cmap->len, cmap->start, info); in uvesafb_setcmap() [all …]
|
| H A D | pmag-ba-fb.c | 100 if (regno >= info->cmap.len) in pmagbafb_setcolreg() 157 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbafb_probe() 226 fb_dealloc_cmap(&info->cmap); in pmagbafb_probe() 247 fb_dealloc_cmap(&info->cmap); in pmagbafb_remove()
|
| H A D | pm2fb.c | 771 info->cmap.len = 256; in pm2fb_set_par() 879 if (regno >= info->cmap.len) /* no. of hw registers */ in pm2fb_setcolreg() 1303 struct fb_cmap cmap = info->cmap; in pm2vfb_cursor() local 1308 cmap.red[bg_idx] >> 8 ); in pm2vfb_cursor() 1310 cmap.green[bg_idx] >> 8 ); in pm2vfb_cursor() 1312 cmap.blue[bg_idx] >> 8 ); in pm2vfb_cursor() 1315 cmap.red[fg_idx] >> 8 ); in pm2vfb_cursor() 1317 cmap.green[fg_idx] >> 8 ); in pm2vfb_cursor() 1319 cmap.blue[fg_idx] >> 8 ); in pm2vfb_cursor() 1416 info->cmap.red[bg_idx] >> 8); in pm2fb_cursor() [all …]
|
| H A D | p9100.c | 287 if (fb_alloc_cmap(&info->cmap, 256, 0)) in p9100_probe() 296 fb_set_cmap(&info->cmap, info); in p9100_probe() 307 fb_dealloc_cmap(&info->cmap); in p9100_probe() 328 fb_dealloc_cmap(&info->cmap); in p9100_remove()
|
| H A D | vt8500lcdfb.c | 237 fb_set_cmap(&info->cmap, info); in vt8500lcd_blank() 390 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in vt8500lcd_probe() 428 if (fbi->fb.cmap.len) in vt8500lcd_probe() 429 fb_dealloc_cmap(&fbi->fb.cmap); in vt8500lcd_probe() 452 if (fbi->fb.cmap.len) in vt8500lcd_remove() 453 fb_dealloc_cmap(&fbi->fb.cmap); in vt8500lcd_remove()
|
| H A D | wm8505fb.c | 351 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { in wm8505fb_probe() 364 if (fbi->fb.cmap.len) in wm8505fb_probe() 365 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_probe() 384 if (fbi->fb.cmap.len) in wm8505fb_remove() 385 fb_dealloc_cmap(&fbi->fb.cmap); in wm8505fb_remove()
|
| H A D | q40fb.c | 104 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in q40fb_probe() 113 fb_dealloc_cmap(&info->cmap); in q40fb_probe()
|
| H A D | macfb.c | 166 nubus_writeb(info->cmap.red[i] >> 8, in dafb_setpalette() 169 nubus_writeb(info->cmap.green[i] >> 8, in dafb_setpalette() 172 nubus_writeb(info->cmap.blue[i] >> 8, in dafb_setpalette() 443 if (regno >= fb_info->cmap.len) in macfb_setcolreg() 878 err = fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0); in macfb_init() 891 fb_dealloc_cmap(&fb_info.cmap); in macfb_init()
|
| H A D | hpfb.c | 93 if (regno >= info->cmap.len) in hpfb_setcolreg() 295 ret = fb_alloc_cmap(&fb_info.cmap, 1 << hpfb_defined.bits_per_pixel, 0); in hpfb_init_one() 308 fb_dealloc_cmap(&fb_info.cmap); in hpfb_init_one() 360 fb_dealloc_cmap(&fb_info.cmap); in hpfb_remove_one()
|
| H A D | pmagb-b-fb.c | 104 if (regno >= info->cmap.len) in pmagbbfb_setcolreg() 264 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pmagbbfb_probe() 344 fb_dealloc_cmap(&info->cmap); in pmagbbfb_probe() 365 fb_dealloc_cmap(&info->cmap); in pmagbbfb_remove()
|
| H A D | ocfb.c | 181 if (regno >= info->cmap.len) { in ocfb_setcolreg() 346 ret = fb_alloc_cmap(&fbdev->info.cmap, PALETTE_SIZE, 0); in ocfb_probe() 362 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_probe() 376 fb_dealloc_cmap(&fbdev->info.cmap); in ocfb_remove()
|
| H A D | pm3fb.c | 661 struct fb_cmap cmap = info->cmap; in pm3fb_cursor() local 665 cmap.red[fg_idx] >> 8 ); in pm3fb_cursor() 667 cmap.green[fg_idx] >> 8 ); in pm3fb_cursor() 669 cmap.blue[fg_idx] >> 8 ); in pm3fb_cursor() 672 cmap.red[bg_idx] >> 8 ); in pm3fb_cursor() 674 cmap.green[bg_idx] >> 8 ); in pm3fb_cursor() 676 cmap.blue[bg_idx] >> 8 ); in pm3fb_cursor() 1430 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) { in pm3fb_probe() 1449 fb_dealloc_cmap(&info->cmap); in pm3fb_probe() 1475 fb_dealloc_cmap(&info->cmap); in pm3fb_remove()
|
| H A D | broadsheetfb.c | 1077 retval = fb_alloc_cmap(&info->cmap, 16, 0); in broadsheetfb_probe() 1085 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/32; in broadsheetfb_probe() 1086 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*16); in broadsheetfb_probe() 1087 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*16); in broadsheetfb_probe() 1123 fb_dealloc_cmap(&info->cmap); in broadsheetfb_probe() 1145 fb_dealloc_cmap(&info->cmap); in broadsheetfb_remove()
|
| H A D | skeletonfb.c | 787 if (fb_alloc_cmap(&info->cmap, cmap_len, 0)) in xxxfb_probe() 813 fb_dealloc_cmap(&info->cmap); in xxxfb_probe() 832 fb_dealloc_cmap(&info->cmap); in xxxfb_remove()
|
| /linux/include/linux/ |
| H A D | fb.h | 116 struct fb_cmap_user cmap; /* color map info */ member 269 int (*fb_setcmap)(struct fb_cmap *cmap, struct fb_info *info); 465 struct fb_cmap cmap; /* Current cmap */ member 832 extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); 833 extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags); 834 extern void fb_dealloc_cmap(struct fb_cmap *cmap); 837 extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info); 838 extern int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *fb_info);
|