Lines Matching refs:pDevInfo

165 unmap_dgaDev(SolarisDgaLibInfo *pDevInfo)
168 (*pDevInfo->devInfo->function->winclose)(&(pDevInfo->winInfo));
230 SolarisDgaLibInfo *pDevInfo;
281 pDevInfo = *dgaDev;
282 pDevInfo->drawable = drawable;
284 prev_virtual_drawable = pDevInfo->virtual_drawable;
285 pDevInfo->virtual_drawable = GetVirtualDrawable(display, drawable);
286 if (pDevInfo->virtual_drawable == NULL) {
293 if (pDevInfo->winInfo.dgaDraw != 0 &&
294 pDevInfo->virtual_drawable != prev_virtual_drawable) {
295 XDgaUnGrabDrawable(pDevInfo->winInfo.dgaDraw);
296 pDevInfo->winInfo.dgaDraw = 0;
300 pDevInfo->count++;
302 if (pDevInfo->winInfo.dgaDraw == 0) {
303 pDevInfo->winInfo.dgaDraw = XDgaGrabDrawable(display, pDevInfo->virtual_drawable);
304 if (pDevInfo->winInfo.dgaDraw == 0) {
308 type = dga_draw_type(pDevInfo->winInfo.dgaDraw);
310 mmap_dgaDev(pDevInfo, pDevInfo->winInfo.dgaDraw) != JDGA_SUCCESS) {
312 drawable, dga_draw_depth(pDevInfo->winInfo.dgaDraw)));
313 XDgaUnGrabDrawable(pDevInfo->winInfo.dgaDraw);
314 pDevInfo->winInfo.dgaDraw = 0;
318 type = dga_draw_type(pDevInfo->winInfo.dgaDraw);
326 dgaDrawable = pDevInfo->winInfo.dgaDraw;
333 pDevInfo->winInfo.mapDepth = dga_draw_depth(dgaDrawable);
334 pDevInfo->winInfo.mapAddr = dga_draw_address(dgaDrawable);
336 pDevInfo->winInfo.mapWidth = dhix;
337 pDevInfo->winInfo.mapHeight = dhiy;
338 if (pDevInfo->winInfo.mapDepth == 8) {
339 pDevInfo->winInfo.mapLineStride = dga_draw_linebytes(dgaDrawable);
340 pDevInfo->winInfo.mapPixelStride = 1;
342 pDevInfo->winInfo.mapLineStride = dga_draw_linebytes(dgaDrawable)/4;
343 pDevInfo->winInfo.mapPixelStride = 4;
347 pDevInfo->winInfo.dgaDraw = 0;
354 unmap_dgaDev(pDevInfo);
356 pDevInfo->winInfo.dgaDraw = 0;
482 pSurface->basePtr = pDevInfo->winInfo.mapAddr;
483 pSurface->surfaceScan = pDevInfo->winInfo.mapLineStride;
484 pSurface->surfaceWidth = pDevInfo->winInfo.mapWidth;
485 pSurface->surfaceHeight = pDevInfo->winInfo.mapHeight;
486 pSurface->surfaceDepth = pDevInfo->winInfo.mapDepth;
494 SolarisDgaLibInfo *pDevInfo = (SolarisDgaLibInfo *) dgaDev;
496 if (pDevInfo != 0 && pDevInfo->drawable == drawable &&
497 pDevInfo->winInfo.dgaDraw != 0) {
498 DGA_DRAW_UNLOCK(pDevInfo->winInfo.dgaDraw);