Lines Matching refs:where
103 static unsigned long int latching_incr_long(unsigned long int *where) {
105 unsigned long int old_value = *(volatile unsigned long int *)where;
109 if (OSAtomicCompareAndSwapLong(old_value, old_value+1, (volatile long int *)where)) {
116 static int latching_incr_int(int *where) { in latching_incr_int() argument
118 int old_value = *(volatile int *)where; in latching_incr_int()
122 if (OSAtomicCompareAndSwapInt(old_value, old_value+1, (volatile int *)where)) { in latching_incr_int()
129 static int latching_decr_long(unsigned long int *where) {
131 unsigned long int old_value = *(volatile int *)where;
138 if (OSAtomicCompareAndSwapLong(old_value, old_value-1, (volatile long int *)where)) {
145 static int latching_decr_int(int *where) { in latching_decr_int() argument
147 int old_value = *(volatile int *)where; in latching_decr_int()
154 if (OSAtomicCompareAndSwapInt(old_value, old_value-1, (volatile int *)where)) { in latching_decr_int()