Lines Matching refs:data
80 int libvchan_write(libvchan_t *ctrl, const void *data, size_t size)
82 return libvchan_readwrite(ctrl, (void *) data, size, VCHAN_SEND, VCHAN_STREAM);
85 int libvchan_read(libvchan_t *ctrl, void *data, size_t size)
87 return libvchan_readwrite(ctrl, data, size, VCHAN_RECV, VCHAN_STREAM);
90 int libvchan_send(libvchan_t *ctrl, const void *data, size_t size)
92 return libvchan_readwrite(ctrl, (void *) data, size, VCHAN_SEND, VCHAN_NOSTREAM);
95 int libvchan_recv(libvchan_t *ctrl, void *data, size_t size)
97 return libvchan_readwrite(ctrl, data, size, VCHAN_RECV, VCHAN_NOSTREAM);
152 int libvchan_readwrite(libvchan_t *ctrl, void *data, size_t size, int cmd, int stream)
161 How data is stored in a given vchan buffer
163 Position of data in buffer is given by
169 if write_pos > read_pos, there is data yet to be read
193 And one at start of buffer for remaining data
210 memcpy(dbuf + start, data, call_size);
211 memcpy(dbuf, data + call_size, remain);
217 memcpy(data, ((void *) dbuf) + start, call_size);
218 memcpy(data + call_size, dbuf, remain);
228 If stream, we have written as much data as we can in one pass.
229 Otherwise, continue to write data and block block if the buffer is full
238 data = data + (call_size + remain);
247 Wait for data to arrive to a component from a given vchan
296 How much data can be read from the vchan
308 How much data can be written to the vchan