Lines Matching refs:p_ddev
267 struct drm_device *p_ddev; in amdgpu_xcp_dev_alloc() local
277 ret = amdgpu_xcp_drm_dev_alloc(&p_ddev); in amdgpu_xcp_dev_alloc()
288 adev->xcp_mgr->xcp[i].rdev = p_ddev->render->dev; in amdgpu_xcp_dev_alloc()
289 adev->xcp_mgr->xcp[i].pdev = p_ddev->primary->dev; in amdgpu_xcp_dev_alloc()
290 adev->xcp_mgr->xcp[i].driver = (struct drm_driver *)p_ddev->driver; in amdgpu_xcp_dev_alloc()
291 adev->xcp_mgr->xcp[i].vma_offset_manager = p_ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
292 p_ddev->render->dev = ddev; in amdgpu_xcp_dev_alloc()
293 p_ddev->primary->dev = ddev; in amdgpu_xcp_dev_alloc()
294 p_ddev->vma_offset_manager = ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
295 p_ddev->driver = &amdgpu_partition_driver; in amdgpu_xcp_dev_alloc()
296 adev->xcp_mgr->xcp[i].ddev = p_ddev; in amdgpu_xcp_dev_alloc()
298 dev_set_drvdata(p_ddev->dev, &adev->xcp_mgr->xcp[i]); in amdgpu_xcp_dev_alloc()
393 struct drm_device *p_ddev; in amdgpu_xcp_dev_unplug() local
403 p_ddev = adev->xcp_mgr->xcp[i].ddev; in amdgpu_xcp_dev_unplug()
404 drm_dev_unplug(p_ddev); in amdgpu_xcp_dev_unplug()
405 p_ddev->render->dev = adev->xcp_mgr->xcp[i].rdev; in amdgpu_xcp_dev_unplug()
406 p_ddev->primary->dev = adev->xcp_mgr->xcp[i].pdev; in amdgpu_xcp_dev_unplug()
407 p_ddev->driver = adev->xcp_mgr->xcp[i].driver; in amdgpu_xcp_dev_unplug()
408 p_ddev->vma_offset_manager = adev->xcp_mgr->xcp[i].vma_offset_manager; in amdgpu_xcp_dev_unplug()