Lines Matching defs:xe
63 * struct xe_hwmon - xe hwmon data structure
66 /** @hwmon_dev: hwmon device for xe */
85 struct xe_device *xe = gt_to_xe(hwmon->gt);
89 if (xe->info.platform == XE_PVC && channel == CHANNEL_PKG)
91 else if ((xe->info.platform == XE_DG2) && (channel == CHANNEL_PKG))
95 if (xe->info.platform == XE_PVC && channel == CHANNEL_PKG)
97 else if ((xe->info.platform == XE_DG2) && (channel == CHANNEL_PKG))
101 if (xe->info.platform == XE_PVC)
103 else if (xe->info.platform == XE_DG2)
107 if (xe->info.platform == XE_DG2 && channel == CHANNEL_PKG)
111 if (xe->info.platform == XE_PVC && channel == CHANNEL_PKG)
113 else if ((xe->info.platform == XE_DG2) && (channel == CHANNEL_PKG))
117 drm_warn(&xe->drm, "Unknown xe hwmon reg id: %d\n", hwmon_reg);
146 drm_warn(>_to_xe(hwmon->gt)->drm, "Invalid xe hwmon reg operation: %d\n",
760 xe_hwmon_get_preregistration_info(struct xe_device *xe)
762 struct xe_hwmon *hwmon = xe->hwmon;
795 void xe_hwmon_register(struct xe_device *xe)
797 struct device *dev = xe->drm.dev;
801 if (!IS_DGFX(xe))
805 if (IS_SRIOV_VF(xe))
812 xe->hwmon = hwmon;
819 hwmon->gt = xe->tiles[0].primary_gt;
821 xe_hwmon_get_preregistration_info(xe);
823 drm_dbg(&xe->drm, "Register xe hwmon interface\n");
826 hwmon->hwmon_dev = devm_hwmon_device_register_with_info(dev, "xe", hwmon,
831 drm_warn(&xe->drm, "Failed to register xe hwmon (%pe)\n", hwmon->hwmon_dev);
832 xe->hwmon = NULL;