Lines Matching refs:p_ddev
231 struct drm_device *p_ddev; in amdgpu_xcp_dev_alloc() local
241 ret = amdgpu_xcp_drm_dev_alloc(&p_ddev); in amdgpu_xcp_dev_alloc()
251 adev->xcp_mgr->xcp[i].rdev = p_ddev->render->dev; in amdgpu_xcp_dev_alloc()
252 adev->xcp_mgr->xcp[i].pdev = p_ddev->primary->dev; in amdgpu_xcp_dev_alloc()
253 adev->xcp_mgr->xcp[i].driver = (struct drm_driver *)p_ddev->driver; in amdgpu_xcp_dev_alloc()
254 adev->xcp_mgr->xcp[i].vma_offset_manager = p_ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
255 p_ddev->render->dev = ddev; in amdgpu_xcp_dev_alloc()
256 p_ddev->primary->dev = ddev; in amdgpu_xcp_dev_alloc()
257 p_ddev->vma_offset_manager = ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
258 p_ddev->driver = &amdgpu_partition_driver; in amdgpu_xcp_dev_alloc()
259 adev->xcp_mgr->xcp[i].ddev = p_ddev; in amdgpu_xcp_dev_alloc()
349 struct drm_device *p_ddev; in amdgpu_xcp_dev_unplug() local
359 p_ddev = adev->xcp_mgr->xcp[i].ddev; in amdgpu_xcp_dev_unplug()
360 drm_dev_unplug(p_ddev); in amdgpu_xcp_dev_unplug()
361 p_ddev->render->dev = adev->xcp_mgr->xcp[i].rdev; in amdgpu_xcp_dev_unplug()
362 p_ddev->primary->dev = adev->xcp_mgr->xcp[i].pdev; in amdgpu_xcp_dev_unplug()
363 p_ddev->driver = adev->xcp_mgr->xcp[i].driver; in amdgpu_xcp_dev_unplug()
364 p_ddev->vma_offset_manager = adev->xcp_mgr->xcp[i].vma_offset_manager; in amdgpu_xcp_dev_unplug()