refactor: correct variable namings

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-11-23 17:09:04 +00:00
committed by Compute-Runtime-Automation
parent 9e3a8bdf1b
commit 36194c4e7d
126 changed files with 872 additions and 894 deletions

View File

@@ -38,7 +38,7 @@ ze_result_t LinuxEventsImp::eventRegister(zes_event_type_flags_t events) {
return ZE_RESULT_ERROR_INVALID_ENUMERATION;
}
auto pLinuxSysmanDriverImp = static_cast<LinuxSysmanDriverImp *>(GlobalSysmanDriver->pOsSysmanDriver);
auto pLinuxSysmanDriverImp = static_cast<LinuxSysmanDriverImp *>(globalSysmanDriver->pOsSysmanDriver);
if (pLinuxSysmanDriverImp == nullptr) {
NEO::printDebugString(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr,
"%s", "Os Sysman driver not initialized\n");

View File

@@ -13,7 +13,7 @@
const std::string iafPath = "device/";
const std::string iafDirectory = "iaf.";
const std::string pscbin_version = "/pscbin_version";
const std::string pscbinVersion = "/pscbin_version";
namespace L0 {
namespace Sysman {
@@ -34,7 +34,7 @@ ze_result_t LinuxFirmwareImp::getFirmwareVersion(std::string fwType, zes_firmwar
for (const auto &entry : list) {
if (!iafDirectory.compare(entry.substr(0, iafDirectory.length()))) {
// device/iaf.X/pscbin_version, where X is the hardware slot number
path = iafPath + entry + pscbin_version;
path = iafPath + entry + pscbinVersion;
}
}
if (path.empty()) {

View File

@@ -21,7 +21,7 @@
namespace L0 {
namespace Sysman {
_ze_driver_handle_t *GlobalSysmanDriverHandle = nullptr;
_ze_driver_handle_t *globalSysmanDriverHandle = nullptr;
uint32_t driverCount = 0;
bool sysmanOnlyInit = false;
@@ -60,7 +60,7 @@ void SysmanDriverImp::initialize(ze_result_t *result) {
rootDeviceIndex++;
}
GlobalSysmanDriverHandle = SysmanDriverHandle::create(*executionEnvironment, result);
globalSysmanDriverHandle = SysmanDriverHandle::create(*executionEnvironment, result);
driverCount = 1;
} else {
NEO::printDebugString(NEO::DebugManager.flags.PrintDebugMessages.get(), stderr,
@@ -103,7 +103,7 @@ ze_result_t driverHandleGet(uint32_t *pCount, zes_driver_handle_t *phDriverHandl
}
for (uint32_t i = 0; i < *pCount; i++) {
phDriverHandles[i] = GlobalSysmanDriverHandle;
phDriverHandles[i] = globalSysmanDriverHandle;
}
return ZE_RESULT_SUCCESS;

View File

@@ -26,7 +26,7 @@ ze_result_t init(zes_init_flags_t);
ze_result_t driverHandleGet(uint32_t *pCount, ze_driver_handle_t *phDrivers);
extern uint32_t driverCount;
extern _ze_driver_handle_t *GlobalSysmanDriverHandle;
extern _ze_driver_handle_t *globalSysmanDriverHandle;
extern bool sysmanOnlyInit;
} // namespace Sysman

View File

@@ -24,7 +24,7 @@
namespace L0 {
namespace Sysman {
struct SysmanDriverHandleImp *GlobalSysmanDriver;
struct SysmanDriverHandleImp *globalSysmanDriver;
SysmanDriverHandleImp::SysmanDriverHandleImp() = default;
@@ -70,7 +70,7 @@ SysmanDriverHandle *SysmanDriverHandle::create(NEO::ExecutionEnvironment &execut
}
driverHandle->extensionFunctionsLookupMap = getExtensionFunctionsLookupMap();
GlobalSysmanDriver = driverHandle;
globalSysmanDriver = driverHandle;
*returnValue = res;
return driverHandle;
}

View File

@@ -31,7 +31,7 @@ struct SysmanDriverHandleImp : SysmanDriverHandle {
struct OsSysmanDriver *pOsSysmanDriver = nullptr;
};
extern struct SysmanDriverHandleImp *GlobalSysmanDriver;
extern struct SysmanDriverHandleImp *globalSysmanDriver;
} // namespace Sysman
} // namespace L0

View File

@@ -10,7 +10,7 @@
namespace L0 {
namespace Sysman {
SysmanProductHelperCreateFunctionType SysmanProductHelperFactory[IGFX_MAX_PRODUCT] = {};
SysmanProductHelperCreateFunctionType sysmanProductHelperFactory[IGFX_MAX_PRODUCT] = {};
}
} // namespace L0

View File

@@ -21,12 +21,12 @@ class SysmanProductHelper;
class LinuxSysmanImp;
using SysmanProductHelperCreateFunctionType = std::unique_ptr<SysmanProductHelper> (*)();
extern SysmanProductHelperCreateFunctionType SysmanProductHelperFactory[IGFX_MAX_PRODUCT];
extern SysmanProductHelperCreateFunctionType sysmanProductHelperFactory[IGFX_MAX_PRODUCT];
class SysmanProductHelper {
public:
static std::unique_ptr<SysmanProductHelper> create(PRODUCT_FAMILY product) {
auto productHelperCreateFunction = SysmanProductHelperFactory[product];
auto productHelperCreateFunction = sysmanProductHelperFactory[product];
if (productHelperCreateFunction == nullptr) {
return nullptr;
}

View File

@@ -32,7 +32,7 @@ template <PRODUCT_FAMILY gfxProduct>
struct EnableSysmanProductHelper {
EnableSysmanProductHelper() {
auto sysmanProductHelperCreateFunction = SysmanProductHelperHw<gfxProduct>::create;
SysmanProductHelperFactory[gfxProduct] = sysmanProductHelperCreateFunction;
sysmanProductHelperFactory[gfxProduct] = sysmanProductHelperCreateFunction;
}
};