Searched refs:len_part (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/media/usb/usbvision/ |
H A D | usbvision-core.c | 214 int len_part; scratch_put() local 220 len_part = scratch_buf_size - usbvision->scratch_write_ptr; scratch_put() 221 memcpy(usbvision->scratch + usbvision->scratch_write_ptr, data, len_part); scratch_put() 222 if (len == len_part) { scratch_put() 225 memcpy(usbvision->scratch, data + len_part, len - len_part); scratch_put() 226 usbvision->scratch_write_ptr = len - len_part; scratch_put() 250 int len_part; scratch_get_extra() local 256 len_part = scratch_buf_size - *ptr; scratch_get_extra() 257 memcpy(data, usbvision->scratch + *ptr, len_part); scratch_get_extra() 258 if (len == len_part) { scratch_get_extra() 261 memcpy(data + len_part, usbvision->scratch, len - len_part); scratch_get_extra() 262 *ptr = len - len_part; scratch_get_extra() 295 int len_part; scratch_get() local 301 len_part = scratch_buf_size - usbvision->scratch_read_ptr; scratch_get() 302 memcpy(data, usbvision->scratch + usbvision->scratch_read_ptr, len_part); scratch_get() 303 if (len == len_part) { scratch_get() 306 memcpy(data + len_part, usbvision->scratch, len - len_part); scratch_get() 307 usbvision->scratch_read_ptr = len - len_part; scratch_get()
|
Completed in 92 milliseconds