Lines Matching refs:bytes1
194 unsigned int c, p, bytes1 = 0, bytes2 = 0;
231 bytes1 = (u->ring_size - evtchn_ring_offset(u, c)) *
235 bytes1 = (p - c) * sizeof(evtchn_port_t);
240 if (bytes1 > count) {
241 bytes1 = count;
243 } else if ((bytes1 + bytes2) > count) {
244 bytes2 = count - bytes1;
249 if (copy_to_user(buf, evtchn_ring_entry(u, c), bytes1) ||
251 copy_to_user(&buf[bytes1], &u->ring[0], bytes2)))
254 u->ring_cons += (bytes1 + bytes2) / sizeof(evtchn_port_t);
255 rc = bytes1 + bytes2;