/** * xe_force_wake_assert_held - asserts domain is awake * @fw : xe_force_wake structure * @domain: xe_force_wake_domains apart from XE_FORCEWAKE_ALL * * xe_force_wake_assert_held() is designed to confirm a particular * forcewake domain's wakefulness; it doesn't verify the wakefulness of * multiple domains. Make sure the caller doesn't input multiple * domains(XE_FORCEWAKE_ALL) as a parameter.
*/ staticinlinevoid
xe_force_wake_assert_held(struct xe_force_wake *fw, enum xe_force_wake_domains domain)
{
xe_gt_assert(fw->gt, domain != XE_FORCEWAKE_ALL);
xe_gt_assert(fw->gt, fw->awake_domains & domain);
}
/** * xe_force_wake_ref_has_domain - verifies if the domains are in fw_ref * @fw_ref : the force_wake reference * @domain : forcewake domain to verify * * This function confirms whether the @fw_ref includes a reference to the * specified @domain. * * Return: true if domain is refcounted.
*/ staticinlinebool
xe_force_wake_ref_has_domain(unsignedint fw_ref, enum xe_force_wake_domains domain)
{ return fw_ref & domain;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.