Lines Matching refs:i2c_bus
86 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c24x0_i2c_set_bus_speed() local
88 i2c_bus->clock_frequency = speed; in s3c24x0_i2c_set_bus_speed()
90 i2c_ch_init(i2c_bus->regs, i2c_bus->clock_frequency, in s3c24x0_i2c_set_bus_speed()
210 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c24x0_i2c_probe() local
221 ret = i2c_transfer(i2c_bus->regs, I2C_READ, chip << 1, 0, 0, buf, 1); in s3c24x0_i2c_probe()
226 static int s3c24x0_do_msg(struct s3c24x0_i2c_bus *i2c_bus, struct i2c_msg *msg, in s3c24x0_do_msg() argument
229 struct s3c24x0_i2c *i2c = i2c_bus->regs; in s3c24x0_do_msg()
281 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c24x0_i2c_xfer() local
282 struct s3c24x0_i2c *i2c = i2c_bus->regs; in s3c24x0_i2c_xfer()
295 ret = s3c24x0_do_msg(i2c_bus, &msg[i], i); in s3c24x0_i2c_xfer()
307 struct s3c24x0_i2c_bus *i2c_bus = dev_get_priv(dev); in s3c_i2c_ofdata_to_platdata() local
312 i2c_bus->regs = (struct s3c24x0_i2c *)devfdt_get_addr(dev); in s3c_i2c_ofdata_to_platdata()
314 i2c_bus->id = pinmux_decode_periph_id(blob, node); in s3c_i2c_ofdata_to_platdata()
316 i2c_bus->clock_frequency = fdtdec_get_int(blob, node, in s3c_i2c_ofdata_to_platdata()
318 i2c_bus->node = node; in s3c_i2c_ofdata_to_platdata()
319 i2c_bus->bus_num = dev->seq; in s3c_i2c_ofdata_to_platdata()
321 exynos_pinmux_config(i2c_bus->id, 0); in s3c_i2c_ofdata_to_platdata()
323 i2c_bus->active = true; in s3c_i2c_ofdata_to_platdata()