Home
last modified time | relevance | path

Searched refs:expired (Results 1 - 25 of 111) sorted by relevance

12345

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
H A D5-1.c38 static int expired; variable
61 printf("thread1: timed read-lock expired\n"); in fn_rd_1()
62 expired = 1; in fn_rd_1()
65 expired = 0; in fn_rd_1()
106 printf("thread2: timed read-lock expired\n"); in fn_rd_2()
107 expired = 1; in fn_rd_2()
110 expired = 0; in fn_rd_2()
153 /* the child thread does not block, check the time expired or not */ in main()
154 if (expired == 1) { in main()
190 /* the child thread does not block, check the time expired o in main()
[all...]
H A D2-1.c46 static int expired; variable
63 printf("thread: timed read-lock correctly expired\n"); in fn_rd()
64 expired = 1; in fn_rd()
67 expired = 0; in fn_rd()
92 expired = 0; in main()
123 /* the child thread does not block, check the time expired or not */ in main()
124 if (expired != 1) { in main()
130 ("Test FAILED: thread blocked even when the timer expired\n"); in main()
H A D6-2.c21 * should have expired (timeout * 2)
54 static int expired; variable
87 expired = 0; in th_fn()
107 expired = 0; in th_fn()
109 printf("thread: timer expired, did not acquire read lock\n"); in th_fn()
110 expired = 1; in th_fn()
179 if (expired == 1) { in main()
203 if (expired == 1) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
H A D5-1.c35 static int expired; variable
68 printf("thread1: timer expired\n"); in fn_wr_1()
69 expired = 1; in fn_wr_1()
72 expired = 0; in fn_wr_1()
112 printf("thread2: timer expired\n"); in fn_wr_2()
113 expired = 1; in fn_wr_2()
116 expired = 0; in fn_wr_2()
158 /* the child thread does not block, check the time expired or not */ in main()
159 if (expired == 1) { in main()
194 /* the child thread does not block, check the time expired o in main()
[all...]
H A D6-2.c21 * should have expired (timeout * 2)
54 static int expired; variable
87 expired = 0; in th_fn()
107 expired = 0; in th_fn()
109 printf("thread: timer expired, did not acquire write lock\n"); in th_fn()
110 expired = 1; in th_fn()
179 if (expired == 1) { in main()
203 if (expired == 1) { in main()
H A D2-1.c37 static int expired; variable
70 printf("thread: timer expired\n"); in fn()
71 expired = 1; in fn()
74 expired = 0; in fn()
127 /* the child thread does not block, check the time expired or not */ in main()
128 if (expired != 1) { in main()
132 printf("thread correctly expired and did not wait\n"); in main()
136 ("Test FAILED: thread blocked even when the timer expired\n"); in main()
H A D3-1.c44 static int expired; variable
79 printf("thread: timer expired\n"); in fn_wr()
80 expired = 1; in fn_wr()
83 expired = 0; in fn_wr()
131 expired = 0; in main()
137 if (expired == 1) { in main()
138 printf("Test FAILED: the timer expired\n"); in main()
191 printf("Test FAILED: the timer expired and blocking " in main()
198 printf("thread1 correctly expired at timeout.\n"); in main()
201 "when the timer expired\ in main()
[all...]
H A D1-1.c42 static int expired; variable
69 printf("thread: timer expired\n"); in fn_wr()
70 expired = 1; in fn_wr()
73 expired = 0; in fn_wr()
111 expired = 0; in main()
117 if (expired == 1) { in main()
118 printf("Test FAILED: the timer expired\n"); in main()
172 ("Test FAILED: the timer expired and blocking was terminated, but the timeout is not correct: expected to wait for %d, but waited for %ld.%06ld\n", in main()
177 printf("thread1 correctly expired at timeout.\n"); in main()
180 ("Test FAILED: wait is not terminated even when the timer expired\ in main()
[all...]
/kernel/linux/linux-5.10/fs/autofs/
H A Dexpire.c10 /* Check if a dentry can be expired */
394 struct dentry *expired; in should_expire() local
404 expired = autofs_check_leaves(mnt, dentry, timeout, how); in should_expire()
405 if (expired) { in should_expire()
406 if (expired == dentry) in should_expire()
408 return expired; in should_expire()
428 struct dentry *expired; in autofs_expire_indirect() local
447 expired = should_expire(dentry, mnt, timeout, how); in autofs_expire_indirect()
448 if (!expired) in autofs_expire_indirect()
452 ino = autofs_dentry_ino(expired); in autofs_expire_indirect()
[all...]
/kernel/linux/linux-6.6/fs/autofs/
H A Dexpire.c10 /* Check if a dentry can be expired */
394 struct dentry *expired; in should_expire() local
404 expired = autofs_check_leaves(mnt, dentry, timeout, how); in should_expire()
405 if (expired) { in should_expire()
406 if (expired == dentry) in should_expire()
408 return expired; in should_expire()
428 struct dentry *expired; in autofs_expire_indirect() local
447 expired = should_expire(dentry, mnt, timeout, how); in autofs_expire_indirect()
448 if (!expired) in autofs_expire_indirect()
452 ino = autofs_dentry_ino(expired); in autofs_expire_indirect()
[all...]
/third_party/python/Lib/test/test_asyncio/
H A Dtest_timeouts.py20 self.assertTrue(cm.expired())
29 self.assertTrue(cm.expired())
46 self.assertTrue(cm1.expired())
47 self.assertTrue(cm2.expired())
68 self.assertFalse(cm.expired())
80 self.assertFalse(cm.expired())
92 self.assertFalse(cm.expired())
104 self.assertTrue(cm.expired())
116 self.assertTrue(cm.expired())
128 self.assertTrue(cm.expired())
[all...]
/third_party/node/test/cctest/
H A Dtest_sockaddr.cc64 bool expired; in TEST() member
71 return type.expired; in TEST()
75 type->expired = false; in TEST()
97 CHECK_EQ(foo->expired, false); in TEST()
100 foo->expired = true; in TEST()
106 CHECK_EQ(lru.Peek(addr1)->expired, false); in TEST()
111 foo->expired = true; in TEST()
116 foo->expired = true; in TEST()
120 foo->expired = false; in TEST()
126 // addr2 was removed because it was expired in TEST()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_api.h312 /*! Get Egress SA expired. */
313 int aq_mss_get_egress_sa_expired(struct aq_hw_s *hw, u32 *expired);
314 /*! Get Egress SA threshold expired. */
316 u32 *expired);
317 /*! Set Egress SA expired. */
318 int aq_mss_set_egress_sa_expired(struct aq_hw_s *hw, u32 expired);
319 /*! Set Egress SA threshold expired. */
321 u32 expired);
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_api.h312 /*! Get Egress SA expired. */
313 int aq_mss_get_egress_sa_expired(struct aq_hw_s *hw, u32 *expired);
314 /*! Get Egress SA threshold expired. */
316 u32 *expired);
317 /*! Set Egress SA expired. */
318 int aq_mss_set_egress_sa_expired(struct aq_hw_s *hw, u32 expired);
319 /*! Set Egress SA threshold expired. */
321 u32 expired);
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
H A Dtimerdev.c30 struct list_head expired; member
55 INIT_LIST_HEAD(&dev->expired); in mISDN_open()
79 /* it might have been moved to ->expired */ in mISDN_close()
85 list_for_each_entry_safe(timer, next, &dev->expired, list) { in mISDN_close()
96 struct list_head *list = &dev->expired; in mISDN_read()
146 if (dev->work || !list_empty(&dev->expired)) in mISDN_poll()
150 dev->work, list_empty(&dev->expired)); in mISDN_poll()
163 list_move_tail(&timer->list, &timer->dev->expired); in dev_expire_timer()
/kernel/linux/linux-6.6/drivers/isdn/mISDN/
H A Dtimerdev.c30 struct list_head expired; member
55 INIT_LIST_HEAD(&dev->expired); in mISDN_open()
79 /* it might have been moved to ->expired */ in mISDN_close()
85 list_for_each_entry_safe(timer, next, &dev->expired, list) { in mISDN_close()
96 struct list_head *list = &dev->expired; in mISDN_read()
146 if (dev->work || !list_empty(&dev->expired)) in mISDN_poll()
150 dev->work, list_empty(&dev->expired)); in mISDN_poll()
163 list_move_tail(&timer->list, &timer->dev->expired); in dev_expire_timer()
/kernel/linux/linux-5.10/fs/
H A Dtimerfd.c41 short unsigned expired; member
59 * This gets called when the timer event triggers. We set the "expired"
68 ctx->expired = 1; in timerfd_triggered()
184 ctx->expired = 0; in timerfd_setup()
271 ctx->expired = 0; in timerfd_read()
278 if (ctx->expired && ctx->tintv) { in timerfd_read()
295 ctx->expired = 0; in timerfd_read()
485 * If the timer is expired and it's periodic, we need to advance it in do_timerfd_settime()
487 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
490 if (ctx->expired in do_timerfd_settime()
[all...]
/kernel/linux/linux-6.6/fs/
H A Dtimerfd.c41 short unsigned expired; member
59 * This gets called when the timer event triggers. We set the "expired"
68 ctx->expired = 1; in timerfd_triggered()
200 ctx->expired = 0; in timerfd_setup()
287 ctx->expired = 0; in timerfd_read()
294 if (ctx->expired && ctx->tintv) { in timerfd_read()
311 ctx->expired = 0; in timerfd_read()
501 * If the timer is expired and it's periodic, we need to advance it in do_timerfd_settime()
503 * We do not update "ticks" and "expired" since the timer will be in do_timerfd_settime()
506 if (ctx->expired in do_timerfd_settime()
[all...]
/kernel/linux/linux-5.10/arch/loongarch/kvm/
H A Dtimer.c136 int expired = 0; in kvm_restore_timer() local
157 expired = 1; in kvm_restore_timer()
159 if (expired) { in kvm_restore_timer()
172 if (expired) in kvm_restore_timer()
/third_party/libdrm/tests/amdgpu/
H A Ddeadlock_tests.c246 uint32_t expired; in amdgpu_deadlock_helper() local
312 AMDGPU_TIMEOUT_INFINITE,0, &expired); in amdgpu_deadlock_helper()
337 uint32_t expired; in amdgpu_deadlock_sdma() local
409 AMDGPU_TIMEOUT_INFINITE,0, &expired); in amdgpu_deadlock_sdma()
434 uint32_t expired; in bad_access_helper() local
488 AMDGPU_TIMEOUT_INFINITE,0, &expired); in bad_access_helper()
/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dnetwork_search_branch_test.cpp63 ASSERT_TRUE(networkType->networkSearchManager_.expired()); in HWTEST_F()
87 ASSERT_TRUE(networkSelection->networkSearchManager_.expired()); in HWTEST_F()
218 ASSERT_TRUE(nitzUpdate->networkSearchManager_.expired()); in HWTEST_F()
231 ASSERT_TRUE(networkRegister->networkSearchManager_.expired()); in HWTEST_F()
276 ASSERT_TRUE(networkRegister->networkSearchManager_.expired()); in HWTEST_F()
363 ASSERT_TRUE(networkSearchState->networkSearchManager_.expired()); in HWTEST_F()
373 EXPECT_TRUE(networkSearchState->networkSearchManager_.expired()); in HWTEST_F()
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_timer.c236 bool expired = false, do_reset; in tcp_write_timeout() local
244 expired = icsk->icsk_retransmits >= retry_until; in tcp_write_timeout()
265 if (!expired) in tcp_write_timeout()
266 expired = retransmits_timed_out(sk, retry_until, in tcp_write_timeout()
268 tcp_fastopen_active_detect_blackhole(sk, expired); in tcp_write_timeout()
273 icsk->icsk_rto, (int)expired); in tcp_write_timeout()
275 if (expired) { in tcp_write_timeout()
/kernel/linux/linux-6.6/net/ipv4/
H A Dtcp_timer.c238 bool expired = false, do_reset; in tcp_write_timeout() local
252 expired = icsk->icsk_retransmits >= max_retransmits; in tcp_write_timeout()
273 if (!expired) in tcp_write_timeout()
274 expired = retransmits_timed_out(sk, retry_until, in tcp_write_timeout()
276 tcp_fastopen_active_detect_blackhole(sk, expired); in tcp_write_timeout()
281 icsk->icsk_rto, (int)expired); in tcp_write_timeout()
283 if (expired) { in tcp_write_timeout()
/kernel/linux/linux-5.10/drivers/fpga/
H A Dxilinx-spi.c174 bool expired = false; in xilinx_spi_write_complete() local
183 while (!expired) { in xilinx_spi_write_complete()
184 expired = time_after(jiffies, timeout); in xilinx_spi_write_complete()
/kernel/linux/linux-6.6/drivers/fpga/
H A Dxilinx-spi.c174 bool expired = false; in xilinx_spi_write_complete() local
183 while (!expired) { in xilinx_spi_write_complete()
184 expired = time_after(jiffies, timeout); in xilinx_spi_write_complete()

Completed in 16 milliseconds

12345