Lines Matching full:1

77 		cc = smp_sigp(1, c->order, 0, &status);  in test_invalid()
78 report(cc == 1, "%s", c->message); in test_invalid()
99 set_flag(1); in test_func()
105 smp_cpu_start(1, PSW_WITH_CUR_MASK(test_func)); in test_start()
112 struct cpu *cpu = smp_cpu_from_idx(1); in test_restart()
122 smp_cpu_stop(1); in test_restart()
124 rc = smp_cpu_restart_nowait(1); in test_restart()
126 report(!smp_cpu_stopped(1), "cpu started"); in test_restart()
134 * Wait until cpu 1 has set the flag because it executed the in test_restart()
138 rc = smp_cpu_restart_nowait(1); in test_restart()
140 report(!smp_cpu_stopped(1), "cpu started"); in test_restart()
154 rc = smp_cpu_stop_nowait(1); in test_stop()
156 report(smp_cpu_stopped(1), "cpu stopped"); in test_stop()
159 rc = smp_cpu_stop_nowait(1); in test_stop()
161 report(smp_cpu_stopped(1), "cpu stopped"); in test_stop()
169 struct cpu *cpu = smp_cpu_from_idx(1); in test_stop_store_status()
173 smp_cpu_restart(1); in test_stop_store_status()
176 smp_cpu_stop_store_status(1); in test_stop_store_status()
178 report(smp_cpu_stopped(1), "cpu stopped"); in test_stop_store_status()
186 smp_cpu_stop_store_status(1); in test_stop_store_status()
188 report(smp_cpu_stopped(1), "cpu stopped"); in test_stop_store_status()
198 struct cpu_status *status = alloc_pages_flags(1, AREA_DMA31); in test_store_status()
211 smp_cpu_restart(1); in test_store_status()
212 smp_sigp(1, SIGP_STORE_STATUS_AT_ADDRESS, (uintptr_t)status, &r); in test_store_status()
220 smp_cpu_stop(1); in test_store_status()
221 smp_sigp(1, SIGP_STORE_STATUS_AT_ADDRESS, (uintptr_t)status, NULL); in test_store_status()
226 smp_cpu_stop(1); in test_store_status()
233 while (1) in loop()
246 set_flag(1); in stpx_and_set_flag()
251 struct lowcore *new_lc = alloc_pages_flags(1, AREA_DMA31); in test_set_prefix()
252 struct cpu *cpu1 = smp_cpu_from_idx(1); in test_set_prefix()
265 smp_cpu_start(1, PSW_WITH_CUR_MASK(stpx_and_set_flag)); in test_set_prefix()
269 cc = smp_sigp(1, SIGP_SET_PREFIX, (unsigned long)new_lc, &status); in test_set_prefix()
270 report(cc == 1, "CC = 1"); in test_set_prefix()
277 smp_cpu_stop(1); in test_set_prefix()
279 smp_cpu_restart(1); in test_set_prefix()
306 set_flag(1); in call_received()
315 set_flag(1); in call_received()
333 smp_cpu_start(1, PSW_WITH_CUR_MASK(call_received)); in test_calls()
339 smp_sigp(1, current_sigp_call_case->call, 0, NULL); in test_calls()
343 smp_cpu_stop(1); in test_calls()
360 set_flag(1); in call_in_wait_setup()
367 set_flag(1); in call_in_wait_received()
375 set_flag(1); in call_in_wait_cleanup()
395 smp_cpu_start(1, PSW_WITH_CUR_MASK(call_in_wait_setup)); in test_calls_in_wait()
410 smp_cpu_stop(1); in test_calls_in_wait()
411 smp_cpu_start(1, PSW(extract_psw_mask() | PSW_MASK_EXT | PSW_MASK_WAIT, call_in_wait_received)); in test_calls_in_wait()
413 smp_sigp(1, current_sigp_call_case->call, 0, NULL); in test_calls_in_wait()
417 smp_cpu_stop(1); in test_calls_in_wait()
426 smp_cpu_start(1, PSW_WITH_CUR_MASK(call_in_wait_cleanup)); in test_calls_in_wait()
430 smp_cpu_stop(1); in test_calls_in_wait()
443 smp_cpu_stop(1); in test_sense_running()
445 while(smp_sense_running_status(1)); in test_sense_running()
450 /* Used to dirty registers of cpu #1 before it is reset */
454 lctlg(1, 0x42000UL); in test_func_initial()
457 set_flag(1); in test_func_initial()
467 smp_cpu_start(1, PSW_WITH_CUR_MASK(test_func_initial)); in test_reset_initial()
470 smp_sigp(1, SIGP_INITIAL_CPU_RESET, 0, NULL); in test_reset_initial()
471 smp_sigp(1, SIGP_STORE_STATUS_AT_ADDRESS, (uintptr_t)status, NULL); in test_reset_initial()
479 for (i = 1; i <= 13; i++) { in test_reset_initial()
490 report(smp_cpu_stopped(1), "cpu stopped"); in test_reset_initial()
501 set_flag(1); in test_local_ints()
507 smp_sigp(1, SIGP_EMERGENCY_SIGNAL, 0, NULL); in test_reset()
508 smp_sigp(1, SIGP_EXTERNAL_CALL, 0, NULL); in test_reset()
509 smp_cpu_start(1, PSW_WITH_CUR_MASK(test_func)); in test_reset()
511 smp_sigp(1, SIGP_CPU_RESET, 0, NULL); in test_reset()
512 report(smp_cpu_stopped(1), "cpu stopped"); in test_reset()
515 smp_cpu_start(1, PSW_WITH_CUR_MASK(test_local_ints)); in test_reset()
525 if (smp_query_num_cpus() == 1) { in main()
531 smp_cpu_setup(1, PSW_WITH_CUR_MASK(test_func)); in main()
532 smp_cpu_stop(1); in main()
546 smp_cpu_destroy(1); in main()