Lines Matching refs:bytes_read
1219 ssize_t bytes_read = 0; in linereq_read() local
1231 if (bytes_read) { in linereq_read()
1233 return bytes_read; in linereq_read()
1261 if (copy_to_user(buf + bytes_read, &le, sizeof(le))) in linereq_read()
1263 bytes_read += sizeof(le); in linereq_read()
1264 } while (count >= bytes_read + sizeof(le)); in linereq_read()
1266 return bytes_read; in linereq_read()
1524 ssize_t bytes_read = 0; in lineevent_read() local
1547 if (bytes_read) { in lineevent_read()
1549 return bytes_read; in lineevent_read()
1577 if (copy_to_user(buf + bytes_read, &ge, ge_size)) in lineevent_read()
1579 bytes_read += ge_size; in lineevent_read()
1580 } while (count >= bytes_read + ge_size); in lineevent_read()
1582 return bytes_read; in lineevent_read()
2209 ssize_t bytes_read = 0; in lineinfo_watch_read() local
2225 if (bytes_read) { in lineinfo_watch_read()
2227 return bytes_read; in lineinfo_watch_read()
2263 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2269 if (copy_to_user(buf + bytes_read, &event_v1, in lineinfo_watch_read()
2274 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2277 bytes_read += event_size; in lineinfo_watch_read()
2278 } while (count >= bytes_read + sizeof(event)); in lineinfo_watch_read()
2280 return bytes_read; in lineinfo_watch_read()