Lines Matching refs:bytes_read
1231 ssize_t bytes_read = 0; in linereq_read() local
1240 if (bytes_read) { in linereq_read()
1242 return bytes_read; in linereq_read()
1270 if (copy_to_user(buf + bytes_read, &le, sizeof(le))) in linereq_read()
1272 bytes_read += sizeof(le); in linereq_read()
1273 } while (count >= bytes_read + sizeof(le)); in linereq_read()
1275 return bytes_read; in linereq_read()
1519 ssize_t bytes_read = 0; in lineevent_read() local
1542 if (bytes_read) { in lineevent_read()
1544 return bytes_read; in lineevent_read()
1572 if (copy_to_user(buf + bytes_read, &ge, ge_size)) in lineevent_read()
1574 bytes_read += ge_size; in lineevent_read()
1575 } while (count >= bytes_read + ge_size); in lineevent_read()
1577 return bytes_read; in lineevent_read()
2199 ssize_t bytes_read = 0; in lineinfo_watch_read() local
2212 if (bytes_read) { in lineinfo_watch_read()
2214 return bytes_read; in lineinfo_watch_read()
2250 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2256 if (copy_to_user(buf + bytes_read, &event_v1, in lineinfo_watch_read()
2261 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2264 bytes_read += event_size; in lineinfo_watch_read()
2265 } while (count >= bytes_read + sizeof(event)); in lineinfo_watch_read()
2267 return bytes_read; in lineinfo_watch_read()