Lines Matching refs:avail
236 int avail; in libxenvchan_send() local
240 avail = fast_get_buffer_space(ctrl, size); in libxenvchan_send()
241 if (size <= avail) in libxenvchan_send()
254 int avail; in libxenvchan_write() local
260 avail = fast_get_buffer_space(ctrl, size - pos); in libxenvchan_write()
261 if (pos + avail > size) in libxenvchan_write()
262 avail = size - pos; in libxenvchan_write()
263 if (avail) in libxenvchan_write()
264 pos += do_send(ctrl, data + pos, avail); in libxenvchan_write()
273 avail = fast_get_buffer_space(ctrl, size); in libxenvchan_write()
274 if (size > avail) in libxenvchan_write()
275 size = avail; in libxenvchan_write()
314 int avail = fast_get_data_ready(ctrl, size); in libxenvchan_recv() local
315 if (size <= avail) in libxenvchan_recv()
331 int avail = fast_get_data_ready(ctrl, size); in libxenvchan_read() local
332 if (avail && size > avail) in libxenvchan_read()
333 size = avail; in libxenvchan_read()
334 if (avail) in libxenvchan_read()