/** * xe_sriov_pf_assert_vfid() - warn if &id is not a supported VF number when debugging. * @xe: the PF &xe_device to assert on * @vfid: the VF number to assert * * Assert that &xe represents the Physical Function (PF) device and provided &vfid * is within a range of supported VF numbers (up to maximum number of VFs that * driver can support, including VF0 that represents the PF itself). * * Note: Effective only on debug builds. See `Xe Asserts`_ for more information.
*/ #define xe_sriov_pf_assert_vfid(xe, vfid) \
xe_assert((xe), (vfid) <= xe_sriov_pf_get_totalvfs(xe))
/** * xe_sriov_pf_get_totalvfs() - Get maximum number of VFs that driver can support. * @xe: the &xe_device to query (shall be PF) * * Return: Maximum number of VFs that this PF driver supports.
*/ staticinlineint xe_sriov_pf_get_totalvfs(struct xe_device *xe)
{
xe_assert(xe, IS_SRIOV_PF(xe)); return xe->sriov.pf.driver_max_vfs;
}
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.