Lines Matching full:bus
7 * Bus-specific functionality for MMC56X3s accessed via I2C.
12 static int mmc56x3_bus_check_i2c(const union mmc56x3_bus *bus) in mmc56x3_bus_check_i2c() argument
14 return device_is_ready(bus->i2c.bus) ? 0 : -ENODEV; in mmc56x3_bus_check_i2c()
17 static int mmc56x3_reg_read_i2c(const union mmc56x3_bus *bus, uint8_t reg, uint8_t *buf, int size) in mmc56x3_reg_read_i2c() argument
19 return i2c_burst_read_dt(&bus->i2c, reg, buf, size); in mmc56x3_reg_read_i2c()
22 static int mmc56x3_reg_write_i2c(const union mmc56x3_bus *bus, uint8_t reg, uint8_t val) in mmc56x3_reg_write_i2c() argument
24 return i2c_reg_write_byte_dt(&bus->i2c, reg, val); in mmc56x3_reg_write_i2c()
27 static int mmc56x3_raw_read_i2c(const union mmc56x3_bus *bus, uint8_t *buf, size_t size) in mmc56x3_raw_read_i2c() argument
29 return i2c_read_dt(&bus->i2c, buf, size); in mmc56x3_raw_read_i2c()
32 static int mmc56x3_raw_write_i2c(const union mmc56x3_bus *bus, uint8_t *buf, size_t size) in mmc56x3_raw_write_i2c() argument
34 return i2c_write_dt(&bus->i2c, buf, size); in mmc56x3_raw_write_i2c()