• Home
  • Raw
  • Download

Lines Matching refs:bus

87 static int i2c_open(int bus, int slave, int chip)  in i2c_open()  argument
91 snprintf(toybuf, sizeof(toybuf), "/dev/i2c-%d", bus); in i2c_open()
97 static unsigned long i2c_get_funcs(int bus) in i2c_get_funcs() argument
99 int fd = i2c_open(bus, 0, 0); in i2c_get_funcs()
122 static void i2cdetect_dash_F(int bus) in i2cdetect_dash_F() argument
143 unsigned long supported = i2c_get_funcs(bus); in i2cdetect_dash_F()
155 int bus; in i2cdetect_dash_l() local
161 if (sscanf(node->name, "i2c-%d", &bus) != 1) return 0; in i2cdetect_dash_l()
162 funcs = i2c_get_funcs(bus); in i2cdetect_dash_l()
188 int bus, first = 0x03, last = 0x77, fd, row, addr, byte; in i2cdetect_main() local
196 bus = atolx_range(*toys.optargs, 0, INT_MAX); in i2cdetect_main()
203 confirm("Probe chips 0x%02x-0x%02x on bus %d?", first, last, bus); in i2cdetect_main()
205 fd = i2c_open(bus, 0, 0); in i2cdetect_main()
235 int bus = atolx_range(toys.optargs[0], 0, INT_MAX); 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()
261 int bus = atolx_range(toys.optargs[0], 0, INT_MAX); 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()
280 int bus = atolx_range(toys.optargs[0], 0, INT_MAX); 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()