Lines Matching refs:buffer
38 #define RAW3215_BUFFER_SIZE 65536 /* output buffer size */
39 #define RAW3215_INBUF_SIZE 256 /* input buffer size */
52 #define RAW3215_FLUSHING 128 /* set to flush buffer (no delay) */
68 int start, len; /* start index & len in output buffer */
81 char *buffer; /* pointer to output buffer */
82 char *inbuf; /* pointer to input buffer */
83 int head; /* first free byte in output buffer */
84 int count; /* number of bytes in output buffer */
92 char ubuffer[80]; /* copy_from_user buffer */
168 * buffer to the 3215 device. If a queued write exists it is replaced by
202 if (raw->buffer[ix] == 0x15)
222 (__u32) __pa(raw->buffer + ix);
467 * Drop the oldest line from the output buffer.
477 ch = raw->buffer[ix];
487 * Wait until length bytes are available int the output buffer.
495 * choice but to drop message from the buffer to make
536 /* copy string to output buffer and convert it to EBCDIC */
543 memcpy(raw->buffer + raw->head, str, c);
544 ASCEBC(raw->buffer + raw->head, c);
583 raw->buffer[raw->head] = (char) _ascebc[(int) ch];
665 info->buffer = kzalloc(RAW3215_BUFFER_SIZE, GFP_KERNEL | GFP_DMA);
667 if (!info->buffer || !info->inbuf) {
669 kfree(info->buffer);
685 kfree(raw->buffer);
771 /* Empty the output buffer, then prevent new I/O. */
785 /* Allow I/O again and flush output buffer. */
1013 * Returns the amount of free space in the output buffer.
1076 * Returns the number of characters in the output buffer