Lines Matching refs:read_length

165 	u8 read_length;  member
435 dev->read_length, size); in cp2112_read()
437 if (size > dev->read_length) in cp2112_read()
438 size = dev->read_length; in cp2112_read()
441 return dev->read_length; in cp2112_read()
508 int read_length) in cp2112_i2c_write_read_req() argument
512 if (read_length < 1 || read_length > 512 || in cp2112_i2c_write_read_req()
518 report->length = cpu_to_be16(read_length); in cp2112_i2c_write_read_req()
531 ssize_t read_length = 0; in cp2112_i2c_xfer() local
542 read_length = msgs->len; in cp2112_i2c_xfer()
559 read_length = msgs[1].len; in cp2112_i2c_xfer()
606 for (count = 0; count < read_length;) { in cp2112_i2c_xfer()
607 ret = cp2112_read(dev, read_buf + count, read_length - count); in cp2112_i2c_xfer()
616 if (count > read_length) { in cp2112_i2c_xfer()
626 ret, read_length - count + ret); in cp2112_i2c_xfer()
650 size_t read_length = 0; in cp2112_xfer() local
660 read_length = 1; in cp2112_xfer()
663 count = cp2112_read_req(buf, addr, read_length); in cp2112_xfer()
669 read_length = 1; in cp2112_xfer()
672 count = cp2112_write_read_req(buf, addr, read_length, in cp2112_xfer()
679 read_length = 2; in cp2112_xfer()
683 count = cp2112_write_read_req(buf, addr, read_length, in cp2112_xfer()
692 read_length = 2; in cp2112_xfer()
695 count = cp2112_write_read_req(buf, addr, read_length, command, in cp2112_xfer()
700 read_length = data->block[0]; in cp2112_xfer()
701 count = cp2112_write_read_req(buf, addr, read_length, in cp2112_xfer()
777 read_length = ret; in cp2112_xfer()
779 ret = cp2112_read(dev, buf, read_length); in cp2112_xfer()
782 if (ret != read_length) { in cp2112_xfer()
783 hid_warn(hdev, "short read: %d < %zd\n", ret, read_length); in cp2112_xfer()
797 if (read_length > I2C_SMBUS_BLOCK_MAX) { in cp2112_xfer()
802 memcpy(data->block + 1, buf, read_length); in cp2112_xfer()
805 if (read_length > I2C_SMBUS_BLOCK_MAX) { in cp2112_xfer()
810 memcpy(data->block, buf, read_length); in cp2112_xfer()
1462 dev->read_length = data[2]; in cp2112_raw_event()
1463 if (dev->read_length > sizeof(dev->read_data)) in cp2112_raw_event()
1464 dev->read_length = sizeof(dev->read_data); in cp2112_raw_event()
1466 memcpy(dev->read_data, &data[3], dev->read_length); in cp2112_raw_event()