Searched refs:bytes1 (Results 1 – 1 of 1) sorted by relevance
245 unsigned int c, p, bytes1 = 0, bytes2 = 0; in evtchn_read() local285 bytes1 = (EVTCHN_RING_SIZE - EVTCHN_RING_MASK(c)) * in evtchn_read()289 bytes1 = (p - c) * sizeof(evtchn_port_t); in evtchn_read()294 if (bytes1 > count) { in evtchn_read()295 bytes1 = count; in evtchn_read()297 } else if ((bytes1 + bytes2) > count) { in evtchn_read()298 bytes2 = count - bytes1; in evtchn_read()304 if (uiomove(&u->ring[EVTCHN_RING_MASK(c)], bytes1, uio) || in evtchn_read()308 u->ring_cons += (bytes1 + bytes2) / sizeof(evtchn_port_t); in evtchn_read()