Searched refs:cmap (Results 1 - 25 of 129) sorted by last modified time

123456

/linux-master/fs/xfs/
H A Dxfs_buf.c626 struct xfs_buf_map *cmap,
727 struct xfs_buf_map cmap = { .bm_bn = map[0].bm_bn }; local
732 cmap.bm_flags |= XBM_LIVESCAN;
734 cmap.bm_len += map[i].bm_len;
736 error = xfs_buf_map_verify(btp, &cmap);
740 pag = xfs_buftarg_get_pag(btp, &cmap);
743 error = xfs_buf_lookup(bch, &cmap, flags, &bp);
755 error = xfs_buf_find_insert(btp, bch, pag, &cmap, map, nmaps,
622 xfs_buf_find_insert( struct xfs_buftarg *btp, struct xfs_buf_cache *bch, struct xfs_perag *pag, struct xfs_buf_map *cmap, struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags, struct xfs_buf **bpp) argument
H A Dxfs_reflink.c313 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 Dxfs_iomap.c792 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...]
/linux-master/kernel/bpf/
H A Dcpumap.c87 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/include/uapi/linux/
H A Dfb.h363 struct fb_cmap cmap; /* color map info */ member in struct:fb_image
/linux-master/include/linux/
H A Dvt_kern.h36 int con_set_cmap(unsigned char __user *cmap);
37 int con_get_cmap(unsigned char __user *cmap);
H A Dfb.h115 struct fb_cmap_user cmap; /* color map info */ member in struct:fb_image_user
272 int (*fb_setcmap)(struct fb_cmap *cmap, struct fb_info *info);
468 struct fb_cmap cmap; /* Current cmap */ member in struct:fb_info
802 extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp);
803 extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags);
804 extern void fb_dealloc_cmap(struct fb_cmap *cmap);
807 extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info);
808 extern int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *fb_info);
/linux-master/drivers/video/fbdev/
H A Dvt8623fb.c773 rc = fb_alloc_cmap(&info->cmap, 256, 0);
799 fb_dealloc_cmap(&info->cmap);
825 fb_dealloc_cmap(&info->cmap);
H A Duvesafb.c997 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 Dvga16fb.c1283 fb_dealloc_cmap(&info->cmap);
1364 ret = fb_alloc_cmap(&info->cmap, i, 0);
1394 fb_dealloc_cmap(&info->cmap);
H A Dtgafb.c1503 if (fb_alloc_cmap(&info->cmap, 256, 0)) {
1534 fb_dealloc_cmap(&info->cmap);
1558 fb_dealloc_cmap(&info->cmap);
H A Ds3fb.c1347 rc = fb_alloc_cmap(&info->cmap, 256, 0);
1381 fb_dealloc_cmap(&info->cmap);
1412 fb_dealloc_cmap(&info->cmap);
H A Darkfb.c1044 rc = fb_alloc_cmap(&info->cmap, 256, 0);
1067 fb_dealloc_cmap(&info->cmap);
1093 fb_dealloc_cmap(&info->cmap);
H A Dvesafb.c147 if (regno >= info->cmap.len)
193 fb_dealloc_cmap(&info->cmap);
476 if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
490 fb_dealloc_cmap(&info->cmap);
H A Defifb.c84 if (regno >= info->cmap.len)
266 fb_dealloc_cmap(&info->cmap);
569 err = fb_alloc_cmap(&info->cmap, 256, 0);
589 fb_dealloc_cmap(&info->cmap);
H A Dchipsfb.c343 fb_alloc_cmap(&p->cmap, 256, 0);
H A Dvt8500lcdfb.c237 fb_set_cmap(&info->cmap, info);
390 if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) {
428 if (fbi->fb.cmap.len)
429 fb_dealloc_cmap(&fbi->fb.cmap);
452 if (fbi->fb.cmap.len)
453 fb_dealloc_cmap(&fbi->fb.cmap);
H A Dstifb.c779 * On Hyperdrive, this means all windows using overlay cmap 0. */
1375 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0))
1414 fb_dealloc_cmap(&info->cmap);
1493 fb_dealloc_cmap(&info->cmap);
H A Dtridentfb.c1354 info->cmap.len = (bpp == 8) ? 256 : 16;
1367 if (regno >= info->cmap.len)
1689 err = fb_alloc_cmap(&info->cmap, 256, 0);
1697 fb_dealloc_cmap(&info->cmap);
1733 fb_dealloc_cmap(&info->cmap);
H A Dtdfxfb.c746 if (regno >= info->cmap.len || regno > 255)
1070 struct fb_cmap cmap = info->cmap; local
1075 fg_color = (((u32)cmap.red[fg_idx] & 0xff00) << 8) |
1076 (((u32)cmap.green[fg_idx] & 0xff00) << 0) |
1077 (((u32)cmap.blue[fg_idx] & 0xff00) >> 8);
1078 bg_color = (((u32)cmap.red[bg_idx] & 0xff00) << 8) |
1079 (((u32)cmap.green[bg_idx] & 0xff00) << 0) |
1080 (((u32)cmap.blue[bg_idx] & 0xff00) >> 8);
1532 if (fb_alloc_cmap(&info->cmap, 25
[all...]
H A Di740fb.c1132 ret = fb_alloc_cmap(&info->cmap, 256, 0);
1152 fb_dealloc_cmap(&info->cmap);
1177 fb_dealloc_cmap(&info->cmap);
/linux-master/drivers/video/fbdev/mb862xx/
H A Dmb862xxfbdrv.c747 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) {
748 dev_err(dev, "Could not allocate cmap for fb_info.\n");
767 fb_dealloc_cmap(&info->cmap);
807 fb_dealloc_cmap(&fbi->cmap);
1087 if (fb_alloc_cmap(&info->cmap, NR_PALETTE, 0) < 0) {
1088 dev_err(dev, "Could not allocate cmap for fb_info.\n");
1115 fb_dealloc_cmap(&info->cmap);
1157 fb_dealloc_cmap(&fbi->cmap);
/linux-master/drivers/video/fbdev/core/
H A Dfbmem.c324 fb_set_cmap(&info->cmap, info);
/linux-master/drivers/video/fbdev/sis/
H A Dsis_main.c6454 fb_alloc_cmap(&sis_fb_info->cmap, 256 , 0);
/linux-master/drivers/video/fbdev/savage/
H A Dsavagefb_driver.c1530 fb_set_cmap(&info->cmap, info);
2157 err = fb_alloc_cmap(&info->cmap, NR_PALETTE, 0);
2323 fb_alloc_cmap(&info->cmap, 0, 0);
2349 fb_alloc_cmap(&info->cmap, 0, 0);

Completed in 324 milliseconds

123456