priv_level
static bool spr_allowed(struct kvm_vcpu *vcpu, enum priv_level level)
u32 op_mode, priv_level;
priv_level = QLCNIC_MGMT_FUNC;
priv_level = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode,
if (priv_level == QLCNIC_NON_PRIV_FUNC) {
u32 op_mode, priv_level;
priv_level = QLCNIC_MGMT_FUNC;
priv_level = QLC_83XX_GET_FUNC_PRIVILEGE(op_mode,
switch (priv_level) {
u32 op_mode, priv_level;
priv_level = QLCNIC_MGMT_FUNC;
priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func);
if (priv_level == QLCNIC_NON_PRIV_FUNC) {
u32 op_mode, priv_level;
priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func);
priv_level = QLCNIC_MGMT_FUNC;
priv_level = QLC_DEV_GET_DRV(op_mode, adapter->ahw->pci_func);
if (priv_level == QLCNIC_MGMT_FUNC) {
} else if (priv_level == QLCNIC_PRIV_FUNC) {