Searched refs:ioctl_data (Results 1 – 1 of 1) sorted by relevance
109 struct i2c_smbus_ioctl_data ioctl_data; in i2c_read_byte() local113 ioctl_data.read_write = I2C_SMBUS_READ; in i2c_read_byte()114 ioctl_data.size = I2C_SMBUS_BYTE_DATA; in i2c_read_byte()115 ioctl_data.command = addr; in i2c_read_byte()116 ioctl_data.data = &data; in i2c_read_byte()117 if (ioctl(fd, I2C_SMBUS, &ioctl_data) == -1) return -1; in i2c_read_byte()285 struct i2c_smbus_ioctl_data ioctl_data; in i2cset_main() local291 ioctl_data.size = I2C_SMBUS_BYTE_DATA; in i2cset_main()294 ioctl_data.size = I2C_SMBUS_WORD_DATA; in i2cset_main()298 ioctl_data.size = I2C_SMBUS_I2C_BLOCK_DATA; in i2cset_main()[all …]