Home
last modified time | relevance | path

Searched refs:i2cbus (Results 1 – 15 of 15) sorted by relevance

/openbmc/phosphor-power/tools/power-utils/
H A Dutils.cpp58 std::optional<std::uint64_t> i2cbus; in getPsuI2c() local
89 i2cbus = std::get<uint64_t>(properties.at(i2cBusProp)); in getPsuI2c()
106 if (i2cbus.has_value() && i2caddr.has_value()) in getPsuI2c()
113 if (!i2cbus.has_value() || !i2caddr.has_value()) in getPsuI2c()
118 return std::make_tuple(*i2cbus, *i2caddr); in getPsuI2c()
207 const auto [i2cbus, i2caddr] = getPsuI2c(bus, psuInventoryPath); in getDevicePath()
212 std::string busStr = std::to_string(i2cbus); in getDevicePath()
H A Dversion.cpp138 const auto [i2cbus, i2caddr] = getPsuI2c(bus, psuInventoryPath); in getVersionDbus()
139 auto pmbus = getPmbusIntf(i2cbus, i2caddr); in getVersionDbus()
/openbmc/ipmitool/lib/
H A Dipmi_gendev.c211 uint8_t i2cbus = dev->bus; in ipmi_gendev_read_file() local
242 i2cbus = ((channel & 0xF) << 4) | ((i2cbus & 7) << 1) | privatebus; in ipmi_gendev_read_file()
276 i2cbus, in ipmi_gendev_read_file()
404 uint8_t i2cbus = dev->bus; in ipmi_gendev_write_file() local
435 i2cbus = ((channel & 0xF) << 4) | ((i2cbus & 7) << 1) | privatebus; in ipmi_gendev_write_file()
478 …rsp = ipmi_master_write_read(intf, i2cbus, i2caddr, (uint8_t *) wrByte, eeprom_info.address_length… in ipmi_gendev_write_file()
H A Dipmi_raw.c141 uint8_t i2cbus = 0; in ipmi_rawspd_main() local
153 if (is_valid_param(argv[0], &i2cbus, "i2cbus") != 0) in ipmi_rawspd_main()
169 i2cbus = ((channel & 0xF) << 4) | ((i2cbus & 7) << 1) | 1; in ipmi_rawspd_main()
172 rsp = ipmi_master_write_read(intf, i2cbus, i2caddr, in ipmi_rawspd_main()
/openbmc/phosphor-power/phosphor-power-supply/
H A Dpsu_manager.cpp191 uint64_t* i2cbus = nullptr; in getPSUProperties() local
202 i2cbus = std::get_if<uint64_t>(&properties[i2cBusProp]); in getPSUProperties()
222 if ((i2cbus) && (i2caddr) && (psuname) && (!psuname->empty())) in getPSUProperties()
250 buildDriverName(*i2cbus, *i2caddr); in getPSUProperties()
253 *i2cbus, *i2caddr, presline) in getPSUProperties()
256 bus, invpath, *i2cbus, *i2caddr, driverName, presline, in getPSUProperties()
1314 void PSUManager::buildDriverName(uint64_t i2cbus, uint64_t i2caddr) in buildDriverName() argument
1320 deviceDirPath + std::to_string(i2cbus) + "-" + ss.str() + driverDirName; in buildDriverName()
H A Dpsu_manager.hpp411 void buildDriverName(uint64_t i2cbus, uint64_t i2caddr);
H A Dpower_supply.cpp28 sdbusplus::bus_t& bus, const std::string& invpath, std::uint8_t i2cbus, in PowerSupply() argument
54 std::string busStr = std::to_string(i2cbus); in PowerSupply()
59 pmbusIntf = phosphor::pmbus::createPMBus(i2cbus, addrStr); in PowerSupply()
H A Dpower_supply.hpp94 std::uint8_t i2cbus, const std::uint16_t i2caddr,
/openbmc/u-boot/board/freescale/common/
H A Dpfuze.c50 struct pmic *pfuze_common_init(unsigned char i2cbus) in pfuze_common_init() argument
56 ret = power_pfuze100_init(i2cbus); in pfuze_common_init()
H A Dpfuze.h13 struct pmic *pfuze_common_init(unsigned char i2cbus);
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_dvo_dev.h54 struct i2c_adapter *i2cbus);
/openbmc/u-boot/board/samtec/vining_2000/
H A Dvining_2000.c188 static struct pmic *pfuze_init(unsigned char i2cbus) in pfuze_init() argument
194 ret = power_pfuze100_init(i2cbus); in pfuze_init()
/openbmc/u-boot/drivers/i2c/
H A Dstm32f7_i2c.c561 u32 i2cbus = DIV_ROUND_CLOSEST(STM32_NSEC_PER_SEC, in stm32_i2c_choose_solution() local
563 u32 clk_error_prev = i2cbus; in stm32_i2c_choose_solution()
612 int clk_error = tscl - i2cbus; in stm32_i2c_choose_solution()
/openbmc/qemu/hw/display/
H A Dati.c1001 I2CBus *i2cbus = i2c_init_bus(DEVICE(s), "ati-vga.ddc"); in ati_vga_realize() local
1002 bitbang_i2c_init(&s->bbi2c, i2cbus); in ati_vga_realize()
1005 qdev_realize_and_unref(DEVICE(i2cddc), BUS(i2cbus), &error_abort); in ati_vga_realize()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-stm32f7.c455 u32 i2cbus = DIV_ROUND_CLOSEST(NSEC_PER_SEC, in stm32f7_i2c_compute_timing() local
457 u32 clk_error_prev = i2cbus; in stm32f7_i2c_compute_timing()
596 int clk_error = tscl - i2cbus; in stm32f7_i2c_compute_timing()