Lines Matching refs:offset_len
55 int offset_len; in i2c_setup_offset() local
59 msg->len = chip->offset_len; in i2c_setup_offset()
61 if (!chip->offset_len) in i2c_setup_offset()
63 assert(chip->offset_len <= I2C_MAX_OFFSET_LEN); in i2c_setup_offset()
64 offset_len = chip->offset_len; in i2c_setup_offset()
65 while (offset_len--) in i2c_setup_offset()
66 *offset_buf++ = offset >> (8 * offset_len); in i2c_setup_offset()
190 memcpy(buf + chip->offset_len, buffer, len); in dm_i2c_write()
202 memcpy(buf + chip->offset_len, buffer, len); in dm_i2c_write()
274 static int i2c_bind_driver(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_bind_driver() argument
294 chip->offset_len = offset_len; in i2c_bind_driver()
314 int i2c_get_chip(struct udevice *bus, uint chip_addr, uint offset_len, in i2c_get_chip() argument
336 return i2c_bind_driver(bus, chip_addr, offset_len, devp); in i2c_get_chip()
339 int i2c_get_chip_for_busnum(int busnum, int chip_addr, uint offset_len, in i2c_get_chip_for_busnum() argument
350 ret = i2c_get_chip(bus, chip_addr, offset_len, devp); in i2c_get_chip_for_busnum()
439 int i2c_set_chip_offset_len(struct udevice *dev, uint offset_len) in i2c_set_chip_offset_len() argument
443 if (offset_len > I2C_MAX_OFFSET_LEN) in i2c_set_chip_offset_len()
445 chip->offset_len = offset_len; in i2c_set_chip_offset_len()
454 return chip->offset_len; in i2c_get_chip_offset_len()
570 chip->offset_len = dev_read_u32_default(dev, "u-boot,i2c-offset-len", in i2c_chip_ofdata_to_platdata()