/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_tunnel.c | 416 goto done; in test_vxlan_tunnel() 421 goto done; in test_vxlan_tunnel() 424 goto done; in test_vxlan_tunnel() 429 goto done; in test_vxlan_tunnel() 431 goto done; in test_vxlan_tunnel() 433 goto done; in test_vxlan_tunnel() 438 goto done; in test_vxlan_tunnel() 442 goto done; in test_vxlan_tunnel() 444 goto done; in test_vxlan_tunnel() 449 goto done; in test_vxlan_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 | netns_cookie.c | 32 goto done; in test_netns_cookie() 37 goto done; in test_netns_cookie() 43 goto done; in test_netns_cookie() 48 goto done; in test_netns_cookie() 87 done:
|
H A D | btf_skc_cls_ingress.c | 149 goto done; in test_syncookie() 162 goto done; in test_syncookie() 167 goto done; in test_syncookie() 171 goto done; in test_syncookie() 195 done:
|
H A D | xfrm_info.c | 231 goto done; in setup_xfrmi_external_dev() 235 goto done; in setup_xfrmi_external_dev() 238 goto done; in setup_xfrmi_external_dev() 241 done: in setup_xfrmi_external_dev() 303 goto done; in _test_xfrm_info() 306 goto done; in _test_xfrm_info() 309 goto done; in _test_xfrm_info() 314 goto done; in _test_xfrm_info() 316 goto done; in _test_xfrm_info() 319 goto done; in _test_xfrm_info() [all …]
|
H A D | sock_iter_batch.c | 31 goto done; in do_test() 34 goto done; in do_test() 40 goto done; in do_test() 47 goto done; in do_test() 51 goto done; in do_test() 102 done: in do_test() 116 SYS(done, "ip netns add %s", TEST_NS); in test_sock_iter_batch() 117 SYS(done, "ip -net %s link set dev lo up", TEST_NS); in test_sock_iter_batch() 121 goto done; in test_sock_iter_batch() 133 done: in test_sock_iter_batch()
|
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()
|
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 …]
|
/linux/Documentation/translations/zh_CN/scheduler/ |
H A D | completion.rst | 33 事件被简化为 ``struct completion`` 中的一个简单标志,被恰如其名地称为‘done’。 49 完成标记为 "done",这是完全正常的。 55 unsigned int done; 59 结构体提供了->wait等待队列来放置任务进行等待(如果有的话),以及->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) [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() 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() 105 else if (work->done) in cpu_stop_queue_work() 106 cpu_stop_signal_done(work->done); in cpu_stop_queue_work() 141 struct cpu_stop_done done; in stop_one_cpu() local [all …]
|
/linux/drivers/media/platform/qcom/venus/ |
H A D | hfi_msgs.c | 47 goto done; in event_seq_changed() 55 goto done; in event_seq_changed() 126 done: in event_seq_changed() 229 goto done; in hfi_sys_init_done() 233 goto done; in hfi_sys_init_done() 240 goto done; in hfi_sys_init_done() 245 done: in hfi_sys_init_done() 247 complete(&core->done); in hfi_sys_init_done() 274 goto done; in sys_get_prop_image_version() 279 goto done; in sys_get_prop_image_version() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_success.c | 154 goto done; in test_ringbuf() 165 done: in test_ringbuf() 227 goto done; in test_adjust() 232 goto done; in test_adjust() 239 goto done; in test_adjust() 244 goto done; in test_adjust() 251 goto done; in test_adjust() 257 goto done; in test_adjust() 260 done: in test_adjust() 278 goto done; in test_adjust_err() [all …]
|
/linux/drivers/staging/vme_user/ |
H A D | vme_fake.c | 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() 560 addr + done, aspace, cycle); in fake_master_read() [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/net/atm/ |
H A D | resources.c | 246 goto done; in atm_dev_ioctl() 253 goto done; in atm_dev_ioctl() 263 goto done; in atm_dev_ioctl() 273 goto done; in atm_dev_ioctl() 277 goto done; in atm_dev_ioctl() 281 goto done; in atm_dev_ioctl() 286 goto done; in atm_dev_ioctl() 293 goto done; in atm_dev_ioctl() 299 goto done; in atm_dev_ioctl() 306 goto done; in atm_dev_ioctl() [all …]
|
/linux/drivers/crypto/ |
H A D | padlock-sha.c | 284 unsigned int partial, done; in padlock_sha1_update_nano() local 293 done = 0; in padlock_sha1_update_nano() 301 done = -partial; in padlock_sha1_update_nano() 303 done + SHA1_BLOCK_SIZE); in padlock_sha1_update_nano() 308 done += SHA1_BLOCK_SIZE; in padlock_sha1_update_nano() 309 src = data + done; in padlock_sha1_update_nano() 313 if (len - done >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 317 "c"((unsigned long)((len - done) / SHA1_BLOCK_SIZE))); in padlock_sha1_update_nano() 318 done += ((len - done) - (len - done) % SHA1_BLOCK_SIZE); in padlock_sha1_update_nano() 319 src = data + done; in padlock_sha1_update_nano() [all …]
|
/linux/kernel/sched/ |
H A D | completion.c | 22 if (x->done != UINT_MAX) in complete_with_flags() 23 x->done++; in complete_with_flags() 74 x->done = UINT_MAX; in complete_all() 84 if (!x->done) { in do_wait_for_common() 97 } while (!x->done && timeout); in do_wait_for_common() 99 if (!x->done) in do_wait_for_common() 102 if (x->done != UINT_MAX) in do_wait_for_common() 103 x->done--; in do_wait_for_common() 315 if (!READ_ONCE(x->done)) in try_wait_for_completion() 319 if (!x->done) in try_wait_for_completion() [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/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/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/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 …]
|
/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec_port.c | 250 goto done; in pmic_typec_port_isr() 263 done: in pmic_typec_port_isr() 344 goto done; in qcom_pmic_typec_port_set_vbus() 348 goto done; in qcom_pmic_typec_port_set_vbus() 353 done: in qcom_pmic_typec_port_set_vbus() 374 goto done; in qcom_pmic_typec_port_get_cc() 380 goto done; in qcom_pmic_typec_port_get_cc() 387 goto done; in qcom_pmic_typec_port_get_cc() 394 goto done; in qcom_pmic_typec_port_get_cc() 419 goto done; in qcom_pmic_typec_port_get_cc() [all …]
|
H A D | qcom_pmic_typec_pdphy.c | 166 goto done; in qcom_pmic_typec_pdphy_clear_tx_control_reg() 172 done: in qcom_pmic_typec_pdphy_clear_tx_control_reg() 194 goto done; in qcom_pmic_typec_pdphy_pd_transmit_signal() 208 done: in qcom_pmic_typec_pdphy_pd_transmit_signal() 238 goto done; in qcom_pmic_typec_pdphy_pd_transmit_payload() 243 goto done; in qcom_pmic_typec_pdphy_pd_transmit_payload() 249 goto done; in qcom_pmic_typec_pdphy_pd_transmit_payload() 256 goto done; in qcom_pmic_typec_pdphy_pd_transmit_payload() 264 goto done; in qcom_pmic_typec_pdphy_pd_transmit_payload() 272 goto done; in qcom_pmic_typec_pdphy_pd_transmit_payload() [all …]
|
/linux/drivers/platform/chrome/ |
H A D | cros_ec_lpc.c | 199 goto done; in cros_ec_pkt_xfer_lpc() 204 goto done; in cros_ec_pkt_xfer_lpc() 210 goto done; in cros_ec_pkt_xfer_lpc() 214 goto done; in cros_ec_pkt_xfer_lpc() 218 goto done; in cros_ec_pkt_xfer_lpc() 224 goto done; in cros_ec_pkt_xfer_lpc() 228 goto done; in cros_ec_pkt_xfer_lpc() 235 goto done; in cros_ec_pkt_xfer_lpc() 245 goto done; in cros_ec_pkt_xfer_lpc() 253 goto done; in cros_ec_pkt_xfer_lpc() [all …]
|