Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 435) sorted by relevance

12345678910>>...18

/OK3568_Linux_fs/kernel/drivers/gpu/drm/sti/
H A Dsti_cursor.c80 readl(cursor->regs + reg))
93 struct sti_cursor *cursor, u32 val) in cursor_dbg_pml() argument
95 if (cursor->pixmap.paddr == val) in cursor_dbg_pml()
96 seq_printf(s, "\tVirt @: %p", cursor->pixmap.base); in cursor_dbg_pml()
100 struct sti_cursor *cursor, u32 val) in cursor_dbg_cml() argument
102 if (cursor->clut_paddr == val) in cursor_dbg_cml()
103 seq_printf(s, "\tVirt @: %p", cursor->clut); in cursor_dbg_cml()
109 struct sti_cursor *cursor = (struct sti_cursor *)node->info_ent->data; in cursor_dbg_show() local
112 sti_plane_to_str(&cursor->plane), cursor->regs); in cursor_dbg_show()
116 cursor_dbg_vpo(s, readl(cursor->regs + CUR_VPO)); in cursor_dbg_show()
[all …]
/OK3568_Linux_fs/external/xserver/hw/kdrive/ephyr/
H A Dephyrcursor.c40 xcb_cursor_t cursor; member
44 ephyrGetCursor(CursorPtr cursor) in ephyrGetCursor() argument
46 return dixGetPrivateAddr(&cursor->devPrivates, &ephyrCursorPrivateKey); in ephyrGetCursor()
50 ephyrRealizeCoreCursor(EphyrScrPriv *scr, CursorPtr cursor) in ephyrRealizeCoreCursor() argument
52 ephyrCursorPtr hw = ephyrGetCursor(cursor); in ephyrRealizeCoreCursor()
57 int w = cursor->bits->width, h = cursor->bits->height; in ephyrRealizeCoreCursor()
81 image->data = cursor->bits->source; in ephyrRealizeCoreCursor()
87 image->data = cursor->bits->mask; in ephyrRealizeCoreCursor()
93 hw->cursor = xcb_generate_id(conn); in ephyrRealizeCoreCursor()
94 xcb_create_cursor(conn, hw->cursor, source, mask, in ephyrRealizeCoreCursor()
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/
H A Dpersist_data.py78 with contextlib.closing(self.connection.cursor()) as cursor:
79 return f(self, cursor, *args, **kwargs)
92 def _setup_database(self, cursor): argument
93 cursor.execute("pragma synchronous = off;")
97 cursor.execute("pragma journal_mode = WAL;")
98 cursor.execute("pragma wal_autocheckpoint = 100;")
109 def _execute_single(self, cursor, *query): argument
114 cursor.execute(*query)
124 def __init__(self, cursor): argument
125 self.cursor = cursor
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwayland/
H A Dxwayland-cursor.c34 expand_source_and_mask(CursorPtr cursor, CARD32 *data) in expand_source_and_mask() argument
37 CursorBitsPtr bits = cursor->bits; in expand_source_and_mask()
41 fg = ((cursor->foreRed & 0xff00) << 8) | in expand_source_and_mask()
42 (cursor->foreGreen & 0xff00) | (cursor->foreGreen >> 8); in expand_source_and_mask()
43 bg = ((cursor->backRed & 0xff00) << 8) | in expand_source_and_mask()
44 (cursor->backGreen & 0xff00) | (cursor->backGreen >> 8); in expand_source_and_mask()
64 xwl_realize_cursor(DeviceIntPtr device, ScreenPtr screen, CursorPtr cursor) in xwl_realize_cursor() argument
68 pixmap = xwl_shm_create_pixmap(screen, cursor->bits->width, in xwl_realize_cursor()
69 cursor->bits->height, 32, 0); in xwl_realize_cursor()
70 dixSetPrivate(&cursor->devPrivates, &xwl_cursor_private_key, pixmap); in xwl_realize_cursor()
[all …]
/OK3568_Linux_fs/kernel/scripts/
H A Dasn1_compiler.c806 struct token *cursor; in parse() local
812 cursor = type->name; in parse()
814 if (cursor[0].token_type != TOKEN_TYPE_NAME || in parse()
815 cursor[1].token_type != TOKEN_ASSIGNMENT) in parse()
817 cursor += 2; in parse()
819 type->element = parse_type(&cursor, type[1].name, NULL); in parse()
822 if (cursor != type[1].name) { in parse()
824 filename, cursor->line, cursor->content); in parse()
858 struct token *cursor = *_cursor; in parse_type() local
863 top = element = alloc_elem(cursor); in parse_type()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xwin/
H A Dwincursor.c166 pScreenPriv->cursor.sm_cx, pScreenPriv->cursor.sm_cy, in winLoadCursor()
177 if (pScreenPriv->cursor.sm_cx < pCursor->bits->width || in winLoadCursor()
178 pScreenPriv->cursor.sm_cy < pCursor->bits->height) { in winLoadCursor()
181 pScreenPriv->cursor.sm_cx, pScreenPriv->cursor.sm_cy, in winLoadCursor()
189 bits_to_bytes(pScreenPriv->cursor.sm_cx) * pScreenPriv->cursor.sm_cy; in winLoadCursor()
192 nCX = min(pScreenPriv->cursor.sm_cx, pCursor->bits->width); in winLoadCursor()
193 nCY = min(pScreenPriv->cursor.sm_cy, pCursor->bits->height); in winLoadCursor()
207 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + x; in winLoadCursor()
222 int nWinPix = bits_to_bytes(pScreenPriv->cursor.sm_cx) * y + x; in winLoadCursor()
246 bi.bV4Width = pScreenPriv->cursor.sm_cx; in winLoadCursor()
[all …]
/OK3568_Linux_fs/kernel/fs/xfs/
H A Dxfs_attr_list.c41 #define XFS_ISRESET_CURSOR(cursor) \ argument
42 (!((cursor)->initted) && !((cursor)->hashval) && \
43 !((cursor)->blkno) && !((cursor)->offset))
55 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_shortform_list() local
81 (XFS_ISRESET_CURSOR(cursor) && in xfs_attr_shortform_list()
153 cursor->initted = 1; in xfs_attr_shortform_list()
154 cursor->blkno = 0; in xfs_attr_shortform_list()
156 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list()
157 if (cursor->offset == count) { in xfs_attr_shortform_list()
161 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list()
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/hashserv/
H A Dserver.py117 def insert_table(cursor, table, data, on_conflict): argument
131 prevrowid = cursor.lastrowid
132 cursor.execute(query, data)
139 return (cursor.lastrowid, cursor.lastrowid != prevrowid)
141 def insert_unihash(cursor, data, on_conflict): argument
142 return insert_table(cursor, "unihashes_v2", data, on_conflict)
144 def insert_outhash(cursor, data, on_conflict): argument
145 return insert_table(cursor, "outhashes_v2", data, on_conflict)
150 with closing(db.cursor()) as cursor:
152 cursor,
[all …]
H A D__init__.py50 def _make_table(cursor, name, definition): argument
51 cursor.execute('''
68 with closing(db.cursor()) as cursor:
69 _make_table(cursor, "unihashes_v2", UNIHASH_TABLE_DEFINITION)
70 _make_table(cursor, "outhashes_v2", OUTHASH_TABLE_DEFINITION)
72 cursor.execute('PRAGMA journal_mode = WAL')
73 cursor.execute('PRAGMA synchronous = %s' % ('NORMAL' if sync else 'OFF'))
76 cursor.execute('DROP INDEX IF EXISTS taskhash_lookup')
77 cursor.execute('DROP INDEX IF EXISTS outhash_lookup')
78 cursor.execute('DROP INDEX IF EXISTS taskhash_lookup_v2')
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/sm750fb/
H A Dsm750_cursor.c23 writel((data), cursor->mmio + (addr))
48 void sm750_hw_cursor_enable(struct lynx_cursor *cursor) in sm750_hw_cursor_enable() argument
52 reg = (cursor->offset & HWC_ADDRESS_ADDRESS_MASK) | HWC_ADDRESS_ENABLE; in sm750_hw_cursor_enable()
56 void sm750_hw_cursor_disable(struct lynx_cursor *cursor) in sm750_hw_cursor_disable() argument
61 void sm750_hw_cursor_setSize(struct lynx_cursor *cursor, int w, int h) in sm750_hw_cursor_setSize() argument
63 cursor->w = w; in sm750_hw_cursor_setSize()
64 cursor->h = h; in sm750_hw_cursor_setSize()
67 void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y) in sm750_hw_cursor_setPos() argument
76 void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg) in sm750_hw_cursor_setColor() argument
85 void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop, in sm750_hw_cursor_setData() argument
[all …]
H A Dsm750_cursor.h6 void sm750_hw_cursor_enable(struct lynx_cursor *cursor);
7 void sm750_hw_cursor_disable(struct lynx_cursor *cursor);
8 void sm750_hw_cursor_setSize(struct lynx_cursor *cursor, int w, int h);
9 void sm750_hw_cursor_setPos(struct lynx_cursor *cursor, int x, int y);
10 void sm750_hw_cursor_setColor(struct lynx_cursor *cursor, u32 fg, u32 bg);
11 void sm750_hw_cursor_setData(struct lynx_cursor *cursor, u16 rop,
13 void sm750_hw_cursor_setData2(struct lynx_cursor *cursor, u16 rop,
/OK3568_Linux_fs/external/drm-cursor/debian/
H A Dchangelog1 libdrm-cursor (1.4.1-1) unstable; urgency=medium
4 * Fix set cursor error when drm fd changed
5 * Support changing cursor size again
9 libdrm-cursor (1.4.0-1) unstable; urgency=medium
14 * Support cursor scaling
19 libdrm-cursor (1.3.0-1) unstable; urgency=medium
30 libdrm-cursor (1.2.3-1) unstable; urgency=medium
32 * Only verify the first cursor set request
33 * Update cursor offsets before handling any requests
38 libdrm-cursor (1.2.2-1) unstable; urgency=medium
[all …]
H A Dcontrol1 Source: libdrm-cursor
12 Homepage: https://github.com/JeffyCN/libdrm-cursor
13 Vcs-Git: https://github.com/JeffyCN/libdrm-cursor
14 Vcs-Browser: https://github.com/JeffyCN/libdrm-cursor
16 Package: libdrm-cursor-dev
19 Description: A hook of drm cursor APIs to fake cursor plane.
21 Package: libdrm-cursor
24 Description: A hook of drm cursor APIs to fake cursor plane.
/OK3568_Linux_fs/kernel/drivers/video/fbdev/aty/
H A Dmach64_cursor.c68 static int atyfb_cursor(struct fb_info *info, struct fb_cursor *cursor) in atyfb_cursor() argument
82 if (cursor->enable) in atyfb_cursor()
90 if (cursor->set & FB_CUR_SETPOS) { in atyfb_cursor()
91 x = cursor->image.dx - cursor->hot.x - info->var.xoffset; in atyfb_cursor()
99 y = cursor->image.dy - cursor->hot.y - info->var.yoffset; in atyfb_cursor()
107 h = cursor->image.height; in atyfb_cursor()
125 if (cursor->set & FB_CUR_SETCMAP) { in atyfb_cursor()
128 fg_idx = cursor->image.fg_color; in atyfb_cursor()
129 bg_idx = cursor->image.bg_color; in atyfb_cursor()
144 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) { in atyfb_cursor()
[all …]
/OK3568_Linux_fs/kernel/net/ceph/
H A Dmessenger.c807 static void ceph_msg_data_bio_cursor_init(struct ceph_msg_data_cursor *cursor, in ceph_msg_data_bio_cursor_init() argument
810 struct ceph_msg_data *data = cursor->data; in ceph_msg_data_bio_cursor_init()
811 struct ceph_bio_iter *it = &cursor->bio_iter; in ceph_msg_data_bio_cursor_init()
813 cursor->resid = min_t(size_t, length, data->bio_length); in ceph_msg_data_bio_cursor_init()
815 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_cursor_init()
816 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_cursor_init()
818 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
819 cursor->last_piece = cursor->resid == bio_iter_len(it->bio, it->iter); in ceph_msg_data_bio_cursor_init()
822 static struct page *ceph_msg_data_bio_next(struct ceph_msg_data_cursor *cursor, in ceph_msg_data_bio_next() argument
826 struct bio_vec bv = bio_iter_iovec(cursor->bio_iter.bio, in ceph_msg_data_bio_next()
[all …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/ramdac/
H A DCURSOR.NOTES3 This file describes how to add hardware cursor support to a chipset
4 driver. Though the cursor support itself is in the ramdac module,
5 cursor management is separate from the rest of the module.
12 To initialize the cursor, the driver should allocate an
15 must be called _after_ the software cursor initialization (usually
24 The driver informs the ramdac module of it's hardware cursor capablities by
33 ShowCursor should display the current cursor.
37 HideCursor should hide the current cursor.
41 Set the cursor position to (x,y). X and/or y may be negative
42 indicating that the cursor image is partially offscreen on
[all …]
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dcallchain.h160 struct callchain_cursor_node cursor; member
197 struct callchain_cursor *cursor,
200 int callchain_merge(struct callchain_cursor *cursor,
203 void callchain_cursor_reset(struct callchain_cursor *cursor);
205 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip,
212 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() argument
214 cursor->curr = cursor->first; in callchain_cursor_commit()
215 cursor->pos = 0; in callchain_cursor_commit()
220 callchain_cursor_current(struct callchain_cursor *cursor) in callchain_cursor_current() argument
222 if (cursor->pos == cursor->nr) in callchain_cursor_current()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/
H A Dpmag-aa-fb.c104 static int aafb_cursor(struct fb_info *info, struct fb_cursor *cursor) in aafb_cursor() argument
108 if (cursor->image.height > BT431_CURSOR_SIZE || in aafb_cursor()
109 cursor->image.width > BT431_CURSOR_SIZE) { in aafb_cursor()
114 if (!cursor->enable) in aafb_cursor()
117 if (cursor->set & FB_CUR_SETPOS) in aafb_cursor()
119 cursor->image.dx, cursor->image.dy); in aafb_cursor()
120 if (cursor->set & FB_CUR_SETCMAP) { in aafb_cursor()
121 u8 fg = cursor->image.fg_color ? 0xf : 0x0; in aafb_cursor()
122 u8 bg = cursor->image.bg_color ? 0xf : 0x0; in aafb_cursor()
128 if (cursor->set & (FB_CUR_SETSIZE | FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) in aafb_cursor()
[all …]
/OK3568_Linux_fs/external/drm-cursor/
H A Dmeson.build2 'libdrm-cursor',
38 'drm-cursor',
46 libraries : 'libdrm-cursor',
47 filebase : 'libdrm-cursor',
48 name : 'libdrm-cursor',
50 description : 'A hook of drm cursor APIs to fake cursor plane.',
54 input : 'drm-cursor.conf.sample',
55 output : 'drm-cursor.conf',
61 'cursor-test',
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/
H A DCVE-2021-4206.patch4 Subject: [PATCH] ui/cursor: fix integer overflow in cursor_alloc
27 ui/cursor.c | 8 +++++++-
34 @@ -247,6 +247,13 @@ static QEMUCursor *qxl_cursor(PCIQXLDevice *qxl, QXLCursor *cursor,
37 c = cursor_alloc(cursor->header.width, cursor->header.height);
40 + qxl_set_guest_bug(qxl, "%s: cursor %ux%u alloc error", __func__,
41 + cursor->header.width, cursor->header.height);
45 c->hot_x = cursor->header.hot_spot_x;
46 c->hot_y = cursor->header.hot_spot_y;
47 switch (cursor->header.type) {
61 diff --git a/ui/cursor.c b/ui/cursor.c
[all …]
/OK3568_Linux_fs/kernel/drivers/video/fbdev/core/
H A Dtileblit.c86 struct fb_tilecursor cursor; in tile_cursor() local
89 cursor.sx = vc->state.x; in tile_cursor()
90 cursor.sy = vc->state.y; in tile_cursor()
91 cursor.mode = (mode == CM_ERASE || use_sw) ? 0 : 1; in tile_cursor()
92 cursor.fg = fg; in tile_cursor()
93 cursor.bg = bg; in tile_cursor()
97 cursor.shape = FB_TILE_CURSOR_NONE; in tile_cursor()
100 cursor.shape = FB_TILE_CURSOR_UNDERLINE; in tile_cursor()
103 cursor.shape = FB_TILE_CURSOR_LOWER_THIRD; in tile_cursor()
106 cursor.shape = FB_TILE_CURSOR_LOWER_HALF; in tile_cursor()
[all …]
H A Dfbcon_cw.c207 struct fb_cursor cursor; in cw_cursor() local
220 cursor.set = 0; in cw_cursor()
229 cursor.set |= FB_CUR_SETIMAGE; in cw_cursor()
249 cursor.set |= FB_CUR_SETCMAP; in cw_cursor()
257 cursor.set |= FB_CUR_SETSIZE; in cw_cursor()
268 cursor.set |= FB_CUR_SETPOS; in cw_cursor()
273 ops->cursor_state.hot.x = cursor.hot.y = 0; in cw_cursor()
274 cursor.set |= FB_CUR_SETHOT; in cw_cursor()
277 if (cursor.set & FB_CUR_SETSIZE || in cw_cursor()
300 cursor.set |= FB_CUR_SETSHAPE; in cw_cursor()
[all …]
H A Dbitblit.c239 struct fb_cursor cursor; in bit_cursor() local
248 cursor.set = 0; in bit_cursor()
257 cursor.set |= FB_CUR_SETIMAGE; in bit_cursor()
277 cursor.set |= FB_CUR_SETCMAP; in bit_cursor()
285 cursor.set |= FB_CUR_SETPOS; in bit_cursor()
293 cursor.set |= FB_CUR_SETSIZE; in bit_cursor()
298 ops->cursor_state.hot.x = cursor.hot.y = 0; in bit_cursor()
299 cursor.set |= FB_CUR_SETHOT; in bit_cursor()
302 if (cursor.set & FB_CUR_SETSIZE || in bit_cursor()
317 cursor.set |= FB_CUR_SETSHAPE; in bit_cursor()
[all …]
/OK3568_Linux_fs/kernel/drivers/firmware/google/
H A Dmemconsole-coreboot.c23 u32 cursor; member
42 u32 cursor = cbmem_console->cursor & CURSOR_MASK; in memconsole_coreboot_read() local
43 u32 flags = cbmem_console->cursor & ~CURSOR_MASK; in memconsole_coreboot_read()
53 if (cursor > size) /* Shouldn't really happen, but... */ in memconsole_coreboot_read()
54 cursor = 0; in memconsole_coreboot_read()
55 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read()
56 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read()
58 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/ast/
H A Dast_cursor.c40 for (i = 0; i < ARRAY_SIZE(ast->cursor.gbo); ++i) { in ast_cursor_fini()
41 gbo = ast->cursor.gbo[i]; in ast_cursor_fini()
42 drm_gem_vram_vunmap(gbo, ast->cursor.vaddr[i]); in ast_cursor_fini()
68 for (i = 0; i < ARRAY_SIZE(ast->cursor.gbo); ++i) { in ast_cursor_init()
88 ast->cursor.gbo[i] = gbo; in ast_cursor_init()
89 ast->cursor.vaddr[i] = vaddr; in ast_cursor_init()
97 gbo = ast->cursor.gbo[i]; in ast_cursor_init()
98 drm_gem_vram_vunmap(gbo, ast->cursor.vaddr[i]); in ast_cursor_init()
192 dst = ast->cursor.vaddr[ast->cursor.next_index]; in ast_cursor_blit()
224 gbo = ast->cursor.gbo[ast->cursor.next_index]; in ast_cursor_page_flip()
[all …]

12345678910>>...18