Lines Matching full:version
32 xe->sriov.pf.service.version.base.major = GUC_RELAY_VERSION_BASE_MAJOR; in xe_sriov_pf_service_init()
33 xe->sriov.pf.service.version.base.minor = GUC_RELAY_VERSION_BASE_MINOR; in xe_sriov_pf_service_init()
35 /* latest version is same for all platforms */ in xe_sriov_pf_service_init()
36 xe->sriov.pf.service.version.latest.major = GUC_RELAY_VERSION_LATEST_MAJOR; in xe_sriov_pf_service_init()
37 xe->sriov.pf.service.version.latest.minor = GUC_RELAY_VERSION_LATEST_MINOR; in xe_sriov_pf_service_init()
45 struct xe_sriov_pf_service_version base = xe->sriov.pf.service.version.base; in pf_negotiate_version()
46 struct xe_sriov_pf_service_version latest = xe->sriov.pf.service.version.latest; in pf_negotiate_version()
92 xe->sriov.pf.vfs[vfid].version.major = major; in pf_connect()
93 xe->sriov.pf.vfs[vfid].version.minor = minor; in pf_connect()
100 xe->sriov.pf.vfs[vfid].version.major = 0; in pf_disconnect()
101 xe->sriov.pf.vfs[vfid].version.minor = 0; in pf_disconnect()
105 * xe_sriov_pf_service_is_negotiated - Check if VF has negotiated given ABI version.
108 * @major: the major version to check
109 * @minor: the minor version to check
115 * Returns: true if VF can use given ABI version functionality.
121 return major == xe->sriov.pf.vfs[vfid].version.major && in xe_sriov_pf_service_is_negotiated()
122 minor <= xe->sriov.pf.vfs[vfid].version.minor; in xe_sriov_pf_service_is_negotiated()
129 * @wanted_major: the major service version expected by the VF
130 * @wanted_minor: the minor service version expected by the VF
131 * @major: the major service version to be used by the VF
132 * @minor: the minor service version to be used by the VF
134 * Negotiate a VF/PF ABI version to allow VF use the PF services.
146 xe_sriov_dbg_verbose(xe, "VF%u wants ABI version %u.%u\n", in xe_sriov_pf_service_handshake_vf()
156 xe_sriov_dbg(xe, "VF%u negotiated ABI version %u.%u\n", in xe_sriov_pf_service_handshake_vf()
169 * Reset a VF driver negotiated VF/PF ABI version.
171 * After that point, the VF driver will have to perform new version handshake
182 const struct xe_sriov_pf_service_version *version) in print_pf_version() argument
184 drm_printf(p, "%s:\t%u.%u\n", name, version->major, version->minor); in print_pf_version()
197 struct xe_sriov_pf_service_version *version; in xe_sriov_pf_service_print_versions() local
202 print_pf_version(p, "base", &xe->sriov.pf.service.version.base); in xe_sriov_pf_service_print_versions()
203 print_pf_version(p, "latest", &xe->sriov.pf.service.version.latest); in xe_sriov_pf_service_print_versions()
206 version = &xe->sriov.pf.vfs[n].version; in xe_sriov_pf_service_print_versions()
207 if (!version->major && !version->minor) in xe_sriov_pf_service_print_versions()
210 print_pf_version(p, xe_sriov_function_name(n, name, sizeof(name)), version); in xe_sriov_pf_service_print_versions()