Lines Matching refs:bytes1
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()
228 rc = bytes1 + bytes2; in evtchn_read()