Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/include/ !
H A Dmembuff.h33 struct membuff { struct
47 void membuff_purge(struct membuff *mb);
68 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data);
86 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data);
95 bool membuff_putbyte(struct membuff *mb, int ch);
102 int membuff_getbyte(struct membuff *mb);
113 int membuff_peekbyte(struct membuff *mb);
126 int membuff_get(struct membuff *mb, char *buff, int maxlen);
139 int membuff_put(struct membuff *mb, const char *buff, int length);
147 bool membuff_isempty(struct membuff *mb);
[all …]
/rk3399_rockchip-uboot/lib/ !
H A Dmembuff.c15 void membuff_purge(struct membuff *mb) in membuff_purge()
22 static int membuff_putrawflex(struct membuff *mb, int maxlen, bool update, in membuff_putrawflex()
76 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data) in membuff_putraw()
88 bool membuff_putbyte(struct membuff *mb, int ch) in membuff_putbyte()
99 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data) in membuff_getraw()
150 int membuff_getbyte(struct membuff *mb) in membuff_getbyte()
157 int membuff_peekbyte(struct membuff *mb) in membuff_peekbyte()
164 int membuff_get(struct membuff *mb, char *buff, int maxlen) in membuff_get()
187 int membuff_put(struct membuff *mb, const char *buff, int length) in membuff_put()
207 bool membuff_isempty(struct membuff *mb) in membuff_isempty()
[all …]
H A DMakefile94 obj-y += membuff.o
/rk3399_rockchip-uboot/common/ !
H A Dconsole.c427 ch = membuff_getbyte((struct membuff *)&gd->console_in); in getc()
450 if (membuff_peekbyte((struct membuff *)&gd->console_in) != -1) in tstc()
531 membuff_putbyte((struct membuff *)&gd->console_out, c); in putc()
626 ret = membuff_new((struct membuff *)&gd->console_out, in console_record_init()
630 ret = membuff_new((struct membuff *)&gd->console_in, in console_record_init()
638 membuff_purge((struct membuff *)&gd->console_out); in console_record_reset()
639 membuff_purge((struct membuff *)&gd->console_in); in console_record_reset()
662 while (!membuff_isempty((struct membuff *)&gd->console_out)) { in console_record_print_purge()
663 c = membuff_getbyte((struct membuff *)&gd->console_out); in console_record_print_purge()
/rk3399_rockchip-uboot/include/asm-generic/ !
H A Dglobal_data.h124 struct membuff console_out; /* console output */
125 struct membuff console_in; /* console input */
/rk3399_rockchip-uboot/drivers/usb/emul/ !
H A Dsandbox_keyb.c44 struct membuff in;