Lines Matching defs:xe
32 struct xe_device *xe = pdev_to_xe_device(pdev);
35 if (!xe)
38 ret = sysfs_emit(buf, "%d\n", xe->d3cold.vram_threshold);
48 struct xe_device *xe = pdev_to_xe_device(pdev);
52 if (!xe)
59 drm_dbg(&xe->drm, "vram_d3cold_threshold: %u\n", vram_d3cold_threshold);
61 ret = xe_pm_set_vram_threshold(xe, vram_d3cold_threshold);
70 struct xe_device *xe = arg;
72 sysfs_remove_file(&xe->drm.dev->kobj, &dev_attr_vram_d3cold_threshold.attr);
75 void xe_device_sysfs_init(struct xe_device *xe)
77 struct device *dev = xe->drm.dev;
82 drm_warn(&xe->drm, "Failed to create sysfs file\n");
86 ret = drmm_add_action_or_reset(&xe->drm, xe_device_sysfs_fini, xe);
88 drm_warn(&xe->drm, "Failed to add sysfs fini drm action\n");