Lines Matching +full:mode +full:- +full:based
1 // SPDX-License-Identifier: MIT
10 * xe_sriov_mode_to_string - Convert enum value to string.
11 * @mode: the &xe_sriov_mode to convert
13 * Returns: SR-IOV mode as a user friendly string.
15 const char *xe_sriov_mode_to_string(enum xe_sriov_mode mode) in xe_sriov_mode_to_string() argument
17 switch (mode) { in xe_sriov_mode_to_string()
21 return "SR-IOV PF"; in xe_sriov_mode_to_string()
23 return "SR-IOV VF"; in xe_sriov_mode_to_string()
30 * xe_sriov_probe_early - Probe a SR-IOV mode.
31 * @xe: the &xe_device to probe mode on
32 * @has_sriov: flag indicating hardware support for SR-IOV
35 * driver probe to detect whether we are running a SR-IOV Physical Function
38 * SR-IOV PF mode detection is based on PCI @dev_is_pf() function.
39 * SR-IOV VF mode detection is based on dedicated MMIO register read.
43 enum xe_sriov_mode mode = XE_SRIOV_MODE_NONE; in xe_sriov_probe_early() local
45 /* TODO: replace with proper mode detection */ in xe_sriov_probe_early()
48 xe_assert(xe, !xe->sriov.__mode); in xe_sriov_probe_early()
49 xe->sriov.__mode = mode; in xe_sriov_probe_early()
50 xe_assert(xe, xe->sriov.__mode); in xe_sriov_probe_early()
53 drm_info(&xe->drm, "Running in %s mode\n", in xe_sriov_probe_early()