Lines Matching refs:total_read
787 int total_read; in __i2c_debugfs_read() local
803 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
804 if (total_read < 0) { in __i2c_debugfs_read()
805 ret = total_read; in __i2c_debugfs_read()
809 *ppos += total_read; in __i2c_debugfs_read()
811 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
817 ret = total_read; in __i2c_debugfs_read()
892 int total_read; in __qsfp_debugfs_read() local
907 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
908 if (total_read < 0) { in __qsfp_debugfs_read()
909 ret = total_read; in __qsfp_debugfs_read()
913 *ppos += total_read; in __qsfp_debugfs_read()
915 ret = copy_to_user(buf, buff, total_read); in __qsfp_debugfs_read()
921 ret = total_read; in __qsfp_debugfs_read()