Searched refs:bytes1 (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/drivers/xen/ |
D | evtchn.c | 167 unsigned int c, p, bytes1 = 0, bytes2 = 0; in evtchn_read() local 204 bytes1 = (EVTCHN_RING_SIZE - EVTCHN_RING_MASK(c)) * in evtchn_read() 208 bytes1 = (p - c) * sizeof(evtchn_port_t); in evtchn_read() 213 if (bytes1 > count) { in evtchn_read() 214 bytes1 = count; in evtchn_read() 216 } else if ((bytes1 + bytes2) > count) { in evtchn_read() 217 bytes2 = count - bytes1; in evtchn_read() 222 if (copy_to_user(buf, &u->ring[EVTCHN_RING_MASK(c)], bytes1) || in evtchn_read() 224 copy_to_user(&buf[bytes1], &u->ring[0], bytes2))) in evtchn_read() 227 u->ring_cons += (bytes1 + bytes2) / sizeof(evtchn_port_t); in evtchn_read() [all …]
|
/linux-4.1.27/sound/usb/ |
D | pcm.c | 1294 unsigned int bytes1 = in retire_capture_urb() local 1296 memcpy(runtime->dma_area + oldptr, cp, bytes1); in retire_capture_urb() 1297 memcpy(runtime->dma_area, cp + bytes1, bytes - bytes1); in retire_capture_urb() 1441 unsigned int bytes1 = in prepare_playback_urb() local 1444 runtime->dma_area + subs->hwptr_done, bytes1); in prepare_playback_urb() 1445 memcpy(urb->transfer_buffer + bytes1, in prepare_playback_urb() 1446 runtime->dma_area, bytes - bytes1); in prepare_playback_urb()
|