Lines Matching full:devpath
85 std::tuple<size_t, uint8_t> getI2CSearchKeys(const std::string& devPath) in getI2CSearchKeys() argument
93 regex_search(devPath, match, regex); in getI2CSearchKeys()
97 std::string msg = "Could not get I2C bus and address from " + devPath; in getI2CSearchKeys()
114 std::string getFSISearchKeys(const std::string& devPath) in getFSISearchKeys() argument
118 auto search = devPath; in getFSISearchKeys()
137 std::string msg = "Could not get FSI links from " + devPath; in getFSISearchKeys()
148 const std::string& devPath) in getFSII2CSearchKeys() argument
152 auto links = getFSISearchKeys(devPath); in getFSII2CSearchKeys()
153 auto busAndAddr = getI2CSearchKeys(devPath); in getFSII2CSearchKeys()
158 size_t getSPISearchKeys(const std::string& devPath) in getSPISearchKeys() argument
167 regex_search(devPath, match, regex); in getSPISearchKeys()
171 std::string msg = "Could not get SPI bus from " + devPath; in getSPISearchKeys()
180 std::tuple<std::string, size_t> getFSISPISearchKeys(const std::string& devPath) in getFSISPISearchKeys() argument
183 auto links = getFSISearchKeys(devPath); in getFSISPISearchKeys()
184 auto bus = getSPISearchKeys(devPath); in getFSISPISearchKeys()
297 * @param[in] devPath - The device path
303 const std::string& devPath, const nlohmann::json& calloutJSON) in calloutI2CUsingPath() argument
305 auto [bus, address] = getI2CSearchKeys(devPath); in calloutI2CUsingPath()
313 * @param[in] devPath - The device path
319 const std::string& devPath, const nlohmann::json& calloutJSON) in calloutFSI() argument
321 auto links = getFSISearchKeys(devPath); in calloutFSI()
345 * @param[in] devPath - The device path
351 const std::string& devPath, const nlohmann::json& calloutJSON) in calloutFSII2C() argument
353 auto linksAndI2C = getFSII2CSearchKeys(devPath); in calloutFSII2C()
391 * @param[in] devPath - The device path
397 const std::string& devPath, const nlohmann::json& calloutJSON) in calloutFSISPI() argument
399 auto linksAndSPI = getFSISPISearchKeys(devPath); in calloutFSISPI()
431 * @param[in] devPath - The device path
436 std::vector<device_callouts::Callout> findCallouts(const std::string& devPath, in findCallouts() argument
445 path = fs::canonical(devPath); in findCallouts()
450 path = devPath; in findCallouts()
477 CalloutType getCalloutType(const std::string& devPath) in getCalloutType() argument
479 if ((devPath.find("fsi-master") != std::string::npos) && in getCalloutType()
480 (devPath.find("i2c-") != std::string::npos)) in getCalloutType()
485 if ((devPath.find("fsi-master") != std::string::npos) && in getCalloutType()
486 (devPath.find("spi") != std::string::npos)) in getCalloutType()
492 if (devPath.find("fsi-master") != std::string::npos) in getCalloutType()
497 if (devPath.find("i2c-") != std::string::npos) in getCalloutType()
507 std::vector<Callout> getCallouts(const std::string& devPath, in getCallouts() argument
511 return util::findCallouts(devPath, json); in getCallouts()