Lines Matching refs:p_ddev
252 struct drm_device *p_ddev; in amdgpu_xcp_dev_alloc() local
262 ret = amdgpu_xcp_drm_dev_alloc(&p_ddev); in amdgpu_xcp_dev_alloc()
272 adev->xcp_mgr->xcp[i].rdev = p_ddev->render->dev; in amdgpu_xcp_dev_alloc()
273 adev->xcp_mgr->xcp[i].pdev = p_ddev->primary->dev; in amdgpu_xcp_dev_alloc()
274 adev->xcp_mgr->xcp[i].driver = (struct drm_driver *)p_ddev->driver; in amdgpu_xcp_dev_alloc()
275 adev->xcp_mgr->xcp[i].vma_offset_manager = p_ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
276 p_ddev->render->dev = ddev; in amdgpu_xcp_dev_alloc()
277 p_ddev->primary->dev = ddev; in amdgpu_xcp_dev_alloc()
278 p_ddev->vma_offset_manager = ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
279 p_ddev->driver = &amdgpu_partition_driver; in amdgpu_xcp_dev_alloc()
280 adev->xcp_mgr->xcp[i].ddev = p_ddev; in amdgpu_xcp_dev_alloc()
369 struct drm_device *p_ddev; in amdgpu_xcp_dev_unplug() local
379 p_ddev = adev->xcp_mgr->xcp[i].ddev; in amdgpu_xcp_dev_unplug()
380 drm_dev_unplug(p_ddev); in amdgpu_xcp_dev_unplug()
381 p_ddev->render->dev = adev->xcp_mgr->xcp[i].rdev; in amdgpu_xcp_dev_unplug()
382 p_ddev->primary->dev = adev->xcp_mgr->xcp[i].pdev; in amdgpu_xcp_dev_unplug()
383 p_ddev->driver = adev->xcp_mgr->xcp[i].driver; in amdgpu_xcp_dev_unplug()
384 p_ddev->vma_offset_manager = adev->xcp_mgr->xcp[i].vma_offset_manager; in amdgpu_xcp_dev_unplug()