Lines Matching full:minor
30 gt->sriov.pf.service.version.base.minor = GUC_RELAY_VERSION_BASE_MINOR; in pf_init_versions()
34 gt->sriov.pf.service.version.latest.minor = GUC_RELAY_VERSION_LATEST_MINOR; in pf_init_versions()
40 u32 *major, u32 *minor) in pf_negotiate_version() argument
47 xe_gt_assert(gt, (base.major < latest.major) || (base.minor <= latest.minor)); in pf_negotiate_version()
53 *minor = latest.minor; in pf_negotiate_version()
60 *minor = latest.minor; in pf_negotiate_version()
66 (wanted_major == base.major && wanted_minor < base.minor)) { in pf_negotiate_version()
77 /* same major - return common minor */ in pf_negotiate_version()
79 *minor = min_t(u32, latest.minor, wanted_minor); in pf_negotiate_version()
83 static void pf_connect(struct xe_gt *gt, u32 vfid, u32 major, u32 minor) in pf_connect() argument
86 xe_gt_assert(gt, major || minor); in pf_connect()
89 gt->sriov.pf.vfs[vfid].version.minor = minor; in pf_connect()
97 gt->sriov.pf.vfs[vfid].version.minor = 0; in pf_disconnect()
100 static bool pf_is_negotiated(struct xe_gt *gt, u32 vfid, u32 major, u32 minor) in pf_is_negotiated() argument
105 minor <= gt->sriov.pf.vfs[vfid].version.minor; in pf_is_negotiated()
323 u32 *major, u32 *minor) in pf_process_handshake() argument
330 err = pf_negotiate_version(gt, wanted_major, wanted_minor, major, minor); in pf_process_handshake()
338 vfid, *major, *minor); in pf_process_handshake()
339 pf_connect(gt, vfid, *major, *minor); in pf_process_handshake()
350 u32 major, minor; in pf_process_handshake_msg() local
364 err = pf_process_handshake(gt, origin, wanted_major, wanted_minor, &major, &minor); in pf_process_handshake_msg()
368 xe_gt_assert(gt, major || minor); in pf_process_handshake_msg()
375 FIELD_PREP(VF2PF_HANDSHAKE_RESPONSE_MSG_1_MINOR, minor); in pf_process_handshake_msg()
539 if (!version->major && !version->minor) in xe_gt_sriov_pf_service_print_version()
542 drm_printf(p, "VF%u:\t%u.%u\n", n, version->major, version->minor); in xe_gt_sriov_pf_service_print_version()