Lines Matching refs:offset_len
61 int offset_len = chip->offset_len; in i2c_setup_offset() local
65 msg->addr |= (offset >> (8 * offset_len)) & in i2c_setup_offset()
68 msg->len = chip->offset_len; in i2c_setup_offset()
70 if (!offset_len) in i2c_setup_offset()
72 assert(offset_len <= I2C_MAX_OFFSET_LEN); in i2c_setup_offset()
74 while (offset_len--) in i2c_setup_offset()
75 *offset_buf++ = offset >> (8 * offset_len); in i2c_setup_offset()
205 memcpy(buf + chip->offset_len, buffer, len); in dm_i2c_write()
292 static int i2c_bind_driver(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_bind_driver() argument
312 chip->offset_len = offset_len; in i2c_bind_driver()
332 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_get_chip() argument
355 return i2c_bind_driver(bus, chip_addr, offset_len, devp); in i2c_get_chip()
358 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len, in i2c_get_chip_for_busnum() argument
380 ret = i2c_get_chip(bus, chip_addr, offset_len, devp); in i2c_get_chip_for_busnum()
544 int i2c_set_chip_offset_len(struct udevice *dev, uint offset_len) in i2c_set_chip_offset_len() argument
548 if (offset_len > I2C_MAX_OFFSET_LEN) in i2c_set_chip_offset_len()
550 chip->offset_len = offset_len; in i2c_set_chip_offset_len()
559 return chip->offset_len; in i2c_get_chip_offset_len()
709 chip->offset_len = dev_read_u32_default(dev, "u-boot,i2c-offset-len", in i2c_chip_of_to_plat()