linux/drivers/gpu/drm/i915/intel_guc.c
/**
 * guc_init_ggtt_pin_bias() - Initialize the GuC ggtt_pin_bias value.
 * @guc: intel_guc structure.
 *
 * This function will calculate and initialize the ggtt_pin_bias value based on
 * overall WOPCM size and GuC WOPCM size.
 */


This function will calculate and initialize the ggtt_pin_bias value based on
overall WOPCM size and GuC WOPCM size.
This function will calculate and initialize the ggtt_pin_bias value based on overall WOPCM size and GuC WOPCM size .
static void guc_init_ggtt_pin_bias(struct intel_guc *guc)
{
	struct drm_i915_private *i915 = guc_to_i915(guc);
	GEM_BUG_ON(!i915->wopcm.size);
	GEM_BUG_ON(i915->wopcm.size < i915->wopcm.guc.base);
	guc->ggtt_pin_bias = i915->wopcm.size - i915->wopcm.guc.base;
}
static void guc_init_ggtt_pin_bias ( struct intel_guc * guc ) { struct drm_i915_private * i915 = guc_to_i915 ( guc ) ; GEM_BUG_ON ( ! i915 -> wopcm . size ) ; GEM_BUG_ON ( i915 -> wopcm . size < i915 -> wopcm . guc . base ) ; guc -> ggtt_pin_bias = i915 -> wopcm . size - i915 -> wopcm . guc . base ; }
guc_init_ggtt_pin_bias() - Initialize the GuC ggtt_pin_bias value.
guc_init_ggtt_pin_bias () - Initialize the GuC ggtt_pin_bias value .