Lines Matching refs:chip
87 static int i2c_open(int bus, int slave, int chip) in i2c_open() argument
93 if (slave) xioctl(fd, slave, (void *)(long)chip); in i2c_open()
236 int chip = atolx_range(toys.optargs[1], 0, 0x7f); in i2cdump_main() local
239 confirm("Dump chip 0x%02x on bus %d?", chip, bus); in i2cdump_main()
241 fd = i2c_open(bus, (toys.optflags&FLAG_f)?I2C_SLAVE_FORCE:I2C_SLAVE, chip); in i2cdump_main()
262 int chip = atolx_range(toys.optargs[1], 0, 0x7f); in i2cget_main() local
266 confirm("Read register 0x%02x from chip 0x%02x on bus %d?", addr, chip, bus); in i2cget_main()
268 fd = i2c_open(bus, (toys.optflags&FLAG_f)?I2C_SLAVE_FORCE:I2C_SLAVE, chip); in i2cget_main()
281 int chip = atolx_range(toys.optargs[1], 0, 0x7f); in i2cset_main() local
306 confirm("Write register 0x%02x from chip 0x%02x on bus %d?", addr, chip, bus); in i2cset_main()
308 fd = i2c_open(bus, (toys.optflags&FLAG_f)?I2C_SLAVE_FORCE:I2C_SLAVE, chip); in i2cset_main()