Lines Matching defs:buf
61 char buf[SIZE_VIO_GET_CHARS];
69 static int hvterm_raw_get_chars(uint32_t vtermno, char *buf, int count)
83 pv->left = hvc_get_chars(pv->termno, pv->buf, count);
90 if (pv->buf[i] == 0 && pv->buf[i-1] == '\r') {
93 memmove(&pv->buf[i], &pv->buf[i+1],
101 memcpy(buf, &pv->buf[pv->offset], got);
113 * @buf: The characters to send. Because of the underlying hypercall in
118 static int hvterm_raw_put_chars(uint32_t vtermno, const char *buf, int count)
125 return hvc_put_chars(pv->termno, buf, count);
136 static int hvterm_hvsi_get_chars(uint32_t vtermno, char *buf, int count)
143 return hvsilib_get_chars(&pv->hvsi, buf, count);
146 static int hvterm_hvsi_put_chars(uint32_t vtermno, const char *buf, int count)
153 return hvsilib_put_chars(&pv->hvsi, buf, count);