Lines Matching refs:command
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()
168 uint8_t command, uint8_t byte) in smbus_stm32_byte_data_write() argument
172 command, in smbus_stm32_byte_data_write()
180 uint8_t command, uint8_t *byte) in smbus_stm32_byte_data_read() argument
184 return i2c_write_read(config->i2c_dev, periph_addr, &command, sizeof(command), byte, in smbus_stm32_byte_data_read()
189 uint8_t command, uint16_t word) in smbus_stm32_word_data_write() argument
192 uint8_t buffer[sizeof(command) + sizeof(word)]; in smbus_stm32_word_data_write()
194 buffer[0] = command; in smbus_stm32_word_data_write()
201 uint8_t command, uint16_t *word) in smbus_stm32_word_data_read() argument
206 result = i2c_write_read(config->i2c_dev, periph_addr, &command, sizeof(command), word, in smbus_stm32_word_data_read()
213 static int smbus_stm32_pcall(const struct device *dev, uint16_t periph_addr, uint8_t command, in smbus_stm32_pcall() argument
217 uint8_t buffer[sizeof(command) + sizeof(send_word)]; in smbus_stm32_pcall()
220 buffer[0] = command; in smbus_stm32_pcall()
230 static int smbus_stm32_block_write(const struct device *dev, uint16_t periph_addr, uint8_t command, in smbus_stm32_block_write() argument
236 .buf = &command, in smbus_stm32_block_write()
237 .len = sizeof(command), in smbus_stm32_block_write()