Home | History | Annotate | Download | only in src

Lines Matching refs:pRADEONEnt

198     RADEONEntPtr pRADEONEnt;
207 pRADEONEnt = pPriv->ptr;
224 pRADEONEnt->scrn[info->instance_id] = NULL;
225 pRADEONEnt->num_scrns--;
230 if (pRADEONEnt->fd > 0) {
232 RADEONEntPtr pRADEONEnt;
236 pRADEONEnt = pPriv->ptr;
237 pRADEONEnt->fd_ref--;
238 if (!pRADEONEnt->fd_ref) {
240 if (!(pRADEONEnt->platform_dev &&
241 pRADEONEnt->platform_dev->flags & XF86_PDEV_SERVER_FD))
243 drmClose(pRADEONEnt->fd);
527 RADEONEntPtr pRADEONEnt = RADEONEntPriv(crtc->scrn);
534 drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->flip_pending,
543 RADEONEntPtr pRADEONEnt = RADEONEntPriv(crtc->scrn);
547 drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->fb, fb);
759 RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
797 drmmode_crtc->drmmode->event_context.vblank_handler(pRADEONEnt->fd,
823 RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
861 if (drmmode_page_flip_target_relative(pRADEONEnt, drmmode_crtc,
882 drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->flip_pending, fb);
1068 RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
1119 drmmode_crtc->drmmode->event_context.vblank_handler(pRADEONEnt->fd,
1147 RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
1184 if (drmmode_page_flip_target_relative(pRADEONEnt, drmmode_crtc,
1212 drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->flip_pending, fb);
1252 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1260 r = drmCommandWriteRead(pRADEONEnt->fd, DRM_RADEON_INFO, &ginfo, sizeof(ginfo));
1271 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1279 r = drmCommandWriteRead(pRADEONEnt->fd, DRM_RADEON_INFO, &ginfo, sizeof(ginfo));
1290 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1302 r = drmCommandWriteRead(pRADEONEnt->fd, DRM_RADEON_INFO, &ginfo, sizeof(ginfo));
1512 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1519 if (pRADEONEnt->platform_dev) {
1520 fd = xf86_get_platform_device_int_attrib(pRADEONEnt->platform_dev,
1542 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1546 if (pRADEONEnt->fd) {
1549 pRADEONEnt->fd_ref++;
1553 pRADEONEnt->fd = radeon_get_drm_master_fd(pScrn);
1554 if (pRADEONEnt->fd == -1)
1565 err = drmSetInterfaceVersion(pRADEONEnt->fd, &sv);
1569 drmClose(pRADEONEnt->fd);
1570 pRADEONEnt->fd = -1;
1575 pRADEONEnt->fd_ref = 1;
1581 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1593 r = drmCommandWriteRead(pRADEONEnt->fd, DRM_RADEON_INFO, &ginfo, sizeof(ginfo));
1689 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
1700 ret = drmGetCap(pRADEONEnt->fd, DRM_CAP_PRIME, &value);
1764 RADEONEntPtr pRADEONEnt;
1777 pRADEONEnt = xf86GetEntityPrivate(pScrn->entityList[0],
1779 if (pRADEONEnt->num_scrns == ARRAY_SIZE(pRADEONEnt->scrn)) {
1782 (unsigned)ARRAY_SIZE(pRADEONEnt->scrn));
1790 info->instance_id = pRADEONEnt->num_scrns++;
1791 pRADEONEnt->scrn[info->instance_id] = pScrn;
1832 info->dri2.pKernelDRMVersion = drmGetVersion(pRADEONEnt->fd);
1965 pRADEONEnt->HasCRTC2 = FALSE;
1967 pRADEONEnt->HasCRTC2 = TRUE;
1976 if (info->ChipFamily == CHIP_FAMILY_RV100 && !pRADEONEnt->HasCRTC2) {
2001 if (!drmCommandWriteRead(pRADEONEnt->fd, DRM_RADEON_GEM_INFO, &mminfo, sizeof(mminfo)))
2169 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
2173 if (pRADEONEnt->platform_dev &&
2174 (pRADEONEnt->platform_dev->flags & XF86_PDEV_SERVER_FD))
2178 err = drmSetMaster(pRADEONEnt->fd);
2187 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
2190 if (pRADEONEnt->platform_dev &&
2191 (pRADEONEnt->platform_dev->flags & XF86_PDEV_SERVER_FD))
2195 drmDropMaster(pRADEONEnt->fd);
2206 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
2212 pRADEONEnt->assigned_crtcs = 0;
2270 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
2296 info->surf_man = radeon_surface_manager_new(pRADEONEnt->fd);
2306 info->bufmgr = radeon_bo_manager_gem_ctor(pRADEONEnt->fd);
2315 info->csm = radeon_cs_manager_gem_ctor(pRADEONEnt->fd);
2590 RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
2604 drmmode_fb_reference(pRADEONEnt->fd, &drmmode_crtc->fb, NULL);
2616 RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
2619 drmmode_fb_reference(pRADEONEnt->fd, fb_ptr, NULL);
2640 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
2683 drmModeSetCrtc(pRADEONEnt->fd,
2686 drmmode_fb_reference(pRADEONEnt->fd,
2886 RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
2893 if (info->ChipFamily == CHIP_FAMILY_RV100 && !pRADEONEnt->HasCRTC2) {