Lines Matching refs:lencopy
102 int linesdone, lineoff, lencopy, offset; in stk1160_copy_video() local
133 lencopy = min(remain, bytesperline - lineoff); in stk1160_copy_video()
144 if (lencopy > buf->length - offset) { in stk1160_copy_video()
145 lencopy = buf->length - offset; in stk1160_copy_video()
146 remain = lencopy; in stk1160_copy_video()
150 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
154 if (lencopy < 0) { in stk1160_copy_video()
159 if ((unsigned long)dst + lencopy > in stk1160_copy_video()
165 memcpy(dst, src, lencopy); in stk1160_copy_video()
167 buf->bytesused += lencopy; in stk1160_copy_video()
168 buf->pos += lencopy; in stk1160_copy_video()
169 remain -= lencopy; in stk1160_copy_video()
174 dst += lencopy + bytesperline; in stk1160_copy_video()
175 src += lencopy; in stk1160_copy_video()
178 lencopy = min(remain, bytesperline); in stk1160_copy_video()
189 if (lencopy > buf->length - offset) { in stk1160_copy_video()
190 lencopy = buf->length - offset; in stk1160_copy_video()
191 remain = lencopy; in stk1160_copy_video()
195 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
198 if (lencopy < 0) { in stk1160_copy_video()
203 if ((unsigned long)dst + lencopy > in stk1160_copy_video()
209 memcpy(dst, src, lencopy); in stk1160_copy_video()
210 remain -= lencopy; in stk1160_copy_video()
212 buf->bytesused += lencopy; in stk1160_copy_video()
213 buf->pos += lencopy; in stk1160_copy_video()