/linux/drivers/gpu/drm/scheduler/tests/ |
H A D | tests_basic.c | 44 bool done; in drm_sched_basic_submit() local 58 done = drm_mock_sched_job_wait_scheduled(job, HZ); in drm_sched_basic_submit() 59 KUNIT_ASSERT_TRUE(test, done); in drm_sched_basic_submit() 61 done = drm_mock_sched_job_wait_finished(job, HZ / 2); in drm_sched_basic_submit() 62 KUNIT_ASSERT_FALSE(test, done); in drm_sched_basic_submit() 67 done = drm_mock_sched_job_wait_finished(job, HZ); in drm_sched_basic_submit() 68 KUNIT_ASSERT_TRUE(test, done); in drm_sched_basic_submit() 125 bool done; in drm_sched_basic_test() local 147 done = drm_mock_sched_job_wait_finished(job, HZ); in drm_sched_basic_test() 148 KUNIT_ASSERT_TRUE(test, done); in drm_sched_basic_test() [all …]
|
/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 | 630 goto done; in test_xfrm_tunnel() 635 goto done; in test_xfrm_tunnel() 639 goto done; in test_xfrm_tunnel() 644 goto done; in test_xfrm_tunnel() 649 goto done; in test_xfrm_tunnel() 652 goto done; in test_xfrm_tunnel() 658 goto done; in test_xfrm_tunnel() 662 goto done; in test_xfrm_tunnel() 667 done: in test_xfrm_tunnel() 690 goto done; in test_xfrm_tunnel() [all...] |
H A D | exceptions.c | 34 goto done; in test_exceptions_success() 39 goto done; in test_exceptions_success() 97 goto done; \ in test_exceptions_success() 103 goto done; \ in test_exceptions_success() 108 goto done; \ in test_exceptions_success() 113 goto done; \ in test_exceptions_success() 116 goto done; \ in test_exceptions_success() 129 goto done; in test_exceptions_success() 139 goto done; in test_exceptions_success() 149 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 | sock_fields.c | 284 goto done; in test() 289 goto done; in test() 294 goto done; in test() 299 goto done; in test() 305 goto done; in test() 308 goto done; in test() 317 goto done; in test() 322 goto done; in test() 329 goto done; in test() 334 goto done; in test() [all …]
|
H A D | sock_iter_batch.c | 112 goto done; in get_nth_socket() 118 done: in get_nth_socket() 134 goto done; in destroy() 139 goto done; in destroy() 143 goto done; in destroy() 147 goto done; in destroy() 154 done: in destroy() 499 goto done; in add_some() 507 done: in add_some() 540 goto done; in add_some_established() [all …]
|
/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/kernel/ |
H A D | stop_machine.c | 70 static void cpu_stop_init_done(struct cpu_stop_done *done, unsigned int nr_todo) in cpu_stop_init_done() argument 72 memset(done, 0, sizeof(*done)); in cpu_stop_init_done() 73 atomic_set(&done->nr_todo, nr_todo); in cpu_stop_init_done() 74 init_completion(&done->completion); in cpu_stop_init_done() 77 /* signal completion unless @done is NULL */ 78 static void cpu_stop_signal_done(struct cpu_stop_done *done) in cpu_stop_signal_done() argument 80 if (atomic_dec_and_test(&done->nr_todo)) in cpu_stop_signal_done() 81 complete(&done->completion); in cpu_stop_signal_done() 102 else if (work->done) in cpu_stop_queue_work() 103 cpu_stop_signal_done(work->done); in cpu_stop_queue_work() [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/atm/ |
H A D | resources.c | 245 goto done; in atm_dev_ioctl() 252 goto done; in atm_dev_ioctl() 262 goto done; in atm_dev_ioctl() 272 goto done; in atm_dev_ioctl() 276 goto done; in atm_dev_ioctl() 280 goto done; in atm_dev_ioctl() 285 goto done; in atm_dev_ioctl() 292 goto done; in atm_dev_ioctl() 298 goto done; in atm_dev_ioctl() 305 goto done; in atm_dev_ioctl() [all …]
|
/linux/net/core/ |
H A D | failover.c | 54 goto done; in failover_slave_register() 60 goto done; in failover_slave_register() 64 goto done; in failover_slave_register() 71 goto done; in failover_slave_register() 93 done: in failover_slave_register() 110 goto done; in failover_slave_unregister() 116 goto done; in failover_slave_unregister() 120 goto done; in failover_slave_unregister() 130 done: in failover_slave_unregister() 141 goto done; in failover_slave_link_change() [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_rmap.c | 136 goto done; in xfs_rmap_insert() 140 goto done; in xfs_rmap_insert() 150 goto done; in xfs_rmap_insert() 154 goto done; in xfs_rmap_insert() 156 done: in xfs_rmap_insert() 178 goto done; in xfs_rmap_delete() 182 goto done; in xfs_rmap_delete() 187 goto done; in xfs_rmap_delete() 191 goto done; in xfs_rmap_delete() 193 done: in xfs_rmap_delete() [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/init/ |
H A D | do_mounts_rd.c | 97 goto done; in identify_ramdisk_image() 107 goto done; in identify_ramdisk_image() 115 goto done; in identify_ramdisk_image() 125 goto done; in identify_ramdisk_image() 139 goto done; in identify_ramdisk_image() 155 goto done; in identify_ramdisk_image() 165 goto done; in identify_ramdisk_image() 172 done: in identify_ramdisk_image() 209 goto done; in rd_load_image() 214 goto done; in rd_load_image() [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() 181 ssize_t done = 0; in pds_vfio_save_read() local 190 done = -ENODEV; in pds_vfio_save_read() 195 done = -EINVAL; in pds_vfio_save_read() 210 if (done == 0) in pds_vfio_save_read() 211 done = -EINVAL; in pds_vfio_save_read() 220 done = -EFAULT; in pds_vfio_save_read() 225 done += page_len; in pds_vfio_save_read() 231 return done; in pds_vfio_save_read() [all …]
|
/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 | 530 done 958 done 1013 done 1063 done 1075 done 1092 done 1095 done 1112 done 1168 done 1177 done [all …]
|
/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/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
|
/linux/drivers/crypto/cavium/cpt/ |
H A D | cpt_hw_types.h | 33 * doneint:1 Done interrupt. 35 * 1 = When the instruction completes, CPT()_VQ()_DONE[DONE] will be 117 * doneint:1 [16:16] Done interrupt. This bit is copied from the 433 * awaiting software handling (CPT()_VQ()_DONE[DONE] != 0x0). 491 * CPT Queue Done Count Ack Registers 496 * done_ack:20 [19:0](R/W/H) Number of decrements to CPT()_VQ()_DONE[DONE]. 497 * Reads CPT()_VQ()_DONE[DONE]. Written by software to acknowledge 498 * interrupts. If CPT()_VQ()_DONE[DONE] is still nonzero the interrupt 499 * will be re-sent if the conditions described in CPT()_VQ()_DONE[DONE] 519 * CPT Queue Done Count Registers [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_params.nthreads, 0); in breakpoint_thread() [all …]
|