Lines Matching defs:buffer
40 /* The size of the transmit circular buffer. This must be a power of two. */
51 spinlock_t lock; /* lock for transmit buffer */
52 unsigned char buf[BUF_SIZE]; /* transmit circular buffer */
53 unsigned int head; /* circular buffer head */
54 unsigned int tail; /* circular buffer tail */
143 char buffer[EV_BYTE_CHANNEL_MAX_BYTES];
146 if (c < sizeof(buffer)) {
147 memcpy(buffer, p, c);
148 memset(&buffer[c], 0, sizeof(buffer) - c);
149 p = buffer;
227 * For consoles, if the output buffer is full, we should just spin until it
254 * We copy the data to a temporary buffer because we need to insert a \r in
255 * front of every \n. It's more efficient to copy the data to the buffer than
352 char buffer[EV_BYTE_CHANNEL_MAX_BYTES];
369 len = min_t(unsigned int, count, sizeof(buffer));
374 ev_byte_channel_receive(bc->handle, &len, buffer);
381 ret = tty_insert_flip_string(&bc->port, buffer, len);
384 * If it's not equal to 'len', then it means the buffer is
402 * dequeue the transmit buffer to the hypervisor
405 * data as possible from the transmit buffer to the byte channel.
432 * If we haven't emptied the buffer, then enable the TX IRQ.
434 * hypervisor's output buffer.
460 * the data first in a circular buffer, and then dequeue as much of that data
463 * We don't need to worry about whether there is enough room in the buffer for
533 * Return the amount of space in the output buffer
599 * If we could ask the hypervisor how much data is still in the TX buffer, or