Lines Matching full:v
26 * @v: pointer to atomic_long_t
28 * Atomically loads the value of @v with relaxed ordering.
32 * Return: The value loaded from @v.
35 raw_atomic_long_read(const atomic_long_t *v) in raw_atomic_long_read() argument
38 return raw_atomic64_read(v); in raw_atomic_long_read()
40 return raw_atomic_read(v); in raw_atomic_long_read()
46 * @v: pointer to atomic_long_t
48 * Atomically loads the value of @v with acquire ordering.
52 * Return: The value loaded from @v.
55 raw_atomic_long_read_acquire(const atomic_long_t *v) in raw_atomic_long_read_acquire() argument
58 return raw_atomic64_read_acquire(v); in raw_atomic_long_read_acquire()
60 return raw_atomic_read_acquire(v); in raw_atomic_long_read_acquire()
66 * @v: pointer to atomic_long_t
69 * Atomically sets @v to @i with relaxed ordering.
76 raw_atomic_long_set(atomic_long_t *v, long i) in raw_atomic_long_set() argument
79 raw_atomic64_set(v, i); in raw_atomic_long_set()
81 raw_atomic_set(v, i); in raw_atomic_long_set()
87 * @v: pointer to atomic_long_t
90 * Atomically sets @v to @i with release ordering.
97 raw_atomic_long_set_release(atomic_long_t *v, long i) in raw_atomic_long_set_release() argument
100 raw_atomic64_set_release(v, i); in raw_atomic_long_set_release()
102 raw_atomic_set_release(v, i); in raw_atomic_long_set_release()
109 * @v: pointer to atomic_long_t
111 * Atomically updates @v to (@v + @i) with relaxed ordering.
118 raw_atomic_long_add(long i, atomic_long_t *v) in raw_atomic_long_add() argument
121 raw_atomic64_add(i, v); in raw_atomic_long_add()
123 raw_atomic_add(i, v); in raw_atomic_long_add()
130 * @v: pointer to atomic_long_t
132 * Atomically updates @v to (@v + @i) with full ordering.
136 * Return: The updated value of @v.
139 raw_atomic_long_add_return(long i, atomic_long_t *v) in raw_atomic_long_add_return() argument
142 return raw_atomic64_add_return(i, v); in raw_atomic_long_add_return()
144 return raw_atomic_add_return(i, v); in raw_atomic_long_add_return()
151 * @v: pointer to atomic_long_t
153 * Atomically updates @v to (@v + @i) with acquire ordering.
157 * Return: The updated value of @v.
160 raw_atomic_long_add_return_acquire(long i, atomic_long_t *v) in raw_atomic_long_add_return_acquire() argument
163 return raw_atomic64_add_return_acquire(i, v); in raw_atomic_long_add_return_acquire()
165 return raw_atomic_add_return_acquire(i, v); in raw_atomic_long_add_return_acquire()
172 * @v: pointer to atomic_long_t
174 * Atomically updates @v to (@v + @i) with release ordering.
178 * Return: The updated value of @v.
181 raw_atomic_long_add_return_release(long i, atomic_long_t *v) in raw_atomic_long_add_return_release() argument
184 return raw_atomic64_add_return_release(i, v); in raw_atomic_long_add_return_release()
186 return raw_atomic_add_return_release(i, v); in raw_atomic_long_add_return_release()
193 * @v: pointer to atomic_long_t
195 * Atomically updates @v to (@v + @i) with relaxed ordering.
199 * Return: The updated value of @v.
202 raw_atomic_long_add_return_relaxed(long i, atomic_long_t *v) in raw_atomic_long_add_return_relaxed() argument
205 return raw_atomic64_add_return_relaxed(i, v); in raw_atomic_long_add_return_relaxed()
207 return raw_atomic_add_return_relaxed(i, v); in raw_atomic_long_add_return_relaxed()
214 * @v: pointer to atomic_long_t
216 * Atomically updates @v to (@v + @i) with full ordering.
220 * Return: The original value of @v.
223 raw_atomic_long_fetch_add(long i, atomic_long_t *v) in raw_atomic_long_fetch_add() argument
226 return raw_atomic64_fetch_add(i, v); in raw_atomic_long_fetch_add()
228 return raw_atomic_fetch_add(i, v); in raw_atomic_long_fetch_add()
235 * @v: pointer to atomic_long_t
237 * Atomically updates @v to (@v + @i) with acquire ordering.
241 * Return: The original value of @v.
244 raw_atomic_long_fetch_add_acquire(long i, atomic_long_t *v) in raw_atomic_long_fetch_add_acquire() argument
247 return raw_atomic64_fetch_add_acquire(i, v); in raw_atomic_long_fetch_add_acquire()
249 return raw_atomic_fetch_add_acquire(i, v); in raw_atomic_long_fetch_add_acquire()
256 * @v: pointer to atomic_long_t
258 * Atomically updates @v to (@v + @i) with release ordering.
262 * Return: The original value of @v.
265 raw_atomic_long_fetch_add_release(long i, atomic_long_t *v) in raw_atomic_long_fetch_add_release() argument
268 return raw_atomic64_fetch_add_release(i, v); in raw_atomic_long_fetch_add_release()
270 return raw_atomic_fetch_add_release(i, v); in raw_atomic_long_fetch_add_release()
277 * @v: pointer to atomic_long_t
279 * Atomically updates @v to (@v + @i) with relaxed ordering.
283 * Return: The original value of @v.
286 raw_atomic_long_fetch_add_relaxed(long i, atomic_long_t *v) in raw_atomic_long_fetch_add_relaxed() argument
289 return raw_atomic64_fetch_add_relaxed(i, v); in raw_atomic_long_fetch_add_relaxed()
291 return raw_atomic_fetch_add_relaxed(i, v); in raw_atomic_long_fetch_add_relaxed()
298 * @v: pointer to atomic_long_t
300 * Atomically updates @v to (@v - @i) with relaxed ordering.
307 raw_atomic_long_sub(long i, atomic_long_t *v) in raw_atomic_long_sub() argument
310 raw_atomic64_sub(i, v); in raw_atomic_long_sub()
312 raw_atomic_sub(i, v); in raw_atomic_long_sub()
319 * @v: pointer to atomic_long_t
321 * Atomically updates @v to (@v - @i) with full ordering.
325 * Return: The updated value of @v.
328 raw_atomic_long_sub_return(long i, atomic_long_t *v) in raw_atomic_long_sub_return() argument
331 return raw_atomic64_sub_return(i, v); in raw_atomic_long_sub_return()
333 return raw_atomic_sub_return(i, v); in raw_atomic_long_sub_return()
340 * @v: pointer to atomic_long_t
342 * Atomically updates @v to (@v - @i) with acquire ordering.
346 * Return: The updated value of @v.
349 raw_atomic_long_sub_return_acquire(long i, atomic_long_t *v) in raw_atomic_long_sub_return_acquire() argument
352 return raw_atomic64_sub_return_acquire(i, v); in raw_atomic_long_sub_return_acquire()
354 return raw_atomic_sub_return_acquire(i, v); in raw_atomic_long_sub_return_acquire()
361 * @v: pointer to atomic_long_t
363 * Atomically updates @v to (@v - @i) with release ordering.
367 * Return: The updated value of @v.
370 raw_atomic_long_sub_return_release(long i, atomic_long_t *v) in raw_atomic_long_sub_return_release() argument
373 return raw_atomic64_sub_return_release(i, v); in raw_atomic_long_sub_return_release()
375 return raw_atomic_sub_return_release(i, v); in raw_atomic_long_sub_return_release()
382 * @v: pointer to atomic_long_t
384 * Atomically updates @v to (@v - @i) with relaxed ordering.
388 * Return: The updated value of @v.
391 raw_atomic_long_sub_return_relaxed(long i, atomic_long_t *v) in raw_atomic_long_sub_return_relaxed() argument
394 return raw_atomic64_sub_return_relaxed(i, v); in raw_atomic_long_sub_return_relaxed()
396 return raw_atomic_sub_return_relaxed(i, v); in raw_atomic_long_sub_return_relaxed()
403 * @v: pointer to atomic_long_t
405 * Atomically updates @v to (@v - @i) with full ordering.
409 * Return: The original value of @v.
412 raw_atomic_long_fetch_sub(long i, atomic_long_t *v) in raw_atomic_long_fetch_sub() argument
415 return raw_atomic64_fetch_sub(i, v); in raw_atomic_long_fetch_sub()
417 return raw_atomic_fetch_sub(i, v); in raw_atomic_long_fetch_sub()
424 * @v: pointer to atomic_long_t
426 * Atomically updates @v to (@v - @i) with acquire ordering.
430 * Return: The original value of @v.
433 raw_atomic_long_fetch_sub_acquire(long i, atomic_long_t *v) in raw_atomic_long_fetch_sub_acquire() argument
436 return raw_atomic64_fetch_sub_acquire(i, v); in raw_atomic_long_fetch_sub_acquire()
438 return raw_atomic_fetch_sub_acquire(i, v); in raw_atomic_long_fetch_sub_acquire()
445 * @v: pointer to atomic_long_t
447 * Atomically updates @v to (@v - @i) with release ordering.
451 * Return: The original value of @v.
454 raw_atomic_long_fetch_sub_release(long i, atomic_long_t *v) in raw_atomic_long_fetch_sub_release() argument
457 return raw_atomic64_fetch_sub_release(i, v); in raw_atomic_long_fetch_sub_release()
459 return raw_atomic_fetch_sub_release(i, v); in raw_atomic_long_fetch_sub_release()
466 * @v: pointer to atomic_long_t
468 * Atomically updates @v to (@v - @i) with relaxed ordering.
472 * Return: The original value of @v.
475 raw_atomic_long_fetch_sub_relaxed(long i, atomic_long_t *v) in raw_atomic_long_fetch_sub_relaxed() argument
478 return raw_atomic64_fetch_sub_relaxed(i, v); in raw_atomic_long_fetch_sub_relaxed()
480 return raw_atomic_fetch_sub_relaxed(i, v); in raw_atomic_long_fetch_sub_relaxed()
486 * @v: pointer to atomic_long_t
488 * Atomically updates @v to (@v + 1) with relaxed ordering.
495 raw_atomic_long_inc(atomic_long_t *v) in raw_atomic_long_inc() argument
498 raw_atomic64_inc(v); in raw_atomic_long_inc()
500 raw_atomic_inc(v); in raw_atomic_long_inc()
506 * @v: pointer to atomic_long_t
508 * Atomically updates @v to (@v + 1) with full ordering.
512 * Return: The updated value of @v.
515 raw_atomic_long_inc_return(atomic_long_t *v) in raw_atomic_long_inc_return() argument
518 return raw_atomic64_inc_return(v); in raw_atomic_long_inc_return()
520 return raw_atomic_inc_return(v); in raw_atomic_long_inc_return()
526 * @v: pointer to atomic_long_t
528 * Atomically updates @v to (@v + 1) with acquire ordering.
532 * Return: The updated value of @v.
535 raw_atomic_long_inc_return_acquire(atomic_long_t *v) in raw_atomic_long_inc_return_acquire() argument
538 return raw_atomic64_inc_return_acquire(v); in raw_atomic_long_inc_return_acquire()
540 return raw_atomic_inc_return_acquire(v); in raw_atomic_long_inc_return_acquire()
546 * @v: pointer to atomic_long_t
548 * Atomically updates @v to (@v + 1) with release ordering.
552 * Return: The updated value of @v.
555 raw_atomic_long_inc_return_release(atomic_long_t *v) in raw_atomic_long_inc_return_release() argument
558 return raw_atomic64_inc_return_release(v); in raw_atomic_long_inc_return_release()
560 return raw_atomic_inc_return_release(v); in raw_atomic_long_inc_return_release()
566 * @v: pointer to atomic_long_t
568 * Atomically updates @v to (@v + 1) with relaxed ordering.
572 * Return: The updated value of @v.
575 raw_atomic_long_inc_return_relaxed(atomic_long_t *v) in raw_atomic_long_inc_return_relaxed() argument
578 return raw_atomic64_inc_return_relaxed(v); in raw_atomic_long_inc_return_relaxed()
580 return raw_atomic_inc_return_relaxed(v); in raw_atomic_long_inc_return_relaxed()
586 * @v: pointer to atomic_long_t
588 * Atomically updates @v to (@v + 1) with full ordering.
592 * Return: The original value of @v.
595 raw_atomic_long_fetch_inc(atomic_long_t *v) in raw_atomic_long_fetch_inc() argument
598 return raw_atomic64_fetch_inc(v); in raw_atomic_long_fetch_inc()
600 return raw_atomic_fetch_inc(v); in raw_atomic_long_fetch_inc()
606 * @v: pointer to atomic_long_t
608 * Atomically updates @v to (@v + 1) with acquire ordering.
612 * Return: The original value of @v.
615 raw_atomic_long_fetch_inc_acquire(atomic_long_t *v) in raw_atomic_long_fetch_inc_acquire() argument
618 return raw_atomic64_fetch_inc_acquire(v); in raw_atomic_long_fetch_inc_acquire()
620 return raw_atomic_fetch_inc_acquire(v); in raw_atomic_long_fetch_inc_acquire()
626 * @v: pointer to atomic_long_t
628 * Atomically updates @v to (@v + 1) with release ordering.
632 * Return: The original value of @v.
635 raw_atomic_long_fetch_inc_release(atomic_long_t *v) in raw_atomic_long_fetch_inc_release() argument
638 return raw_atomic64_fetch_inc_release(v); in raw_atomic_long_fetch_inc_release()
640 return raw_atomic_fetch_inc_release(v); in raw_atomic_long_fetch_inc_release()
646 * @v: pointer to atomic_long_t
648 * Atomically updates @v to (@v + 1) with relaxed ordering.
652 * Return: The original value of @v.
655 raw_atomic_long_fetch_inc_relaxed(atomic_long_t *v) in raw_atomic_long_fetch_inc_relaxed() argument
658 return raw_atomic64_fetch_inc_relaxed(v); in raw_atomic_long_fetch_inc_relaxed()
660 return raw_atomic_fetch_inc_relaxed(v); in raw_atomic_long_fetch_inc_relaxed()
666 * @v: pointer to atomic_long_t
668 * Atomically updates @v to (@v - 1) with relaxed ordering.
675 raw_atomic_long_dec(atomic_long_t *v) in raw_atomic_long_dec() argument
678 raw_atomic64_dec(v); in raw_atomic_long_dec()
680 raw_atomic_dec(v); in raw_atomic_long_dec()
686 * @v: pointer to atomic_long_t
688 * Atomically updates @v to (@v - 1) with full ordering.
692 * Return: The updated value of @v.
695 raw_atomic_long_dec_return(atomic_long_t *v) in raw_atomic_long_dec_return() argument
698 return raw_atomic64_dec_return(v); in raw_atomic_long_dec_return()
700 return raw_atomic_dec_return(v); in raw_atomic_long_dec_return()
706 * @v: pointer to atomic_long_t
708 * Atomically updates @v to (@v - 1) with acquire ordering.
712 * Return: The updated value of @v.
715 raw_atomic_long_dec_return_acquire(atomic_long_t *v) in raw_atomic_long_dec_return_acquire() argument
718 return raw_atomic64_dec_return_acquire(v); in raw_atomic_long_dec_return_acquire()
720 return raw_atomic_dec_return_acquire(v); in raw_atomic_long_dec_return_acquire()
726 * @v: pointer to atomic_long_t
728 * Atomically updates @v to (@v - 1) with release ordering.
732 * Return: The updated value of @v.
735 raw_atomic_long_dec_return_release(atomic_long_t *v) in raw_atomic_long_dec_return_release() argument
738 return raw_atomic64_dec_return_release(v); in raw_atomic_long_dec_return_release()
740 return raw_atomic_dec_return_release(v); in raw_atomic_long_dec_return_release()
746 * @v: pointer to atomic_long_t
748 * Atomically updates @v to (@v - 1) with relaxed ordering.
752 * Return: The updated value of @v.
755 raw_atomic_long_dec_return_relaxed(atomic_long_t *v) in raw_atomic_long_dec_return_relaxed() argument
758 return raw_atomic64_dec_return_relaxed(v); in raw_atomic_long_dec_return_relaxed()
760 return raw_atomic_dec_return_relaxed(v); in raw_atomic_long_dec_return_relaxed()
766 * @v: pointer to atomic_long_t
768 * Atomically updates @v to (@v - 1) with full ordering.
772 * Return: The original value of @v.
775 raw_atomic_long_fetch_dec(atomic_long_t *v) in raw_atomic_long_fetch_dec() argument
778 return raw_atomic64_fetch_dec(v); in raw_atomic_long_fetch_dec()
780 return raw_atomic_fetch_dec(v); in raw_atomic_long_fetch_dec()
786 * @v: pointer to atomic_long_t
788 * Atomically updates @v to (@v - 1) with acquire ordering.
792 * Return: The original value of @v.
795 raw_atomic_long_fetch_dec_acquire(atomic_long_t *v) in raw_atomic_long_fetch_dec_acquire() argument
798 return raw_atomic64_fetch_dec_acquire(v); in raw_atomic_long_fetch_dec_acquire()
800 return raw_atomic_fetch_dec_acquire(v); in raw_atomic_long_fetch_dec_acquire()
806 * @v: pointer to atomic_long_t
808 * Atomically updates @v to (@v - 1) with release ordering.
812 * Return: The original value of @v.
815 raw_atomic_long_fetch_dec_release(atomic_long_t *v) in raw_atomic_long_fetch_dec_release() argument
818 return raw_atomic64_fetch_dec_release(v); in raw_atomic_long_fetch_dec_release()
820 return raw_atomic_fetch_dec_release(v); in raw_atomic_long_fetch_dec_release()
826 * @v: pointer to atomic_long_t
828 * Atomically updates @v to (@v - 1) with relaxed ordering.
832 * Return: The original value of @v.
835 raw_atomic_long_fetch_dec_relaxed(atomic_long_t *v) in raw_atomic_long_fetch_dec_relaxed() argument
838 return raw_atomic64_fetch_dec_relaxed(v); in raw_atomic_long_fetch_dec_relaxed()
840 return raw_atomic_fetch_dec_relaxed(v); in raw_atomic_long_fetch_dec_relaxed()
847 * @v: pointer to atomic_long_t
849 * Atomically updates @v to (@v & @i) with relaxed ordering.
856 raw_atomic_long_and(long i, atomic_long_t *v) in raw_atomic_long_and() argument
859 raw_atomic64_and(i, v); in raw_atomic_long_and()
861 raw_atomic_and(i, v); in raw_atomic_long_and()
868 * @v: pointer to atomic_long_t
870 * Atomically updates @v to (@v & @i) with full ordering.
874 * Return: The original value of @v.
877 raw_atomic_long_fetch_and(long i, atomic_long_t *v) in raw_atomic_long_fetch_and() argument
880 return raw_atomic64_fetch_and(i, v); in raw_atomic_long_fetch_and()
882 return raw_atomic_fetch_and(i, v); in raw_atomic_long_fetch_and()
889 * @v: pointer to atomic_long_t
891 * Atomically updates @v to (@v & @i) with acquire ordering.
895 * Return: The original value of @v.
898 raw_atomic_long_fetch_and_acquire(long i, atomic_long_t *v) in raw_atomic_long_fetch_and_acquire() argument
901 return raw_atomic64_fetch_and_acquire(i, v); in raw_atomic_long_fetch_and_acquire()
903 return raw_atomic_fetch_and_acquire(i, v); in raw_atomic_long_fetch_and_acquire()
910 * @v: pointer to atomic_long_t
912 * Atomically updates @v to (@v & @i) with release ordering.
916 * Return: The original value of @v.
919 raw_atomic_long_fetch_and_release(long i, atomic_long_t *v) in raw_atomic_long_fetch_and_release() argument
922 return raw_atomic64_fetch_and_release(i, v); in raw_atomic_long_fetch_and_release()
924 return raw_atomic_fetch_and_release(i, v); in raw_atomic_long_fetch_and_release()
931 * @v: pointer to atomic_long_t
933 * Atomically updates @v to (@v & @i) with relaxed ordering.
937 * Return: The original value of @v.
940 raw_atomic_long_fetch_and_relaxed(long i, atomic_long_t *v) in raw_atomic_long_fetch_and_relaxed() argument
943 return raw_atomic64_fetch_and_relaxed(i, v); in raw_atomic_long_fetch_and_relaxed()
945 return raw_atomic_fetch_and_relaxed(i, v); in raw_atomic_long_fetch_and_relaxed()
952 * @v: pointer to atomic_long_t
954 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
961 raw_atomic_long_andnot(long i, atomic_long_t *v) in raw_atomic_long_andnot() argument
964 raw_atomic64_andnot(i, v); in raw_atomic_long_andnot()
966 raw_atomic_andnot(i, v); in raw_atomic_long_andnot()
973 * @v: pointer to atomic_long_t
975 * Atomically updates @v to (@v & ~@i) with full ordering.
979 * Return: The original value of @v.
982 raw_atomic_long_fetch_andnot(long i, atomic_long_t *v) in raw_atomic_long_fetch_andnot() argument
985 return raw_atomic64_fetch_andnot(i, v); in raw_atomic_long_fetch_andnot()
987 return raw_atomic_fetch_andnot(i, v); in raw_atomic_long_fetch_andnot()
994 * @v: pointer to atomic_long_t
996 * Atomically updates @v to (@v & ~@i) with acquire ordering.
1000 * Return: The original value of @v.
1003 raw_atomic_long_fetch_andnot_acquire(long i, atomic_long_t *v) in raw_atomic_long_fetch_andnot_acquire() argument
1006 return raw_atomic64_fetch_andnot_acquire(i, v); in raw_atomic_long_fetch_andnot_acquire()
1008 return raw_atomic_fetch_andnot_acquire(i, v); in raw_atomic_long_fetch_andnot_acquire()
1015 * @v: pointer to atomic_long_t
1017 * Atomically updates @v to (@v & ~@i) with release ordering.
1021 * Return: The original value of @v.
1024 raw_atomic_long_fetch_andnot_release(long i, atomic_long_t *v) in raw_atomic_long_fetch_andnot_release() argument
1027 return raw_atomic64_fetch_andnot_release(i, v); in raw_atomic_long_fetch_andnot_release()
1029 return raw_atomic_fetch_andnot_release(i, v); in raw_atomic_long_fetch_andnot_release()
1036 * @v: pointer to atomic_long_t
1038 * Atomically updates @v to (@v & ~@i) with relaxed ordering.
1042 * Return: The original value of @v.
1045 raw_atomic_long_fetch_andnot_relaxed(long i, atomic_long_t *v) in raw_atomic_long_fetch_andnot_relaxed() argument
1048 return raw_atomic64_fetch_andnot_relaxed(i, v); in raw_atomic_long_fetch_andnot_relaxed()
1050 return raw_atomic_fetch_andnot_relaxed(i, v); in raw_atomic_long_fetch_andnot_relaxed()
1057 * @v: pointer to atomic_long_t
1059 * Atomically updates @v to (@v | @i) with relaxed ordering.
1066 raw_atomic_long_or(long i, atomic_long_t *v) in raw_atomic_long_or() argument
1069 raw_atomic64_or(i, v); in raw_atomic_long_or()
1071 raw_atomic_or(i, v); in raw_atomic_long_or()
1078 * @v: pointer to atomic_long_t
1080 * Atomically updates @v to (@v | @i) with full ordering.
1084 * Return: The original value of @v.
1087 raw_atomic_long_fetch_or(long i, atomic_long_t *v) in raw_atomic_long_fetch_or() argument
1090 return raw_atomic64_fetch_or(i, v); in raw_atomic_long_fetch_or()
1092 return raw_atomic_fetch_or(i, v); in raw_atomic_long_fetch_or()
1099 * @v: pointer to atomic_long_t
1101 * Atomically updates @v to (@v | @i) with acquire ordering.
1105 * Return: The original value of @v.
1108 raw_atomic_long_fetch_or_acquire(long i, atomic_long_t *v) in raw_atomic_long_fetch_or_acquire() argument
1111 return raw_atomic64_fetch_or_acquire(i, v); in raw_atomic_long_fetch_or_acquire()
1113 return raw_atomic_fetch_or_acquire(i, v); in raw_atomic_long_fetch_or_acquire()
1120 * @v: pointer to atomic_long_t
1122 * Atomically updates @v to (@v | @i) with release ordering.
1126 * Return: The original value of @v.
1129 raw_atomic_long_fetch_or_release(long i, atomic_long_t *v) in raw_atomic_long_fetch_or_release() argument
1132 return raw_atomic64_fetch_or_release(i, v); in raw_atomic_long_fetch_or_release()
1134 return raw_atomic_fetch_or_release(i, v); in raw_atomic_long_fetch_or_release()
1141 * @v: pointer to atomic_long_t
1143 * Atomically updates @v to (@v | @i) with relaxed ordering.
1147 * Return: The original value of @v.
1150 raw_atomic_long_fetch_or_relaxed(long i, atomic_long_t *v) in raw_atomic_long_fetch_or_relaxed() argument
1153 return raw_atomic64_fetch_or_relaxed(i, v); in raw_atomic_long_fetch_or_relaxed()
1155 return raw_atomic_fetch_or_relaxed(i, v); in raw_atomic_long_fetch_or_relaxed()
1162 * @v: pointer to atomic_long_t
1164 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
1171 raw_atomic_long_xor(long i, atomic_long_t *v) in raw_atomic_long_xor() argument
1174 raw_atomic64_xor(i, v); in raw_atomic_long_xor()
1176 raw_atomic_xor(i, v); in raw_atomic_long_xor()
1183 * @v: pointer to atomic_long_t
1185 * Atomically updates @v to (@v ^ @i) with full ordering.
1189 * Return: The original value of @v.
1192 raw_atomic_long_fetch_xor(long i, atomic_long_t *v) in raw_atomic_long_fetch_xor() argument
1195 return raw_atomic64_fetch_xor(i, v); in raw_atomic_long_fetch_xor()
1197 return raw_atomic_fetch_xor(i, v); in raw_atomic_long_fetch_xor()
1204 * @v: pointer to atomic_long_t
1206 * Atomically updates @v to (@v ^ @i) with acquire ordering.
1210 * Return: The original value of @v.
1213 raw_atomic_long_fetch_xor_acquire(long i, atomic_long_t *v) in raw_atomic_long_fetch_xor_acquire() argument
1216 return raw_atomic64_fetch_xor_acquire(i, v); in raw_atomic_long_fetch_xor_acquire()
1218 return raw_atomic_fetch_xor_acquire(i, v); in raw_atomic_long_fetch_xor_acquire()
1225 * @v: pointer to atomic_long_t
1227 * Atomically updates @v to (@v ^ @i) with release ordering.
1231 * Return: The original value of @v.
1234 raw_atomic_long_fetch_xor_release(long i, atomic_long_t *v) in raw_atomic_long_fetch_xor_release() argument
1237 return raw_atomic64_fetch_xor_release(i, v); in raw_atomic_long_fetch_xor_release()
1239 return raw_atomic_fetch_xor_release(i, v); in raw_atomic_long_fetch_xor_release()
1246 * @v: pointer to atomic_long_t
1248 * Atomically updates @v to (@v ^ @i) with relaxed ordering.
1252 * Return: The original value of @v.
1255 raw_atomic_long_fetch_xor_relaxed(long i, atomic_long_t *v) in raw_atomic_long_fetch_xor_relaxed() argument
1258 return raw_atomic64_fetch_xor_relaxed(i, v); in raw_atomic_long_fetch_xor_relaxed()
1260 return raw_atomic_fetch_xor_relaxed(i, v); in raw_atomic_long_fetch_xor_relaxed()
1266 * @v: pointer to atomic_long_t
1269 * Atomically updates @v to @new with full ordering.
1273 * Return: The original value of @v.
1276 raw_atomic_long_xchg(atomic_long_t *v, long new) in raw_atomic_long_xchg() argument
1279 return raw_atomic64_xchg(v, new); in raw_atomic_long_xchg()
1281 return raw_atomic_xchg(v, new); in raw_atomic_long_xchg()
1287 * @v: pointer to atomic_long_t
1290 * Atomically updates @v to @new with acquire ordering.
1294 * Return: The original value of @v.
1297 raw_atomic_long_xchg_acquire(atomic_long_t *v, long new) in raw_atomic_long_xchg_acquire() argument
1300 return raw_atomic64_xchg_acquire(v, new); in raw_atomic_long_xchg_acquire()
1302 return raw_atomic_xchg_acquire(v, new); in raw_atomic_long_xchg_acquire()
1308 * @v: pointer to atomic_long_t
1311 * Atomically updates @v to @new with release ordering.
1315 * Return: The original value of @v.
1318 raw_atomic_long_xchg_release(atomic_long_t *v, long new) in raw_atomic_long_xchg_release() argument
1321 return raw_atomic64_xchg_release(v, new); in raw_atomic_long_xchg_release()
1323 return raw_atomic_xchg_release(v, new); in raw_atomic_long_xchg_release()
1329 * @v: pointer to atomic_long_t
1332 * Atomically updates @v to @new with relaxed ordering.
1336 * Return: The original value of @v.
1339 raw_atomic_long_xchg_relaxed(atomic_long_t *v, long new) in raw_atomic_long_xchg_relaxed() argument
1342 return raw_atomic64_xchg_relaxed(v, new); in raw_atomic_long_xchg_relaxed()
1344 return raw_atomic_xchg_relaxed(v, new); in raw_atomic_long_xchg_relaxed()
1350 * @v: pointer to atomic_long_t
1354 * If (@v == @old), atomically updates @v to @new with full ordering.
1355 * Otherwise, @v is not modified and relaxed ordering is provided.
1359 * Return: The original value of @v.
1362 raw_atomic_long_cmpxchg(atomic_long_t *v, long old, long new) in raw_atomic_long_cmpxchg() argument
1365 return raw_atomic64_cmpxchg(v, old, new); in raw_atomic_long_cmpxchg()
1367 return raw_atomic_cmpxchg(v, old, new); in raw_atomic_long_cmpxchg()
1373 * @v: pointer to atomic_long_t
1377 * If (@v == @old), atomically updates @v to @new with acquire ordering.
1378 * Otherwise, @v is not modified and relaxed ordering is provided.
1382 * Return: The original value of @v.
1385 raw_atomic_long_cmpxchg_acquire(atomic_long_t *v, long old, long new) in raw_atomic_long_cmpxchg_acquire() argument
1388 return raw_atomic64_cmpxchg_acquire(v, old, new); in raw_atomic_long_cmpxchg_acquire()
1390 return raw_atomic_cmpxchg_acquire(v, old, new); in raw_atomic_long_cmpxchg_acquire()
1396 * @v: pointer to atomic_long_t
1400 * If (@v == @old), atomically updates @v to @new with release ordering.
1401 * Otherwise, @v is not modified and relaxed ordering is provided.
1405 * Return: The original value of @v.
1408 raw_atomic_long_cmpxchg_release(atomic_long_t *v, long old, long new) in raw_atomic_long_cmpxchg_release() argument
1411 return raw_atomic64_cmpxchg_release(v, old, new); in raw_atomic_long_cmpxchg_release()
1413 return raw_atomic_cmpxchg_release(v, old, new); in raw_atomic_long_cmpxchg_release()
1419 * @v: pointer to atomic_long_t
1423 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
1424 * Otherwise, @v is not modified and relaxed ordering is provided.
1428 * Return: The original value of @v.
1431 raw_atomic_long_cmpxchg_relaxed(atomic_long_t *v, long old, long new) in raw_atomic_long_cmpxchg_relaxed() argument
1434 return raw_atomic64_cmpxchg_relaxed(v, old, new); in raw_atomic_long_cmpxchg_relaxed()
1436 return raw_atomic_cmpxchg_relaxed(v, old, new); in raw_atomic_long_cmpxchg_relaxed()
1442 * @v: pointer to atomic_long_t
1446 * If (@v == @old), atomically updates @v to @new with full ordering.
1447 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1455 raw_atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) in raw_atomic_long_try_cmpxchg() argument
1458 return raw_atomic64_try_cmpxchg(v, (s64 *)old, new); in raw_atomic_long_try_cmpxchg()
1460 return raw_atomic_try_cmpxchg(v, (int *)old, new); in raw_atomic_long_try_cmpxchg()
1466 * @v: pointer to atomic_long_t
1470 * If (@v == @old), atomically updates @v to @new with acquire ordering.
1471 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1479 raw_atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new) in raw_atomic_long_try_cmpxchg_acquire() argument
1482 return raw_atomic64_try_cmpxchg_acquire(v, (s64 *)old, new); in raw_atomic_long_try_cmpxchg_acquire()
1484 return raw_atomic_try_cmpxchg_acquire(v, (int *)old, new); in raw_atomic_long_try_cmpxchg_acquire()
1490 * @v: pointer to atomic_long_t
1494 * If (@v == @old), atomically updates @v to @new with release ordering.
1495 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1503 raw_atomic_long_try_cmpxchg_release(atomic_long_t *v, long *old, long new) in raw_atomic_long_try_cmpxchg_release() argument
1506 return raw_atomic64_try_cmpxchg_release(v, (s64 *)old, new); in raw_atomic_long_try_cmpxchg_release()
1508 return raw_atomic_try_cmpxchg_release(v, (int *)old, new); in raw_atomic_long_try_cmpxchg_release()
1514 * @v: pointer to atomic_long_t
1518 * If (@v == @old), atomically updates @v to @new with relaxed ordering.
1519 * Otherwise, @v is not modified, @old is updated to the current value of @v,
1527 raw_atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new) in raw_atomic_long_try_cmpxchg_relaxed() argument
1530 return raw_atomic64_try_cmpxchg_relaxed(v, (s64 *)old, new); in raw_atomic_long_try_cmpxchg_relaxed()
1532 return raw_atomic_try_cmpxchg_relaxed(v, (int *)old, new); in raw_atomic_long_try_cmpxchg_relaxed()
1539 * @v: pointer to atomic_long_t
1541 * Atomically updates @v to (@v - @i) with full ordering.
1545 * Return: @true if the resulting value of @v is zero, @false otherwise.
1548 raw_atomic_long_sub_and_test(long i, atomic_long_t *v) in raw_atomic_long_sub_and_test() argument
1551 return raw_atomic64_sub_and_test(i, v); in raw_atomic_long_sub_and_test()
1553 return raw_atomic_sub_and_test(i, v); in raw_atomic_long_sub_and_test()
1559 * @v: pointer to atomic_long_t
1561 * Atomically updates @v to (@v - 1) with full ordering.
1565 * Return: @true if the resulting value of @v is zero, @false otherwise.
1568 raw_atomic_long_dec_and_test(atomic_long_t *v) in raw_atomic_long_dec_and_test() argument
1571 return raw_atomic64_dec_and_test(v); in raw_atomic_long_dec_and_test()
1573 return raw_atomic_dec_and_test(v); in raw_atomic_long_dec_and_test()
1579 * @v: pointer to atomic_long_t
1581 * Atomically updates @v to (@v + 1) with full ordering.
1585 * Return: @true if the resulting value of @v is zero, @false otherwise.
1588 raw_atomic_long_inc_and_test(atomic_long_t *v) in raw_atomic_long_inc_and_test() argument
1591 return raw_atomic64_inc_and_test(v); in raw_atomic_long_inc_and_test()
1593 return raw_atomic_inc_and_test(v); in raw_atomic_long_inc_and_test()
1600 * @v: pointer to atomic_long_t
1602 * Atomically updates @v to (@v + @i) with full ordering.
1606 * Return: @true if the resulting value of @v is negative, @false otherwise.
1609 raw_atomic_long_add_negative(long i, atomic_long_t *v) in raw_atomic_long_add_negative() argument
1612 return raw_atomic64_add_negative(i, v); in raw_atomic_long_add_negative()
1614 return raw_atomic_add_negative(i, v); in raw_atomic_long_add_negative()
1621 * @v: pointer to atomic_long_t
1623 * Atomically updates @v to (@v + @i) with acquire ordering.
1627 * Return: @true if the resulting value of @v is negative, @false otherwise.
1630 raw_atomic_long_add_negative_acquire(long i, atomic_long_t *v) in raw_atomic_long_add_negative_acquire() argument
1633 return raw_atomic64_add_negative_acquire(i, v); in raw_atomic_long_add_negative_acquire()
1635 return raw_atomic_add_negative_acquire(i, v); in raw_atomic_long_add_negative_acquire()
1642 * @v: pointer to atomic_long_t
1644 * Atomically updates @v to (@v + @i) with release ordering.
1648 * Return: @true if the resulting value of @v is negative, @false otherwise.
1651 raw_atomic_long_add_negative_release(long i, atomic_long_t *v) in raw_atomic_long_add_negative_release() argument
1654 return raw_atomic64_add_negative_release(i, v); in raw_atomic_long_add_negative_release()
1656 return raw_atomic_add_negative_release(i, v); in raw_atomic_long_add_negative_release()
1663 * @v: pointer to atomic_long_t
1665 * Atomically updates @v to (@v + @i) with relaxed ordering.
1669 * Return: @true if the resulting value of @v is negative, @false otherwise.
1672 raw_atomic_long_add_negative_relaxed(long i, atomic_long_t *v) in raw_atomic_long_add_negative_relaxed() argument
1675 return raw_atomic64_add_negative_relaxed(i, v); in raw_atomic_long_add_negative_relaxed()
1677 return raw_atomic_add_negative_relaxed(i, v); in raw_atomic_long_add_negative_relaxed()
1683 * @v: pointer to atomic_long_t
1687 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
1688 * Otherwise, @v is not modified and relaxed ordering is provided.
1692 * Return: The original value of @v.
1695 raw_atomic_long_fetch_add_unless(atomic_long_t *v, long a, long u) in raw_atomic_long_fetch_add_unless() argument
1698 return raw_atomic64_fetch_add_unless(v, a, u); in raw_atomic_long_fetch_add_unless()
1700 return raw_atomic_fetch_add_unless(v, a, u); in raw_atomic_long_fetch_add_unless()
1706 * @v: pointer to atomic_long_t
1710 * If (@v != @u), atomically updates @v to (@v + @a) with full ordering.
1711 * Otherwise, @v is not modified and relaxed ordering is provided.
1715 * Return: @true if @v was updated, @false otherwise.
1718 raw_atomic_long_add_unless(atomic_long_t *v, long a, long u) in raw_atomic_long_add_unless() argument
1721 return raw_atomic64_add_unless(v, a, u); in raw_atomic_long_add_unless()
1723 return raw_atomic_add_unless(v, a, u); in raw_atomic_long_add_unless()
1729 * @v: pointer to atomic_long_t
1731 * If (@v != 0), atomically updates @v to (@v + 1) with full ordering.
1732 * Otherwise, @v is not modified and relaxed ordering is provided.
1736 * Return: @true if @v was updated, @false otherwise.
1739 raw_atomic_long_inc_not_zero(atomic_long_t *v) in raw_atomic_long_inc_not_zero() argument
1742 return raw_atomic64_inc_not_zero(v); in raw_atomic_long_inc_not_zero()
1744 return raw_atomic_inc_not_zero(v); in raw_atomic_long_inc_not_zero()
1750 * @v: pointer to atomic_long_t
1752 * If (@v >= 0), atomically updates @v to (@v + 1) with full ordering.
1753 * Otherwise, @v is not modified and relaxed ordering is provided.
1757 * Return: @true if @v was updated, @false otherwise.
1760 raw_atomic_long_inc_unless_negative(atomic_long_t *v) in raw_atomic_long_inc_unless_negative() argument
1763 return raw_atomic64_inc_unless_negative(v); in raw_atomic_long_inc_unless_negative()
1765 return raw_atomic_inc_unless_negative(v); in raw_atomic_long_inc_unless_negative()
1771 * @v: pointer to atomic_long_t
1773 * If (@v <= 0), atomically updates @v to (@v - 1) with full ordering.
1774 * Otherwise, @v is not modified and relaxed ordering is provided.
1778 * Return: @true if @v was updated, @false otherwise.
1781 raw_atomic_long_dec_unless_positive(atomic_long_t *v) in raw_atomic_long_dec_unless_positive() argument
1784 return raw_atomic64_dec_unless_positive(v); in raw_atomic_long_dec_unless_positive()
1786 return raw_atomic_dec_unless_positive(v); in raw_atomic_long_dec_unless_positive()
1792 * @v: pointer to atomic_long_t
1794 * If (@v > 0), atomically updates @v to (@v - 1) with full ordering.
1795 * Otherwise, @v is not modified and relaxed ordering is provided.
1799 * Return: The old value of (@v - 1), regardless of whether @v was updated.
1802 raw_atomic_long_dec_if_positive(atomic_long_t *v) in raw_atomic_long_dec_if_positive() argument
1805 return raw_atomic64_dec_if_positive(v); in raw_atomic_long_dec_if_positive()
1807 return raw_atomic_dec_if_positive(v); in raw_atomic_long_dec_if_positive()