Lines Matching refs:p_ddev
287 struct drm_device *p_ddev; in amdgpu_xcp_dev_alloc() local
297 ret = amdgpu_xcp_drm_dev_alloc(&p_ddev); in amdgpu_xcp_dev_alloc()
308 adev->xcp_mgr->xcp[i].rdev = p_ddev->render->dev; in amdgpu_xcp_dev_alloc()
309 adev->xcp_mgr->xcp[i].pdev = p_ddev->primary->dev; in amdgpu_xcp_dev_alloc()
310 adev->xcp_mgr->xcp[i].driver = (struct drm_driver *)p_ddev->driver; in amdgpu_xcp_dev_alloc()
311 adev->xcp_mgr->xcp[i].vma_offset_manager = p_ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
312 p_ddev->render->dev = ddev; in amdgpu_xcp_dev_alloc()
313 p_ddev->primary->dev = ddev; in amdgpu_xcp_dev_alloc()
314 p_ddev->vma_offset_manager = ddev->vma_offset_manager; in amdgpu_xcp_dev_alloc()
315 p_ddev->driver = &amdgpu_partition_driver; in amdgpu_xcp_dev_alloc()
316 adev->xcp_mgr->xcp[i].ddev = p_ddev; in amdgpu_xcp_dev_alloc()
318 dev_set_drvdata(p_ddev->dev, &adev->xcp_mgr->xcp[i]); in amdgpu_xcp_dev_alloc()
413 struct drm_device *p_ddev; in amdgpu_xcp_dev_unplug() local
423 p_ddev = adev->xcp_mgr->xcp[i].ddev; in amdgpu_xcp_dev_unplug()
424 drm_dev_unplug(p_ddev); in amdgpu_xcp_dev_unplug()
425 p_ddev->render->dev = adev->xcp_mgr->xcp[i].rdev; in amdgpu_xcp_dev_unplug()
426 p_ddev->primary->dev = adev->xcp_mgr->xcp[i].pdev; in amdgpu_xcp_dev_unplug()
427 p_ddev->driver = adev->xcp_mgr->xcp[i].driver; in amdgpu_xcp_dev_unplug()
428 p_ddev->vma_offset_manager = adev->xcp_mgr->xcp[i].vma_offset_manager; in amdgpu_xcp_dev_unplug()
429 amdgpu_xcp_drm_dev_free(p_ddev); in amdgpu_xcp_dev_unplug()