Lines Matching refs:i2c_bus
88 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c24x0_i2c_set_bus_speed() local
90 i2c_bus->clock_frequency = speed; in s3c24x0_i2c_set_bus_speed()
92 i2c_ch_init(i2c_bus->regs, i2c_bus->clock_frequency, in s3c24x0_i2c_set_bus_speed()
212 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c24x0_i2c_probe() local
223 ret = i2c_transfer(i2c_bus->regs, I2C_READ, chip << 1, 0, 0, buf, 1); in s3c24x0_i2c_probe()
228 static int s3c24x0_do_msg(struct s3c24x0_i2c_bus *i2c_bus, struct i2c_msg *msg, in s3c24x0_do_msg() argument
231 struct s3c24x0_i2c *i2c = i2c_bus->regs; in s3c24x0_do_msg()
283 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c24x0_i2c_xfer() local
284 struct s3c24x0_i2c *i2c = i2c_bus->regs; in s3c24x0_i2c_xfer()
297 ret = s3c24x0_do_msg(i2c_bus, &msg[i], i); in s3c24x0_i2c_xfer()
309 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c_i2c_of_to_plat() local
314 i2c_bus->regs = dev_read_addr_ptr(dev); in s3c_i2c_of_to_plat()
316 i2c_bus->id = pinmux_decode_periph_id(blob, node); in s3c_i2c_of_to_plat()
318 i2c_bus->clock_frequency = in s3c_i2c_of_to_plat()
321 i2c_bus->node = node; in s3c_i2c_of_to_plat()
322 i2c_bus->bus_num = dev_seq(dev); in s3c_i2c_of_to_plat()
324 exynos_pinmux_config(i2c_bus->id, 0); in s3c_i2c_of_to_plat()
326 i2c_bus->active = true; in s3c_i2c_of_to_plat()