Lines Matching refs:i2c_dev

22 	const struct device *i2c_dev;  member
75 if (!device_is_ready(config->i2c_dev)) { in smbus_stm32_init()
89 i2c_stm32_smbalert_set_callback(config->i2c_dev, smbus_stm32_smbalert_isr, dev); in smbus_stm32_init()
112 i2c_stm32_set_smbus_mode(config->i2c_dev, I2CSTM32MODE_SMBUSHOST); in smbus_stm32_configure()
115 i2c_stm32_set_smbus_mode(config->i2c_dev, I2CSTM32MODE_SMBUSDEVICE); in smbus_stm32_configure()
120 i2c_stm32_smbalert_enable(config->i2c_dev); in smbus_stm32_configure()
123 i2c_stm32_smbalert_disable(config->i2c_dev); in smbus_stm32_configure()
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()
157 return i2c_write(config->i2c_dev, &command, sizeof(command), periph_addr); in smbus_stm32_byte_write()
164 return i2c_read(config->i2c_dev, byte, sizeof(*byte), periph_addr); in smbus_stm32_byte_read()
176 return i2c_write(config->i2c_dev, buffer, ARRAY_SIZE(buffer), periph_addr); in smbus_stm32_byte_data_write()
184 return i2c_write_read(config->i2c_dev, periph_addr, &command, sizeof(command), byte, in smbus_stm32_byte_data_read()
197 return i2c_write(config->i2c_dev, buffer, ARRAY_SIZE(buffer), periph_addr); in smbus_stm32_word_data_write()
206 result = i2c_write_read(config->i2c_dev, periph_addr, &command, sizeof(command), word, in smbus_stm32_word_data_read()
223 result = i2c_write_read(config->i2c_dev, periph_addr, buffer, ARRAY_SIZE(buffer), recv_word, in smbus_stm32_pcall()
247 return i2c_transfer(config->i2c_dev, messages, ARRAY_SIZE(messages), periph_addr); in smbus_stm32_block_write()
280 .i2c_dev = DEVICE_DT_GET(DT_INST_PROP(n, i2c)), \