Lines Matching defs:cursor

69  * The XFree GLINT driver will (I think to implement hardware cursor
522 * The hardware cursor needs +vsync to recognise vert retrace.
523 * We may not be using the hardware cursor, but the X Glint
1257 * Hardware cursor support.
1264 static int pm2vfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1268 int x = cursor->image.dx - info->var.xoffset;
1269 int y = cursor->image.dy - info->var.yoffset;
1271 if (cursor->enable)
1276 if (!cursor->enable)
1284 * If the cursor is not be changed this means either we want the
1285 * current cursor state (if enable is set) or we want to query what
1286 * we can do with the cursor (if enable is not set)
1288 if (!cursor->set)
1291 if (cursor->set & FB_CUR_SETHOT) {
1293 cursor->hot.x & 0x3f);
1295 cursor->hot.y & 0x3f);
1298 if (cursor->set & FB_CUR_SETCMAP) {
1299 u32 fg_idx = cursor->image.fg_color;
1300 u32 bg_idx = cursor->image.bg_color;
1321 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
1322 u8 *bitmap = (u8 *)cursor->image.data;
1323 u8 *mask = (u8 *)cursor->mask;
1327 for (i = 0; i < cursor->image.height; i++) {
1328 int j = (cursor->image.width + 7) >> 3;
1336 if (cursor->rop == ROP_COPY)
1365 static int pm2fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1373 /* Too large of a cursor or wrong bpp :-( */
1374 if (cursor->image.width > 64 ||
1375 cursor->image.height > 64 ||
1376 cursor->image.depth > 1)
1380 return pm2vfb_cursor(info, cursor);
1383 if (cursor->enable)
1389 * If the cursor is not be changed this means either we want the
1390 * current cursor state (if enable is set) or we want to query what
1391 * we can do with the cursor (if enable is not set)
1393 if (!cursor->set)
1396 if (cursor->set & FB_CUR_SETPOS) {
1397 int x = cursor->image.dx - info->var.xoffset + 63;
1398 int y = cursor->image.dy - info->var.yoffset + 63;
1407 if (cursor->set & FB_CUR_SETCMAP) {
1408 u32 fg_idx = cursor->image.fg_color;
1409 u32 bg_idx = cursor->image.bg_color;
1428 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
1429 u8 *bitmap = (u8 *)cursor->image.data;
1430 u8 *mask = (u8 *)cursor->mask;
1436 for (i = 0; i < cursor->image.height; i++) {
1437 int j = (cursor->image.width + 7) >> 3;
1444 if (cursor->rop == ROP_COPY)
1461 mask = (u8 *)cursor->mask;
1462 for (i = 0; i < cursor->image.height; i++) {
1463 int j = (cursor->image.width + 7) >> 3;
1841 MODULE_PARM_DESC(hwcursor, "Enable hardware cursor "