Lines Matching refs:total_read
759 int total_read; in __i2c_debugfs_read() local
775 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
776 if (total_read < 0) { in __i2c_debugfs_read()
777 ret = total_read; in __i2c_debugfs_read()
781 *ppos += total_read; in __i2c_debugfs_read()
783 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
789 ret = total_read; in __i2c_debugfs_read()
864 int total_read; in __qsfp_debugfs_read() local
879 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
880 if (total_read < 0) { in __qsfp_debugfs_read()
881 ret = total_read; in __qsfp_debugfs_read()
885 *ppos += total_read; in __qsfp_debugfs_read()
887 ret = copy_to_user(buf, buff, total_read); in __qsfp_debugfs_read()
893 ret = total_read; in __qsfp_debugfs_read()