Lines Matching defs:drm

10 #include <drm/drm_aperture.h>
11 #include <drm/drm_atomic_helper.h>
12 #include <drm/drm_client.h>
13 #include <drm/drm_gem_ttm_helper.h>
14 #include <drm/drm_ioctl.h>
15 #include <drm/drm_managed.h>
16 #include <drm/drm_print.h>
17 #include <drm/xe_drm.h>
67 xef->drm = file;
187 pci_set_drvdata(to_pci_dev(xe->drm.dev), NULL);
249 xe = devm_drm_dev_alloc(&pdev->dev, &driver, struct xe_device, drm);
253 err = ttm_device_init(&xe->ttm, &xe_ttm_funcs, xe->drm.dev,
254 xe->drm.anon_inode->i_mapping,
255 xe->drm.vma_offset_manager, false, false);
259 err = drmm_add_action_or_reset(&xe->drm, xe_device_destroy, NULL);
272 drmm_mutex_init(&xe->drm, &xe->usm.lock);
283 drm_WARN_ON(&xe->drm, err);
302 drm_err(&xe->drm, "Failed to allocate xe workqueues\n");
337 drm_info_once(&xe->drm, "BIOS Disabled Driver-FLR\n");
341 drm_dbg(&xe->drm, "Triggering Driver-FLR\n");
354 drm_err(&xe->drm, "Driver-FLR-prepare wait for ready failed! %d\n", ret);
365 drm_err(&xe->drm, "Driver-FLR-teardown wait completion failed! %d\n", ret);
373 drm_err(&xe->drm, "Driver-FLR-reinit wait completion failed! %d\n", ret);
381 static void xe_driver_flr_fini(struct drm_device *drm, void *arg)
389 static void xe_device_sanitize(struct drm_device *drm, void *arg)
404 dma_set_max_seg_size(xe->drm.dev, xe_sg_segment_size(xe->drm.dev));
406 err = dma_set_mask(xe->drm.dev, DMA_BIT_MASK(mask_size));
410 err = dma_set_coherent_mask(xe->drm.dev, DMA_BIT_MASK(mask_size));
417 drm_err(&xe->drm, "Can't set DMA mask/consistent mask (%d)\n", err);
442 drm_dbg(&xe->drm, "Waiting for lmem initialization\n");
462 drm_dbg(&xe->drm, "lmem not initialized by firmware\n");
470 drm_dbg(&xe->drm, "lmem ready after %ums",
525 drm_dbg(&xe->drm,
581 err = drmm_add_action_or_reset(&xe->drm, xe_driver_flr_fini, xe);
643 err = drm_dev_register(&xe->drm, 0);
653 return drmm_add_action_or_reset(&xe->drm, xe_device_sanitize, xe);
677 drm_dev_unplug(&xe->drm);