Lines Matching refs:buf_start
94 u32 buf_start, buf_end, new_n;
110 div_u64_rem(cur_pos, log->len_total, &buf_start);
119 /* if buf_start > buf_end, we wrapped around;
120 * if buf_start == buf_end, then we fill ubuf completely; we
121 * can't have buf_start == buf_end to mean that there is
125 if (buf_start < buf_end) {
127 if (copy_to_user(log->ubuf + buf_start,
129 buf_end - buf_start))
133 if (copy_to_user(log->ubuf + buf_start,
135 log->len_total - buf_start))