Lines Matching refs:i

201     for (int i = 0; i < n; i++) // 对每一个completion都等一遍  in wait_for_multicompletion()  local
203 if (!completion_done(&x[i])) // 如果没有done,直接wait in wait_for_multicompletion()
205 wait_for_completion(&x[i]); in wait_for_multicompletion()
207 else if (!try_wait_for_completion(&x[i])) //上面测试过done>0,那么这里尝试去获取一个done,如果失败了,就继续wait in wait_for_multicompletion()
209 wait_for_completion(&x[i]); in wait_for_multicompletion()
287 for (int i = 0; i < N; i++) in __test_completion() local
289 completion_init(&one_to_one[i]); in __test_completion()
290 completion_init(&waiter_many_to_one[i]); in __test_completion()
291 completion_init(&worker_many_to_one[i]); in __test_completion()
294 for (int i = 0; i < N; i++) in __test_completion() local
296 waiter_data[i].id = -i; // waiter in __test_completion()
297 waiter_data[i].many_to_one = &waiter_many_to_one[i]; in __test_completion()
298 waiter_data[i].one_to_one = &one_to_one[i]; in __test_completion()
299 waiter_data[i].one_to_many = one_to_many; in __test_completion()
300 kthread_run(__test_completion_waiter, &waiter_data[i], "the %dth waiter", i); in __test_completion()
303 for (int i = 0; i < N; i++) in __test_completion() local
305 worker_data[i].id = i; // worker in __test_completion()
306 worker_data[i].many_to_one = &worker_many_to_one[i]; in __test_completion()
307 worker_data[i].one_to_one = &one_to_one[i]; in __test_completion()
308 worker_data[i].one_to_many = one_to_many; in __test_completion()
309 kthread_run(__test_completion_worker, &worker_data[i], "the %dth worker", i); in __test_completion()