Lines Matching full:state
36 static struct progress_state state; variable
46 printf(" (%3.2f/100%%)\r", state.current); in progress_simple_print()
57 state.print = progress_simple_print; in progress_simple_init()
58 state.end = progress_simple_end; in progress_simple_init()
71 fprintf(stderr, " (%3.2f/100%%)\n", state.current); in progress_dummy_print()
105 state.print = progress_dummy_print; in progress_dummy_init()
106 state.end = progress_dummy_end; in progress_dummy_init()
118 state.min_skip = min_skip; in qemu_progress_init()
128 state.end(); in qemu_progress_end()
149 current = state.current + delta / 100 * max; in qemu_progress_print()
154 state.current = current; in qemu_progress_print()
156 if (current > (state.last_print + state.min_skip) || in qemu_progress_print()
157 current < (state.last_print - state.min_skip) || in qemu_progress_print()
159 state.last_print = state.current; in qemu_progress_print()
160 state.print(); in qemu_progress_print()