Lines Matching refs:total_read
781 int total_read; in __i2c_debugfs_read() local
797 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
798 if (total_read < 0) { in __i2c_debugfs_read()
799 ret = total_read; in __i2c_debugfs_read()
803 *ppos += total_read; in __i2c_debugfs_read()
805 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
811 ret = total_read; in __i2c_debugfs_read()
886 int total_read; in __qsfp_debugfs_read() local
901 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
902 if (total_read < 0) { in __qsfp_debugfs_read()
903 ret = total_read; in __qsfp_debugfs_read()
907 *ppos += total_read; in __qsfp_debugfs_read()
909 ret = copy_to_user(buf, buff, total_read); in __qsfp_debugfs_read()
915 ret = total_read; in __qsfp_debugfs_read()