Home
last modified time | relevance | path

Searched refs:force_len (Results 1 – 6 of 6) sorted by relevance

/openbmc/obmc-console/
H A Dtty-handler.c87 static int tty_drain_queue(struct tty_handler *th, size_t force_len) in tty_drain_queue() argument
95 if (force_len) { in tty_drain_queue()
112 if (force_len && force_len < total_len + len) { in tty_drain_queue()
113 len = force_len - total_len; in tty_drain_queue()
122 !force_len) { in tty_drain_queue()
132 if (force_len && total_len >= force_len) { in tty_drain_queue()
139 if (force_len) { in tty_drain_queue()
146 static enum ringbuffer_poll_ret tty_ringbuffer_poll(void *arg, size_t force_len) in tty_ringbuffer_poll() argument
151 rc = tty_drain_queue(th, force_len); in tty_ringbuffer_poll()
H A Dsocket-handler.c174 static int client_drain_queue(struct client *client, size_t force_len) in client_drain_queue() argument
184 block = !!force_len; in client_drain_queue()
204 if (force_len && total_len >= force_len) { in client_drain_queue()
213 if (force_len && total_len < force_len) { in client_drain_queue()
222 size_t force_len) in client_ringbuffer_poll() argument
229 if (!force_len && (len < SOCKET_HANDLER_PKT_SIZE)) { in client_ringbuffer_poll()
238 rc = client_drain_queue(client, force_len); in client_ringbuffer_poll()
H A Dringbuffer.c133 size_t force_len; in ringbuffer_consumer_ensure_space() local
139 force_len = len - ringbuffer_space(rbc); in ringbuffer_consumer_ensure_space()
141 prc = rbc->poll_fn(rbc->poll_data, force_len); in ringbuffer_consumer_ensure_space()
H A Dlog-handler.c103 static enum ringbuffer_poll_ret log_ringbuffer_poll(void *arg, size_t force_len in log_ringbuffer_poll() argument
H A Dconsole-server.h203 size_t force_len);
/openbmc/obmc-console/test/
H A Dringbuffer-test-utils.c30 size_t force_len in ringbuffer_poll_nop() argument
37 size_t force_len) in ringbuffer_poll_append_all() argument
48 if (ctx->force_only && !force_len) { in ringbuffer_poll_append_all()
61 if (ctx->force_only && total_len + len > force_len) { in ringbuffer_poll_append_all()
62 len = force_len - total_len; in ringbuffer_poll_append_all()
70 if (ctx->force_only && total_len >= force_len) { in ringbuffer_poll_append_all()