Searched refs:periph_addr (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/smbus/ |
D | smbus_stm32.c | 137 static int smbus_stm32_quick(const struct device *dev, uint16_t periph_addr, in smbus_stm32_quick() argument 144 return i2c_write(config->i2c_dev, NULL, 0, periph_addr); in smbus_stm32_quick() 146 return i2c_read(config->i2c_dev, NULL, 0, periph_addr); in smbus_stm32_quick() 153 static int smbus_stm32_byte_write(const struct device *dev, uint16_t periph_addr, uint8_t command) in smbus_stm32_byte_write() argument 157 return i2c_write(config->i2c_dev, &command, sizeof(command), periph_addr); in smbus_stm32_byte_write() 160 static int smbus_stm32_byte_read(const struct device *dev, uint16_t periph_addr, uint8_t *byte) in smbus_stm32_byte_read() argument 164 return i2c_read(config->i2c_dev, byte, sizeof(*byte), periph_addr); in smbus_stm32_byte_read() 167 static int smbus_stm32_byte_data_write(const struct device *dev, uint16_t periph_addr, in smbus_stm32_byte_data_write() argument 176 return i2c_write(config->i2c_dev, buffer, ARRAY_SIZE(buffer), periph_addr); in smbus_stm32_byte_data_write() 179 static int smbus_stm32_byte_data_read(const struct device *dev, uint16_t periph_addr, in smbus_stm32_byte_data_read() argument [all …]
|
D | intel_pch_smbus.c | 365 static int pch_smbus_block_start(const struct device *dev, uint16_t periph_addr, in pch_smbus_block_start() argument 372 LOG_DBG("addr %x rw %d command %x", periph_addr, rw, command); in pch_smbus_block_start() 375 reg = PCH_SMBUS_TSA_ADDR_SET(periph_addr); in pch_smbus_block_start() 419 static int pch_smbus_start(const struct device *dev, uint16_t periph_addr, in pch_smbus_start() argument 426 LOG_DBG("addr 0x%02x rw %d command %x", periph_addr, rw, command); in pch_smbus_start() 429 reg = PCH_SMBUS_TSA_ADDR_SET(periph_addr); in pch_smbus_start() 467 static int pch_smbus_quick(const struct device *dev, uint16_t periph_addr, in pch_smbus_quick() argument 473 LOG_DBG("dev %p addr 0x%02x direction %x", dev, periph_addr, rw); in pch_smbus_quick() 477 ret = pch_smbus_start(dev, periph_addr, rw, 0, NULL, SMBUS_CMD_QUICK); in pch_smbus_quick() 499 static int pch_smbus_byte_write(const struct device *dev, uint16_t periph_addr, in pch_smbus_byte_write() argument [all …]
|