Lines Matching refs:pCurs

119     CursorPtr 	pCurs = (CursorPtr)value;
124 if ( --pCurs->refcnt != 0)
130 (void)( *pscr->UnrealizeCursor)(pDev, pscr, pCurs);
132 FreeCursorBits(pCurs->bits);
133 dixFiniPrivates(pCurs, PRIVATE_CURSOR);
134 free( pCurs);
171 RealizeCursorAllScreens(CursorPtr pCurs)
184 if (!( *pscr->RealizeCursor)(pDev, pscr, pCurs))
196 ( *pscr->UnrealizeCursor)(pDevIt, pscr, pCurs);
207 ( *pscr->UnrealizeCursor)(pDevIt, pscr, pCurs);
210 ( *pscr->UnrealizeCursor)(pDev, pscr, pCurs);
238 CursorPtr pCurs;
242 pCurs = (CursorPtr)calloc(CURSOR_REC_SIZE + CURSOR_BITS_SIZE, 1);
243 if (!pCurs)
249 bits = (CursorBitsPtr)((char *)pCurs + CURSOR_REC_SIZE);
250 dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
261 pCurs->refcnt = 1;
264 pCurs->bits = bits;
266 pCurs->serialNumber = ++cursorSerial;
267 pCurs->name = None;
270 pCurs->foreRed = foreRed;
271 pCurs->foreGreen = foreGreen;
272 pCurs->foreBlue = foreBlue;
274 pCurs->backRed = backRed;
275 pCurs->backGreen = backGreen;
276 pCurs->backBlue = backBlue;
278 pCurs->id = cid;
282 pCurs, RT_NONE, NULL, DixCreateAccess);
286 rc = RealizeCursorAllScreens(pCurs);
290 *ppCurs = pCurs;
295 dixFiniPrivates(pCurs, PRIVATE_CURSOR);
296 free(pCurs);
313 CursorPtr pCurs;
344 pCurs = (CursorPtr)calloc(CURSOR_REC_SIZE, 1);
345 if (!pCurs)
347 dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
387 pCurs =
389 if (pCurs)
390 bits = (CursorBitsPtr)((char *)pCurs + CURSOR_REC_SIZE);
396 pCurs = (CursorPtr)calloc(CURSOR_REC_SIZE, 1);
397 if (pCurs)
404 free(pCurs);
409 dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
442 pCurs->bits = bits;
443 pCurs->refcnt = 1;
445 pCurs->serialNumber = ++cursorSerial;
446 pCurs->name = None;
449 pCurs->foreRed = foreRed;
450 pCurs->foreGreen = foreGreen;
451 pCurs->foreBlue = foreBlue;
453 pCurs->backRed = backRed;
454 pCurs->backGreen = backGreen;
455 pCurs->backBlue = backBlue;
457 pCurs->id = cid;
461 pCurs, RT_NONE, NULL, DixCreateAccess);
465 rc = RealizeCursorAllScreens(pCurs);
469 *ppCurs = pCurs;
474 dixFiniPrivates(pCurs, PRIVATE_CURSOR);
475 free(pCurs);