Lines Matching refs:io_done
217 uint32_t io_done; in HELPER() local
225 io_done = qemu_chr_fe_write_all(&sim_console->be, in HELPER()
230 io_done = sim_console->input.offset; in HELPER()
231 if (io_sz < io_done) { in HELPER()
232 io_done = io_sz; in HELPER()
234 memcpy(buf, sim_console->input.buffer, io_done); in HELPER()
236 sim_console->input.buffer + io_done, in HELPER()
237 sim_console->input.offset - io_done); in HELPER()
238 sim_console->input.offset -= io_done; in HELPER()
241 io_done = -1; in HELPER()
249 io_done = -1; in HELPER()
253 io_done = is_write ? in HELPER()
258 if (io_done == -1) { in HELPER()
260 io_done = 0; in HELPER()
262 cpu_physical_memory_unmap(buf, sz, !is_write, io_done); in HELPER()
274 len_done += io_done; in HELPER()
275 if (io_done < io_sz) { in HELPER()