Lines Matching +full:n +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0 */
12 mask = 1 << (nr & 0x1f); in set_bit()
15 " .align 2 \n\t" in set_bit()
16 " mova 1f, r0 \n\t" /* r0 = end point */ in set_bit()
17 " mov r15, r1 \n\t" /* r1 = saved sp */ in set_bit()
18 " mov #-6, r15 \n\t" /* LOGIN: r15 = size */ in set_bit()
19 " mov.l @%1, %0 \n\t" /* load old value */ in set_bit()
20 " or %2, %0 \n\t" /* or */ in set_bit()
21 " mov.l %0, @%1 \n\t" /* store new value */ in set_bit()
22 "1: mov r1, r15 \n\t" /* LOGOUT */ in set_bit()
36 mask = ~(1 << (nr & 0x1f)); in clear_bit()
38 " .align 2 \n\t" in clear_bit()
39 " mova 1f, r0 \n\t" /* r0 = end point */ in clear_bit()
40 " mov r15, r1 \n\t" /* r1 = saved sp */ in clear_bit()
41 " mov #-6, r15 \n\t" /* LOGIN: r15 = size */ in clear_bit()
42 " mov.l @%1, %0 \n\t" /* load old value */ in clear_bit()
43 " and %2, %0 \n\t" /* and */ in clear_bit()
44 " mov.l %0, @%1 \n\t" /* store new value */ in clear_bit()
45 "1: mov r1, r15 \n\t" /* LOGOUT */ in clear_bit()
59 mask = 1 << (nr & 0x1f); in change_bit()
61 " .align 2 \n\t" in change_bit()
62 " mova 1f, r0 \n\t" /* r0 = end point */ in change_bit()
63 " mov r15, r1 \n\t" /* r1 = saved sp */ in change_bit()
64 " mov #-6, r15 \n\t" /* LOGIN: r15 = size */ in change_bit()
65 " mov.l @%1, %0 \n\t" /* load old value */ in change_bit()
66 " xor %2, %0 \n\t" /* xor */ in change_bit()
67 " mov.l %0, @%1 \n\t" /* store new value */ in change_bit()
68 "1: mov r1, r15 \n\t" /* LOGOUT */ in change_bit()
82 mask = 1 << (nr & 0x1f); in test_and_set_bit()
85 " .align 2 \n\t" in test_and_set_bit()
86 " mova 1f, r0 \n\t" /* r0 = end point */ in test_and_set_bit()
87 " mov r15, r1 \n\t" /* r1 = saved sp */ in test_and_set_bit()
88 " mov #-14, r15 \n\t" /* LOGIN: r15 = size */ in test_and_set_bit()
89 " mov.l @%2, %0 \n\t" /* load old value */ in test_and_set_bit()
90 " mov %0, %1 \n\t" in test_and_set_bit()
91 " tst %1, %3 \n\t" /* T = ((*a & mask) == 0) */ in test_and_set_bit()
92 " mov #-1, %1 \n\t" /* retvat = -1 */ in test_and_set_bit()
93 " negc %1, %1 \n\t" /* retval = (mask & *a) != 0 */ in test_and_set_bit()
94 " or %3, %0 \n\t" in test_and_set_bit()
95 " mov.l %0, @%2 \n\t" /* store new value */ in test_and_set_bit()
96 "1: mov r1, r15 \n\t" /* LOGOUT */ in test_and_set_bit()
113 mask = 1 << (nr & 0x1f); in test_and_clear_bit()
118 " .align 2 \n\t" in test_and_clear_bit()
119 " mova 1f, r0 \n\t" /* r0 = end point */ in test_and_clear_bit()
120 " mov r15, r1 \n\t" /* r1 = saved sp */ in test_and_clear_bit()
121 " mov #-14, r15 \n\t" /* LOGIN */ in test_and_clear_bit()
122 " mov.l @%2, %0 \n\t" /* load old value */ in test_and_clear_bit()
123 " mov %0, %1 \n\t" /* %1 = *a */ in test_and_clear_bit()
124 " tst %1, %3 \n\t" /* T = ((*a & mask) == 0) */ in test_and_clear_bit()
125 " mov #-1, %1 \n\t" /* retvat = -1 */ in test_and_clear_bit()
126 " negc %1, %1 \n\t" /* retval = (mask & *a) != 0 */ in test_and_clear_bit()
127 " and %4, %0 \n\t" in test_and_clear_bit()
128 " mov.l %0, @%2 \n\t" /* store new value */ in test_and_clear_bit()
129 "1: mov r1, r15 \n\t" /* LOGOUT */ in test_and_clear_bit()
147 mask = 1 << (nr & 0x1f); in test_and_change_bit()
150 " .align 2 \n\t" in test_and_change_bit()
151 " mova 1f, r0 \n\t" /* r0 = end point */ in test_and_change_bit()
152 " mov r15, r1 \n\t" /* r1 = saved sp */ in test_and_change_bit()
153 " mov #-14, r15 \n\t" /* LOGIN */ in test_and_change_bit()
154 " mov.l @%2, %0 \n\t" /* load old value */ in test_and_change_bit()
155 " mov %0, %1 \n\t" /* %1 = *a */ in test_and_change_bit()
156 " tst %1, %3 \n\t" /* T = ((*a & mask) == 0) */ in test_and_change_bit()
157 " mov #-1, %1 \n\t" /* retvat = -1 */ in test_and_change_bit()
158 " negc %1, %1 \n\t" /* retval = (mask & *a) != 0 */ in test_and_change_bit()
159 " xor %3, %0 \n\t" in test_and_change_bit()
160 " mov.l %0, @%2 \n\t" /* store new value */ in test_and_change_bit()
161 "1: mov r1, r15 \n\t" /* LOGOUT */ in test_and_change_bit()
171 #include <asm-generic/bitops/non-atomic.h>