Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 25 of 633) sorted by relevance

12345678910>>...26

/third_party/musl/porting/linux/user/src/thread/
Dpthread_rwlock_timedwrlock.c18 int __pthread_rwlock_timedwrlock(pthread_rwlock_t *restrict rw, const struct timespec *restrict at) in __pthread_rwlock_timedwrlock() argument
20 if (rw == NULL) { in __pthread_rwlock_timedwrlock()
24 int clock = (rw->_rw_clock == CLOCK_MONOTONIC) ? CLOCK_MONOTONIC : CLOCK_REALTIME; in __pthread_rwlock_timedwrlock()
26 r = pthread_rwlock_trywrlock(rw); in __pthread_rwlock_timedwrlock()
30 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedwrlock()
32 while ((r=__pthread_rwlock_trywrlock(rw))==EBUSY) { in __pthread_rwlock_timedwrlock()
33 if (!(r=rw->_rw_lock)) continue; in __pthread_rwlock_timedwrlock()
35 a_inc(&rw->_rw_waiters); in __pthread_rwlock_timedwrlock()
36 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedwrlock()
37 r = __timedwait(&rw->_rw_lock, t, clock, at, rw->_rw_shared^128); in __pthread_rwlock_timedwrlock()
[all …]
Dpthread_rwlock_timedrdlock.c18 int __pthread_rwlock_timedrdlock(pthread_rwlock_t *restrict rw, const struct timespec *restrict at) in __pthread_rwlock_timedrdlock() argument
21 int clock = (rw->_rw_clock == CLOCK_MONOTONIC) ? CLOCK_MONOTONIC : CLOCK_REALTIME; in __pthread_rwlock_timedrdlock()
23 r = pthread_rwlock_tryrdlock(rw); in __pthread_rwlock_timedrdlock()
27 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedrdlock()
29 while ((r=__pthread_rwlock_tryrdlock(rw))==EBUSY) { in __pthread_rwlock_timedrdlock()
30 if (!(r=rw->_rw_lock) || (r&0x7fffffff)!=0x7fffffff) continue; in __pthread_rwlock_timedrdlock()
32 a_inc(&rw->_rw_waiters); in __pthread_rwlock_timedrdlock()
33 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedrdlock()
34 r = __timedwait(&rw->_rw_lock, t, clock, at, rw->_rw_shared^128); in __pthread_rwlock_timedrdlock()
35 a_dec(&rw->_rw_waiters); in __pthread_rwlock_timedrdlock()
Dpthread_rwlock_clockrdlock.c18 int pthread_rwlock_clockrdlock(pthread_rwlock_t *rw, clockid_t clock_id, const struct timespec *at) in pthread_rwlock_clockrdlock() argument
20 if (rw == NULL) { in pthread_rwlock_clockrdlock()
26 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_clockrdlock()
27 return __pthread_rwlock_timedrdlock(rw, at); in pthread_rwlock_clockrdlock()
29 rw->_rw_clock = CLOCK_REALTIME; in pthread_rwlock_clockrdlock()
30 return __pthread_rwlock_timedrdlock(rw, at); in pthread_rwlock_clockrdlock()
Dpthread_rwlock_clockwrlock.c18 int pthread_rwlock_clockwrlock(pthread_rwlock_t *rw, clockid_t clock_id, const struct timespec *at) in pthread_rwlock_clockwrlock() argument
20 if (rw == NULL) { in pthread_rwlock_clockwrlock()
26 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_clockwrlock()
27 return __pthread_rwlock_timedwrlock(rw, at); in pthread_rwlock_clockwrlock()
29 rw->_rw_clock = CLOCK_REALTIME; in pthread_rwlock_clockwrlock()
30 return __pthread_rwlock_timedwrlock(rw, at); in pthread_rwlock_clockwrlock()
Dpthread_rwlock_timedrdlock_monotonic_np.c18 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t *rw, const struct timespec *at) in pthread_rwlock_timedrdlock_monotonic_np() argument
20 if (rw == NULL) { in pthread_rwlock_timedrdlock_monotonic_np()
23 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_timedrdlock_monotonic_np()
24 return __pthread_rwlock_timedrdlock(rw, at); in pthread_rwlock_timedrdlock_monotonic_np()
Dpthread_rwlock_timedwrlock_monotonic_np.c18 int pthread_rwlock_timedwrlock_monotonic_np(pthread_rwlock_t *rw, const struct timespec *at) in pthread_rwlock_timedwrlock_monotonic_np() argument
20 if (rw == NULL) { in pthread_rwlock_timedwrlock_monotonic_np()
23 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_timedwrlock_monotonic_np()
24 return __pthread_rwlock_timedwrlock(rw, at); in pthread_rwlock_timedwrlock_monotonic_np()
/third_party/musl/src/thread/
Dpthread_rwlock_timedwrlock.c3 int __pthread_rwlock_timedwrlock(pthread_rwlock_t *restrict rw, const struct timespec *restrict at) in __pthread_rwlock_timedwrlock() argument
5 if (rw == NULL) { in __pthread_rwlock_timedwrlock()
8 int clock = (rw->_rw_clock == CLOCK_MONOTONIC) ? CLOCK_MONOTONIC : CLOCK_REALTIME; in __pthread_rwlock_timedwrlock()
11 r = pthread_rwlock_trywrlock(rw); in __pthread_rwlock_timedwrlock()
15 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedwrlock()
17 while ((r=__pthread_rwlock_trywrlock(rw))==EBUSY) { in __pthread_rwlock_timedwrlock()
18 if (!(r=rw->_rw_lock)) continue; in __pthread_rwlock_timedwrlock()
20 a_inc(&rw->_rw_waiters); in __pthread_rwlock_timedwrlock()
21 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedwrlock()
22 r = __timedwait(&rw->_rw_lock, t, clock, at, rw->_rw_shared^128); in __pthread_rwlock_timedwrlock()
[all …]
Dpthread_rwlock_timedrdlock.c3 int __pthread_rwlock_timedrdlock(pthread_rwlock_t *restrict rw, const struct timespec *restrict at) in __pthread_rwlock_timedrdlock() argument
6 int clock = (rw->_rw_clock == CLOCK_MONOTONIC) ? CLOCK_MONOTONIC : CLOCK_REALTIME; in __pthread_rwlock_timedrdlock()
8 r = pthread_rwlock_tryrdlock(rw); in __pthread_rwlock_timedrdlock()
12 while (spins-- && rw->_rw_lock && !rw->_rw_waiters) a_spin(); in __pthread_rwlock_timedrdlock()
14 while ((r=__pthread_rwlock_tryrdlock(rw))==EBUSY) { in __pthread_rwlock_timedrdlock()
15 if (!(r=rw->_rw_lock) || (r&0x7fffffff)!=0x7fffffff) continue; in __pthread_rwlock_timedrdlock()
17 a_inc(&rw->_rw_waiters); in __pthread_rwlock_timedrdlock()
18 a_cas(&rw->_rw_lock, r, t); in __pthread_rwlock_timedrdlock()
19 r = __timedwait(&rw->_rw_lock, t, clock, at, rw->_rw_shared^128); in __pthread_rwlock_timedrdlock()
20 a_dec(&rw->_rw_waiters); in __pthread_rwlock_timedrdlock()
Dpthread_rwlock_clockrdlock.c18 int pthread_rwlock_clockrdlock(pthread_rwlock_t *rw, clockid_t clock_id, const struct timespec *at) in pthread_rwlock_clockrdlock() argument
20 if (rw == NULL) { in pthread_rwlock_clockrdlock()
26 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_clockrdlock()
27 return __pthread_rwlock_timedrdlock(rw, at); in pthread_rwlock_clockrdlock()
29 rw->_rw_clock = CLOCK_REALTIME; in pthread_rwlock_clockrdlock()
30 return __pthread_rwlock_timedrdlock(rw, at); in pthread_rwlock_clockrdlock()
Dpthread_rwlock_clockwrlock.c18 int pthread_rwlock_clockwrlock(pthread_rwlock_t *rw, clockid_t clock_id, const struct timespec *at) in pthread_rwlock_clockwrlock() argument
20 if (rw == NULL) { in pthread_rwlock_clockwrlock()
26 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_clockwrlock()
27 return __pthread_rwlock_timedwrlock(rw, at); in pthread_rwlock_clockwrlock()
29 rw->_rw_clock = CLOCK_REALTIME; in pthread_rwlock_clockwrlock()
30 return __pthread_rwlock_timedwrlock(rw, at); in pthread_rwlock_clockwrlock()
Dpthread_rwlock_unlock.c3 int __pthread_rwlock_unlock(pthread_rwlock_t *rw) in __pthread_rwlock_unlock() argument
5 int val, cnt, waiters, new, priv = rw->_rw_shared^128; in __pthread_rwlock_unlock()
8 val = rw->_rw_lock; in __pthread_rwlock_unlock()
10 waiters = rw->_rw_waiters; in __pthread_rwlock_unlock()
12 } while (a_cas(&rw->_rw_lock, val, new) != val); in __pthread_rwlock_unlock()
15 __wake(&rw->_rw_lock, cnt, priv); in __pthread_rwlock_unlock()
Dpthread_rwlock_timedrdlock_monotonic_np.c18 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t *rw, const struct timespec *at) in pthread_rwlock_timedrdlock_monotonic_np() argument
20 if (rw == NULL) { in pthread_rwlock_timedrdlock_monotonic_np()
23 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_timedrdlock_monotonic_np()
24 return __pthread_rwlock_timedrdlock(rw, at); in pthread_rwlock_timedrdlock_monotonic_np()
Dpthread_rwlock_timedwrlock_monotonic_np.c18 int pthread_rwlock_timedwrlock_monotonic_np(pthread_rwlock_t *rw, const struct timespec *at) in pthread_rwlock_timedwrlock_monotonic_np() argument
20 if (rw == NULL) { in pthread_rwlock_timedwrlock_monotonic_np()
23 rw->_rw_clock = CLOCK_MONOTONIC; in pthread_rwlock_timedwrlock_monotonic_np()
24 return __pthread_rwlock_timedwrlock(rw, at); in pthread_rwlock_timedwrlock_monotonic_np()
/third_party/ffmpeg/libavcodec/
Dcbs_sei_syntax_template.c20 (CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
38 (CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
70 (CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
98 (CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
120 (CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
134 (CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
147 static int FUNC(message)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
166 start_position = bit_position(rw); in FUNC()
168 CHECK(desc->READWRITE(ctx, rw, current->payload, &state)); in FUNC()
170 current_position = bit_position(rw); in FUNC()
[all …]
Dcbs_vp9_syntax_template.c19 static int FUNC(frame_sync_code)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
31 static int FUNC(color_config)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
70 static int FUNC(frame_size)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
90 static int FUNC(render_size)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
105 static int FUNC(frame_size_with_refs)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
128 CHECK(FUNC(frame_size)(ctx, rw, current)); in FUNC()
135 CHECK(FUNC(render_size)(ctx, rw, current)); in FUNC()
140 static int FUNC(interpolation_filter)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
152 static int FUNC(loop_filter_params)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
180 static int FUNC(quantization_params)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
[all …]
Dcbs_mpeg2_syntax_template.c19 static int FUNC(sequence_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
59 static int FUNC(user_data)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
70 k = get_bits_left(rw); in FUNC()
87 static int FUNC(sequence_extension)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
117 static int FUNC(sequence_display_extension)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
160 static int FUNC(group_of_pictures_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
176 static int FUNC(extra_information)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
183 GetBitContext start = *rw; in FUNC()
187 skip_bits(rw, 1 + 8); in FUNC()
190 *rw = start; in FUNC()
[all …]
Dcbs_av1_syntax_template.c19 static int FUNC(obu_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
50 static int FUNC(trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw, int nb_bits) in FUNC()
67 static int FUNC(byte_alignment)(CodedBitstreamContext *ctx, RWContext *rw) in FUNC()
71 while (byte_alignment(rw) != 0) in FUNC()
77 static int FUNC(color_config)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
158 static int FUNC(timing_info)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
173 static int FUNC(decoder_model_info)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
186 static int FUNC(sequence_header_obu)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
214 CHECK(FUNC(timing_info)(ctx, rw, &current->timing_info)); in FUNC()
219 (ctx, rw, &current->decoder_model_info)); in FUNC()
[all …]
Dcbs_h264_syntax_template.c19 static int FUNC(rbsp_trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw) in FUNC()
24 while (byte_alignment(rw) != 0) in FUNC()
30 static int FUNC(nal_unit_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
71 static int FUNC(scaling_list)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
88 static int FUNC(hrd_parameters)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
111 static int FUNC(vui_parameters)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
173 CHECK(FUNC(hrd_parameters)(ctx, rw, &current->nal_hrd_parameters)); in FUNC()
177 CHECK(FUNC(hrd_parameters)(ctx, rw, &current->vcl_hrd_parameters)); in FUNC()
221 RWContext *rw, H264RawVUI *current, in FUNC()
260 static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
[all …]
Dcbs_h265_syntax_template.c19 static int FUNC(rbsp_trailing_bits)(CodedBitstreamContext *ctx, RWContext *rw) in FUNC()
24 while (byte_alignment(rw) != 0) in FUNC()
30 static int FUNC(nal_unit_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
50 static int FUNC(byte_alignment)(CodedBitstreamContext *ctx, RWContext *rw) in FUNC()
55 while (byte_alignment(rw) != 0) in FUNC()
61 static int FUNC(extension_data)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
69 start = *rw; in FUNC()
70 for (k = 0; cbs_h2645_read_more_rbsp_data(rw); k++) in FUNC()
71 skip_bits(rw, 1); in FUNC()
74 *rw = start; in FUNC()
[all …]
Dcbs_jpeg_syntax_template.c19 static int FUNC(frame_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
43 static int FUNC(quantisation_table)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
62 static int FUNC(dqt)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
73 CHECK(FUNC(quantisation_table)(ctx, rw, &current->table[i])); in FUNC()
78 static int FUNC(huffman_table)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
102 static int FUNC(dht)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
116 CHECK(FUNC(huffman_table)(ctx, rw, &current->table[i])); in FUNC()
126 static int FUNC(scan_header)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
150 static int FUNC(application_data)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
174 static int FUNC(comment)(CodedBitstreamContext *ctx, RWContext *rw, in FUNC()
Dcbs_vp9.c248 #define FUNC_NAME(rw, codec, name) cbs_ ## codec ## _ ## rw ## _ ## name argument
249 #define FUNC_VP9(rw, name) FUNC_NAME(rw, vp9, name) argument
269 CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
276 CHECK(cbs_vp9_read_s(ctx, rw, width, #name, \
284 CHECK(cbs_vp9_read_increment(ctx, rw, min, max, #name, &value)); \
289 CHECK(cbs_vp9_read_le(ctx, rw, width, #name, \
317 CHECK(ff_cbs_read_unsigned(ctx, rw, width, #name, \
325 #define byte_alignment(rw) (get_bits_count(rw) % 8) argument
348 CHECK(ff_cbs_write_unsigned(ctx, rw, width, #name, \
353 CHECK(cbs_vp9_write_s(ctx, rw, width, #name, \
[all …]
/third_party/musl/libc-test/src/regression/
Dpthread_rwlock-ebusy.c29 pthread_rwlock_t rw = PTHREAD_RWLOCK_INITIALIZER; in main() local
33 T(pthread_rwlock_rdlock(&rw)); in main()
34 T(pthread_create(&t, 0, trywrlock, &rw)); in main()
36 T(pthread_rwlock_unlock(&rw)); in main()
38 T(pthread_rwlock_wrlock(&rw)); in main()
39 T(pthread_create(&t, 0, tryrdlock, &rw)); in main()
41 T(pthread_rwlock_unlock(&rw)); in main()
/third_party/mesa3d/src/panfrost/shared/test/
Dtest-tiling.cpp127 unsigned rw, unsigned rh, unsigned linear_stride, in test() argument
141 void *linear = calloc(bpp, rw * linear_stride); in test()
142 void *ref = calloc(bpp, store ? (tiled_width * tiled_height) : (rw * linear_stride)); in test()
145 for (unsigned i = 0; i < bpp * rw * linear_stride; ++i) { in test()
149 panfrost_store_tiled_image(tiled, linear, rx, ry, rw, rh, in test()
156 panfrost_load_tiled_image(linear, tiled, rx, ry, rw, rh, in test()
160 ref_access_tiled(ref, store ? linear : tiled, rx, ry, rw, rh, in test()
166 EXPECT_EQ(memcmp(ref, linear, bpp * rw * linear_stride), 0); in test()
175 unsigned rw, unsigned rh, unsigned linear_stride, in test_ldst() argument
178 test(width, height, rx, ry, rw, rh, linear_stride, format, true); in test_ldst()
[all …]
/third_party/elfutils/tests/
Drun-prelink-addr-test.sh40 00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile52-32.so
42 41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
44 42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
70 1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile52-64.so
73 3000200000-3000201000 rw-p 00000000 fd:11 2 `pwd`/testfile52-64.prelink.so
76 3800200000-3800201000 rw-p 00000000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
155 00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile54-32.so
157 41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile54-32.prelink.so
159 42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile54-32.noshdrs.so
187 1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile54-64.so
[all …]
Drun-unstrip-M.sh36 7f31e812c000-7f31e812d000 rw-p 0018d000 fd:00 917531 /lib64/libc-1.13.so
37 7f31e812d000-7f31e8132000 rw-p 00000000 00:00 0
38 7f31ea3f9000-7f31ea3fc000 rw-s 00000000 00:09 3744 anon_inode:kvm-vcpu
39 7f31ea3fc000-7f31ea3ff000 rw-s 00000000 00:09 3744 anon_inode:kvm-vcpu
40 7f31ea400000-7f31ea402000 rw-p 00000000 00:00 0

12345678910>>...26