Lines Matching +full:0 +full:x1b
43 if (IS_ENABLED(CONFIG_SAMPLE_ERROR_CHECKING) && ret != 0) { in fork_init()
60 if (IS_ENABLED(CONFIG_SAMPLE_ERROR_CHECKING) && ret != 0) { in take()
72 if (IS_ENABLED(CONFIG_SAMPLE_ERROR_CHECKING) && ret != 0) { in drop()
82 printk("\x1b[%d;%dH", id + 1, 1); in set_phil_state_pos()
94 if (IS_ENABLED(CONFIG_SAMPLE_ERROR_CHECKING) && ret != 0) { in print_phil_state()
104 printk("Philosopher %d [%s:%s%d] ", id, prio < 0 ? "C" : "P", prio < 0 ? "" : " ", prio); in print_phil_state()
125 * a value between 0 and 31. in get_random_delay()
129 delay = (uptime / 100 * (id + 1)) & 0x1f; in get_random_delay()
131 /* add 1 to not generate a delay of 0 */ in get_random_delay()
151 my_fork1 = fork(0); in philosopher()
161 print_phil_state(my_id, " STARVING ", 0); in philosopher()
163 print_phil_state(my_id, " HOLDING ONE FORK ", 0); in philosopher()
171 print_phil_state(my_id, " DROPPED ONE FORK ", 0); in philosopher()
184 if (CONFIG_NUM_COOP_PRIORITIES > 0 && CONFIG_NUM_PREEMPT_PRIORITIES > 0) { in new_prio()
186 return 0; in new_prio()
192 if (CONFIG_NUM_COOP_PRIORITIES > 0) { in new_prio()
196 if (CONFIG_NUM_PREEMPT_PRIORITIES > 0) { in new_prio()
221 if (IS_ENABLED(CONFIG_SAMPLE_ERROR_CHECKING) && ret != 0) { in start_threads()
230 if (IS_ENABLED(CONFIG_SAMPLE_ERROR_CHECKING) && ret != 0) { in start_threads()
246 "\x1b[2J\x1b[15;1H" \
277 return 0; in main()