Lines Matching +full:auto +full:- +full:i2c
4 #include <linux/i2c-dev.h>
5 #include <linux/i2c.h>
12 #include <phosphor-logging/elog-errors.hpp>
13 #include <phosphor-logging/lg2.hpp>
34 * @param[in] ipaddress - IPAddress.
67 objectTree.begin()->first, in getDbusObject()
68 std::move(objectTree.begin()->second.begin()->first)); in getDbusObject()
73 auto found = std::find_if( in getDbusObject()
74 objectTree.begin(), objectTree.end(), [&match](const auto& object) { in getDbusObject()
86 return make_pair(found->first, std::move(found->second.begin()->first)); in getDbusObject()
96 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getDbusProperty()
101 auto reply = bus.call(method, timeout.count()); in getDbusProperty()
114 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getAllDbusProperties()
119 auto reply = bus.call(method, timeout.count()); in getAllDbusProperties()
131 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in getManagedObjects()
134 auto reply = bus.call(method); in getManagedObjects()
145 auto method = bus.new_method_call(service.c_str(), objPath.c_str(), in setDbusProperty()
206 auto mapperCall = bus.new_method_call( in getService()
213 auto mapperResponseMsg = bus.call(mapperCall); in getService()
215 auto mapperResponse = in getService()
224 return mapperResponse.begin()->first; in getService()
230 auto mapperCall = bus.new_method_call( in getSubTree()
236 auto mapperReply = bus.call(mapperCall); in getSubTree()
237 auto objectTree = mapperReply.unpack<ObjectTree>(); in getSubTree()
250 for (auto it = objectTree.begin(); it != objectTree.end();) in getAllDbusObjects()
252 if (it->first.find(match) == std::string::npos) in getAllDbusObjects()
273 auto busMethod = bus.new_method_call(service.c_str(), objPath.c_str(), in callDbusMethod()
275 auto reply = bus.call(busMethod); in callDbusMethod()
280 /********* Begin co-routine yielding alternatives ***************/
288 ctx->bus->yield_method_call<decltype(mapperResponse)>( in getService()
289 ctx->yield, ec, ObjectMapper::default_service, in getService()
296 service = std::move(mapperResponse.begin()->first); in getService()
306 objectTree = ctx->bus->yield_method_call<ObjectTree>( in getSubTree()
307 ctx->yield, ec, ObjectMapper::default_service, in getSubTree()
323 auto depth = 0; in getDbusObject()
337 "INTERFACE", interface, "NETFN", lg2::hex, ctx->netFn, "CMD", in getDbusObject()
338 lg2::hex, ctx->cmd); in getDbusObject()
347 std::move(objectTree.begin()->first), in getDbusObject()
348 std::move(objectTree.begin()->second.begin()->first)); in getDbusObject()
353 auto found = std::find_if( in getDbusObject()
354 objectTree.begin(), objectTree.end(), [&match](const auto& object) { in getDbusObject()
362 "MATCH", match, "NETFN", lg2::hex, ctx->netFn, "CMD", in getDbusObject()
363 lg2::hex, ctx->cmd); in getDbusObject()
369 dbusObject = std::make_pair(std::move(found->first), in getDbusObject()
370 std::move(found->second.begin()->first)); in getDbusObject()
379 properties = ctx->bus->yield_method_call<PropertyMap>( in getAllDbusProperties()
380 ctx->yield, ec, service.c_str(), objPath.c_str(), PROP_INTF, in getAllDbusProperties()
391 ctx->bus->yield_method_call(ctx->yield, ec, service.c_str(), in setDbusProperty()
405 auto depth = 0; in getAllDbusObjects()
413 for (auto it = objectTree.begin(); it != objectTree.end();) in getAllDbusObjects()
415 if (it->first.find(match) == std::string::npos) in getAllDbusObjects()
433 objects = ctx->bus->yield_method_call<ipmi::ObjectValueTree>( in getManagedObjects()
434 ctx->yield, ec, service.c_str(), objPath.c_str(), in getManagedObjects()
444 ctx->bus->yield_method_call(ctx->yield, ec, service, objPath, interface, in callDbusMethod()
449 /********* End co-routine yielding alternatives ***************/
455 // Open the i2c device, for low-level combined data write/read in i2cWriteRead()
459 lg2::error("Failed to open i2c bus: {BUS}", "BUS", i2cBus); in i2cWriteRead()
496 lg2::error("I2C WR Failed! {RET}", "RET", ret); in i2cWriteRead()
501 readBuf.resize(msgReadWrite.msgs[msgCount - 1].len); in i2cWriteRead()