Lines Matching +full:buffer +full:- +full:size
4 * SPDX-License-Identifier: Apache-2.0
37 * "tty" device provides support for buffered, interrupt-driven,
38 * timeout-controlled access to an underlying UART device. For
39 * completeness, it also support non-interrupt-driven, busy-polling
48 * interrupt-driven operation)
65 tty->rx_timeout = timeout; in tty_set_rx_timeout()
71 * Set timeout for putchar() operation, for a case when output buffer is full.
79 tty->tx_timeout = timeout; in tty_set_tx_timeout()
83 * @brief Set receive buffer for tty device.
85 * Set receive buffer or switch to unbuffered operation for receive.
88 * @param buf buffer, or NULL for unbuffered operation
89 * @param size buffer buffer size, 0 for unbuffered operation
91 * EINVAL: unsupported buffer (size)
93 int tty_set_rx_buf(struct tty_serial *tty, void *buf, size_t size);
96 * @brief Set transmit buffer for tty device.
98 * Set transmit buffer or switch to unbuffered operation for transmit.
103 * @param buf buffer, or NULL for unbuffered operation
104 * @param size buffer buffer size, 0 for unbuffered operation
106 * EINVAL: unsupported buffer (size)
108 int tty_set_tx_buf(struct tty_serial *tty, void *buf, size_t size);
114 * @param buf buffer to read data to
115 * @param size maximum number of bytes to read
116 * @return >0, number of actually read bytes (can be less than size param)
117 * =0, for EOF-like condition (e.g., break signaled)
118 * <0, in case of error (e.g. -EAGAIN if timeout expired). errno
121 ssize_t tty_read(struct tty_serial *tty, void *buf, size_t size);
127 * @param buf buffer containing data
128 * @param size maximum number of bytes to write
129 * @return =>0, number of actually written bytes (can be less than size param)
130 * <0, in case of error (e.g. -EAGAIN if timeout expired). errno
133 ssize_t tty_write(struct tty_serial *tty, const void *buf, size_t size);