| /linux/Documentation/translations/zh_CN/scheduler/ |
| H A D | completion.rst | 33 事件被简化为 ``struct completion`` 中的一个简单标志,被恰如其名地称为‘done’。 49 完成标记为 "done",这是完全正常的。 55 unsigned int done; 84 init_completion(&dynamic_object->done); 86 在这个调用中,我们初始化 waitqueue 并将 ->done 设置为 0,即“not completed”或 87 “not done”。 89 重新初始化函数reinit_completion(),只是将->done字段重置为0(“not done”),而 104 注意,在这种情况下,完成在启动时(或模块加载时)被初始化为“not done”,不需要调用 134 void wait_for_completion(struct completion *done) 180 int wait_for_completion_interruptible(struct completion *done) [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_tunnel.c | 551 goto done; in test_ip6vxlan_tunnel() 556 goto done; 560 goto done; in test_ipip_tunnel() 565 goto done; in test_ipip_tunnel() 570 goto done; in test_ipip_tunnel() 573 goto done; in test_ipip_tunnel() 579 goto done; in test_ipip_tunnel() 583 goto done; in test_ipip_tunnel() 588 done: in test_ipip_tunnel() 611 goto done; in test_ipip_tunnel() [all...] |
| H A D | exceptions.c | 34 goto done; in test_exceptions_success() 39 goto done; in test_exceptions_success() 105 goto done; \ in test_exceptions_success() 111 goto done; \ in test_exceptions_success() 116 goto done; \ in test_exceptions_success() 121 goto done; \ in test_exceptions_success() 124 goto done; \ in test_exceptions_success() 137 goto done; in test_exceptions_success() 147 goto done; in test_exceptions_success() 157 goto done; in test_exceptions_success() [all...] |
| H A D | bpf_iter_setsockopt.c | 118 goto done; in do_bpf_iter_setsockopt() 122 goto done; in do_bpf_iter_setsockopt() 127 goto done; in do_bpf_iter_setsockopt() 134 goto done; in do_bpf_iter_setsockopt() 137 goto done; in do_bpf_iter_setsockopt() 141 goto done; in do_bpf_iter_setsockopt() 147 goto done; in do_bpf_iter_setsockopt() 153 goto done; in do_bpf_iter_setsockopt() 172 done: in do_bpf_iter_setsockopt() 199 goto done; in serial_test_bpf_iter_setsockopt() [all …]
|
| H A D | sk_storage_omem_uncharge.c | 25 goto done; in test_sk_storage_omem_uncharge() 30 goto done; in test_sk_storage_omem_uncharge() 35 goto done; in test_sk_storage_omem_uncharge() 40 goto done; in test_sk_storage_omem_uncharge() 44 goto done; in test_sk_storage_omem_uncharge() 52 done: in test_sk_storage_omem_uncharge()
|
| H A D | tcpbpf_user.c | 56 goto done; in run_test() 60 goto done; in run_test() 64 goto done; in run_test() 72 goto done; in run_test() 76 goto done; in run_test() 84 goto done; in run_test() 88 goto done; in run_test() 97 goto done; in run_test() 102 done: in run_test()
|
| /linux/drivers/staging/vme_user/ |
| H A D | vme_fake.c | 391 /* If disabled, we're done */ in fake_lm_check() 521 unsigned int done = 0; in fake_master_read() local 547 done += 1; in fake_master_read() 548 if (done == count) in fake_master_read() 552 if ((addr + done) & 0x2) { in fake_master_read() 553 if ((count - done) < 2) { in fake_master_read() 554 *(u8 *)(buf + done) = fake_vmeread8(priv, in fake_master_read() 555 addr + done, aspace, cycle); in fake_master_read() 556 done += 1; in fake_master_read() 559 *(u16 *)(buf + done) = fake_vmeread16(priv, in fake_master_read() [all …]
|
| /linux/include/linux/dma/ |
| H A D | sprd-dma.h | 18 * configurations. Once the source channel's transaction is done, it will 50 * automatically once the source channel's fragment request is done. 52 * automatically once the source channel's block request is done. 54 * automatically once the source channel's transfer request is done. 56 * automatically once the source channel's link-list request is done. 89 * @SPRD_DMA_FRAG_INT: fragment done interrupt when one fragment request 90 * is done. 91 * @SPRD_DMA_BLK_INT: block done interrupt when one block request is done. 93 * or one block request is done. 94 * @SPRD_DMA_TRANS_INT: tansaction done interrupt when one transaction [all …]
|
| /linux/Documentation/scheduler/ |
| H A D | completion.rst | 27 is reduced to a simple flag in 'struct completion', appropriately called "done". 45 to have marked a completion as 'done' before another thread checks whether 53 unsigned int done; 58 the ->done completion flag for indicating whether it's completed or not. 84 Initializing of dynamically allocated completion objects is done via a call to 87 init_completion(&dynamic_object->done); 89 In this call we initialize the waitqueue and set ->done to 0, i.e. "not completed" 90 or "not done". 93 ->done field to 0 ("not done"), without touching the waitqueue. 111 initialized to 'not done' and doesn't require an init_completion() call. [all …]
|
| /linux/net/core/ |
| H A D | failover.c | 55 goto done; in failover_slave_register() 61 goto done; in failover_slave_register() 65 goto done; in failover_slave_register() 72 goto done; in failover_slave_register() 94 done: in failover_slave_register() 111 goto done; in failover_slave_unregister() 117 goto done; in failover_slave_unregister() 121 goto done; in failover_slave_unregister() 131 done: in failover_slave_unregister() 142 goto done; in failover_slave_link_change() [all …]
|
| /linux/drivers/fpga/ |
| H A D | lattice-sysconfig.c | 93 struct gpio_desc *done = priv->done; in sysconfig_gpio_refresh() local 101 ret = sysconfig_poll_gpio(done, false); in sysconfig_gpio_refresh() 130 struct gpio_desc *done = priv->done; in sysconfig_refresh() local 132 if (program && init && done) in sysconfig_refresh() 231 struct gpio_desc *done_gpio = priv->done; in sysconfig_isc_finish() 258 struct gpio_desc *done = priv->done; in sysconfig_ops_state() local 262 if (done && (gpiod_get_value(done) > 0)) in sysconfig_ops_state() 355 struct gpio_desc *program, *init, *done; in sysconfig_probe() local 380 done = devm_gpiod_get_optional(dev, "done", GPIOD_IN); in sysconfig_probe() 381 if (IS_ERR(done)) in sysconfig_probe() [all …]
|
| /linux/kernel/sched/ |
| H A D | completion.c | 27 if (x->done != UINT_MAX) in complete_with_flags() 28 x->done++; in complete_with_flags() 65 * Since complete_all() sets the completion of @x permanently to done 79 x->done = UINT_MAX; in complete_all() 89 if (!x->done) { in do_wait_for_common() 102 } while (!x->done && timeout); in do_wait_for_common() 104 if (!x->done) in do_wait_for_common() 107 if (x->done != UINT_MAX) in do_wait_for_common() 108 x->done--; in do_wait_for_common() 301 * Return: 0 if a decrement cannot be done without blocking [all …]
|
| /linux/tools/testing/selftests/zram/ |
| H A D | zram_lib.sh | 53 done 57 done 62 done 67 done 89 done 143 done 162 done 178 done 195 done 217 echo "done with /dev/zram$i" [all …]
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | run_bench_bloom_filter_map.sh | 24 done 26 done 27 done 28 done 42 done 44 done 45 done
|
| H A D | run_bench_ringbufs.sh | 12 done 17 done 23 done 28 done 32 done 45 done 50 done 55 done 60 done
|
| /linux/lib/ |
| H A D | once.c | 42 bool __do_once_start(bool *done, unsigned long *flags) in __do_once_start() argument 46 if (*done) { in __do_once_start() 60 void __do_once_done(bool *done, struct static_key_true *once_key, in __do_once_done() argument 64 *done = true; in __do_once_done() 72 bool __do_once_sleepable_start(bool *done) in __do_once_sleepable_start() argument 76 if (*done) { in __do_once_sleepable_start() 90 void __do_once_sleepable_done(bool *done, struct static_key_true *once_key, in __do_once_sleepable_done() argument 94 *done = true; in __do_once_sleepable_done()
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_interface_stress.sh | 54 done 64 done 70 done 82 done & 85 while true; do ip netns exec $nsr nft list ruleset >/dev/null 2>&1; done & 118 done 122 done 125 done 131 done 134 done [all …]
|
| H A D | nft_concat_range.sh | 579 done 1007 done 1062 done 1112 done 1124 done 1141 done 1144 done 1161 done 1217 done 1226 done [all …]
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | lm.c | 40 /* prevent file from being released before we are done with it */ in pds_vfio_get_lm_file() 110 /* allow file to be released since we are done with it */ in pds_vfio_put_lm_file() 180 ssize_t done = 0; in pds_vfio_save_read() local 189 done = -ENODEV; in pds_vfio_save_read() 194 done = -EINVAL; in pds_vfio_save_read() 209 if (done == 0) in pds_vfio_save_read() 210 done = -EINVAL; in pds_vfio_save_read() 219 done = -EFAULT; in pds_vfio_save_read() 224 done += page_len; in pds_vfio_save_read() 230 return done; in pds_vfio_save_read() [all …]
|
| /linux/tools/testing/selftests/cpufreq/ |
| H A D | special-tests.sh | 12 FILE_SPECIAL=DONE 52 done 70 done 81 done 96 done & 106 done 107 done
|
| /linux/tools/power/cpupower/bench/ |
| H A D | cpufreq-bench_script.sh | 49 done 50 done 61 done 65 done 71 done 75 done 81 done 82 done
|
| /linux/tools/bootconfig/scripts/ |
| H A D | ftrace2bconf.sh | 20 done 75 done 81 done 113 done 118 done 136 done 162 done 163 done 168 done 222 done [all …]
|
| /linux/virt/kvm/ |
| H A D | async_pf.c | 40 INIT_LIST_HEAD(&vcpu->async_pf.done); in kvm_async_pf_vcpu_init() 81 first = list_empty(&vcpu->async_pf.done); in async_pf_execute() 82 list_add_tail(&apf->link, &vcpu->async_pf.done); in async_pf_execute() 102 * The async #PF is "done", but KVM must wait for the work item itself, in kvm_flush_and_free_async_pf_work() 110 * Wake all events skip the queue and go straight done, i.e. don't in kvm_flush_and_free_async_pf_work() 138 while (!list_empty(&vcpu->async_pf.done)) { in kvm_clear_async_pf_completion_queue() 140 list_first_entry(&vcpu->async_pf.done, in kvm_clear_async_pf_completion_queue() 157 while (!list_empty_careful(&vcpu->async_pf.done) && in kvm_check_async_pf_completion() 160 work = list_first_entry(&vcpu->async_pf.done, typeof(*work), in kvm_check_async_pf_completion() 221 if (!list_empty_careful(&vcpu->async_pf.done)) in kvm_async_pf_wakeup_all() [all...] |
| /linux/tools/perf/bench/ |
| H A D | breakpoint.c | 70 unsigned int *done = (unsigned int *)arg; in passive_thread() local 72 while (!__atomic_load_n(done, __ATOMIC_RELAXED)) in passive_thread() 73 futex_wait(done, 0, NULL, 0); in passive_thread() 79 unsigned int *done = (unsigned int *)arg; in active_thread() local 81 while (!__atomic_load_n(done, __ATOMIC_RELAXED)); in active_thread() 87 unsigned int i, done; in breakpoint_thread() local 96 done = 0; in breakpoint_thread() 98 if (pthread_create(&threads[i], NULL, passive_thread, &done)) in breakpoint_thread() 101 __atomic_store_n(&done, 1, __ATOMIC_RELAXED); in breakpoint_thread() 102 futex_wake(&done, thread_param in breakpoint_thread() 200 unsigned int i, nthreads, result_usec, done = 0; bench_breakpoint_enable() local [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | cmsg_ip.sh | 66 done 67 done 68 done 105 done 123 done 124 done 159 done 164 done 165 done 177 done [all …]
|