Lines Matching refs:total_read
829 int total_read; in __i2c_debugfs_read() local
845 total_read = i2c_read(ppd, target, i2c_addr, offset, buff, count); in __i2c_debugfs_read()
846 if (total_read < 0) { in __i2c_debugfs_read()
847 ret = total_read; in __i2c_debugfs_read()
851 *ppos += total_read; in __i2c_debugfs_read()
853 ret = copy_to_user(buf, buff, total_read); in __i2c_debugfs_read()
859 ret = total_read; in __i2c_debugfs_read()
934 int total_read; in __qsfp_debugfs_read() local
949 total_read = qsfp_read(ppd, target, *ppos, buff, count); in __qsfp_debugfs_read()
950 if (total_read < 0) { in __qsfp_debugfs_read()
951 ret = total_read; in __qsfp_debugfs_read()
955 *ppos += total_read; in __qsfp_debugfs_read()
957 ret = copy_to_user(buf, buff, total_read); in __qsfp_debugfs_read()
963 ret = total_read; in __qsfp_debugfs_read()