Lines Matching full:data_count
38 uint32_t data_count;
50 qemu_put_byte( f, s->data_count );
51 qemu_put_buffer( f, s->data, s->data_count );
64 s->data_count = qemu_get_byte(f);
65 qemu_get_buffer(f, s->data, s->data_count);
78 return s->data_count;
102 if(s->data_count > 0)
110 if(s->data_count > 0)
140 if(s->ptr_len > s->data_count)
141 cpu_abort (cpu_single_env, "goldfish_tty_write: reading more data than available %d %d\n", s->ptr_len, s->data_count);
144 if(s->data_count > s->ptr_len)
145 memmove(s->data, s->data + s->ptr_len, s->data_count - s->ptr_len);
146 s->data_count -= s->ptr_len;
147 if(s->data_count == 0 && s->ready)
173 return (sizeof(s->data) - s->data_count);
180 memcpy(s->data + s->data_count, buf, size);
181 s->data_count += size;
182 if(s->data_count > 0 && s->ready)