Home
last modified time | relevance | path

Searched refs:in_buf_used (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/chardev/
H A Dtestdev.c38 int in_buf_used; member
50 int len = testdev->in_buf_used; in DECLARE_INSTANCE_CHECKER()
95 tocopy = MIN(len, BUF_SIZE - testdev->in_buf_used); in testdev_chr_write()
97 memcpy(testdev->in_buf + testdev->in_buf_used, buf, tocopy); in testdev_chr_write()
98 testdev->in_buf_used += tocopy; in testdev_chr_write()
103 while (testdev->in_buf_used > 0 && in testdev_chr_write()
106 testdev->in_buf_used - eaten); in testdev_chr_write()
107 testdev->in_buf_used -= eaten; in testdev_chr_write()
H A Dbaum.c102 uint8_t in_buf_used; member
506 if (tocopy > BUF_SIZE - baum->in_buf_used) in baum_chr_write()
507 tocopy = BUF_SIZE - baum->in_buf_used; in baum_chr_write()
509 memcpy(baum->in_buf + baum->in_buf_used, buf, tocopy); in baum_chr_write()
510 baum->in_buf_used += tocopy; in baum_chr_write()
516 while (cur < baum->in_buf_used && in baum_chr_write()
517 (eaten = baum_eat_packet(baum, baum->in_buf + cur, baum->in_buf_used - cur))) in baum_chr_write()
522 memmove(baum->in_buf, baum->in_buf + cur, baum->in_buf_used - cur); in baum_chr_write()
523 baum->in_buf_used -= cur; in baum_chr_write()