Lines Matching refs:lencopy
102 int linesdone, lineoff, lencopy; in stk1160_copy_video() local
135 lencopy = remain; in stk1160_copy_video()
137 lencopy = bytesperline - lineoff; in stk1160_copy_video()
143 if (lencopy > buf->bytesused - buf->length) { in stk1160_copy_video()
144 lencopy = buf->bytesused - buf->length; in stk1160_copy_video()
145 remain = lencopy; in stk1160_copy_video()
149 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
153 if (lencopy < 0) { in stk1160_copy_video()
158 if ((unsigned long)dst + lencopy > in stk1160_copy_video()
164 memcpy(dst, src, lencopy); in stk1160_copy_video()
166 buf->bytesused += lencopy; in stk1160_copy_video()
167 buf->pos += lencopy; in stk1160_copy_video()
168 remain -= lencopy; in stk1160_copy_video()
173 dst += lencopy + bytesperline; in stk1160_copy_video()
174 src += lencopy; in stk1160_copy_video()
178 lencopy = remain; in stk1160_copy_video()
180 lencopy = bytesperline; in stk1160_copy_video()
186 if (lencopy > buf->bytesused - buf->length) { in stk1160_copy_video()
187 lencopy = buf->bytesused - buf->length; in stk1160_copy_video()
188 remain = lencopy; in stk1160_copy_video()
192 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
195 if (lencopy < 0) { in stk1160_copy_video()
200 if ((unsigned long)dst + lencopy > in stk1160_copy_video()
206 memcpy(dst, src, lencopy); in stk1160_copy_video()
207 remain -= lencopy; in stk1160_copy_video()
209 buf->bytesused += lencopy; in stk1160_copy_video()
210 buf->pos += lencopy; in stk1160_copy_video()