Lines Matching defs:cursor
70 * The XFree GLINT driver will (I think to implement hardware cursor
524 * The hardware cursor needs +vsync to recognise vert retrace.
525 * We may not be using the hardware cursor, but the X Glint
1259 * Hardware cursor support.
1266 static int pm2vfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1270 int x = cursor->image.dx - info->var.xoffset;
1271 int y = cursor->image.dy - info->var.yoffset;
1273 if (cursor->enable)
1278 if (!cursor->enable)
1286 * If the cursor is not be changed this means either we want the
1287 * current cursor state (if enable is set) or we want to query what
1288 * we can do with the cursor (if enable is not set)
1290 if (!cursor->set)
1293 if (cursor->set & FB_CUR_SETHOT) {
1295 cursor->hot.x & 0x3f);
1297 cursor->hot.y & 0x3f);
1300 if (cursor->set & FB_CUR_SETCMAP) {
1301 u32 fg_idx = cursor->image.fg_color;
1302 u32 bg_idx = cursor->image.bg_color;
1323 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
1324 u8 *bitmap = (u8 *)cursor->image.data;
1325 u8 *mask = (u8 *)cursor->mask;
1329 for (i = 0; i < cursor->image.height; i++) {
1330 int j = (cursor->image.width + 7) >> 3;
1338 if (cursor->rop == ROP_COPY)
1367 static int pm2fb_cursor(struct fb_info *info, struct fb_cursor *cursor)
1375 /* Too large of a cursor or wrong bpp :-( */
1376 if (cursor->image.width > 64 ||
1377 cursor->image.height > 64 ||
1378 cursor->image.depth > 1)
1382 return pm2vfb_cursor(info, cursor);
1385 if (cursor->enable)
1391 * If the cursor is not be changed this means either we want the
1392 * current cursor state (if enable is set) or we want to query what
1393 * we can do with the cursor (if enable is not set)
1395 if (!cursor->set)
1398 if (cursor->set & FB_CUR_SETPOS) {
1399 int x = cursor->image.dx - info->var.xoffset + 63;
1400 int y = cursor->image.dy - info->var.yoffset + 63;
1409 if (cursor->set & FB_CUR_SETCMAP) {
1410 u32 fg_idx = cursor->image.fg_color;
1411 u32 bg_idx = cursor->image.bg_color;
1430 if (cursor->set & (FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) {
1431 u8 *bitmap = (u8 *)cursor->image.data;
1432 u8 *mask = (u8 *)cursor->mask;
1438 for (i = 0; i < cursor->image.height; i++) {
1439 int j = (cursor->image.width + 7) >> 3;
1446 if (cursor->rop == ROP_COPY)
1463 mask = (u8 *)cursor->mask;
1464 for (i = 0; i < cursor->image.height; i++) {
1465 int j = (cursor->image.width + 7) >> 3;
1847 MODULE_PARM_DESC(hwcursor, "Enable hardware cursor "