Lines Matching defs:chip
273 static int mentor_i2c_probe(uint8_t chip)
285 ret = mentor_i2c_address_set(chip, I2C_CMD_WRITE);
390 static int mentor_i2c_target_offset_set(uint8_t chip, uint32_t addr, int alen)
480 * @chip: address of the chip which is to be read
481 * @addr: i2c data address within the chip
487 int i2c_read(uint8_t chip, uint32_t addr, int alen, uint8_t *buffer, int len)
493 mentor_i2c_probe(chip);
517 ret = mentor_i2c_address_set(chip, I2C_CMD_WRITE);
521 ret = mentor_i2c_target_offset_set(chip, addr, alen);
529 ret = mentor_i2c_address_set(chip, I2C_CMD_READ);
559 * @chip: address of the chip which is to be written
560 * @addr: i2c data address within the chip
566 int i2c_write(uint8_t chip, uint32_t addr, int alen, uint8_t *buffer, int len)
588 ret = mentor_i2c_address_set(chip, I2C_CMD_WRITE);
594 ret = mentor_i2c_target_offset_set(chip, addr, alen);