Lines Matching refs:buffer

797 /*!	Processes the input character and puts it into the TTY's input buffer.
820 // we may have to flush the input buffer
868 // point can directly be written to the line buffer.
904 /*! \brief Checks whether bytes can be read from/written to the line buffer of
946 \a buffer.
949 \param buffer The buffer to which to write the converted character.
951 line buffer.
956 process_input_char(struct tty* tty, char c, char* buffer,
967 *buffer = c;
977 *buffer = c;
995 *buffer = c;
1002 \a buffer.
1005 \param buffer The buffer to which to write the converted character(s).
1006 \param _bytesWritten The number of bytes written to the output buffer
1012 process_output_char(struct tty* tty, char c, char* buffer,
1022 buffer[0] = CTRL('H');
1023 buffer[1] = ' ';
1024 buffer[2] = CTRL('H');;
1045 buffer[0] = '\r';
1046 buffer[1] = '\n';
1065 *buffer = c;
1215 char buffer[3];
1217 process_output_char(target, *data, buffer, &bytesNeeded, false);
1242 line_buffer_putc(target->input_buffer, buffer[i]);
1258 const char* buffer = (const char*)_buffer;
1266 status_t error = user_memcpy(safeBuffer, buffer, toWrite);
1277 buffer += written;
1293 const char* buffer = (const char*)_buffer;
1301 status_t status = user_memcpy(safeBuffer, buffer, toWrite);
1312 buffer += written;
1490 // condition. We then clear the line buffer for the TTY and queue
1511 // clear the line buffer
1557 char* buffer = (char*)_buffer;
1626 ssize_t bytesRead = line_buffer_user_read(tty->input_buffer, buffer,
1633 buffer += bytesRead;
1675 tty_control(tty_cookie* cookie, uint32 op, void* buffer, size_t length)
1684 TRACE(("tty_ioctl: tty %p, op %" B_PRIu32 ", buffer %p, length %"
1685 B_PRIuSIZE "\n", tty, op, buffer, length));
1702 return user_memcpy(buffer, &tty->settings->termios,
1715 status_t status = user_memcpy(&tty->settings->termios, buffer,
1729 return user_memcpy(buffer, &tty->settings->pgrp_id, sizeof(pid_t));
1736 if (user_memcpy(&groupID, buffer, sizeof(pid_t)) != B_OK)
1772 return user_memcpy(buffer, &tty->settings->session_id,
1780 return user_memcpy(buffer, &tty->settings->window_size,
1789 if (user_memcpy(&tty->settings->window_size, buffer,
1812 if (user_memcpy(&wanted, buffer, sizeof(int)) != B_OK)
1821 // TODO: If wanted is > the TTY buffer size, this loop cannot work
1831 if (user_memcpy(buffer, &toRead, sizeof(int)) != B_OK)
1851 if (user_memcpy(buffer, &toRead, sizeof(int)) != B_OK)
1871 if (user_memcpy(buffer, &toWrite, sizeof(int)) != B_OK)
1887 if (user_memcpy(&value, buffer, sizeof(value)) != B_OK)
1909 return user_memcpy(buffer, &bits, sizeof(bits));
1917 if (user_memcpy(&value, buffer, sizeof(value)) != B_OK)
1942 int value = (int)(uintptr_t)buffer;
1954 int value = (int)(uintptr_t)buffer;