Lines Matching refs:ret
114 ssize_t ret = via(user, buffer, count);
115 if (ret > 0) {
116 ALOG_ASSERT((size_t) ret <= count);
117 size_t maxRet = ret;
118 ret = write(buffer, maxRet);
119 if (ret > 0) {
120 ALOG_ASSERT((size_t) ret <= maxRet);
121 accumulator += ret;
125 return accumulator > 0 ? accumulator : ret;
151 ssize_t ret = read(buffer, count, readPTS);
152 if (ret > 0) {
153 ALOG_ASSERT((size_t) ret <= count);
154 size_t maxRet = ret;
155 ret = via(user, buffer, maxRet, readPTS);
156 if (ret > 0) {
157 ALOG_ASSERT((size_t) ret <= maxRet);
158 accumulator += ret;
162 return accumulator > 0 ? accumulator : ret;