Lines Matching refs:buffer
77 * a single buffer */
80 /* Pointer to current request buffer which has been partially filled but not
84 /* Number of characters in current request buffer */
92 * another buffer */
112 * Put provided request buffer back into queue and check emit pending
122 /* Put buffer back to list of empty buffers */
128 /* Check if there is a pending buffer on the out queue. */
201 * Emit vt220 request buffer to SCLP. Return zero on success, non-zero
300 * Add msg to buffer associated with request. Return the number of characters
308 void *buffer;
319 buffer = (void *) ((addr_t) sccb + sccb->header.length);
331 ((unsigned char *) buffer)[to++] = c;
332 ((unsigned char *) buffer)[to++] = 0x0d;
337 ((unsigned char *) buffer)[to++] = c;
343 memcpy(buffer, (const void *) msg, count);
351 * Emit buffer after having waited long enough for more data to arrive.
362 * Drop oldest console buffer if sclp_con_drop is set
390 * write buffer, emit the current one and allocate a new one. If there are no
392 * is non-zero, the buffer will be scheduled for emitting after a timeout -
395 * buffer should be converted to 0x0a 0x0d. After completion, return the number
412 /* Create an sclp output buffer if none exists yet */
431 /* Try to write the string to the current request buffer */
439 * output buffer. Emit the buffer, create a new buffer
448 /* Setup timer to output current console buffer after some time */
485 static void sclp_vt220_handle_input(const char *buffer, unsigned int count)
491 if (buffer[i] == ('O' ^ 0100)) { /* CTRL-O */
500 sysrq.key = buffer[i];
505 tty_insert_flip_char(&sclp_vt220_port, buffer[i], 0);
515 static void sclp_vt220_handle_input(const char *buffer, unsigned int count)
517 tty_insert_flip_string(&sclp_vt220_port, buffer, count);
528 char *buffer;
531 buffer = (char *) ((addr_t) evbuf + sizeof(struct evbuf_header));
534 switch (*buffer) {
541 buffer++;
543 sclp_vt220_handle_input(buffer, count);
678 /* Allocate buffer pages and register with sclp core. Controlled by init