Lines Matching refs:pAMDGPUEnt
92 AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(pScrn);
93 const char *busIdString = pAMDGPUEnt->busid;
115 AMDGPUEntPtr pAMDGPUEnt)
128 XNFasprintf(&pAMDGPUEnt->busid, "pci:%04x:%02x:%02x.%u",
171 pAMDGPUEnt->busid, strerror(errno));
176 void amdgpu_kernel_close_fd(AMDGPUEntPtr pAMDGPUEnt)
179 if (!(pAMDGPUEnt->platform_dev &&
180 pAMDGPUEnt->platform_dev->flags & XF86_PDEV_SERVER_FD))
182 close(pAMDGPUEnt->fd);
183 pAMDGPUEnt->fd = -1;
197 AMDGPUEntPtr pAMDGPUEnt)
202 pAMDGPUEnt->fd = amdgpu_kernel_open_fd(pScrn, pci_dev, platform_dev, pAMDGPUEnt);
203 if (pAMDGPUEnt->fd == -1)
214 err = drmSetInterfaceVersion(pAMDGPUEnt->fd, &sv);
218 amdgpu_kernel_close_fd(pAMDGPUEnt);
223 if (!local_drmIsMaster(pAMDGPUEnt->fd)) {
226 amdgpu_kernel_close_fd(pAMDGPUEnt);
236 AMDGPUEntPtr pAMDGPUEnt)
241 pAMDGPUEnt->platform_dev = platform_dev;
243 pAMDGPUEnt))
246 if (amdgpu_device_initialize(pAMDGPUEnt->fd,
249 &pAMDGPUEnt->pDev)) {
258 amdgpu_kernel_close_fd(pAMDGPUEnt);
268 AMDGPUEntPtr pAMDGPUEnt;
289 * Radeon, need to use pAMDGPUEnt for new monitor detection routines.
303 pAMDGPUEnt = pPriv->ptr;
304 if (!amdgpu_device_setup(pScrn, pci_dev, dev, pAMDGPUEnt))
307 pAMDGPUEnt->fd_ref = 1;
310 pAMDGPUEnt = pPriv->ptr;
312 if (pAMDGPUEnt->fd_ref == ARRAY_SIZE(pAMDGPUEnt->scrn)) {
315 (unsigned)ARRAY_SIZE(pAMDGPUEnt->scrn));
319 pAMDGPUEnt->fd_ref++;