Lines Matching refs:target
38 atomic_inc_8(volatile uint8_t *target)
39 { (*target)++; }
42 atomic_inc_uchar(volatile uchar_t *target)
43 { (*target)++; }
46 atomic_inc_16(volatile uint16_t *target)
47 { (*target)++; }
50 atomic_inc_ushort(volatile ushort_t *target)
51 { (*target)++; }
54 atomic_inc_32(volatile uint32_t *target)
55 { (*target)++; }
58 atomic_inc_uint(volatile uint_t *target)
59 { (*target)++; }
62 atomic_inc_ulong(volatile ulong_t *target)
63 { (*target)++; }
66 atomic_inc_64(volatile uint64_t *target)
67 { (*target)++; }
70 atomic_dec_8(volatile uint8_t *target)
71 { (*target)--; }
74 atomic_dec_uchar(volatile uchar_t *target)
75 { (*target)--; }
78 atomic_dec_16(volatile uint16_t *target)
79 { (*target)--; }
82 atomic_dec_ushort(volatile ushort_t *target)
83 { (*target)--; }
86 atomic_dec_32(volatile uint32_t *target)
87 { (*target)--; }
90 atomic_dec_uint(volatile uint_t *target)
91 { (*target)--; }
94 atomic_dec_ulong(volatile ulong_t *target)
95 { (*target)--; }
98 atomic_dec_64(volatile uint64_t *target)
99 { (*target)--; }
102 atomic_add_8(volatile uint8_t *target, int8_t value)
103 { *target += value; }
106 atomic_add_char(volatile uchar_t *target, signed char value)
107 { *target += value; }
110 atomic_add_16(volatile uint16_t *target, int16_t delta)
111 { *target += delta; }
114 atomic_add_ushort(volatile ushort_t *target, short value)
115 { *target += value; }
118 atomic_add_32(volatile uint32_t *target, int32_t delta)
119 { *target += delta; }
122 atomic_add_ptr(volatile void *target, ssize_t value)
123 { *(caddr_t *)target += value; }
126 atomic_add_long(volatile ulong_t *target, long delta)
127 { *target += delta; }
130 atomic_add_64(volatile uint64_t *target, int64_t delta)
131 { *target += delta; }
134 atomic_or_8(volatile uint8_t *target, uint8_t bits)
135 { *target |= bits; }
138 atomic_or_uchar(volatile uchar_t *target, uchar_t bits)
139 { *target |= bits; }
142 atomic_or_16(volatile uint16_t *target, uint16_t bits)
143 { *target |= bits; }
146 atomic_or_ushort(volatile ushort_t *target, ushort_t bits)
147 { *target |= bits; }
150 atomic_or_32(volatile uint32_t *target, uint32_t bits)
151 { *target |= bits; }
154 atomic_or_uint(volatile uint_t *target, uint_t bits)
155 { *target |= bits; }
158 atomic_or_ulong(volatile ulong_t *target, ulong_t bits)
159 { *target |= bits; }
162 atomic_or_64(volatile uint64_t *target, uint64_t bits)
163 { *target |= bits; }
166 atomic_and_8(volatile uint8_t *target, uint8_t bits)
167 { *target &= bits; }
170 atomic_and_uchar(volatile uchar_t *target, uchar_t bits)
171 { *target &= bits; }
174 atomic_and_16(volatile uint16_t *target, uint16_t bits)
175 { *target &= bits; }
178 atomic_and_ushort(volatile ushort_t *target, ushort_t bits)
179 { *target &= bits; }
182 atomic_and_32(volatile uint32_t *target, uint32_t bits)
183 { *target &= bits; }
186 atomic_and_uint(volatile uint_t *target, uint_t bits)
187 { *target &= bits; }
190 atomic_and_ulong(volatile ulong_t *target, ulong_t bits)
191 { *target &= bits; }
194 atomic_and_64(volatile uint64_t *target, uint64_t bits)
195 { *target &= bits; }
198 atomic_inc_8_nv(volatile uint8_t *target)
199 { return (++(*target)); }
202 atomic_inc_uchar_nv(volatile uchar_t *target)
203 { return (++(*target)); }
206 atomic_inc_16_nv(volatile uint16_t *target)
207 { return (++(*target)); }
210 atomic_inc_ushort_nv(volatile ushort_t *target)
211 { return (++(*target)); }
214 atomic_inc_32_nv(volatile uint32_t *target)
215 { return (++(*target)); }
218 atomic_inc_uint_nv(volatile uint_t *target)
219 { return (++(*target)); }
222 atomic_inc_ulong_nv(volatile ulong_t *target)
223 { return (++(*target)); }
226 atomic_inc_64_nv(volatile uint64_t *target)
227 { return (++(*target)); }
230 atomic_dec_8_nv(volatile uint8_t *target)
231 { return (--(*target)); }
234 atomic_dec_uchar_nv(volatile uchar_t *target)
235 { return (--(*target)); }
238 atomic_dec_16_nv(volatile uint16_t *target)
239 { return (--(*target)); }
242 atomic_dec_ushort_nv(volatile ushort_t *target)
243 { return (--(*target)); }
246 atomic_dec_32_nv(volatile uint32_t *target)
247 { return (--(*target)); }
250 atomic_dec_uint_nv(volatile uint_t *target)
251 { return (--(*target)); }
254 atomic_dec_ulong_nv(volatile ulong_t *target)
255 { return (--(*target)); }
258 atomic_dec_64_nv(volatile uint64_t *target)
259 { return (--(*target)); }
262 atomic_add_8_nv(volatile uint8_t *target, int8_t value)
263 { return (*target += value); }
266 atomic_add_char_nv(volatile uchar_t *target, signed char value)
267 { return (*target += value); }
270 atomic_add_16_nv(volatile uint16_t *target, int16_t delta)
271 { return (*target += delta); }
274 atomic_add_short_nv(volatile ushort_t *target, short value)
275 { return (*target += value); }
278 atomic_add_32_nv(volatile uint32_t *target, int32_t delta)
279 { return (*target += delta); }
282 atomic_add_int_nv(volatile uint_t *target, int delta)
283 { return (*target += delta); }
286 atomic_add_ptr_nv(volatile void *target, ssize_t value)
287 { return (*(caddr_t *)target += value); }
290 atomic_add_long_nv(volatile ulong_t *target, long delta)
291 { return (*target += delta); }
294 atomic_add_64_nv(volatile uint64_t *target, int64_t delta)
295 { return (*target += delta); }
298 atomic_or_8_nv(volatile uint8_t *target, uint8_t value)
299 { return (*target |= value); }
302 atomic_or_uchar_nv(volatile uchar_t *target, uchar_t value)
303 { return (*target |= value); }
306 atomic_or_16_nv(volatile uint16_t *target, uint16_t value)
307 { return (*target |= value); }
310 atomic_or_ushort_nv(volatile ushort_t *target, ushort_t value)
311 { return (*target |= value); }
314 atomic_or_32_nv(volatile uint32_t *target, uint32_t value)
315 { return (*target |= value); }
318 atomic_or_uint_nv(volatile uint_t *target, uint_t value)
319 { return (*target |= value); }
322 atomic_or_ulong_nv(volatile ulong_t *target, ulong_t value)
323 { return (*target |= value); }
326 atomic_or_64_nv(volatile uint64_t *target, uint64_t value)
327 { return (*target |= value); }
330 atomic_and_8_nv(volatile uint8_t *target, uint8_t value)
331 { return (*target &= value); }
334 atomic_and_uchar_nv(volatile uchar_t *target, uchar_t value)
335 { return (*target &= value); }
338 atomic_and_16_nv(volatile uint16_t *target, uint16_t value)
339 { return (*target &= value); }
342 atomic_and_ushort_nv(volatile ushort_t *target, ushort_t value)
343 { return (*target &= value); }
346 atomic_and_32_nv(volatile uint32_t *target, uint32_t value)
347 { return (*target &= value); }
350 atomic_and_uint_nv(volatile uint_t *target, uint_t value)
351 { return (*target &= value); }
354 atomic_and_ulong_nv(volatile ulong_t *target, ulong_t value)
355 { return (*target &= value); }
358 atomic_and_64_nv(volatile uint64_t *target, uint64_t value)
359 { return (*target &= value); }
362 atomic_cas_8(volatile uint8_t *target, uint8_t cmp, uint8_t new)
364 uint8_t old = *target;
366 *target = new;
371 atomic_cas_uchar(volatile uchar_t *target, uchar_t cmp, uchar_t new)
373 uchar_t old = *target;
375 *target = new;
380 atomic_cas_16(volatile uint16_t *target, uint16_t cmp, uint16_t new)
382 uint16_t old = *target;
384 *target = new;
389 atomic_cas_ushort(volatile ushort_t *target, ushort_t cmp, ushort_t new)
391 ushort_t old = *target;
393 *target = new;
398 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t new)
400 uint32_t old = *target;
402 *target = new;
407 atomic_cas_uint(volatile uint_t *target, uint_t cmp, uint_t new)
409 uint_t old = *target;
411 *target = new;
416 atomic_cas_ulong(volatile ulong_t *target, ulong_t cmp, ulong_t new)
418 ulong_t old = *target;
420 *target = new;
425 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t new)
427 uint64_t old = *target;
429 *target = new;
434 atomic_cas_ptr(volatile void *target, void *cmp, void *new)
436 void *old = *(void **)target;
438 *(void **)target = new;
443 atomic_swap_8(volatile uint8_t *target, uint8_t new)
445 uint8_t old = *target;
446 *target = new;
451 atomic_swap_char(volatile uchar_t *target, uchar_t new)
453 uchar_t old = *target;
454 *target = new;
459 atomic_swap_16(volatile uint16_t *target, uint16_t new)
461 uint16_t old = *target;
462 *target = new;
467 atomic_swap_ushort(volatile ushort_t *target, ushort_t new)
469 ushort_t old = *target;
470 *target = new;
475 atomic_swap_32(volatile uint32_t *target, uint32_t new)
477 uint32_t old = *target;
478 *target = new;
483 atomic_swap_uint(volatile uint_t *target, uint_t new)
485 uint_t old = *target;
486 *target = new;
491 atomic_swap_64(volatile uint64_t *target, uint64_t new)
493 uint64_t old = *target;
494 *target = new;
499 atomic_swap_ptr(volatile void *target, void *new)
501 void *old = *(void **)target;
502 *(void **)target = new;
507 atomic_swap_ulong(volatile ulong_t *target, ulong_t new)
509 ulong_t old = *target;
510 *target = new;
515 atomic_set_long_excl(volatile ulong_t *target, uint_t value)
518 if ((*target & bit) != 0)
520 *target |= bit;
525 atomic_clear_long_excl(volatile ulong_t *target, uint_t value)
528 if ((*target & bit) == 0)
530 *target &= ~bit;