Lines Matching refs:buffer
131 uchar *buffer, int len, int read, bool is_last) in ihs_i2c_transfer() argument
133 static int ihs_i2c_transfer(uchar chip, uchar *buffer, int len, bool read, in ihs_i2c_transfer()
156 val = buffer[0]; in ihs_i2c_transfer()
159 val |= buffer[1] << 8; in ihs_i2c_transfer()
198 buffer[0] = val & 0xff; in ihs_i2c_transfer()
200 buffer[1] = val >> 8; in ihs_i2c_transfer()
252 int alen, uchar *buffer, int len, int read) in ihs_i2c_access() argument
255 int alen, uchar *buffer, int len, int read) in ihs_i2c_access()
273 return ihs_i2c_send_buffer(dev, chip, buffer, len, false, read); in ihs_i2c_access()
275 return ihs_i2c_send_buffer(chip, buffer, len, false, read); in ihs_i2c_access()
332 uchar buffer[2]; in ihs_i2c_probe_chip() local
335 res = ihs_i2c_transfer(bus, chip_addr, buffer, 0, I2COP_READ, true); in ihs_i2c_probe_chip()
378 uchar buffer[2]; in ihs_i2c_probe() local
381 res = ihs_i2c_transfer(chip, buffer, 0, I2COP_READ, true); in ihs_i2c_probe()
389 int alen, uchar *buffer, int len) in ihs_i2c_read() argument
395 return ihs_i2c_access(adap, chip, addr_bytes, alen, buffer, len, in ihs_i2c_read()
400 int alen, uchar *buffer, int len) in ihs_i2c_write() argument
406 return ihs_i2c_access(adap, chip, addr_bytes, alen, buffer, len, in ihs_i2c_write()