Lines Matching refs:bytes_read
1510 ssize_t bytes_read = 0; in linereq_read() local
1524 if (bytes_read) in linereq_read()
1525 return bytes_read; in linereq_read()
1547 if (copy_to_user(buf + bytes_read, &le, sizeof(le))) in linereq_read()
1549 bytes_read += sizeof(le); in linereq_read()
1550 } while (count >= bytes_read + sizeof(le)); in linereq_read()
1552 return bytes_read; in linereq_read()
1843 ssize_t bytes_read = 0; in lineevent_read() local
1871 if (bytes_read) in lineevent_read()
1872 return bytes_read; in lineevent_read()
1894 if (copy_to_user(buf + bytes_read, &ge, ge_size)) in lineevent_read()
1896 bytes_read += ge_size; in lineevent_read()
1897 } while (count >= bytes_read + ge_size); in lineevent_read()
1899 return bytes_read; in lineevent_read()
2624 ssize_t bytes_read = 0; in lineinfo_watch_read() local
2642 if (bytes_read) in lineinfo_watch_read()
2643 return bytes_read; in lineinfo_watch_read()
2675 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2681 if (copy_to_user(buf + bytes_read, &event_v1, in lineinfo_watch_read()
2686 if (copy_to_user(buf + bytes_read, &event, event_size)) in lineinfo_watch_read()
2689 bytes_read += event_size; in lineinfo_watch_read()
2690 } while (count >= bytes_read + sizeof(event)); in lineinfo_watch_read()
2692 return bytes_read; in lineinfo_watch_read()