Lines Matching defs:qxl
31 #include "qxl.h"
35 push_cursor (qxl_screen_t *qxl, struct qxl_bo *cursor_bo)
37 qxl->bo_funcs->write_command (qxl, QXL_CMD_CURSOR, cursor_bo);
41 qxl_alloc_cursor_cmd(qxl_screen_t *qxl)
43 struct qxl_bo *bo = qxl->bo_funcs->cmd_alloc (qxl, sizeof(struct QXLCursorCmd), "cursor command");
44 struct QXLCursorCmd *cmd = qxl->bo_funcs->bo_map(bo);
48 qxl->bo_funcs->bo_unmap(bo);
55 qxl_screen_t *qxl = pScrn->driverPrivate;
56 struct qxl_bo *cmd_bo = qxl_alloc_cursor_cmd(qxl);
57 struct QXLCursorCmd *cmd = qxl->bo_funcs->bo_map(cmd_bo);
59 qxl->cur_x = x;
60 qxl->cur_y = y;
63 cmd->u.position.x = qxl->cur_x + qxl->hot_x;
64 cmd->u.position.y = qxl->cur_y + qxl->hot_y;
66 qxl->bo_funcs->bo_unmap(cmd_bo);
67 push_cursor(qxl, cmd_bo);
84 qxl_screen_t *qxl = pScrn->driverPrivate;
89 struct qxl_bo *cmd_bo = qxl_alloc_cursor_cmd(qxl);
91 struct qxl_bo *cursor_bo = qxl->bo_funcs->bo_alloc(qxl, sizeof(struct QXLCursor) + size, "cursor data");
92 struct QXLCursor *cursor = qxl->bo_funcs->bo_map(cursor_bo);
126 qxl->bo_funcs->bo_unmap(cursor_bo);
128 qxl->hot_x = pCurs->bits->xhot;
129 qxl->hot_y = pCurs->bits->yhot;
131 cmd = qxl->bo_funcs->bo_map(cmd_bo);
133 cmd->u.set.position.x = qxl->cur_x + qxl->hot_x;
134 cmd->u.set.position.y = qxl->cur_y + qxl->hot_y;
135 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(struct QXLCursorCmd, u.set.shape), cmd_bo, cursor_bo);
138 qxl->bo_funcs->bo_unmap(cmd_bo);
140 push_cursor(qxl, cmd_bo);
141 qxl->bo_funcs->bo_decref(qxl, cursor_bo);
162 qxl_screen_t *qxl = pScrn->driverPrivate;
163 struct qxl_bo *cmd_bo = qxl_alloc_cursor_cmd(qxl);
164 struct QXLCursorCmd *cursor = qxl->bo_funcs->bo_map(cmd_bo);
168 qxl->bo_funcs->bo_unmap(cmd_bo);
169 push_cursor(qxl, cmd_bo);
179 qxl_screen_t *qxl = pScrn->driverPrivate;
181 qxl_set_cursor_position(pScrn, qxl->cur_x, qxl->cur_y);