Lines Matching refs:bytes_read
1206 ssize_t bytes_read = 0; in linereq_read() local
1215 if (bytes_read) { in linereq_read()
1217 return bytes_read; in linereq_read()
1245 if (copy_to_user(buf + bytes_read, &le, sizeof(le))) in linereq_read()
1247 bytes_read += sizeof(le); in linereq_read()
1248 } while (count >= bytes_read + sizeof(le)); in linereq_read()
1250 return bytes_read; in linereq_read()
1505 ssize_t bytes_read = 0; in lineevent_read() local
1525 if (bytes_read) { in lineevent_read()
1527 return bytes_read; in lineevent_read()
1555 if (copy_to_user(buf + bytes_read, &ge, ge_size)) in lineevent_read()
1557 bytes_read += ge_size; in lineevent_read()
1558 } while (count >= bytes_read + ge_size); in lineevent_read()
1560 return bytes_read; in lineevent_read()
2176 ssize_t bytes_read = 0; in lineinfo_watch_read() local
2189 if (bytes_read) { in lineinfo_watch_read()
2191 return bytes_read; in lineinfo_watch_read()
2227 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2233 if (copy_to_user(buf + bytes_read, &event_v1, in lineinfo_watch_read()
2238 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2241 bytes_read += event_size; in lineinfo_watch_read()
2242 } while (count >= bytes_read + sizeof(event)); in lineinfo_watch_read()
2244 return bytes_read; in lineinfo_watch_read()