Lines Matching refs:count
165 ssize_t count; in evtchndrv_read() local
176 count = uio->uio_resid; in evtchndrv_read()
177 count &= ~(sizeof (evtchn_port_t) - 1); in evtchndrv_read()
179 if (count == 0) in evtchndrv_read()
182 if (count > PAGESIZE) in evtchndrv_read()
183 count = PAGESIZE; in evtchndrv_read()
217 if (bytes1 > count) { in evtchndrv_read()
218 bytes1 = count; in evtchndrv_read()
220 } else if ((bytes1 + bytes2) > count) { in evtchndrv_read()
221 bytes2 = count - bytes1; in evtchndrv_read()
241 ssize_t count; in evtchndrv_write() local
255 count = uio->uio_resid; in evtchndrv_write()
256 count &= ~(sizeof (evtchn_port_t) - 1); in evtchndrv_write()
258 if (count == 0) in evtchndrv_write()
261 if (count > PAGESIZE) in evtchndrv_write()
262 count = PAGESIZE; in evtchndrv_write()
264 if (count <= sizeof (sbuf)) in evtchndrv_write()
268 if ((rc = uiomove(kbuf, count, UIO_WRITE, uio)) != 0) in evtchndrv_write()
272 for (i = 0; i < (count / sizeof (evtchn_port_t)); i++) in evtchndrv_write()