Home
last modified time | relevance | path

Searched refs:I2CInterface (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/phosphor-power/tools/i2c/
H A Di2c_interface.hpp44 class I2CInterface class
51 virtual ~I2CInterface() = default;
238 std::unique_ptr<I2CInterface> create(
240 I2CInterface::InitialState initialState = I2CInterface::InitialState::OPEN,
H A Di2c.hpp8 class I2CDevice : public I2CInterface
162 /** @copydoc I2CInterface::~I2CInterface() */
172 /** @copydoc I2CInterface::open() */
175 /** @copydoc I2CInterface::isOpen() */
181 /** @copydoc I2CInterface::close() */
184 /** @copydoc I2CInterface::read(uint8_t&) */
187 /** @copydoc I2CInterface::read(uint8_t,uint8_t&) */
190 /** @copydoc I2CInterface::read(uint8_t,uint16_t&) */
193 /** @copydoc I2CInterface
[all...]
/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Di2c_write_bytes_action_tests.cpp160 A<i2c::I2CInterface::Mode>())) in TEST()
163 write(0x7C, 3, NotNull(), i2c::I2CInterface::Mode::I2C)) in TEST()
195 i2c::I2CInterface::Mode::I2C)) in TEST()
199 write(0xA0, 2, NotNull(), i2c::I2CInterface::Mode::I2C)) in TEST()
240 i2c::I2CInterface::Mode::I2C)) in TEST()
244 write(0xA0, 1, NotNull(), i2c::I2CInterface::Mode::I2C)) in TEST()
305 i2c::I2CInterface::Mode::I2C)) in TEST()
311 A<i2c::I2CInterface::Mode>())) in TEST()
366 A<i2c::I2CInterface::Mode>())) in TEST()
369 write(0x7C, 3, NotNull(), i2c::I2CInterface::Mode::I2C)) in TEST()
H A Dset_device_action_tests.cpp47 std::unique_ptr<i2c::I2CInterface> i2cInterface = in TEST()
48 i2c::create(1, 0x70, i2c::I2CInterface::InitialState::CLOSED); in TEST()
57 i2c::create(1, 0x72, i2c::I2CInterface::InitialState::CLOSED); in TEST()
H A Di2c_capture_bytes_action_tests.cpp83 i2c::I2CInterface::Mode::I2C)) in TEST()
117 i2c::I2CInterface::Mode::I2C)) in TEST()
156 i2c::I2CInterface::Mode::I2C)) in TEST()
218 i2c::I2CInterface::Mode::I2C)) in TEST()
H A Di2c_compare_bytes_action_tests.cpp160 i2c::I2CInterface::Mode::I2C)) in TEST()
196 i2c::I2CInterface::Mode::I2C)) in TEST()
228 i2c::I2CInterface::Mode::I2C)) in TEST()
264 i2c::I2CInterface::Mode::I2C)) in TEST()
296 i2c::I2CInterface::Mode::I2C)) in TEST()
353 i2c::I2CInterface::Mode::I2C)) in TEST()
H A Daction_environment_tests.cpp45 std::unique_ptr<i2c::I2CInterface> i2cInterface = in TEST()
46 i2c::create(1, 0x70, i2c::I2CInterface::InitialState::CLOSED); in TEST()
150 std::unique_ptr<i2c::I2CInterface> i2cInterface = in TEST()
151 i2c::create(1, 0x70, i2c::I2CInterface::InitialState::CLOSED); in TEST()
/openbmc/phosphor-power/tools/power-utils/test/
H A Dtest_updater.cpp36 using I2CInterface = i2c::I2CInterface; typedef in TestUpdater
70 std::shared_ptr<I2CInterface> stolenI2C;
90 EXPECT_CALL(i2c, write(0xf0, 12, _, I2CInterface::Mode::SMBUS)); in TEST_F()
/openbmc/phosphor-power/phosphor-regulators/src/actions/
H A Di2c_write_bytes_action.cpp33 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
49 i2c::I2CInterface::Mode::I2C); in execute()
61 i2c::I2CInterface::Mode::I2C); in execute()
H A Dpmbus_write_vout_command_action.cpp38 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
47 // Write linear format value to VOUT_COMMAND. I2CInterface method in execute()
96 ActionEnvironment& environment, i2c::I2CInterface& interface) in getExponentValue()
149 i2c::I2CInterface& interface, in verifyWrite()
152 // Read current value of VOUT_COMMAND. I2CInterface method reads low byte in verifyWrite()
H A Di2c_action.hpp55 i2c::I2CInterface& getI2CInterface(ActionEnvironment& environment) in getI2CInterface()
61 i2c::I2CInterface& interface = device.getI2CInterface(); in getI2CInterface()
H A Di2c_compare_bytes_action.cpp36 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
39 interface.read(reg, size, actualValues, i2c::I2CInterface::Mode::I2C); in execute()
H A Dpmbus_write_vout_command_action.hpp196 i2c::I2CInterface& interface);
224 i2c::I2CInterface& interface, uint16_t valueWritten);
H A Dpmbus_read_sensor_action.cpp36 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
98 i2c::I2CInterface& interface) in getExponentValue()
H A Di2c_capture_bytes_action.cpp35 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
38 interface.read(reg, size, values, i2c::I2CInterface::Mode::I2C); in execute()
H A Di2c_compare_byte_action.cpp36 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
H A Di2c_compare_bit_action.cpp36 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
H A Di2c_write_bit_action.cpp35 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
H A Di2c_write_byte_action.cpp33 i2c::I2CInterface& interface = getI2CInterface(environment); in execute()
/openbmc/phosphor-power/phosphor-regulators/test/
H A Did_map_tests.cpp39 std::unique_ptr<i2c::I2CInterface> i2cInterface = in TEST()
40 i2c::create(1, 0x70, i2c::I2CInterface::InitialState::CLOSED); in TEST()
72 i2c::create(1, 0x72, i2c::I2CInterface::InitialState::CLOSED); in TEST()
178 std::unique_ptr<i2c::I2CInterface> i2cInterface = in TEST()
179 i2c::create(1, 0x70, i2c::I2CInterface::InitialState::CLOSED); in TEST()
H A Ddevice_tests.cpp98 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
99 i2c::I2CInterface* i2cInterfacePtr = i2cInterface.get(); in TEST_F()
114 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
115 i2c::I2CInterface* i2cInterfacePtr = i2cInterface.get(); in TEST_F()
225 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
463 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
484 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
551 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
602 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
629 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface(); in TEST_F()
[all …]
H A Dtest_utils.hpp44 inline std::unique_ptr<i2c::I2CInterface> createI2CInterface() in createI2CInterface()
46 return i2c::create(1, 0x70, i2c::I2CInterface::InitialState::CLOSED); in createI2CInterface()
72 std::unique_ptr<i2c::I2CInterface> i2cInterface = createI2CInterface();
/openbmc/phosphor-power/tools/i2c/test/
H A Dmocked_i2c_interface.cpp8 std::unique_ptr<I2CInterface> create(
10 I2CInterface::InitialState /*initialState*/, int /*maxRetries*/) in create()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Ddevice.hpp69 std::unique_ptr<i2c::I2CInterface> i2cInterface, in Device()
177 i2c::I2CInterface& getI2CInterface() in getI2CInterface()
287 std::unique_ptr<i2c::I2CInterface> i2cInterface{};
/openbmc/phosphor-power/tools/power-utils/
H A Dupdater.hpp125 i2c::I2CInterface* getI2C() in getI2C()
162 std::unique_ptr<i2c::I2CInterface> i2c;

12