Lines Matching refs:d

224     i2c_smbus_data_t d;  in mraa_i2c_read_byte()  local
225 if (mraa_i2c_smbus_access(dev->fh, I2C_SMBUS_READ, I2C_NOCMD, I2C_SMBUS_BYTE, &d) < 0) { in mraa_i2c_read_byte()
229 return 0x0FF & d.byte; in mraa_i2c_read_byte()
237 i2c_smbus_data_t d; in mraa_i2c_read_byte_data() local
238 if (mraa_i2c_smbus_access(dev->fh, I2C_SMBUS_READ, command, I2C_SMBUS_BYTE_DATA, &d) < 0) { in mraa_i2c_read_byte_data()
242 return 0x0FF & d.byte; in mraa_i2c_read_byte_data()
250 i2c_smbus_data_t d; in mraa_i2c_read_word_data() local
251 if (mraa_i2c_smbus_access(dev->fh, I2C_SMBUS_READ, command, I2C_SMBUS_WORD_DATA, &d) < 0) { in mraa_i2c_read_word_data()
255 return 0xFFFF & d.word; in mraa_i2c_read_word_data()
263 struct i2c_rdwr_ioctl_data d; in mraa_i2c_read_bytes_data() local
275 d.msgs = m; in mraa_i2c_read_bytes_data()
276 d.nmsgs = 2; in mraa_i2c_read_bytes_data()
278 return ioctl(dev->fh, I2C_RDWR, &d) < 0 ? -1 : length; in mraa_i2c_read_bytes_data()
286 i2c_smbus_data_t d; in mraa_i2c_write() local
297 d.block[i] = data[i - 1]; in mraa_i2c_write()
299 d.block[0] = length; in mraa_i2c_write()
301 return mraa_i2c_smbus_access(dev->fh, I2C_SMBUS_WRITE, command, I2C_SMBUS_I2C_BLOCK_DATA, &d); in mraa_i2c_write()
323 i2c_smbus_data_t d; in mraa_i2c_write_byte_data() local
324 d.byte = data; in mraa_i2c_write_byte_data()
325 if (mraa_i2c_smbus_access(dev->fh, I2C_SMBUS_WRITE, command, I2C_SMBUS_BYTE_DATA, &d) < 0) { in mraa_i2c_write_byte_data()
337 i2c_smbus_data_t d; in mraa_i2c_write_word_data() local
338 d.word = data; in mraa_i2c_write_word_data()
339 if (mraa_i2c_smbus_access(dev->fh, I2C_SMBUS_WRITE, command, I2C_SMBUS_WORD_DATA, &d) < 0) { in mraa_i2c_write_word_data()