Lines Matching defs:chip
89 static int i2c_open(int bus, int slave, int chip)
95 if (slave) xioctl(fd, slave, (void *)(long)chip);
240 int chip = atolx_range(toys.optargs[1], 0, 0x7f);
243 confirm("Dump chip 0x%02x on bus %d?", chip, bus);
245 fd = i2c_open(bus, FLAG(f) ? I2C_SLAVE_FORCE : I2C_SLAVE, chip);
269 int chip = atolx_range(toys.optargs[1], 0, 0x7f);
273 confirm("Read register 0x%02x from chip 0x%02x on bus %d?", addr, chip, bus);
275 fd = i2c_open(bus, FLAG(f) ? I2C_SLAVE_FORCE : I2C_SLAVE, chip);
288 int chip = atolx_range(toys.optargs[1], 0, 0x7f);
311 confirm("Write register 0x%02x from chip 0x%02x on bus %d?", addr, chip, bus);
313 fd = i2c_open(bus, FLAG(f) ? I2C_SLAVE_FORCE : I2C_SLAVE, chip);