Searched refs:cnt_to_end (Results 1 – 2 of 2) sorted by relevance
864 size_t cnt, cnt_to_end, copy_size = 0; in adf_file_copy_to_user() local882 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()
798 int cnt_to_end = in pop_tx() local800 int sz = min(size - count, cnt_to_end); in pop_tx()