Home
last modified time | relevance | path

Searched refs:spin (Results 1 – 25 of 161) sorted by relevance

1234567

/external/igt-gpu-tools/lib/
Digt_dummyload.c72 emit_recursive_batch(igt_spin_t *spin, in emit_recursive_batch() argument
103 memset(&spin->execbuf, 0, sizeof(spin->execbuf)); in emit_recursive_batch()
104 execbuf = &spin->execbuf; in emit_recursive_batch()
105 memset(spin->obj, 0, sizeof(spin->obj)); in emit_recursive_batch()
106 obj = spin->obj; in emit_recursive_batch()
146 spin->poll_handle = gem_create(fd, 4096); in emit_recursive_batch()
147 obj[SCRATCH].handle = spin->poll_handle; in emit_recursive_batch()
149 if (__gem_set_caching(fd, spin->poll_handle, in emit_recursive_batch()
151 spin->poll = gem_mmap__cpu(fd, spin->poll_handle, in emit_recursive_batch()
155 spin->poll = gem_mmap__wc(fd, spin->poll_handle, in emit_recursive_batch()
[all …]
Digt_dummyload.h74 void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns);
75 void igt_spin_reset(igt_spin_t *spin);
76 void igt_spin_end(igt_spin_t *spin);
77 void igt_spin_free(int fd, igt_spin_t *spin);
79 static inline bool igt_spin_has_poll(const igt_spin_t *spin) in igt_spin_has_poll() argument
81 return spin->poll; in igt_spin_has_poll()
84 static inline bool igt_spin_has_started(igt_spin_t *spin) in igt_spin_has_started() argument
86 return READ_ONCE(spin->poll[SPIN_POLL_START_IDX]); in igt_spin_has_started()
89 static inline void igt_spin_busywait_until_started(igt_spin_t *spin) in igt_spin_busywait_until_started() argument
91 while (!igt_spin_has_started(spin)) in igt_spin_busywait_until_started()
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_editmenu.py25 cls.spin = tk.Spinbox(root)
31 del cls.text, cls.entry, cls.spin
81 spin = self.spin
83 spin.delete(0, 'end')
84 spin.insert(0, 'one')
85 spin.selection('range', 0, end) # see note
86 spin.event_generate('<<Paste>>')
87 self.assertEqual(spin.get(), ans)
91 spin = self.spin
93 spin.delete(0, 'end')
[all …]
/external/igt-gpu-tools/tests/
Dperf_pmu.c182 static unsigned long __spin_wait(int fd, igt_spin_t *spin) in __spin_wait() argument
188 if (igt_spin_has_poll(spin)) { in __spin_wait()
191 while (!igt_spin_has_started(spin)) { in __spin_wait()
211 igt_spin_t *spin = __spin_poll(fd, ctx, e); in __spin_sync() local
213 __spin_wait(fd, spin); in __spin_sync()
215 return spin; in __spin_sync()
238 static void end_spin(int fd, igt_spin_t *spin, unsigned int flags) in end_spin() argument
240 if (!spin) in end_spin()
243 igt_spin_end(spin); in end_spin()
246 gem_sync(fd, spin->handle); in end_spin()
[all …]
/external/igt-gpu-tools/tests/i915/
Dgem_spin_batch.c35 static void spin(int fd, const struct intel_execution_engine2 *e2, in spin() function
40 igt_spin_t *spin; in spin() local
45 spin = __igt_spin_new(fd, .engine = e2->flags); in spin()
49 igt_spin_set_timeout(spin, in spin()
51 gem_sync(fd, spin->handle); in spin()
58 igt_spin_free(fd, spin); in spin()
59 spin = next; in spin()
62 igt_spin_free(fd, spin); in spin()
79 igt_spin_t *spin = __igt_spin_new(fd, .ctx = ctx0, .engine = e2->flags); in spin_resubmit() local
84 .buffers_ptr = to_user_pointer(&spin->obj[IGT_SPIN_BATCH]), in spin_resubmit()
[all …]
Dgem_exec_latency.c74 igt_spin_t *spin[2]; in poll_ring() local
80 spin[0] = __igt_spin_factory(fd, &opts); in poll_ring()
81 igt_assert(igt_spin_has_poll(spin[0])); in poll_ring()
83 spin[1] = __igt_spin_factory(fd, &opts); in poll_ring()
84 igt_assert(igt_spin_has_poll(spin[1])); in poll_ring()
86 igt_spin_end(spin[0]); in poll_ring()
87 igt_spin_busywait_until_started(spin[1]); in poll_ring()
89 igt_assert(!gem_bo_busy(fd, spin[0]->handle)); in poll_ring()
95 igt_spin_reset(spin[idx]); in poll_ring()
97 gem_execbuf(fd, &spin[idx]->execbuf); in poll_ring()
[all …]
Dgem_exec_schedule.c166 igt_spin_t *spin[MAX_ELSP_QLEN]; in unplug_show_queue() local
178 spin[n] = __igt_spin_factory(fd, &opts); in unplug_show_queue()
186 igt_spin_free(fd, spin[n]); in unplug_show_queue()
217 igt_spin_t *spin = NULL; in independent() local
237 if (spin == NULL) { in independent()
238 spin = __igt_spin_new(fd, .engine = other); in independent()
242 .buffers_ptr = to_user_pointer(&spin->obj[IGT_SPIN_BATCH]), in independent()
250 igt_require(spin); in independent()
260 igt_assert(gem_bo_busy(fd, spin->handle)); in independent()
267 igt_spin_free(fd, spin); in independent()
[all …]
Dgem_ctx_shared.c111 igt_spin_t *spin[2]; in disjoint_timelines() local
124 spin[0] = __igt_spin_new(i915, .ctx = 0, .dependency = plug); in disjoint_timelines()
125 spin[1] = __igt_spin_new(i915, .ctx = child); in disjoint_timelines()
128 igt_spin_end(spin[1]); in disjoint_timelines()
129 gem_sync(i915, spin[1]->handle); in disjoint_timelines()
133 igt_spin_free(i915, spin[1]); in disjoint_timelines()
134 igt_spin_free(i915, spin[0]); in disjoint_timelines()
365 igt_spin_t *spin; in exec_single_timeline() local
376 spin = NULL; in exec_single_timeline()
381 if (spin == NULL) { in exec_single_timeline()
[all …]
Dgem_sync.c212 igt_spin_t *spin; in wakeup_ring() local
223 spin = __igt_spin_new(fd, in wakeup_ring()
227 igt_assert(igt_spin_has_poll(spin)); in wakeup_ring()
231 igt_spin_end(spin); in wakeup_ring()
239 igt_spin_reset(spin); in wakeup_ring()
241 gem_execbuf(fd, &spin->execbuf); in wakeup_ring()
242 igt_spin_busywait_until_started(spin); in wakeup_ring()
245 igt_spin_end(spin); in wakeup_ring()
246 gem_sync(fd, spin->handle); in wakeup_ring()
263 igt_spin_reset(spin); in wakeup_ring()
[all …]
Di915_pm_rps.c247 igt_spin_t *spin[2] = {}; in load_helper_run() local
257 spin[0] = __igt_spin_new(drm_fd); in load_helper_run()
259 spin[1] = __igt_spin_new(drm_fd); in load_helper_run()
264 handle = spin[0]->handle; in load_helper_run()
265 igt_spin_end(spin[0]); in load_helper_run()
269 igt_spin_free(drm_fd, spin[0]); in load_helper_run()
273 if (!high_load && spin[1]) { in load_helper_run()
274 igt_spin_free(drm_fd, spin[1]); in load_helper_run()
275 spin[1] = NULL; in load_helper_run()
277 spin[0] = spin[1]; in load_helper_run()
[all …]
Dgem_busy.c105 igt_spin_t *spin; in semaphore() local
117 spin = igt_spin_new(fd, in semaphore()
148 igt_spin_free(fd, spin); in semaphore()
363 igt_spin_t *spin[nhandles]; in close_race() local
369 spin[i] = __igt_spin_new(fd, in close_race()
371 handles[i] = spin[i]->handle; in close_race()
376 igt_spin_free(fd, spin[i]); in close_race()
377 spin[i] = __igt_spin_new(fd, in close_race()
379 handles[i] = spin[i]->handle; in close_race()
388 igt_spin_free(fd, spin[i]); in close_race()
[all …]
Dgem_exec_balancer.c509 igt_spin_t *spin; in check_individual_engine() local
516 spin = igt_spin_new(i915, .ctx = ctx, .engine = idx + 1); in check_individual_engine()
518 igt_spin_free(i915, spin); in check_individual_engine()
627 igt_spin_t *spin, *plug; in bonded() local
649 spin = __igt_spin_new(i915, in bonded()
654 eb = spin->execbuf; in bonded()
656 eb.rsvd2 = spin->out_fence; in bonded()
666 igt_spin_free(i915, spin); in bonded()
815 igt_spin_t *spin[2]; in busy() local
825 spin[0] = __igt_spin_new(i915, in busy()
[all …]
Dgem_vm_create.c352 igt_spin_t *spin[2]; in async_destroy() local
354 spin[0] = igt_spin_new(i915, in async_destroy()
357 igt_spin_busywait_until_started(spin[0]); in async_destroy()
360 spin[1] = __igt_spin_new(i915, .ctx = arg.ctx_id); in async_destroy()
362 igt_spin_end(spin[0]); in async_destroy()
363 gem_sync(i915, spin[0]->handle); in async_destroy()
368 igt_spin_end(spin[1]); in async_destroy()
369 gem_sync(i915, spin[1]->handle); in async_destroy()
371 for (int i = 0; i < ARRAY_SIZE(spin); i++) in async_destroy()
372 igt_spin_free(i915, spin[i]); in async_destroy()
Dgem_ctx_exec.c174 igt_spin_t *spin; in norecovery() local
182 spin = __igt_spin_new(i915, in norecovery()
185 igt_spin_busywait_until_started(spin); in norecovery()
189 igt_spin_end(spin); in norecovery()
190 igt_assert_eq(__gem_execbuf(i915, &spin->execbuf), expect); in norecovery()
191 igt_spin_free(i915, spin); in norecovery()
Dgem_exec_fence.c321 igt_spin_t *spin; in test_fence_await() local
332 spin = igt_spin_new(fd, in test_fence_await()
335 igt_assert(spin->out_fence != -1); in test_fence_await()
343 store(fd, engine, spin->out_fence, scratch, i); in test_fence_await()
346 store(fd, engine, spin->out_fence, scratch, i); in test_fence_await()
355 igt_assert(fence_busy(spin->out_fence)); in test_fence_await()
360 igt_spin_end(spin); in test_fence_await()
369 igt_spin_free(fd, spin); in test_fence_await()
413 igt_spin_t *spin; in test_parallel() local
424 spin = igt_spin_new(fd, .engine = master, .dependency = plug); in test_parallel()
[all …]
Dgem_ctx_engines.c276 igt_spin_t *spin; in execute_one() local
284 spin = igt_spin_new(i915, in execute_one()
299 igt_spin_busywait_until_started(spin); in execute_one()
312 igt_spin_free(i915, spin); in execute_one()
351 igt_spin_t *spin; in execute_oneforall() local
353 spin = __igt_spin_new(i915, in execute_oneforall()
357 busy.handle = spin->handle; in execute_oneforall()
361 igt_spin_free(i915, spin); in execute_oneforall()
392 igt_spin_t *spin; in execute_allforone() local
394 spin = __igt_spin_new(i915, in execute_allforone()
[all …]
/external/rust/crates/spin/
DREADME.md1 # spin-rs
3 [![Crates.io version](https://img.shields.io/crates/v/spin.svg)](https://crates.io/crates/spin)
4 [![docs.rs](https://docs.rs/spin/badge.svg)](https://docs.rs/spin/)
5 [![Build Status](https://travis-ci.org/mvdnes/spin-rs.svg)](https://travis-ci.org/mvdnes/spin-rs)
9 This crate provides [spin-based](https://en.wikipedia.org/wiki/Spinlock)
13 Before deciding to use `spin`, we recommend reading
35 spin = "x.y"
44 extern crate spin;
48 let counter = Arc::new(spin::Mutex::new(0));
92 accessed. Instead, they will 'spin' in a busy loop until the lock becomes available.
[all …]
DMETADATA1 name: "spin"
6 value: "https://crates.io/crates/spin"
10 value: "https://static.crates.io/crates/spin/spin-0.7.1.crate"
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_editmenu.py25 cls.spin = tk.Spinbox(root)
63 spin = self.spin
66 spin.delete(0, 'end')
67 spin.insert(0, 'one')
68 spin.selection('range', 0, end) # see note
69 spin.event_generate('<<Paste>>')
70 self.assertEqual(spin.get(), ans)
/external/python/cpython3/Lib/tkinter/test/test_ttk/
Dtest_widgets.py1124 self.spin = self.create()
1125 self.spin.pack()
1131 width = self.spin.winfo_width()
1132 height = self.spin.winfo_height()
1135 self.assertRegex(self.spin.identify(x, y), r'.*uparrow\Z')
1136 self.spin.event_generate('<ButtonPress-1>', x=x, y=y)
1137 self.spin.event_generate('<ButtonRelease-1>', x=x, y=y)
1138 self.spin.update_idletasks()
1141 width = self.spin.winfo_width()
1142 height = self.spin.winfo_height()
[all …]
/external/jemalloc_new/include/jemalloc/internal/
Dspin.h21 spin_adaptive(spin_t *spin) { in spin_adaptive() argument
24 if (spin->iteration < 5) { in spin_adaptive()
25 for (i = 0; i < (1U << spin->iteration); i++) { in spin_adaptive()
28 spin->iteration++; in spin_adaptive()
/external/skia/gm/
Dmakecolorspace.cpp143 sk_sp<SkColorSpace> spin = srgb->makeColorSpin(); variable
152 canvas->drawImage(image->reinterpretColorSpace(spin), 128.0f, 0.0f);
153 canvas->drawImage(image->makeColorSpace(spin, nullptr)->reinterpretColorSpace(srgb),
161 canvas->drawImage(image->reinterpretColorSpace(spin), 128.0f, 0.0f);
162 canvas->drawImage(image->makeColorSpace(spin, nullptr)->reinterpretColorSpace(srgb),
174 canvas->drawImage(image->reinterpretColorSpace(spin), 128.0f, 0.0f);
175 canvas->drawImage(image->makeColorSpace(spin, direct)->reinterpretColorSpace(srgb),
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAnimationSetTest.java29 final Animation spin = new RotateAnimation(0, 360); in start_shouldRunAnimation() local
30 spin.setDuration(1000); in start_shouldRunAnimation()
31 spin.setStartOffset(1000); in start_shouldRunAnimation()
32 spin.setAnimationListener(spinListener); in start_shouldRunAnimation()
/external/rust/crates/spin/examples/
Ddebug.rs1 extern crate spin;
4 let mutex = spin::Mutex::new(42); in main()
11 let rwlock = spin::RwLock::new(42); in main()
/external/rust/crates/spin/patches/
Ddisable_panic_tests.patch1 diff --git a/src/mutex/spin.rs b/src/mutex/spin.rs
3 --- a/src/mutex/spin.rs
4 +++ b/src/mutex/spin.rs

1234567