Lines Matching refs:guc
13 static bool __guc_rc_supported(struct intel_guc *guc) in __guc_rc_supported() argument
16 return guc->submission_supported && in __guc_rc_supported()
17 GRAPHICS_VER(guc_to_i915(guc)) >= 12; in __guc_rc_supported()
20 static bool __guc_rc_selected(struct intel_guc *guc) in __guc_rc_selected() argument
22 if (!intel_guc_rc_is_supported(guc)) in __guc_rc_selected()
25 return guc->submission_selected; in __guc_rc_selected()
28 void intel_guc_rc_init_early(struct intel_guc *guc) in intel_guc_rc_init_early() argument
30 guc->rc_supported = __guc_rc_supported(guc); in intel_guc_rc_init_early()
31 guc->rc_selected = __guc_rc_selected(guc); in intel_guc_rc_init_early()
34 static int guc_action_control_gucrc(struct intel_guc *guc, bool enable) in guc_action_control_gucrc() argument
44 ret = intel_guc_send(guc, action, ARRAY_SIZE(action)); in guc_action_control_gucrc()
50 static int __guc_rc_control(struct intel_guc *guc, bool enable) in __guc_rc_control() argument
52 struct intel_gt *gt = guc_to_gt(guc); in __guc_rc_control()
58 if (!intel_guc_is_ready(guc)) in __guc_rc_control()
61 ret = guc_action_control_gucrc(guc, enable); in __guc_rc_control()
63 guc_probe_error(guc, "Failed to %s RC (%pe)\n", in __guc_rc_control()
68 guc_info(guc, "RC %s\n", str_enabled_disabled(enable)); in __guc_rc_control()
73 int intel_guc_rc_enable(struct intel_guc *guc) in intel_guc_rc_enable() argument
75 return __guc_rc_control(guc, true); in intel_guc_rc_enable()
78 int intel_guc_rc_disable(struct intel_guc *guc) in intel_guc_rc_disable() argument
80 return __guc_rc_control(guc, false); in intel_guc_rc_disable()