Home
last modified time | relevance | path

Searched refs:cnt_to_end (Results 1 – 2 of 2) sorted by relevance

/drivers/video/adf/
Dadf_fops.c864 size_t cnt, cnt_to_end, copy_size = 0; in adf_file_copy_to_user() local
882 cnt_to_end = CIRC_CNT_TO_END(head, tail, sizeof(fpriv->event_buf)); in adf_file_copy_to_user()
885 if (cnt_to_end >= copy_size) { in adf_file_copy_to_user()
888 memcpy(event_buf, fpriv->event_buf + tail, cnt_to_end); in adf_file_copy_to_user()
889 memcpy(event_buf + cnt_to_end, fpriv->event_buf, in adf_file_copy_to_user()
890 copy_size - cnt_to_end); in adf_file_copy_to_user()
/drivers/tty/serial/
Dpch_uart.c798 int cnt_to_end = in pop_tx() local
800 int sz = min(size - count, cnt_to_end); in pop_tx()