Home
last modified time | relevance | path

Searched refs:bytes1 (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/xen/
Devtchn.c201 unsigned int c, p, bytes1 = 0, bytes2 = 0; in evtchn_read() local
238 bytes1 = (u->ring_size - evtchn_ring_offset(u, c)) * in evtchn_read()
242 bytes1 = (p - c) * sizeof(evtchn_port_t); in evtchn_read()
247 if (bytes1 > count) { in evtchn_read()
248 bytes1 = count; in evtchn_read()
250 } else if ((bytes1 + bytes2) > count) { in evtchn_read()
251 bytes2 = count - bytes1; in evtchn_read()
256 if (copy_to_user(buf, evtchn_ring_entry(u, c), bytes1) || in evtchn_read()
258 copy_to_user(&buf[bytes1], &u->ring[0], bytes2))) in evtchn_read()
261 u->ring_cons += (bytes1 + bytes2) / sizeof(evtchn_port_t); in evtchn_read()
[all …]
/linux-4.4.14/sound/usb/
Dpcm.c1322 unsigned int bytes1 = in retire_capture_urb() local
1324 memcpy(runtime->dma_area + oldptr, cp, bytes1); in retire_capture_urb()
1325 memcpy(runtime->dma_area, cp + bytes1, bytes - bytes1); in retire_capture_urb()
1399 unsigned int bytes1 = in copy_to_urb() local
1402 runtime->dma_area + subs->hwptr_done, bytes1); in copy_to_urb()
1403 memcpy(urb->transfer_buffer + offset + bytes1, in copy_to_urb()
1404 runtime->dma_area, bytes - bytes1); in copy_to_urb()