Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/xen/
Devtchn.c193 unsigned int c, p, bytes1 = 0, bytes2 = 0; in evtchn_read() local
230 bytes1 = (u->ring_size - evtchn_ring_offset(u, c)) * in evtchn_read()
234 bytes1 = (p - c) * sizeof(evtchn_port_t); in evtchn_read()
239 if (bytes1 > count) { in evtchn_read()
240 bytes1 = count; in evtchn_read()
242 } else if ((bytes1 + bytes2) > count) { in evtchn_read()
243 bytes2 = count - bytes1; in evtchn_read()
248 if (copy_to_user(buf, evtchn_ring_entry(u, c), bytes1) || in evtchn_read()
250 copy_to_user(&buf[bytes1], &u->ring[0], bytes2))) in evtchn_read()
253 u->ring_cons += (bytes1 + bytes2) / sizeof(evtchn_port_t); in evtchn_read()
[all …]